/* Popup para valores de Sobre Nosotros */
.about-popup-inline {
  display: none;
  position: absolute;
  left: 50%;
  top: 110%;
  transform: translateX(-50%);
  background: #fff;
  color: #232946;
  padding: 1.1rem 1rem 1rem 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(35,41,70,0.18);
  min-width: 160px;
  max-width: 300px;
  width: max-content;
  font-size: 0.93rem;
  z-index: 20;
  text-align: left;
  animation: popupFadeIn 0.22s;
  overflow-wrap: break-word;
  word-break: break-word;
  box-sizing: border-box;
  pointer-events: auto;
}
.about-popup-inline::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 10px 12px 10px;
  border-style: solid;
  border-color: transparent transparent #fff transparent;
  filter: drop-shadow(0 2px 4px rgba(35,41,70,0.10));
}
.about-popup-inline .about-popup-close {
  position: absolute;
  top: 7px;
  right: 12px;
  font-size: 1.2rem;
  color: #eebf63;
  cursor: pointer;
  font-weight: bold;
}
.about-value {
  position: relative;
  cursor: pointer;
}
.about-popup-inline.show {
  display: block;
}
@media (max-width: 700px) {
  .about-popup-inline {
    left: 0;
    right: 0;
    transform: none;
    min-width: unset;
    max-width: 98vw;
    width: 98vw;
  }
  .about-popup-inline::before {
    left: 24px;
    transform: none;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
  background: #f7f8fa;
  color: #232946;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* Header minimalista */
.main-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(35,41,70,0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
}
.logo-image { height: 48px; }
nav { display: flex; align-items: center; }
.menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.menu li a {
  color: #232946;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.2s;
}
.menu li a:hover { color: #eebf63; }
.menu-toggle {
  display: none;
  margin-left: 1.5rem;
  font-size: 2rem;
  cursor: pointer;
  color: #eebf63;
}

/* Hero Section */
.hero-section {
  position: relative;
  color: #fff;
  padding: 5rem 0 3rem 0;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('img/Cover2.avif');
  background-size: cover;
  background-position: center;
  z-index: 1;
  opacity: 1;
  animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero-section::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2;
}

@keyframes heroZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.08);
  }
}

.hero-bg, .hero-content {
  position: relative;
  z-index: 3;
}
.hero-bg {
  min-height: 350px;
  display: flex;
  align-items: center;
}
.hero-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}
.hero-content h1 span { color: #eebf63; }
.hero-content h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1.2rem;
}
.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.btn, .btn-primary, .btn-outline {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border 0.2s;
  cursor: pointer;
}
.btn-primary {
  background: #eebf63;
  color: #232946;
  border: none;
}
.btn-primary:hover {
  background: #fff;
  color: #232946;
}
.btn-outline {
  background: transparent;
  color: #eebf63;
  border: 2px solid #eebf63;
}
.btn-outline:hover {
  background: #eebf63;
  color: #232946;
}

/* Servicios cards */
#servicios {
  padding: 4rem 0 3rem 0;
  background: #fff;
}
.section-title {
  text-align: center;
  font-size: 2.2rem;
  color: #232946;
  margin-bottom: 2.5rem;
  font-weight: 700;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}
.service-card {
  background: #f7f8fa;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(35,41,70,0.07);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  text-align: center;
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.service-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 24px rgba(35,41,70,0.13);
}
.service-icon {
  font-size: 2.5rem;
  color: #eebf63;
  margin-bottom: 1rem;
  background: #232946;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-img {
  width: 100%;
  max-width: 220px;
  border-radius: 12px;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 8px rgba(35,41,70,0.08);
}
.service-card h3 {
  font-size: 1.3rem;
  color: #232946;
  margin-bottom: 0.7rem;
}
.service-card p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1.1rem;
}
.service-features {
  list-style: none;
  margin-bottom: 1.2rem;
  padding: 0;
}
.service-features li {
  color: #232946;
  font-size: 1rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.service-features i { color: #eebf63; }

/* Nosotros columnas */
#nosotros {
  background: #f7f8fa;
  padding: 4rem 0 3rem 0;
}
.about-columns {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.about-img {
  flex: 0 0 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-info {
  flex: 1;
  min-width: 260px;
}
.section-description {
  font-size: 1.1rem;
  color: #232946;
  margin-bottom: 1.5rem;
}
.about-justify {
  text-align: justify;
}
.about-values {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.about-value {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(35,41,70,0.07);
  padding: 0.7rem 1.2rem;
  font-size: 1.1rem;
  color: #232946;
  font-weight: 500;
}
.about-value i {
  color: #eebf63;
  font-size: 1.3rem;
}

/* Popup para valores de Sobre Nosotros */
.about-popup-inline {
  display: none;
  position: absolute;
  left: 50%;
  top: 110%;
  transform: translateX(-50%);
  background: #fff;
  color: #232946;
  padding: 1.1rem 1rem 1rem 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(35,41,70,0.18);
  min-width: 160px;
  max-width: 300px;
  width: max-content;
  font-size: 0.93rem;
  z-index: 20;
  text-align: left;
  animation: popupFadeIn 0.22s; 
  overflow-wrap: break-word;
  word-break: break-word;
  box-sizing: border-box;
  pointer-events: auto;
}

.about-popup-close {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 1.5rem;
  color: #eebf63;
  cursor: pointer;
  font-weight: bold;
}
@keyframes popupFadeIn {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  .about-popup-content {
    max-width: 90vw;
    padding: 1.2rem 0.7rem;
    font-size: 1rem;
  }
}

/* Footer */
footer {
  background: #232946;
  color: #fff;
  padding: 2.5rem 0 1rem 0;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.footer-logo h2 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #eebf63;
}
.footer-logo span { color: #fff; }
.footer-links h3, .footer-social h3 {
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
  color: #eebf63;
}
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: #eebf63; }
.social-icons { display: flex; gap: 1rem; }
.social-icons a {
  color: #eebf63;
  font-size: 1.3rem;
  transition: color 0.2s;
}
.social-icons a:hover { color: #fff; }
.footer-bottom {
  text-align: center;
  color: #eebf63;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 900px) {
  .header-flex { flex-direction: column; gap: 1rem; }
  .footer-content { flex-direction: column; gap: 1.5rem; align-items: center; }
  .about-columns { flex-direction: column; gap: 2rem; }
}
@media (max-width: 700px) {
  .hero-content h1 { font-size: 2.1rem; }
  .hero-content h2 { font-size: 1.1rem; }
  .services-grid { grid-template-columns: 1fr; }
  .about-values { flex-direction: column; gap: 1rem; }
}
@media (max-width: 600px) {
  .container { width: 98%; padding: 0 0.5rem; }
  .main-header { padding: 0.5rem 0; }
  .menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: #fff;
    flex-direction: column;
    width: 180px;
    box-shadow: 0 2px 8px rgba(35,41,70,0.13);
    border-radius: 0 0 12px 12px;
    z-index: 200;
  }
  .menu li { margin: 1.2rem 0; text-align: right; padding-right: 1.5rem; }
  .menu li a { color: #232946; }
  .menu-toggle { display: block; }
  .header-flex { flex-direction: row; justify-content: space-between; align-items: center; }
}
.menu.active { display: flex !important; }
