/* ============================================================
   MÓNICA JACOBO — LANDING PAGE
   styles.css
   Stack: HTML5 + CSS puro + AOS + SwiperJS + Font Awesome
============================================================ */

/* ============================================================
   1. VARIABLES CSS
============================================================ */
:root {
  /* Colores principales */
  --teal:        #009688;
  --teal-dark:   #00796B;
  --teal-deep:   #00574B;
  --gold:          #d6a24e;
  --gold-light:    #F5E6C0;
  --gold-gradient: linear-gradient(67.35deg, #fadb97 3.47%, #fce3a5 17.42%, #fce6aa 29.57%, #ecca84 42.07%, #e0b365 55.26%, #d6a24e 65.74%, #f7da9a 84%, #f9d893 93.44%);

  /* Fondos */
  --bg-light:    #E8EEED;
  --bg-white:    #FFFFFF;
  --bg-dark:     #2D2D2D;

  /* Texto */
  --text-dark:   #1A1A1A;
  --text-gray:   #555555;
  --text-white:  #FFFFFF;

  /* Acento urgente */
  --red-urgent:  #D32F2F;

  /* Sombras */
  --shadow:      rgba(0, 0, 0, 0.10);
  --shadow-md:   rgba(0, 0, 0, 0.16);

  /* Layout */
  --container:   1200px;
  --nav-height:  70px;
  --radius:      8px;
  --radius-sm:   4px;
  --radius-lg:   14px;
  --radius-full: 100px;

  /* Transición global */
  --t:           0.25s ease;

  /* Tipografía */
  --font:        'Poppins', sans-serif;
}


/* ============================================================
   2. RESET & BASE
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-dark);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font);
  cursor: pointer;
}

address {
  font-style: normal;
}


/* ============================================================
   3. TIPOGRAFÍA GLOBAL
============================================================ */
h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

p {
  line-height: 1.75;
}


/* ============================================================
   4. LAYOUT UTILITIES
============================================================ */
.section-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-gray);
  font-size: 1.05rem;
}


/* ============================================================
   5. BOTONES
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background var(--t),
    color var(--t),
    border-color var(--t),
    transform var(--t),
    box-shadow var(--t);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-sm  { padding: 0.5rem 1rem;   font-size: 0.875rem; }
.btn-lg  { padding: 0.9rem 1.75rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* Dorado (primario): sobre fondos oscuros */
.btn-primary {
  background: var(--gold-gradient);
  color: var(--text-dark);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--text-dark);
}

/* Outline blanco: sobre fondos teal */
.btn-outline {
  background: transparent;
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: var(--text-white);
  color: var(--text-white);
}

/* Ghost blanco: sobre fondos teal, texto teal */
.btn-ghost {
  background: var(--text-white);
  color: var(--teal);
  border-color: var(--text-white);
}
.btn-ghost:hover {
  background: var(--gold-light);
  border-color: var(--gold);
  color: var(--teal-dark);
}

/* WhatsApp */
.btn-whatsapp {
  background: #25D366;
  color: var(--text-white);
  border-color: #25D366;
}
.btn-whatsapp:hover {
  background: #1db856;
  border-color: #1db856;
  color: var(--text-white);
}

/* Teal sólido: sobre fondos claros */
.btn-teal {
  background: var(--teal);
  color: var(--text-white);
  border-color: var(--teal);
}
.btn-teal:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--text-white);
}


/* ============================================================
   6. BANDA DORADA SEPARADORA (6 px)
   — Aparece entre: hero→stats  y  servicios→perfil
============================================================ */
#stats::before,
#servicios::before,
#perfil::before {
  content: '';
  display: block;
  height: 6px;
  background: var(--gold-gradient);
  width: 100%;
}


/* ============================================================
   7. NAVEGACIÓN STICKY
============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--teal);
  transition: box-shadow var(--t), background var(--t);
}

#navbar.scrolled {
  background: var(--teal-deep);
  box-shadow: 0 2px 20px rgba(0,0,0,0.20);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.nav-logo img {
  height: 50px;
  width: auto;
  display: block;
}

.nav-logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  white-space: nowrap;
}

/* Si la imagen carga correctamente, el texto actúa como fallback */
.nav-logo img[src]:not([src=""]) + .nav-logo-text {
  /* JS añadirá clase .img-ok cuando cargue */
}

.nav-logo.img-ok .nav-logo-text {
  display: none;
}

/* Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: auto;
}

.nav-link {
  padding: 0.45rem 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.93rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color var(--t), background var(--t);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.10);
}

/* CTA nav */
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.2rem;
  background: transparent;
  color: var(--text-white);
  border-radius: var(--radius);
  border: 2px solid rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  font-weight: 600;
  margin-left: 0.4rem;
  transition: background var(--t), border-color var(--t), transform var(--t);
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--text-white);
  color: var(--text-white);
  transform: translateY(-1px);
}

/* Botón agendar (visible solo desktop) */
.nav-citas-desktop {
  margin-left: 0.4rem;
}

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--t);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.10);
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger → X */
.nav-toggle.is-active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ============================================================
   8. HERO
============================================================ */
#hero {
  position: relative;
  background: var(--teal);
  display: flex;
  align-items: stretch;
  padding-top: var(--nav-height);
  overflow: hidden;
}

/* Imagen de fondo (si existe) */
.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.12;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    140deg,
    rgba(0, 87, 75, 0.88) 0%,
    rgba(0, 150, 136, 0.72) 100%
  );
}

/* Contenedor del texto */
.hero-container {
  position: relative;
  z-index: 1;
  flex: 0 0 55%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 2rem;
  padding-left: max(2rem, calc((100vw - var(--container)) / 2 + 2rem));
}

/* Eyebrow */
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  margin-bottom: 0.6rem;
}

/* Título */
#hero h1 {
  color: var(--text-white);
  margin-bottom: 0.6rem;
}

.hero-highlight {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline;
}

/* Tagline */
.hero-tagline {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 300;
  margin-bottom: 0.65rem;
}

/* Párrafo */
.hero-subtitle {
  color: rgba(255, 255, 255, 0.70);
  font-size: 1rem;
  max-width: 540px;
  margin-bottom: 1.5rem;
}

/* Botones */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.hero-actions .btn {
  padding: 0.7rem 1.35rem;
  font-size: 0.93rem;
}

/* Badges de credenciales */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.75rem;
  border: 1px solid rgba(214, 162, 78, 0.35);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(214, 162, 78, 0.07);
}

.hero-badge-item i {
  color: var(--gold);
  font-size: 0.75rem;
}

/* Foto (columna derecha — flex item) */
.hero-photo {
  position: relative;
  flex: 0 0 45%;
  min-height: 540px;
  align-self: stretch;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

/* Anillo decorativo interior */
.hero-photo::before {
  content: '';
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

/* Anillo decorativo exterior */
.hero-photo::after {
  content: '';
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 540px;
  height: 540px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  pointer-events: none;
}

.hero-photo img {
  position: relative;
  z-index: 2;
  width: auto;
  height: 88%;
  max-width: 90%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 -4px 28px rgba(0, 35, 28, 0.30)) drop-shadow(0 20px 40px rgba(0, 35, 28, 0.45));
}


/* ============================================================
   9. ESTADÍSTICAS
============================================================ */
#stats {
  background: var(--teal-deep);
}

.stats-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform var(--t), border-color var(--t);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 162, 78, 0.30);
}

.stat-card > i {
  display: block;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1;
  margin-bottom: 0.6rem;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.50);
  line-height: 1.45;
}


/* ============================================================
   10. SERVICIOS
============================================================ */
#servicios {
  background: var(--bg-white);
}

/* Header sobre fondo blanco */
#servicios .section-label {
  color: var(--gold);
}

#servicios .section-header h2 {
  color: var(--text-dark);
  font-size: 2.2rem;
  padding-bottom: 1.25rem;
}

#servicios .section-header h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: var(--gold-gradient);
  border-radius: 2px;
  margin: 1rem auto 0;
}

#servicios .section-subtitle {
  color: var(--text-gray);
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

/* Tarjeta base — rediseñada */
.servicio-card {
  position: relative;
  background: #ffffff;
  border: none;
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  padding: 1.75rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform var(--t), box-shadow var(--t);
  overflow: hidden;
}

.servicio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

/* Número de fondo decorativo */
.servicio-numero {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 3.8rem;
  font-weight: 800;
  color: rgba(0, 150, 136, 0.08);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Ícono — sólido */
.servicio-icon {
  width: 50px;
  height: 50px;
  background: var(--teal);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.servicio-card h3 {
  color: var(--text-dark);
  font-size: 1.02rem;
  line-height: 1.4;
}

.servicio-card p {
  color: var(--text-gray);
  font-size: 0.91rem;
  line-height: 1.56;
  flex: 1;
}

/* Enlace */
.servicio-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--teal);
  font-size: 0.875rem;
  font-weight: 700;
  margin-top: auto;
  padding-top: 0.5rem;
  transition: gap var(--t), color var(--t);
}

