/* ==========================================================================
   DentalSmile — Hoja de estilos principal
   Enfoque mobile-first. Colores tomados del logotipo (azul marino, azul y
   turquesa). Para adaptar a otra clínica cambia los tokens de :root.
   ========================================================================== */

/* ---------- Fuentes autoalojadas ---------- */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

/* ---------- Tokens de marca ---------- */
:root {
  /* Neutros */
  --bg: #F7F9FB;
  --surface: #FFFFFF;
  --tint: #EEF4F7;
  --ink: #0B1F3A;
  --ink-soft: #24374F;
  --muted: #56677C;
  --line: #E1E8EF;
  --line-strong: #CFD9E3;

  /* Marca (logotipo) */
  --navy-deep: #071F40;
  --navy: #0A2E5C;
  --navy-logo: #06387A;
  --blue: #0066B3;
  --teal: #00A8B4;
  --teal-ink: #007A84;         /* turquesa con contraste AA para texto */
  --blue-soft: #E6F1FA;
  --teal-soft: #E3F5F6;

  --grad: linear-gradient(120deg, #0066B3 0%, #00A8B4 100%);
  --grad-navy: linear-gradient(135deg, #06387A 0%, #0A2E5C 55%, #071F40 100%);

  --wa: #0E7A40;               /* verde WhatsApp con contraste AA */
  --wa-hover: #0A6334;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, .05);
  --shadow: 0 1px 2px rgba(11, 31, 58, .04), 0 12px 32px -16px rgba(11, 31, 58, .18);
  --shadow-lg: 0 2px 6px rgba(11, 31, 58, .05), 0 32px 64px -28px rgba(11, 31, 58, .32);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --header-h: 68px;
  --gutter: 20px;
  --maxw: 1200px;
  --focus: 0 0 0 3px var(--bg), 0 0 0 5px var(--blue);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem; line-height: 1.65;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.15; color: var(--ink); }
h3 { letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
address { font-style: normal; }
[hidden] { display: none !important; }
::selection { background: rgba(0, 168, 180, .22); }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 10px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 900px; }

/* ---------- Tipografía de exhibición ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.04;
}
.display em {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: .06em; /* evita recorte de la itálica */
}

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--navy-logo);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 13px 24px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; letter-spacing: -0.005em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1.5px solid transparent; border-radius: 999px;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease, color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, #0B4A94 0%, #06387A 55%, #0A2E5C 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 24px -10px rgba(6, 56, 122, .65);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 16px 32px -12px rgba(6, 56, 122, .7); background: linear-gradient(135deg, #0D57AA 0%, #07418C 55%, #0A2E5C 100%); }
.btn-whatsapp { --btn-bg: var(--wa); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 10px 24px -12px rgba(14, 122, 64, .6); }
.btn-whatsapp:hover { --btn-bg: var(--wa-hover); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--navy); box-shadow: 0 10px 24px -14px rgba(0,0,0,.5); }
.btn-light:hover { --btn-bg: #F1F7FB; }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--navy); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--navy); --btn-bg: #fff; }
.btn-outline-light { --btn-bg: rgba(255,255,255,.06); --btn-fg: #fff; border-color: rgba(255,255,255,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-outline-light:hover { border-color: #fff; --btn-bg: rgba(255,255,255,.14); }
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: .9375rem; }
.btn-lg { min-height: 56px; padding: 15px 28px; font-size: 1.0625rem; }
.btn-block { width: 100%; }

.text-link {
  color: var(--blue); font-weight: 700; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1.5px;
}
.text-link:hover { color: var(--navy-logo); }

.cta-group { display: flex; flex-direction: column; gap: 12px; }
.cta-group .btn { width: 100%; }

/* ---------- Etiquetas / encabezados de sección ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal-ink); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--grad); border-radius: 2px; }
.eyebrow--pill {
  padding: 7px 14px 7px 10px; border-radius: 999px;
  background: rgba(255,255,255,.75); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); letter-spacing: .12em;
}
.eyebrow--pill::before { display: none; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(0,168,180,.15); }
.eyebrow--light { color: #7FDCE3; }

.section { position: relative; padding: 72px 0; }
.section--tint { background: var(--tint); }
.section-head { max-width: 700px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(2.25rem, 1.5rem + 3.2vw, 3.5rem); margin-bottom: 16px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.0625rem; }
.section-head--left { text-align: left; margin: 0; }

.icon {
  display: inline-grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(145deg, var(--blue-soft), var(--teal-soft));
  color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(0, 102, 179, .08);
}
.icon--light { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }

.glass {
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(170%) blur(14px);
  backdrop-filter: saturate(170%) blur(14px);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 249, 251, .78);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, .9); box-shadow: 0 8px 24px -20px rgba(11,31,58,.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 34px; width: auto; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .btn { white-space: nowrap; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú móvil: panel desplegable bajo el header */
.main-nav {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 8px var(--gutter) 20px;
  display: none;
}
.main-nav.is-open { display: block; }
.main-nav a {
  display: block; padding: 15px 4px; border-bottom: 1px solid var(--line);
  text-decoration: none; font-weight: 600; color: var(--ink-soft);
}
.main-nav li:last-child a { border-bottom: 0; }
.main-nav a:hover { color: var(--blue); }

@media (max-width: 479px) {
  .hero .btn-lg { font-size: 1rem; padding: 14px 20px; }
}
@media (max-width: 399px) {
  .brand img { height: 28px; }
  .header-actions .btn-sm { padding: 9px 14px; font-size: .875rem; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; padding: 32px 0 64px; overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 88% 12%, rgba(0, 168, 180, .16), transparent 70%),
    radial-gradient(50% 45% at 8% 90%, rgba(0, 102, 179, .10), transparent 70%),
    linear-gradient(180deg, #F7F9FB 0%, #EFF5F8 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(10, 46, 92, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 60% at 70% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(70% 60% at 70% 30%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; gap: 44px; }
.hero h1 { font-size: clamp(3rem, 1.6rem + 6.4vw, 5.5rem); letter-spacing: -0.025em; }
.hero-lead {
  margin-top: 14px; font-size: clamp(1.1875rem, 1rem + .9vw, 1.4375rem);
  font-weight: 700; color: var(--navy-logo); line-height: 1.35; letter-spacing: -0.01em;
}
.hero-text { margin-top: 14px; color: var(--muted); font-size: 1.0625rem; max-width: 540px; }
.hero .cta-group { margin-top: 30px; }
#agenda-title:focus { outline: none; box-shadow: none; }

.hero-checks { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 24px; color: var(--ink-soft); font-size: .9375rem; font-weight: 600; }
.hero-checks li { display: inline-flex; align-items: center; gap: 8px; }
.hero-checks li > span {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad); color: #fff;
}

.hero-media { position: relative; padding: 0 0 56px; }
.hero-media::before {
  content: ""; position: absolute; z-index: -1; right: -12%; top: -8%; width: 80%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(0,168,180,.22), transparent);
  filter: blur(8px);
}
.hero-photo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #DCE8EF, #EAF3F5);
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
  background: linear-gradient(180deg, transparent 60%, rgba(7,31,64,.18));
  pointer-events: none;
}
.hero-photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 50% 45%; }

