/* ==========================================================================
   Dr. Humberto Aguilar Melchor — styles.css
   --------------------------------------------------------------------------
   ÍNDICE
   00. Tokens de diseño (colores, tipografía, espacios)  ← cambia aquí la paleta
   01. Base y utilidades
   02. Botones
   03. Header / navegación
   04. Hero
   05. Credenciales
   06. Encabezados de sección
   07. Especialidades
   08. Agenda en línea (Doctoralia)
   09. Sobre el doctor
   10. Padecimientos (filtro)
   11. Proceso
   12. Galería
   13. Testimonios
   14. Artículos
   15. Preguntas frecuentes
   16. Contacto + mapa
   17. Footer
   18. Barra móvil + WhatsApp flotante
   19. Animaciones
   20. Responsive
   ========================================================================== */


/* 00. TOKENS ================================================================
   Paleta “Marino & Quirófano”: azul marino del logotipo para texto y
   bloques fuertes, verde azulado clínico (scrubs / quirófano) como acento,
   y fondos blancos fríos para máxima legibilidad en celular.
   Contraste comprobado (WCAG): texto ≥ 8:1, acento ≥ 5.6:1.              */
:root {
  /* Siempre en modo claro: evita que el “modo oscuro forzado” de
     Chrome/Samsung en Android invierta los colores. */
  color-scheme: only light;

  /* Color */
  --navy:        #0A2540;   /* logotipo · títulos · footer           */
  --navy-2:      #133A5E;
  --ink:         #0F1B2D;   /* texto principal (16:1)                 */
  --ink-2:       #3A4A5E;   /* texto secundario (8.5:1)               */
  --muted:       #5A6A7E;   /* notas pequeñas (5.2:1)                 */
  --paper:       #FFFFFF;
  --ice:         #F4F8FB;   /* fondo general (frío, no crema)         */
  --ice-2:       #E8F0F6;
  --teal:        #0A6F6B;   /* acento principal (6:1 sobre blanco)    */
  --teal-deep:   #07524F;
  --teal-tint:   #E2F2F0;
  --mint:        #7DD3C8;   /* acento sobre fondos marino             */
  --coral:       #B93E12;   /* solo urgencias                          */
  --coral-tint:  #FDF1EC;
  --open:        #16A34A;   /* estado: abierto                         */
  --amber:       #D97706;   /* estado: abre más tarde                  */
  --wa:          #0E7C3F;   /* WhatsApp legible con texto blanco       */
  --star:        #E8A33D;
  --line:        #DCE5EE;
  --line-dark:   rgba(255,255,255,.14);

  /* Tipografía */
  --font-display: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans:    "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Espaciado y forma */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;

  --shadow-sm: 0 1px 2px rgba(10,37,64,.05), 0 2px 10px rgba(10,37,64,.05);
  --shadow:    0 14px 34px -14px rgba(10,37,64,.22), 0 2px 6px rgba(10,37,64,.05);
  --shadow-lg: 0 34px 70px -24px rgba(10,37,64,.32);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 78px;
}


/* 01. BASE ================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ice);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); color: var(--navy); line-height: 1.12; letter-spacing: -.02em; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote, dl, dd { margin: 0; }
button { font: inherit; color: inherit; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }

.i { width: 20px; height: 20px; flex: none; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 8px; }

/* Etiqueta pequeña sobre títulos: “píldora” con punto */
.kicker, .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--teal-tint); color: var(--teal-deep);
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.kicker::before, .eyebrow .dot {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
}
.eyebrow .dot::before { content: none; }