.servicio-link:hover {
  color: var(--teal-dark);
  gap: 0.75rem;
}

/* Tarjeta URGENTE */
.servicio-card--urgente {
  border-left-color: var(--red-urgent);
  background: #ffffff;
}

.servicio-card--urgente:hover {
  box-shadow: 0 18px 44px rgba(211, 47, 47, 0.22);
}

.servicio-urgente-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--red-urgent);
  color: var(--text-white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-full);
  width: fit-content;
  margin-bottom: 0.2rem;
}

.servicio-card--urgente .servicio-icon {
  background: var(--red-urgent);
  color: #ffffff;
}

.servicio-link--urgente {
  color: var(--red-urgent);
  font-size: 0.9rem;
}

.servicio-link--urgente:hover {
  color: #b71c1c;
  gap: 0.75rem;
}


/* ============================================================
   11. PERFIL PROFESIONAL
============================================================ */
#perfil {
  background: var(--teal-deep);
}

.perfil-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 5rem;
  align-items: center;
}

/* Foto */
.perfil-photo {
  position: relative;
  flex-shrink: 0;
}

.perfil-photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow:
    0 20px 60px rgba(0, 30, 25, 0.55),
    0 0 0 3px rgba(214, 162, 78, 0.30);
}

.perfil-photo-badge {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-gradient);
  color: var(--text-dark);
  padding: 0.5rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* Contenido */
.perfil-content .section-label {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.perfil-content h2 {
  color: var(--text-white);
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.perfil-cargo {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.perfil-bio {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.97rem;
  margin-bottom: 0.9rem;
}

/* Tags / pastillas */
.perfil-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.perfil-tags li {
  list-style: none;
}

.perfil-tag {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border: 1px solid rgba(214, 162, 78, 0.40);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(214, 162, 78, 0.08);
  transition: background var(--t), border-color var(--t);
}

.perfil-tag:hover {
  background: rgba(214, 162, 78, 0.18);
  border-color: var(--gold);
}


/* ============================================================
   12. CASOS DE ÉXITO
============================================================ */
#casos {
  background: var(--bg-white);
}

/* Swiper wrapper */
.casos-swiper {
  padding-bottom: 3.5rem !important;
  cursor: grab;
}

.casos-swiper:active {
  cursor: grabbing;
}

/* Tarjeta de caso */
.caso-card {
  background: var(--bg-white);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 2px 16px var(--shadow);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  height: auto;
  transition:
    border-left-color var(--t),
    transform var(--t),
    box-shadow var(--t);
}

.caso-card:hover {
  border-left-color: var(--gold);
  transform: translateX(3px);
  box-shadow: 0 8px 28px rgba(0, 150, 136, 0.13);
}

.caso-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 150, 136, 0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.caso-tag {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.caso-titulo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
}

.caso-descripcion {
  color: var(--text-gray);
  font-size: 0.92rem;
  flex: 1;
  line-height: 1.65;
}

.caso-resultado {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--bg-light);
  margin-top: auto;
}

.resultado-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-gray);
}

.resultado-valor {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1.2;
}

/* Swiper controls */
.swiper-button-prev,
.swiper-button-next {
  width: 44px !important;
  height: 44px !important;
  background: var(--bg-white);
  border-radius: 50% !important;
  box-shadow: 0 2px 12px var(--shadow) !important;
  color: var(--teal) !important;
  transition: background var(--t), color var(--t), transform var(--t);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: var(--teal);
  color: var(--text-white) !important;
  transform: scale(1.05);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 0.9rem !important;
  font-weight: 900 !important;
}

.swiper-pagination-bullet {
  background: var(--teal) !important;
  opacity: 0.35 !important;
}

.swiper-pagination-bullet-active {
  opacity: 1 !important;
  background: var(--teal) !important;
}


/* ============================================================
   13. POR QUÉ MÓNICA
============================================================ */
#porque {
  background: var(--bg-light);
  position: relative;
}

#porque::before {
  content: '';
  display: block;
  height: 6px;
  background: var(--gold-gradient);
}

.porque-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.porque-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: 0 2px 12px var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
}

.porque-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 150, 136, 0.12);
}

