* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #d97706;
  --primary-dark: #b45309;
  --accent-color: #f59e0b;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-dark: #111827;
  --border-color: #e5e7eb;
  --success-color: #10b981;
  --error-color: #ef4444;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition);
}

.nav-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.nav-logo-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-img {
  height: 40px;
  width: auto;
}

.nav-logo-row:last-child .nav-logo-img {
  height: 40px;
  margin-left: 4px;
}

.nav-logo-row:first-child .nav-logo-img { 
  height: 40px;
  margin-left: 4px;
}

.nav-logo-title {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.4rem;
}

.nav-logo-subtitle {
  font-size: 1.4rem;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-cta {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--primary-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 3px 0;
  transition: var(--transition);
}

/* Ocultar la X en escritorio */
.nav-menu .nav-close {
  display: none;
}

/* Mobile: menú hamburguesa (solo para pantallas <= 768px) */
@media (max-width: 768px) {
  /* Mostrar botón hamburguesa */
  .nav-toggle {
    display: flex;
  }

  /* Menú móvil: panel más estrecho y alineado a la derecha */
  .nav-menu {
    display: flex;
    flex-direction: column;
    justify-content: center; /* centra verticalmente los enlaces */
    align-items: center; /* centra horizontalmente */
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(120px, 30%); /* ancho reducido adicional para ocupar menos espacio */
    max-width: 120px; /* ancho máximo más pequeño */
    gap: 0.6rem;
    background: #ffffff;
    z-index: 10001;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.14);
    padding: 1rem; /* padding reducido para centrar correctamente */
    transition: transform 0.35s ease;
    transform: translateX(100%); /* inicialmente fuera de pantalla */
    -webkit-overflow-scrolling: touch;
    pointer-events: none;
    overflow-y: auto;
    box-sizing: border-box;
  }

  /* Al alternar la clase 'active' el menú se desliza desde la derecha */
  .nav-menu.active {
    transform: translateX(0);
    pointer-events: auto;
    padding-top: 0.6rem; /* reducir espacio al abrir */
  }

  /* Botón X para cerrar el menú (sólo en móvil) */
  .nav-menu .nav-close {
    display: block;
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 1.85rem; /* ligeramente más grande */
    line-height: 1;
    padding: 8px; /* padding mayor para mejor touch target */
    color: var(--text-primary);
    cursor: pointer;
    z-index: 10002;
  }

  .nav-menu .nav-close:hover {
    color: var(--primary-color);
  }

  .nav-menu .nav-close:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
  }

  /* Links (centrados horizontalmente y verticalmente; tamaño ligeramente menor) */
  .nav-menu .nav-link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
    color: var(--text-primary);
    font-size: 0.9rem; /* ligeramente más pequeño */
    line-height: 1.3;
  }

  .nav-menu .nav-link:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--primary-color);
  }

  /* Ajuste para botones CTA dentro del menú */
  .nav-cta {
    margin: 0.75rem auto;
  }

  /* Animación opcional del icono hamburguesa (no requiere JS adicional) */
  .nav-toggle.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}


.hero {
  position: relative;
  background-color: #155c36;
  background-image: url('img/logo3.png'), url('img/logo4.png');
  background-position: left 180px center, right 180px center;
  background-repeat: no-repeat, no-repeat;
  background-size: 170px 170px, 170px 170px;
  color: white;
  padding: 8rem 0 6rem;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(217, 119, 6, 0.2);
  color: #fcd34d;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  border: 1px solid rgba(217, 119, 6, 0.3);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.text-accent {
  color: var(--accent-color);
}

.hero-description {
  font-size: 1.25rem;
  color: #d1d5db;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--text-primary);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-loading {
  display: none;
}