.hero-inset {
  position: absolute; right: -6px; top: -22px; width: 96px; height: 96px;
  border-radius: 50%; overflow: hidden; border: 4px solid #fff;
  box-shadow: var(--shadow-lg); background: #E6EEF3;
}
.hero-inset img { width: 100%; height: 100%; object-fit: cover; }

.hero-card {
  position: absolute; left: 14px; right: 14px; bottom: 0; padding: 16px 18px;
  border-radius: var(--radius);
}
.hero-card-title { font-weight: 800; font-size: .875rem; margin-bottom: 6px; color: var(--navy); }
.hours-mini li { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; font-size: .875rem; color: var(--muted); }
.hours-mini li span:last-child { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.status {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 10px;
  padding: 4px 11px; border-radius: 999px; font-size: .75rem; font-weight: 800;
  background: var(--teal-soft); color: var(--teal-ink);
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(0,122,132,.18); }
.status.is-closed { background: #EEF1F5; color: #4F5E70; }
.status.is-closed .status-dot { box-shadow: none; }

.hero-chip {
  position: absolute; left: 14px; top: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 8px; border-radius: 999px;
  font-size: .8125rem; font-weight: 700; color: var(--navy);
}
.chip-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; }

/* ==========================================================================
   SERVICIOS
   ========================================================================== */
.services-grid { display: grid; gap: 14px; }
.service-card {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; row-gap: 3px;
  padding: 20px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card::before {
  /* borde degradado al pasar el cursor */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1;
  background: var(--grad); opacity: 0; transition: opacity .3s ease;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.service-card .icon { grid-row: span 3; }
.service-num { display: none; }
.service-card h3 { font-size: 1.125rem; font-weight: 800; }
.service-sub { font-size: .9375rem; font-weight: 700; color: var(--teal-ink); }
.service-text { color: var(--muted); font-size: .9375rem; margin-top: 4px; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { opacity: 1; }

.service-card--cta {
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  min-height: 260px; padding: 24px; border: 0; color: #fff; background: var(--navy);
}
.service-card--cta::before { display: none; }
.cta-card-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.service-card--cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7,31,64,.35) 0%, rgba(7,31,64,.92) 70%);
}
.cta-card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.service-card--cta h3 { color: #fff; font-family: var(--font-display); font-weight: 400; font-size: 1.875rem; line-height: 1.08; letter-spacing: -0.01em; }
.service-card--cta p { color: rgba(255,255,255,.82); margin-bottom: 8px; }

/* ==========================================================================
   POR QUÉ
   ========================================================================== */
.why-grid { display: grid; gap: 40px; }
.why-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #DCE8EF; }
.why-photo img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; object-position: 50% 30%; }
.why-photo::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: var(--grad);
}
.why-copy { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.benefits { display: grid; gap: 12px; width: 100%; }
.benefit {
  display: flex; gap: 16px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.benefit h3 { font-size: 1.0625rem; font-weight: 800; margin-bottom: 4px; }
.benefit p { color: var(--muted); font-size: .9375rem; }

/* ==========================================================================
   AGENDA
   ========================================================================== */
.section--agenda { background:
    radial-gradient(50% 40% at 50% 0%, rgba(0,168,180,.10), transparent 70%),
    var(--bg); }
.calendar-shell {
  position: relative;
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.calendar-shell::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 2;
  background: linear-gradient(135deg, rgba(0,102,179,.5), rgba(0,168,180,.5), rgba(225,232,239,1) 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.calendar-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px;
  border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #FBFDFE, #F4F8FA);
  font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-ink);
}
.calendar-bar img { height: 22px; width: auto; }
.calendar-embed { position: relative; min-height: 420px; }
.calendar-embed iframe { display: block; width: 100%; max-width: 100%; min-height: 760px; border: 0; overflow: hidden; background: #fff; }
.calendar-embed br { display: none; }
/* Indicador de carga del calendario (cubre el iframe mientras carga) */
.calendar-loading {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 14px;
  padding-top: 140px; background: #fff; color: var(--muted); font-weight: 700; font-size: .9375rem;
  transition: opacity .35s ease, visibility .35s ease;
}
.calendar-loading.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.calendar-spinner {
  width: 44px; height: 44px; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(0,168,180,0), #00A8B4, #0066B3);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  animation: ds-spin .9s linear infinite;
}
@keyframes ds-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .calendar-spinner { animation-duration: 2.4s !important; } } /* el <br> del embed de GHL no debe sumar espacio */
@media (max-width: 479px) { .calendar-embed iframe { min-height: 820px; } }
.calendar-placeholder {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 420px; padding: 40px 24px; text-align: center; color: var(--muted);
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(100% / 7 - 1px), var(--line) calc(100% / 7 - 1px) calc(100% / 7)),
    repeating-linear-gradient(0deg, transparent 0 59px, var(--line) 59px 60px);
  background-color: #FCFDFE;
}
.calendar-placeholder > * { position: relative; }
.calendar-placeholder::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(closest-side, rgba(252,253,254,.97) 55%, rgba(252,253,254,.7));
}
.calendar-placeholder .icon { width: 60px; height: 60px; border-radius: 18px; margin-bottom: 6px; }
.calendar-placeholder-title { font-weight: 800; color: var(--ink); font-size: 1.0625rem; }