/* Número decorativo de fondo */
.porque-numero {
  position: absolute;
  top: 0.75rem;
  right: 1.25rem;
  font-size: 4rem;
  font-weight: 800;
  color: rgba(214, 162, 78, 0.14);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.porque-icon {
  width: 52px;
  height: 52px;
  background: rgba(0, 150, 136, 0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.porque-card h3 {
  color: var(--teal-deep);
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
}

.porque-card p {
  color: var(--text-gray);
  font-size: 0.93rem;
  line-height: 1.65;
}


/* ============================================================
   14. CONTACTO / CTA FINAL
============================================================ */
#contacto {
  background: linear-gradient(
    140deg,
    var(--teal) 0%,
    var(--teal-dark) 100%
  );
  position: relative;
}

#contacto::before {
  content: '';
  display: block;
  height: 6px;
  background: var(--gold-gradient);
}

#contacto .section-container {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

#contacto .section-label {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Header sobre fondo oscuro */
#contacto .section-header h2 {
  color: var(--text-white);
}

#contacto .section-subtitle {
  color: rgba(255, 255, 255, 0.72);
}

/* Opciones de contacto — lista vertical */
.contacto-opciones {
  max-width: 680px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.16);
}

/* Tarjeta opción base */
.contacto-opcion {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: #ffffff;
  padding: 1.25rem 1.5rem;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background var(--t);
  text-decoration: none;
  color: inherit;
  border-radius: 0;
}

.contacto-opcion:last-child {
  border-bottom: none;
}

.contacto-opcion:hover {
  background: #f4faf9;
}

/* Ícono circular */
.contacto-opcion-icono {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* Colores por tipo */
.contacto-opcion--wa .contacto-opcion-icono {
  background: #25D366;
  color: #ffffff;
}

.contacto-opcion--correo .contacto-opcion-icono {
  background: var(--teal);
  color: #ffffff;
}

.contacto-opcion--agenda .contacto-opcion-icono {
  background: var(--gold-gradient);
  color: var(--text-dark);
}

/* Texto */
.contacto-opcion-texto {
  flex: 1;
  min-width: 0;
}

.contacto-opcion-texto strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.15rem;
}

.contacto-opcion-texto span {
  font-size: 0.85rem;
  color: var(--text-gray);
}

/* Badge "Recomendado" */
.contacto-opcion-badge {
  background: #25D366;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Flecha / chevron */
.contacto-opcion-arrow {
  color: rgba(0,0,0,0.25);
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: transform var(--t), color var(--t);
}

.contacto-opcion--correo[aria-expanded="true"] .contacto-opcion-arrow {
  transform: rotate(180deg);
  color: var(--teal);
}

/* Panel del formulario colapsable */
.contacto-panel {
  background: #ffffff;
  border-top: 2px solid var(--teal);
  padding: 2rem 1.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.contacto-panel[hidden] { display: none; }

/* Datos de contacto */
.contacto-info-row {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.contacto-medios {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.contacto-medio {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  transition: color var(--t);
  text-decoration: none;
}

a.contacto-medio:hover {
  color: var(--gold);
}

.contacto-medio i {
  color: var(--gold);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

/* Redes sociales */
.contacto-redes {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.contacto-redes a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  transition: background var(--t), border-color var(--t), color var(--t), transform var(--t);
  text-decoration: none;
}

.contacto-redes a:hover {
  background: var(--gold-gradient);
  border-color: var(--gold);
  color: var(--text-dark);
  transform: translateY(-2px);
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.form-group label span {
  color: var(--red-urgent);
  font-size: 0.8rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid #d0d5dd;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.93rem;
  color: var(--text-dark);
  background: var(--bg-white);
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.6;
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23555555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.5rem;
}

.form-error {
  display: block;
  font-size: 0.78rem;
  color: var(--red-urgent);
  margin-top: 0.25rem;
  min-height: 1.1em;
}

.form-disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-gray);
  margin-top: 0.85rem;
  text-align: center;
}

.form-disclaimer i {
  color: var(--teal);
  font-size: 0.85rem;
}

/* Mensajes de estado del formulario */
.form-feedback {
  display: none;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
}

.form-feedback:not([hidden]) {
  display: flex;
}

.form-success {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}

.form-error-msg {
  background: #ffebee;
  color: #b71c1c;
  border: 1px solid #ef9a9a;
}


/* ============================================================
   15. FOOTER
============================================================ */
#footer {
  background: var(--bg-dark);
}

.footer-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4.5rem 2rem 2.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
}

/* Brand */
.footer-brand a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  height: 100px;
  width: auto;
}

.footer-logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.40);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