/* 02. BOTONES ============================================================== */
.btn {
  --bg: var(--navy); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 13px 22px; border-radius: 14px; border: 1.5px solid transparent;
  background: var(--bg); color: var(--fg);
  font: 700 15.5px/1.1 var(--font-sans);
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { --bg: var(--teal); box-shadow: 0 12px 24px -12px rgba(10,111,107,.75); }
.btn-primary:hover { --bg: var(--teal-deep); }
.btn-wa { --bg: var(--wa); box-shadow: 0 12px 24px -12px rgba(14,124,63,.7); }
.btn-wa:hover { --bg: #0A6332; }
.btn-ghost { --bg: var(--paper); --fg: var(--navy); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-sm { min-height: 42px; padding: 10px 16px; font-size: 14.5px; border-radius: 12px; }
.btn-lg { min-height: 54px; padding: 16px 26px; font-size: 16px; }


/* 03. HEADER =============================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(10,37,64,.4); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand img { height: 50px; width: auto; }
.nav { margin-left: auto; }
.nav-list { display: flex; gap: 4px; }
.nav-list a {
  display: block; padding: 9px 13px; border-radius: 10px;
  font-size: 15px; font-weight: 600; color: var(--ink-2);
  transition: color .2s, background .2s;
}
.nav-list a:hover { color: var(--navy); background: var(--ice); }
.nav-list a.is-active { color: var(--teal-deep); background: var(--teal-tint); }
.nav-cta-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; position: relative;
}
.menu-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--navy);
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


/* 04. HERO ================================================================= */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 110px);
  background:
    radial-gradient(55% 60% at 90% 20%, rgba(10,111,107,.12), transparent 70%),
    radial-gradient(45% 50% at 0% 100%, rgba(10,37,64,.07), transparent 70%),
    var(--paper);
}
/* Línea anatómica (rodilla) del logotipo, en grande y muy tenue */
.hero-line {
  position: absolute; right: -40px; top: 0; height: 115%; width: auto;
  fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; opacity: .14;
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(40px, 6.2vw, 74px); margin-top: 22px; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero-name { margin-top: 18px; font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--navy); }
.hero .lead { margin-top: 12px; font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-proof li {
  display: flex; flex-direction: column; padding: 14px 18px; min-width: 140px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,.8);
}
.hero-proof strong { font-family: var(--font-display); font-size: 22px; color: var(--navy); line-height: 1.2; }
.hero-proof span { font-size: 14px; color: var(--ink-2); }

.hero-visual { position: relative; padding: 28px 28px 28px 0; }
/* Tarjeta de color girada detrás de la foto */
.hero-backdrop {
  position: absolute; inset: 0 0 0 36px; border-radius: 40px;
  background:
    radial-gradient(70% 60% at 85% 10%, rgba(125,211,200,.55), transparent 60%),
    linear-gradient(150deg, var(--teal) 0%, var(--navy) 85%);
  transform: rotate(5deg); box-shadow: var(--shadow-lg);
}
/* Trama de puntos decorativa */
.hero-dots {
  position: absolute; left: -26px; bottom: -22px; width: 150px; height: 150px;
  background-image: radial-gradient(var(--teal) 2px, transparent 2.5px);
  background-size: 18px 18px; opacity: .35; z-index: 0;
}
.hero-photo {
  position: relative; z-index: 1; aspect-ratio: 4 / 5; border-radius: 32px; overflow: hidden;
  background: var(--teal-tint); box-shadow: 0 30px 60px -22px rgba(10,37,64,.55);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero-photo::after {  /* leve degradado inferior para dar profundidad */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,37,64,.35), transparent 40%);
}
/* Sello circular giratorio */
.hero-seal {
  position: absolute; z-index: 3; top: -18px; right: -10px; width: 132px; height: 132px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--navy); box-shadow: 0 18px 36px -14px rgba(10,37,64,.6);
  border: 4px solid #fff;
}
.hero-seal > svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.hero-seal text { font: 700 17px/1 var(--font-sans); fill: var(--mint); }
.seal-core { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--teal); color: #fff; }
.seal-core .i { width: 30px; height: 30px; }

.float-card {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px;
  padding: 14px 18px 14px 14px; border-radius: 18px;
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 20px 40px -18px rgba(10,37,64,.45); border: 1px solid rgba(255,255,255,.7); max-width: 280px;
}
.float-card small { display: block; font-size: 13px; color: var(--muted); line-height: 1.3; }
.float-card strong { display: block; font-size: 15.5px; color: var(--navy); line-height: 1.3; }
.fc-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, var(--teal), var(--navy)); color: #fff; }
.fc-icon .i { width: 24px; height: 24px; }
.fc-top { top: 46%; left: -44px; }  /* a la altura del hombro, sin tapar el rostro */
.fc-bottom { bottom: 12%; left: -30px; flex-direction: column; align-items: flex-start; gap: 4px; }

/* Indicador abierto / cerrado (lo controla main.js) */
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--navy); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 4px rgba(90,106,126,.18); }
.status.is-open .status-dot { background: var(--open); box-shadow: 0 0 0 4px rgba(22,163,74,.2); animation: pulse 2s infinite; }
.status.is-soon .status-dot { background: var(--amber); box-shadow: 0 0 0 4px rgba(217,119,6,.2); }