.calendar-help {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin-top: 30px; text-align: center;
}
.calendar-help p { font-weight: 700; color: var(--ink-soft); }
.calendar-help .btn { width: 100%; max-width: 360px; }

/* ==========================================================================
   CÓMO FUNCIONA (bloque oscuro)
   ========================================================================== */
.section--navy {
  background:
    radial-gradient(45% 60% at 100% 0%, rgba(0,168,180,.28), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(0,102,179,.35), transparent 70%),
    var(--navy-deep);
  color: #fff;
}
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .display em { background: linear-gradient(120deg, #6FC3FF, #5FE3EA); -webkit-background-clip: text; background-clip: text; }
.steps { display: grid; gap: 14px; counter-reset: step; }
.step {
  position: relative; display: grid; grid-template-columns: 48px 1fr; column-gap: 16px;
  padding: 20px; border-radius: var(--radius);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.step-num {
  grid-row: span 2; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad); color: #fff;
  font-family: var(--font-display); font-size: 1.625rem; line-height: 1;
  box-shadow: 0 0 0 6px rgba(0,168,180,.14);
}
.step h3 { font-size: 1.0625rem; font-weight: 800; padding-top: 4px; }
.step p { color: rgba(255,255,255,.72); font-size: .9375rem; margin-top: 4px; }

/* ==========================================================================
   FAQ (acordeón accesible nativo con <details>)
   ========================================================================== */
.faq-grid { display: grid; gap: 32px; }
.faq-head { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.faq-head .btn { margin-top: 24px; }
.faq { display: grid; gap: 10px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.faq-item[open] { border-color: rgba(0,102,179,.3); box-shadow: var(--shadow); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; min-height: 60px; cursor: pointer; list-style: none; border-radius: var(--radius);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 1rem; font-weight: 700; line-height: 1.45; }
.faq-icon {
  position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue-soft); transition: background .25s ease;
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px;
  background: var(--blue); border-radius: 2px; transform: translate(-50%, -50%);
  transition: transform .25s ease, background .25s ease;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--grad); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: #fff; }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-body { padding: 0 20px 20px; color: var(--muted); }

/* ==========================================================================
   UBICACIÓN Y HORARIOS
   ========================================================================== */
.location-grid { display: grid; gap: 32px; }
.location-info h2 { font-size: clamp(2.25rem, 1.5rem + 3.2vw, 3.5rem); margin-bottom: 16px; }
.location-info > p:not(.eyebrow) { color: var(--muted); font-size: 1.0625rem; }
.contact-list { display: grid; gap: 18px; margin-top: 28px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { width: 44px; height: 44px; }
.contact-label { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 2px; }
.contact-list address { color: var(--ink); }

.hours-card {
  position: relative; overflow: hidden; align-self: start; padding: 26px; color: #fff;
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(0,168,180,.35), transparent 70%),
    var(--grad-navy);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.hours-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.hours-card-head h3 { font-size: 1.125rem; font-weight: 800; color: #fff; }
.hours-list { margin: 0 0 22px; }
.hours-list div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.hours-list div:last-child { border-bottom: 0; }
.hours-list dt { color: rgba(255,255,255,.75); }
.hours-list dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.hours-list .is-today dt, .hours-list .is-today dd { color: #7FE6EC; }
.hours-list .is-today dt::after { content: " · hoy"; font-weight: 700; }

.map-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #E4ECF1; }
.map-wrap iframe { width: 100%; height: 360px; border: 0; }

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.final-cta { padding: 24px var(--gutter) 72px; background: var(--tint); }
.final-cta-inner {
  position: relative; isolation: isolate; overflow: hidden;
  max-width: var(--maxw); margin: 0 auto; border-radius: 32px;
  background: var(--navy-deep);
  box-shadow: var(--shadow-lg);
}
.final-cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.final-cta-inner::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(0,168,180,.35), transparent 70%),
    linear-gradient(135deg, rgba(6,56,122,.94) 0%, rgba(7,31,64,.9) 60%, rgba(7,31,64,.8) 100%);
}
.final-cta-content { padding: 56px 24px; text-align: center; color: #fff; }
.final-cta h2 { color: #fff; font-size: clamp(2.375rem, 1.5rem + 3.6vw, 4rem); }
.final-cta .display em { background: linear-gradient(120deg, #7CC8FF, #62E6EC); -webkit-background-clip: text; background-clip: text; }
.final-cta p { margin: 16px auto 0; max-width: 520px; color: rgba(255,255,255,.82); font-size: 1.0625rem; }
.final-cta .cta-group { margin-top: 30px; }
.final-cta :focus-visible, .section--navy :focus-visible, .hours-card :focus-visible, .site-footer :focus-visible { box-shadow: 0 0 0 3px var(--navy-deep), 0 0 0 5px #fff; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  padding: 56px 0 calc(100px + env(safe-area-inset-bottom));
  background: var(--navy-deep); color: rgba(255,255,255,.72);
}
.footer-grid { display: grid; gap: 32px; }
.brand--footer img { height: 34px; }
.footer-brand p { margin-top: 12px; }
.footer-tagline { font-family: var(--font-display); font-style: italic; font-size: 1.375rem; color: #fff; margin-top: 4px !important; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer-nav a { display: inline-block; padding: 6px 0; text-decoration: none; font-weight: 600; color: #fff; }
.footer-nav a:hover { color: #7FE6EC; text-decoration: underline; text-underline-offset: 3px; }
.footer-label { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: #7FE6EC; margin-bottom: 10px; }
.footer-hours p[data-hours-summary] { color: #fff; margin-bottom: 16px; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: 8px; font-size: .8125rem; }
.demo-notice { color: rgba(255,255,255,.6); }

/* ==========================================================================
   BOTÓN FLOTANTE WHATSAPP
   ========================================================================== */
.wa-float {
  position: fixed; z-index: 40;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff; text-decoration: none;
  box-shadow: 0 12px 28px -10px rgba(14, 122, 64, .7), 0 2px 6px rgba(0,0,0,.14);
  opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background-color .2s ease;
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { background: var(--wa-hover); }
.wa-float:focus-visible { border-radius: 50%; }

/* ---------- Aparición sutil al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   BREAKPOINTS
   ========================================================================== */
@media (min-width: 480px) {
  .cta-group { flex-direction: row; flex-wrap: wrap; }
  .cta-group .btn { width: auto; }
  .hero-inset { width: 120px; height: 120px; right: -10px; top: -30px; }
  .hero-card { left: auto; right: 18px; width: 290px; }
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 76px; }
  .brand img { height: 38px; }
  .section { padding: 104px 0; }
  .section-head { margin-bottom: 56px; }
  .hero { padding: 56px 0 96px; }
  .hero-photo img { aspect-ratio: 16 / 11; }
  .hero-media { padding: 0 0 40px 40px; }
  .hero-card { left: 0; right: auto; bottom: 0; }
  .hero-chip { left: 58px; top: 18px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .service-card { grid-template-columns: 1fr; padding: 28px; }
  .service-card .icon { grid-row: auto; margin-bottom: 16px; }
  .service-num {
    display: block; position: absolute; top: 22px; right: 24px;
    font-family: var(--font-display); font-size: 1.5rem; color: var(--line-strong); line-height: 1;
  }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .benefit { flex-direction: column; gap: 14px; padding: 22px; }
  .cta-group--center { justify-content: center; }
  .final-cta-content { padding: 96px 48px; }
  .location-grid { grid-template-columns: 1.1fr .9fr; align-items: start; }
  .map-wrap { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
  .footer-bottom { grid-template-columns: 1fr auto; align-items: center; }
  .site-footer { padding-bottom: 44px; }
  .calendar-help { flex-direction: row; justify-content: center; }
  .calendar-help .btn { width: auto; }

  /* Pasos: flujo horizontal con línea de conexión */
  .steps { grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
  .steps::before {
    content: ""; position: absolute; left: 12%; right: 12%; top: 48px; height: 2px;
    background: linear-gradient(90deg, rgba(0,102,179,0), rgba(0,168,180,.6), rgba(0,102,179,0));
  }
  .step { grid-template-columns: 1fr; padding: 24px 22px 26px; text-align: center; justify-items: center; }
  .step-num { grid-row: auto; margin-bottom: 18px; position: relative; }
  .step h3 { padding-top: 0; }
}

/* Navegación completa solo cuando cabe en una línea */
@media (min-width: 1140px) {
  .nav-toggle { display: none; }
  .main-nav {
    position: static; display: block; padding: 0; background: none; border: 0; box-shadow: none;
  }
  .main-nav ul { display: flex; gap: 2px; }
  .main-nav a { padding: 8px 13px; border: 0; border-radius: 999px; font-size: .9375rem; white-space: nowrap; }
  .main-nav a:hover { background: rgba(0, 102, 179, .07); color: var(--navy-logo); }
  .btn-sm { padding: 10px 22px; }
}

@media (min-width: 1024px) {
  .hero { padding: 64px 0 112px; }
  .hero-grid { grid-template-columns: 1.02fr .98fr; align-items: center; gap: 64px; }
  .hero-photo img { aspect-ratio: 1 / 1; max-height: 620px; object-position: 32% 50%; }
  .hero-media { padding: 0 0 48px 0; }
  .hero-card { left: -48px; bottom: 0; }
  .hero-chip { left: 20px; }
  .hero-inset { width: 132px; height: 132px; right: -24px; top: -36px; }

  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: .92fr 1.08fr; align-items: center; gap: 72px; }
  .why-photo img { aspect-ratio: 4 / 4.9; }
  .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
  .faq-head { position: sticky; top: calc(var(--header-h) + 32px); }
  .location-grid { gap: 56px; }
}

@media (min-width: 1440px) {
  :root { --maxw: 1260px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