/* Redes */
.footer-social {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.50);
  font-size: 0.85rem;
  transition:
    background var(--t),
    border-color var(--t),
    color var(--t);
}

.footer-social a:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--text-white);
}

/* Columnas */
.footer-nav h4,
.footer-contact h4,
.footer-cta h4 {
  color: var(--text-white);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.875rem;
  line-height: 1.5;
  transition: color var(--t);
}

.footer-nav a:hover {
  color: var(--gold);
}

/* Contacto */
.footer-contact address {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-contact address a,
.footer-contact address span {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.875rem;
  line-height: 1.5;
  transition: color var(--t);
}

.footer-contact address a:hover {
  color: var(--gold);
}

.footer-contact address i {
  color: var(--gold);
  font-size: 0.85rem;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* CTA footer */
.footer-cta p {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.footer-cta .btn-primary {
  width: 100%;
}

/* Barra inferior */
.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p,
.footer-bottom a {
  color: rgba(255, 255, 255, 0.27);
  font-size: 0.8rem;
}

.footer-bottom a {
  transition: color var(--t);
}

.footer-bottom a:hover {
  color: var(--gold);
}

.footer-bottom p span[aria-hidden] {
  margin: 0 0.4rem;
  color: rgba(255, 255, 255, 0.15);
}


/* ============================================================
   16. BOTÓN FLOTANTE WHATSAPP — solo mobile
============================================================ */
.whatsapp-float {
  display: none;           /* oculto en desktop */
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--text-white);
  font-size: 1.6rem;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  animation: waPulse 2.8s ease-in-out infinite;
  will-change: transform;
}

.whatsapp-float i {
  line-height: 1;
  display: flex;
}

/* Tooltip */
.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-dark);
  color: var(--text-white);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--bg-dark);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
}

@keyframes waPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.60);
  }
}


/* ============================================================
   17. ANIMACIONES AOS — sobrescrituras puntuales
============================================================ */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}


/* ============================================================
   18. RESPONSIVE — TABLET  (768px – 1024px)
============================================================ */
@media (max-width: 1024px) {

  /* Tipografía */
  h1 { font-size: 2.7rem; }
  h2 { font-size: 1.9rem; }

  /* Nav: ocultar btn agendar */
  .nav-citas-desktop { display: none; }

  /* Hero: columnas tablet */
  .hero-photo {
    flex-basis: 42%;
    min-height: 480px;
  }

  #hero .hero-container {
    flex-basis: 58%;
  }

  /* Stats: 2 × 2 */
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Perfil: columna única */
  .perfil-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .perfil-photo {
    max-width: 360px;
    margin: 0 auto;
  }

  /* Footer: 2 columnas */
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}