.stats {
  background: var(--bg-secondary);
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1rem;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item.visible {
  opacity: 1;
  transform: scale(1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.services {
  padding: 6rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.service-card {
    transition: transform 0.3s cubic-bezier(.4,2,.6,1), box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-radius: 1rem;
    background: #fff;
    /* Asegura que el icono se anime junto con la tarjeta */
    will-change: transform;
}

/* Backdrop (oculta el fondo cuando el menú está abierto) */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Evitar scroll del body cuando el menú está abierto */
body.menu-open {
  overflow: hidden;
  height: 100%;
}

.service-card:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 32px rgba(44,62,80,0.18);
    z-index: 2;
}

.service-card .service-icon {
    transition: transform 0.3s cubic-bezier(.4,2,.6,1);
}

.service-card:hover .service-icon {
    transform: scale(1.18) rotate(-6deg);
}

.service-icon {
  width: 4rem;
  height: 4rem;
  background: #fef3c7;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.service-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-features {
  list-style: none;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.service-features i {
  color: var(--success-color);
  font-size: 1rem;
}

.team {
  background: var(--bg-secondary);
  padding: 6rem 0;
}

/* Forzar que los items dentro de .team-flex se estiren a la misma altura */
.team-flex {
  align-items: stretch !important;
} 

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.team-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  width: 420px;
  max-width: 100%;
  box-sizing: border-box;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 520px; /* iguala la altura visual de las tarjetas */
} 

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.team-photo {
  width: 120px;
  height: 120px;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  overflow: hidden;
}

.team-photo i {
  font-size: 3rem;
  color: var(--text-light);
}

.team-name {

/* asegura que la imagen sea perfectamente circular como el contenedor */
.team-photo img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50%;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
}
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.team-position {
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.team-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.team-rating {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
}

.team-rating i {
  color: var(--accent-color);
}

.about {
  padding: 6rem 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text .section-badge {
  margin-bottom: 1rem;
}

.about-text .section-title {
  text-align: left;
  margin-bottom: 1.5rem;
}

.about-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.about-feature i {
  color: var(--success-color);
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.about-feature h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.about-feature p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.about-card {
  background: var(--bg-secondary);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
}

.about-card-content {
  text-align: center;
}

.about-card i {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.about-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.about-card p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.about-stat {
  text-align: center;
}

.contact {
  background: #134e3a;
  color: white;
  padding: 6rem 0;
}

.contact-info {
  background: none;
  color: #fff;
  max-width: 100%;
  margin: 0 0 0 0;
  padding: 0;
  border-radius: 0;
  font-family: "Inter", Arial, sans-serif;
}

.contact-info h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: left;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  background: #d7820b;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  color: white;
  font-size: 1.5rem;
}

.contact-item h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-item p {
  color: #d1d5db;
  font-size: 0.95rem;
  margin: 0;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 4rem;
  align-items: flex-start;
}

.contact-map {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.contact-map iframe {
  width: 100%;
  max-width: 600px;
  height: 450px;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  border: 0;
}

.footer {
    background: #ffffff;
    color: #000000;
    padding: 40px 0 0 0;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-section {
    flex: 1 1 200px;
    min-width: 200px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.footer-logo i {
    margin-right: 10px;
    color: #f4b400;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: #f4b400;
    font-size: 1.1em;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #000000;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: #f4b400;
}

.social-links a {
    color: #fff;
    margin-right: 10px;
    font-size: 1.2em;
    transition: color 0.2s;
}

.social-links a:hover {
    color: #f4b400;
}

.footer-bottom {
    border-top: 1px solid #444;
    margin-top: 30px;
    padding: 15px 0;
    text-align: center;
    font-size: 0.95em;
    color: #000000;
}

.footer .social-links {
  margin-top: 1rem;
}
.footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  color: #1877f2; /* azul Facebook */
  font-size: 18px;
  text-decoration: none;
  opacity: 1;
  visibility: visible;
  transition: transform .15s ease, background .15s ease, color .15s ease;
  pointer-events: auto;
}
.footer .social-links a:hover {
  transform: translateY(-3px);
  background: #1877f2;
  color: #fff;
}
/* Si aún hay reglas que lo ocultan, este override fuerza visibilidad */
.footer .social-links a { visibility: visible !important; opacity: 1 !important; display: inline-flex !important; }

/* Forzar visibilidad y estilo permanente del icono de Facebook en el footer */
.footer .social-links {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  opacity: 1 !important;
  visibility: visible !important;
}
.footer .social-links a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: #1877f2 !important; /* azul Facebook */
  color: #fff !important;
  font-size: 16px !important;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}
.footer .social-links a:hover {
  transform: translateY(-3px);
  background: #155db2 !important;
  color: #fff !important;
}
.footer .social-links a i { color: inherit !important; pointer-events: none; }

@media (max-width: 800px) {
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    .footer-section {
        min-width: 0;
    }
}

@media (max-width: 768px) {
  /* Usar grid para tener 2 filas: primera fila (logo + hamburger), segunda fila (segundo logo) */
  .nav-container {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 6px 12px;
    align-items: center;
    padding: 8px 16px;
  }

  .nav-menu {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(200px, 55%);
    max-width: 200px;
    background: #ffffff;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.14);
    padding: 1rem; /* padding reducido para ocupar menos espacio superior */
    transition: transform 0.35s ease;
    transform: translateX(100%);
    justify-content: flex-start;
    align-items: flex-start;
    pointer-events: none;
    overflow-y: auto;
    box-sizing: border-box;
  }

  .nav-menu.active {
    transform: translateX(0);
    pointer-events: auto;
    padding-top: 0.6rem; /* reducir espacio superior al abrir */
  }

  /* Wrapper izquierdo: agrupa los logos y garantiza que ambos comiencen alineados a la izquierda */
  .nav-left {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    align-items: flex-start;
    width: 100%;
    padding-left: 0; /* asegurar que comience en el mismo punto */
    justify-self: start; /* evita centrado por el grid */
  }

  /* Hamburger en la esquina superior derecha (primera fila) */
  .nav-toggle {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    position: static; /* no absolute para no superponer filas */
    z-index: 1200;
  }

  /* Contenido de logo dentro del wrapper */
  .nav-logo {
    width: 100%;
    display: block;
  }

  /* Asegurar que ambas filas de logo empiecen exactamente en la misma posición y no se centren */
  .nav-left .nav-logo-row {
    display: flex;
    flex-direction: row; /* imagen a la izquierda, texto a la derecha */
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.35rem 0; /* espacio vertical consistente */
    margin: 0;
    justify-content: flex-start; /* fuerza alineación a la izquierda */
  }

  /* Mostrar y reducir el tamaño de los logos en móvil; asegurar misma altura para ambos */
  .nav-left .nav-logo-row .nav-logo-img {
    height: 30px;
    width: auto;
    flex-shrink: 0;
    margin: 0;
    display: block !important; /* forzar visibilidad si alguna regla la oculta */
    object-fit: contain;
  }

  /* Eliminar desplazamiento manual: ambas filas comparten la misma alineación */
  .nav-logo-row:nth-child(2) {
    transform: none;
  }

  /* TEXTOS: permitir wrap y evitar truncado. Título consistente y subtítulo respeta color de marca */
  .nav-logo-title {
    display: block;
    margin: 0;
    text-align: left;
    white-space: normal; /* permitir que el texto haga wrap */
    overflow: visible;
    text-overflow: clip;
    max-width: calc(100% - 40px);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.1;
  }

  .nav-logo-subtitle {
    display: block;
    margin: 0;
    text-align: left;
    white-space: normal;
    /* NO cambiar color aquí: respetar color original/por defecto para mantener branding */
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.1;
  }

  /* Mover ligeramente el badge para que no quede tan cerca del header */
  .hero-badge {
    margin-top: 2rem; /* mayor separación vertical en móvil */
    display: inline-block;
  }

  /* HERO - asegurar que el contenedor sea relativo y el contenido quede por encima */
  .hero {
    position: relative; /* necesario para posicionar decorativos absolute */
    background-image: none; /* ocultar fondos decorativos del desktop que puedan entrar en conflicto */
    padding-top: 6.5rem; /* más espacio superior para badge y decorativos */
  }

  /* Texto principal siempre por encima */
  .hero-content {
    position: relative;
    z-index: 3; /* por encima de los decorativos */
  }

  .hero-title {
    font-size: 2.5rem;
    position: relative;
    z-index: 4;
    text-align: center; /* garantizar centrado en mobile */
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  /* Decorativos en mobile: pseudo-elementos absolute para mujer (izquierda) y estrella (derecha) */
  .hero::before,
  .hero::after {
    content: "";
    position: absolute;
    top: 120px; /* alineación vertical a la altura del título */
    width: 64px; /* 60-65px */
    height: 64px;
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 2; /* detrás del texto (texto tiene z-index 3/4) */
    pointer-events: none;
    opacity: 0.95;
  }

  /* mujer a la izquierda */
  .hero::before { left: 10px; background-image: url('img/logo3.png'); }
  /* estrella a la derecha */
  .hero::after  { right: 10px; background-image: url('img/logo4.png'); }

  /* Restaurar color del subtítulo del segundo logo (heredar/explicitar) en mobile */
  .nav-logo-subtitle {
    color: var(--text-primary);
  }

  .section-title {
    font-size: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    padding: 6rem 0 4rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .team-card {
    padding: 1.5rem;
  }

  .about-card {
    padding: 2rem 1.5rem;
  }

  .contact-form-container {
    padding: 1.5rem;
  }

  .contact-map iframe {
    max-width: 100%;
    height: 250px;
  }
}

/* Responsive para sección de equipo: tarjetas iguales y apilado en móviles */
@media (max-width: 900px) {
  .team-flex {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }
  .team-card {
    width: 100%;
    max-width: 520px;
    padding: 1.5rem;
    min-height: auto; /* permitir altura variable en móviles */
  }
  .team-photo {
    width: 96px;
    height: 96px;
  }
}

html {
  scroll-behavior: smooth;
} 

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.fa-spin {
  animation: spin 1s linear infinite;
}

.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}

.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-4 {
  margin-top: 1rem;
}

.contact .section-title,
.contact .section-description {
  color: #fff;
}

.hero-estrella {
  width: 120px;
  height: auto;
}

.hero-mujer {
  width: 120px;
  height: auto;
}