/* 05. CREDENCIALES ========================================================= */
.trust { background: var(--ice); padding-block: 0; position: relative; z-index: 2; margin-top: -34px; }
.trust-list {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.trust-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 18px; border-radius: var(--radius); background: var(--paper);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.trust-list .i { width: 26px; height: 26px; color: var(--teal); }
.trust-list small { display: block; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.trust-list strong { display: block; font-size: 16px; color: var(--navy); line-height: 1.35; }


/* 06. ENCABEZADOS DE SECCIÓN =============================================== */
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(30px, 4.2vw, 48px); margin-top: 16px; }
.section-head p:not(.kicker) { margin-top: 14px; font-size: 18px; color: var(--ink-2); }
.section-head a { color: var(--teal); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }


/* 07. ESPECIALIDADES ======================================================= */
.spec-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "f1 f1 f2 f2"
    "c1 c2 c3 c4";
}
.spec-feature:nth-child(1) { grid-area: f1; }
.spec-feature:nth-child(2) { grid-area: f2; }
.spec-feature {
  position: relative; min-height: 440px; border-radius: var(--radius-lg); overflow: hidden;
  display: flex; align-items: flex-end; color: #fff; box-shadow: var(--shadow);
}
.spec-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.spec-feature:hover img { transform: scale(1.04); }
.spec-feature::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,37,64,.96) 0%, rgba(10,37,64,.6) 45%, rgba(10,37,64,.05) 75%);
}
.spec-feature-body { position: relative; z-index: 1; padding: clamp(22px, 3vw, 34px); }
.spec-feature .tag {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: rgba(125,211,200,.18); color: var(--mint); border: 1px solid rgba(125,211,200,.4);
  font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.spec-feature h3 { color: #fff; font-size: clamp(24px, 2.4vw, 30px); margin-top: 14px; }
.spec-feature p { margin-top: 10px; color: rgba(255,255,255,.9); font-size: 16px; max-width: 480px; }

.spec-card {
  position: relative; padding: 26px 24px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.spec-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.spec-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--teal-tint); color: var(--teal); }
.spec-icon .i { width: 30px; height: 30px; }
.spec-num { position: absolute; top: 24px; right: 24px; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--muted); }
.spec-card h3 { font-size: 19px; margin-top: 18px; }
.spec-card p { margin-top: 8px; font-size: 15.5px; color: var(--ink-2); }
.spec-card.is-urgent { background: var(--coral-tint); border-color: #F6D3C4; }
.spec-card.is-urgent .spec-icon { background: #fff; color: var(--coral); }
.spec-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 700; font-size: 15px; color: var(--coral); }
.spec-link .i { width: 18px; height: 18px; transition: transform .2s; }
.spec-link:hover .i { transform: translateX(3px); }


/* 08. AGENDA EN LÍNEA ====================================================== */
.booking { background: var(--paper); }
.booking-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.booking-copy h2 { font-size: clamp(30px, 4vw, 46px); margin-top: 16px; }
.booking-copy > p:not(.kicker) { margin-top: 14px; font-size: 18px; color: var(--ink-2); }
.checklist { display: grid; gap: 12px; margin-top: 26px; }
.checklist li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--navy); }
.checklist .i { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--teal-tint); color: var(--teal); }
.booking-alt { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 16px; }
.booking-alt a { color: var(--teal); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.booking-widget {
  position: relative; min-height: 460px; padding: clamp(16px, 3vw, 32px);
  border-radius: var(--radius-lg); background: var(--ice); border: 1px solid var(--line);
}
.booking-loading {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: var(--muted); font-size: 15px; pointer-events: none;
}
.booking-loading .i { width: 40px; height: 40px; opacity: .45; }
.booking-widget iframe, .booking-widget > div { position: relative; width: 100% !important; }
.booking-widget .zl-url { position: relative; color: var(--teal); font-weight: 700; }
.booking-note { position: relative; margin-top: 14px; text-align: center; font-size: 13.5px; color: var(--muted); }


/* 09. SOBRE EL DOCTOR ===================================================== */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about-photo { position: relative; }
.about-photo img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 60% 40%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-photo::before {
  content: ""; position: absolute; inset: -16px 16px 16px -16px; border-radius: var(--radius-lg);
  border: 2px solid var(--teal); opacity: .35; z-index: -1;
}
.about-badge {
  position: absolute; right: -14px; bottom: 28px; display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-radius: 18px; background: var(--navy); color: #fff; box-shadow: var(--shadow-lg);
}
.about-badge strong { font-family: var(--font-display); font-size: 34px; color: var(--mint); line-height: 1; }
.about-badge span { font-size: 14px; line-height: 1.3; }
.about-copy h2 { font-size: clamp(30px, 4vw, 46px); margin-top: 16px; }
.about-copy > p:not(.kicker) { margin-top: 16px; color: var(--ink-2); font-size: 17.5px; }
.about-copy strong { color: var(--navy); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.facts div { padding: 16px 18px; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.facts dd { margin-top: 2px; font-weight: 700; color: var(--navy); font-size: 16.5px; }


/* 10. PADECIMIENTOS ======================================================= */
.conditions { background: var(--paper); }
.zone-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.zone-tab {
  min-height: 44px; padding: 10px 18px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--paper);
  font-weight: 600; font-size: 15px; color: var(--ink-2);
  transition: all .2s;
}
.zone-tab:hover { border-color: var(--teal); color: var(--teal-deep); }
.zone-tab.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.cond-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.cond-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 18px; border-radius: var(--radius-sm);
  background: var(--ice); border: 1px solid var(--line);
  font-weight: 600; font-size: 16px; color: var(--navy);
  transition: opacity .25s, transform .25s var(--ease);
}
.cond-list li::before {
  content: ""; flex: none; width: 9px; height: 9px; border-radius: 3px; background: var(--teal); transform: rotate(45deg);
}
.cond-list li.is-hidden { display: none; }
.cond-list li.is-pop { animation: pop .35s var(--ease); }
.cond-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 28px; padding: 20px 24px; border-radius: var(--radius); background: var(--teal-tint);
}
.cond-cta p { color: var(--navy); font-size: 16.5px; }