/* ============================================================
   19. RESPONSIVE — MOBILE  (< 768px)
============================================================ */
@media (max-width: 767px) {

  /* Prevenir scroll horizontal */
  html, body { overflow-x: hidden; }

  /* ── Tipografía ── */
  h1 { font-size: 2.1rem;  line-height: 1.22; }
  h2 { font-size: 1.55rem; line-height: 1.3;  }
  h3 { font-size: 1.05rem; }

  .section-container { padding: 3rem 1.25rem; }
  .section-header     { margin-bottom: 2.25rem; }

  /* ── Nav mobile ── */
  .nav-toggle { display: flex; }
  .nav-citas-desktop { display: none; }

  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--teal-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.5rem 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.10);
    z-index: 999;
  }

  .nav-menu.is-open { display: flex; }

  .nav-link {
    padding: 0.85rem 0.5rem;
    font-size: 1rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-cta {
    margin: 0.75rem 0 0;
    text-align: center;
    padding: 0.85rem;
    min-height: 48px;
    border-radius: var(--radius);
  }

  /* ── Hero mobile ── */
  #hero {
    flex-direction: column;
    align-items: center;
    padding-bottom: 0;
    min-height: auto;
  }

  .hero-container {
    flex: 1 1 auto;
    padding: 2.5rem 1.25rem 1.25rem;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  #hero h1 { font-size: 2.1rem; }

  .hero-tagline  { font-size: 1rem;   margin-bottom: 0.5rem; }
  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    max-width: 100%;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1.25rem;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    font-size: 0.95rem;
    padding: 0.8rem 1.25rem;
  }

  .hero-badges {
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-photo {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    height: 320px;
    align-self: stretch;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    background: radial-gradient(ellipse 70% 60% at 50% 45%,
      rgba(255,255,255,0.08) 0%,
      rgba(255,255,255,0.03) 50%,
      transparent 100%);
  }

  /* Anillos decorativos — versión mobile */
  .hero-photo::before,
  .hero-photo::after { display: block; }

  .hero-photo::before {
    width: 230px;
    height: 230px;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.13);
  }

  .hero-photo::after {
    width: 320px;
    height: 320px;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1.5px solid rgba(255,255,255,0.07);
    background: transparent;
  }

  .hero-photo img {
    width: 78%;
    height: auto;
    max-width: 310px;
    object-fit: contain;
    filter: none;
    display: block;
    position: relative;
    z-index: 2;
  }

  /* ── Stats mobile ── */
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    padding: 2.5rem 1.25rem;
  }

  .stat-card  { padding: 1.25rem 0.75rem; }
  .stat-number { font-size: 2.2rem; }
  .stat-label  { font-size: 0.78rem; }

  /* ── Servicios mobile ── */
  .servicios-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  #servicios .section-header h2 { font-size: 1.7rem; }

  /* ── Perfil mobile ── */
  .perfil-layout {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .perfil-photo { max-width: 240px; margin: 0 auto; }

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

  .perfil-content h2 { font-size: 1.9rem; }

  .perfil-cargo { display: block; }

  .perfil-tags {
    justify-content: center;
  }

  .perfil-content .btn {
    display: inline-flex;
  }

  .perfil-photo-badge {
    font-size: 0.72rem;
    padding: 0.4rem 1rem;
    bottom: -14px;
  }

  /* ── Porque mobile ── */
  .porque-grid { grid-template-columns: 1fr; }

  /* ── Contacto mobile ── */
  #contacto .section-header h2 { font-size: 1.55rem; }

  .contacto-opciones { margin-bottom: 2rem; }

  .contacto-opcion {
    padding: 1.1rem 1rem;
    gap: 0.85rem;
  }

  .contacto-opcion-icono {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  .contacto-opcion-badge { display: none; }

  .contacto-panel { padding: 1.5rem 1rem; }

  .contacto-info-row {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 100%;
    text-align: center;
  }

  .contacto-medios {
    align-items: center;
  }

  .contacto-redes {
    justify-content: center;
  }

  /* ── Footer mobile ── */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1.25rem 2rem;
    text-align: center;
  }

  .footer-brand {
    grid-column: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-brand a {
    display: flex;
    justify-content: center;
  }

  .footer-brand p { text-align: center; }

  .footer-brand .footer-social {
    justify-content: center;
  }

  .footer-nav ul {
    align-items: center;
  }

  .footer-contact address {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.4rem;
    padding: 1.25rem;
    font-size: 0.78rem;
  }

  /* ── Formulario: 16px mínimo para no hacer zoom en iOS ── */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 1rem;
    padding: 0.8rem 1rem;
  }

  /* ── WhatsApp float ── */
  .whatsapp-float {
    display: flex;
    bottom: 20px;
    right: 16px;
  }
}


/* ============================================================
   20. RESPONSIVE — MOBILE S  (< 400px)
============================================================ */
@media (max-width: 399px) {

  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.38rem; }

  #hero h1 { font-size: 1.85rem; }

  .section-container { padding: 2.75rem 1rem; }

  .hero-photo {
    height: 270px;
  }

  .hero-photo img {
    width: 85%;
    max-width: 280px;
  }

  .hero-badge-item {
    font-size: 0.73rem;
    padding: 0.25rem 0.6rem;
  }

  .hero-badges { gap: 0.35rem; }

  .hero-actions .btn { min-height: 44px; }

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

  .stat-number { font-size: 2rem; }

  .btn-lg {
    padding: 0.8rem 1.25rem;
    font-size: 0.9rem;
  }

  .contacto-panel { padding: 1.25rem 0.85rem; }

  .perfil-tag {
    font-size: 0.74rem;
    padding: 0.25rem 0.7rem;
  }

  .perfil-photo { max-width: 200px; }
}


/* ============================================================
   21. DESKTOP — ajuste hero 2 columnas  (> 1024px)
============================================================ */
@media (min-width: 1025px) {
  .hero-container {
    flex-basis: 55%;
  }
  .hero-photo {
    flex-basis: 45%;
    min-height: 580px;
  }
}