/* 11. PROCESO ============================================================= */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 31px; left: 40px; right: calc(25% - 10px); height: 2px;
  background: repeating-linear-gradient(90deg, var(--teal) 0 8px, transparent 8px 16px); opacity: .45;
}
.step { position: relative; counter-increment: step; padding: 0 6px; }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--teal); color: var(--teal-deep);
  font-family: var(--font-display); font-weight: 700; font-size: 20px; position: relative;
  box-shadow: 0 0 0 8px var(--ice);
}
.step h3 { font-size: 20px; margin-top: 22px; }
.step p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }
.step a { color: var(--teal); font-weight: 700; }


/* 12. GALERÍA ============================================================= */
.gallery { background: var(--navy); }
.gallery .section-head h2 { color: #fff; }
.gallery .kicker { background: rgba(125,211,200,.14); color: var(--mint); }
.gallery .kicker::before { background: var(--mint); }
/* Escritorio: cuadrícula centrada de 4 columnas */
.gallery-track {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px;
  grid-auto-flow: dense; gap: 14px;
}
.g-item { scroll-snap-align: start; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--navy-2); }
.g-item.g-tall { grid-row: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.g-item:hover img { transform: scale(1.05); }


/* 13. TESTIMONIOS ========================================================= */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testi {
  display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.stars { display: flex; gap: 2px; color: var(--star); }
.stars .i { width: 18px; height: 18px; }
.testi p { color: var(--ink); font-size: 16.5px; flex: 1; }
.testi footer { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--teal-tint); color: var(--teal-deep); font-family: var(--font-display); font-weight: 700; }
.testi footer strong { display: block; color: var(--navy); font-size: 15.5px; }
.testi footer small { display: block; color: var(--muted); font-size: 14px; }
.testi-more { margin-top: 28px; text-align: center; }


/* 14. ARTÍCULOS =========================================================== */
.blog { background: var(--paper); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post {
  display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius);
  background: var(--ice); border: 1px solid var(--line); border-top: 4px solid var(--teal);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-tag { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-deep); }
.post h3 { font-size: 20px; margin-top: 12px; line-height: 1.3; }
.post p:not(.post-tag) { margin-top: 10px; color: var(--ink-2); font-size: 16px; flex: 1; }
.post-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 700; color: var(--teal); }
.post-link .i { width: 18px; height: 18px; transition: transform .2s; }
.post-link:hover .i { transform: translateX(4px); }


/* 15. PREGUNTAS FRECUENTES =============================================== */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-list { display: grid; gap: 10px; }
.faq-item { border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line); transition: box-shadow .25s, border-color .25s; }
.faq-item[open] { border-color: var(--teal); box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 17.5px; color: var(--navy); line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background:
    linear-gradient(var(--teal), var(--teal)) center/12px 2px no-repeat,
    linear-gradient(var(--teal), var(--teal)) center/2px 12px no-repeat,
    var(--teal-tint);
  transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 22px; color: var(--ink-2); font-size: 16.5px; }
.faq-item strong { color: var(--navy); }


/* 16. CONTACTO ============================================================ */
.contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.contact-cards { display: grid; gap: 10px; align-content: start; }
.c-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  border-radius: var(--radius); background: var(--ice); border: 1px solid var(--line);
  transition: border-color .2s, transform .25s var(--ease);
}
a.c-card:hover { border-color: var(--teal); transform: translateX(3px); }
.c-card small { display: block; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.c-card strong { display: block; color: var(--navy); font-size: 17px; line-height: 1.35; }
.c-card em { display: block; font-style: normal; color: var(--ink-2); font-size: 15px; }
.c-card > span:nth-child(2) { flex: 1; }
.c-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--paper); color: var(--teal); border: 1px solid var(--line); }
.c-arrow { color: var(--muted); }
.c-wa { background: var(--wa); border-color: var(--wa); }
.c-wa small { color: rgba(255,255,255,.85); }
.c-wa strong, .c-wa .c-arrow { color: #fff; }
.c-wa .c-icon { background: rgba(255,255,255,.15); color: #fff; border-color: transparent; }
.c-hours { align-items: flex-start; }
.hours { display: grid; grid-template-columns: auto auto; gap: 4px 24px; margin: 6px 0 10px; font-size: 15.5px; color: var(--ink-2); }
.hours b { color: var(--navy); font-weight: 700; }
.hours .is-today { color: var(--teal-deep); font-weight: 700; }
.c-social { display: flex; flex-wrap: wrap; gap: 10px; }
.c-social a {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 12px;
  background: var(--paper); border: 1px solid var(--line); font-weight: 600; color: var(--navy); font-size: 15px;
}
.c-social a:hover { border-color: var(--navy); }
.map { min-height: 420px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--ice-2); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }


/* 17. FOOTER ============================================================== */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); padding: 72px 0 28px; font-size: 15.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 40px; align-items: start; }
.footer-brand img { height: 52px; width: auto; }
.footer-brand p { margin-top: 18px; max-width: 380px; }
.footer-nav { display: grid; gap: 10px; }
.footer-nav a:hover { color: var(--mint); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line-dark); color: #fff; transition: background .2s, border-color .2s;
}
.footer-social a:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: 14px; color: rgba(255,255,255,.7);
}


/* 18. BARRA MÓVIL + WHATSAPP FLOTANTE ===================================== */
.mobile-bar { display: none; }
.float-stack {
  position: fixed; right: 22px; bottom: 24px; z-index: 90;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.fs-btn {
  position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  color: #fff; box-shadow: 0 10px 24px -10px rgba(10,37,64,.55);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.fs-btn .i { width: 26px; height: 26px; }
.fs-btn:hover { transform: scale(1.1); }
.fs-fb { background: #1877F2; }
.fs-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.fs-gm { background: #fff; border: 1px solid var(--line); }
.fs-wa { width: 60px; height: 60px; background: #25D366; animation: wa-pulse 2.6s ease-in-out infinite; }
.fs-wa .i { width: 30px; height: 30px; }
/* Etiqueta al pasar el mouse */
.fs-btn::before {
  content: attr(data-tip); position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  padding: 6px 10px; border-radius: 8px; background: var(--navy); color: #fff;
  font-size: 13px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s;
}
.fs-btn:hover::before, .fs-btn:focus-visible::before { opacity: 1; }
@keyframes wa-pulse {
  0%,100% { box-shadow: 0 8px 20px -8px rgba(37,211,102,.6); }
  50%     { box-shadow: 0 8px 30px -4px rgba(37,211,102,.75); }
}


/* 19. ANIMACIONES ========================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(22,163,74,.22); } 50% { box-shadow: 0 0 0 8px rgba(22,163,74,.08); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}


/* 20. RESPONSIVE ========================================================== */
@media (max-width: 1080px) {
  .nav-list a { padding: 9px 9px; font-size: 14.5px; }
  .trust-list { grid-template-columns: repeat(2, 1fr); }
  .spec-grid { grid-template-columns: repeat(2, 1fr); grid-template-areas: "f1 f2" "c1 c2" "c3 c4"; }
  .spec-feature { min-height: 400px; }
}

/* Menú móvil (panel desplegable) */
@media (max-width: 960px) {
  :root { --header-h: 70px; }
  .brand img { height: 40px; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    padding: 12px var(--gutter) 22px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .3s var(--ease), opacity .25s, visibility .25s;
  }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; gap: 2px; }
  .nav-list a { padding: 14px 12px; font-size: 17px; color: var(--navy); }
  .nav-cta-mobile { display: flex; width: 100%; margin-top: 12px; }

  .hero-grid, .booking-grid, .about-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-inline: auto; width: 100%; }
  .fc-top { left: -12px; }
  .fc-bottom { left: -12px; }
  .faq-grid .section-head { position: static; }
  .about-photo { max-width: 480px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps::before { display: none; }
  .gallery-wrap { max-width: none; padding-inline: 0; }
  .gallery-track {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: clamp(240px, 40vw, 320px);
    grid-template-rows: 210px 210px; grid-auto-rows: unset;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    padding-inline: var(--gutter); padding-bottom: 14px;
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent;
  }
  .testi-grid, .post-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Celular */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .site-footer { padding-bottom: calc(28px + 76px + env(safe-area-inset-bottom)); }  /* espacio para la barra móvil */  /* espacio para la barra móvil */
  .hero { padding-top: 28px; }
  .hero h1 { font-size: 40px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-proof li { flex: 1 1 calc(50% - 6px); min-width: 0; }
  .hero-proof li:last-child { flex-basis: 100%; }
  .hero-visual { padding: 18px 16px 0 0; }
  .hero-backdrop { inset: 0 0 64px 24px; border-radius: 30px; transform: rotate(4deg); }
  .hero-dots { display: none; }
  .hero-photo { border-radius: 26px; }
  .hero-seal { width: 98px; height: 98px; top: -10px; right: -4px; border-width: 3px; }
  .hero-seal text { font-size: 19px; }
  .seal-core { width: 42px; height: 42px; }
  .seal-core .i { width: 24px; height: 24px; }
  .float-card { position: relative; left: auto; top: auto; bottom: auto; max-width: none; margin-top: 10px; }
  .fc-top { margin-top: -34px; margin-inline: 12px; }
  .fc-bottom { margin-inline: 12px; }
  .trust { margin-top: 0; padding-top: 8px; }
  .trust-list { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; grid-template-areas: "f1" "f2" "c1" "c2" "c3" "c4"; }
  .spec-feature { min-height: 380px; }
  .facts { grid-template-columns: 1fr; }
  .about-badge { right: 10px; bottom: 14px; }
  .about-photo::before { display: none; }
  .steps { grid-template-columns: 1fr; }
  .gallery-track { grid-template-rows: 190px 190px; grid-auto-columns: 72vw; }
  .cond-list { display: flex; flex-wrap: wrap; gap: 8px; }
  .cond-list li { padding: 11px 14px; font-size: 15px; border-radius: 999px; }
  .cond-list li::before { width: 7px; height: 7px; }
  .zone-tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .zone-tabs::-webkit-scrollbar { display: none; }
  .zone-tab { flex: none; }
  .cond-cta .btn { width: 100%; }
  .hours { grid-template-columns: 1fr auto; }
  .map, .map iframe { min-height: 320px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }

  .float-stack { right: 12px; bottom: calc(86px + env(safe-area-inset-bottom)); gap: 8px; }
  .fs-btn { width: 44px; height: 44px; }
  .fs-btn .i { width: 21px; height: 21px; }
  .fs-btn::before { display: none; }
  .fs-wa { display: none; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    display: grid; grid-template-columns: .9fr 1.15fr 1.1fr; gap: 6px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 -10px 30px -18px rgba(10,37,64,.4);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px;
    border-radius: 14px; font-weight: 700; font-size: 15px; color: var(--navy);
    background: var(--ice); border: 1px solid var(--line);
  }
  .mobile-bar .mb-wa { background: var(--wa); color: #fff; border-color: var(--wa); }
  .mobile-bar .mb-primary { background: var(--teal); color: #fff; border-color: var(--teal); }
}
