/* =====================================================================
   Hotel Asis · Hotel y guardería para perros (Puebla)
   Sistema: azul marino de la marca + amarillo sol como único acento.
   Radios: tarjetas 24px, fotos 28px, botones y chips en píldora, campos 14px.
   Capas (z-index): header 50 · flotante WhatsApp 60 · skip-link 100
   ===================================================================== */

@font-face {
  font-family: "Fredoka";
  src: url("../assets/fonts/fredoka-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../assets/fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --bg: #F6F8F2;
  --surface: #FFFFFF;
  --surface-2: #EEF3E7;      /* tinte jardín */
  --ink: #1B2350;            /* texto */
  --brand: #232E68;          /* azul del logo */
  --muted: #4E5677;
  --line: rgb(35 46 104 / .12);
  --sun: #F5B942;            /* acento único */
  --sun-ink: #1B2350;
  --sun-soft: #FCEBC4;
  --leaf: #DCE9CF;
  --on-photo: #FFFFFF;
  --shadow: 0 1px 2px rgb(35 46 104 / .06), 0 12px 32px -12px rgb(35 46 104 / .22);
  --shadow-lg: 0 2px 4px rgb(35 46 104 / .06), 0 30px 60px -24px rgb(var(--shadow-rgb) / .35);
  --r-card: 24px;
  --r-photo: 28px;
  --r-field: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 76px;
  --ico-accent: var(--sun);
  --ico-accent-o: 1;
  --shadow-rgb: 27 35 80;
  --font-display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1430;
    --surface: #171D40;
    --surface-2: #142235;
    --ink: #EEF0FA;
    --brand: #C9D3FF;
    --muted: #AEB5D3;
    --line: rgb(201 211 255 / .14);
    --sun-soft: #3A3420;
    --shadow-rgb: 0 0 0;
    --leaf: #1E3328;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -12px rgb(0 0 0 / .6);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 30px 60px -24px rgb(0 0 0 / .7);
  }
}

/* Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
[hidden] { display: none !important; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.015em; margin: 0; color: var(--brand); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 8px; }

.container { width: min(100% - 2.5rem, 1240px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--brand); color: var(--bg); padding: .7rem 1rem; border-radius: 999px; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 1rem; }

.ico { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.ico.flip { transform: scaleX(-1); }

.section { padding-block: clamp(4.5rem, 3rem + 6vw, 8rem); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-head h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); }
.section-head p:not(.eyebrow) { margin-top: 1rem; color: var(--muted); font-size: 1.125rem; max-width: 60ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: 1.0625rem;
  color: var(--brand); margin-bottom: .85rem;
}
.eyebrow::before { content: ""; width: 1.75rem; height: 3px; border-radius: 3px; background: var(--sun); }

/* Botones ------------------------------------------------------------- */
.btn {
  --pad: .8rem 1.25rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: var(--pad); border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-lg { --pad: 1rem 1.6rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--sun); color: var(--sun-ink); box-shadow: 0 8px 18px -10px rgb(var(--shadow-rgb) / .45); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgb(var(--shadow-rgb) / .5); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); transform: translateY(-2px); }
.btn .ico { width: 1.3em; height: 1.3em; }
.btn-ghost .ico:last-child { transition: transform .25s var(--ease); }
.btn-ghost:hover .ico:last-child { transform: translateX(3px); }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--brand); text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.link-arrow .ico { transition: transform .25s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

/* Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -18px rgb(var(--shadow-rgb) / .35); }
.header-sentinel { position: absolute; top: 0; height: 40px; width: 1px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }
.brand img { height: 54px; width: auto; transition: height .3s var(--ease); }
.is-scrolled .brand img { height: 46px; }
.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.main-nav ul { display: flex; gap: .25rem; }
.main-nav ul a {
  position: relative; display: block; padding: .5rem .8rem; border-radius: 999px;
  font-weight: 600; font-size: .98rem; text-decoration: none; color: var(--ink);
  transition: background-color .2s, color .2s;
}
.main-nav ul a:hover { background: var(--surface-2); }
.main-nav ul a[aria-current="true"] { background: var(--leaf); color: var(--brand); }
.nav-cta { --pad: .65rem 1.1rem; font-size: .95rem; }
.nav-toggle { display: none; }

@media (prefers-color-scheme: dark) {
  .brand img, .f-brand img { filter: brightness(0) invert(.93) sepia(.1) hue-rotate(190deg); }
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  }
  .nav-toggle .ico { width: 24px; height: 24px; }
  .nav-toggle .ico-close, .nav-toggle[aria-expanded="true"] .ico-open { display: none; }
  .nav-toggle[aria-expanded="true"] .ico-close { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1.25rem 1.25rem 1.75rem; background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-8px); visibility: hidden; pointer-events: none;
    transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .main-nav.is-open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity .25s var(--ease), transform .3s var(--ease); }
  .main-nav ul { flex-direction: column; gap: .15rem; }
  .main-nav ul a { padding: .85rem 1rem; font-size: 1.125rem; }
  .nav-cta { --pad: 1rem 1.25rem; font-size: 1.0625rem; }
}

/* Hero ---------------------------------------------------------------- */
.hero { padding-block: clamp(1.5rem, 1rem + 3vw, 4rem) clamp(3rem, 2rem + 4vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem, 1rem + 4vw, 5rem); min-height: min(calc(100dvh - var(--header-h) - 5rem), 720px); }
.hero h1 { font-size: clamp(2.6rem, 1.5rem + 3.9vw, 4.6rem); line-height: 1.04; letter-spacing: -.025em; max-width: 12ch; }
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::after {
  content: ""; position: absolute; left: -.08em; right: -.08em; bottom: .04em; height: .32em; z-index: -1;
  background: var(--sun); border-radius: 999px; transform-origin: left; opacity: .85;
}
.hero-sub { margin-top: 1.5rem; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--muted); max-width: 34ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }

.hero-media { position: relative; justify-self: end; width: min(100%, 520px); }
.hero-blob {
  position: absolute; inset: 6% -8% -4% 10%; z-index: -1; border-radius: 46% 54% 42% 58% / 52% 40% 60% 48%;
  background: var(--surface-2);
}
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 220px 220px var(--r-photo) var(--r-photo); box-shadow: var(--shadow-lg); max-height: calc(100dvh - var(--header-h) - 4rem); }
.hero-bubble { position: absolute; left: -12%; bottom: 14%; width: 34%; }
.hero-bubble img { aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 6px solid var(--bg); box-shadow: var(--shadow); }
.hero-trust {
  position: absolute; right: -6%; bottom: -5%; display: flex; align-items: center; gap: .75rem;
  padding: .7rem 1.1rem .7rem .8rem; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg);
}
.hero-trust img { width: 54px; height: auto; }
.hero-trust p { display: grid; line-height: 1.35; font-size: .92rem; }
.hero-trust strong { color: var(--brand); font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.hero-trust span { color: var(--muted); }
@media (prefers-color-scheme: dark) { .hero-trust img, .hosp-logo, .f-hosp img { background: #fff; border-radius: 10px; padding: 4px; } }

@media (max-width: 959px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero h1 { max-width: 15ch; }
  .hero-media { justify-self: center; width: min(88%, 440px); margin-top: 1rem; }
  .hero-trust { right: -4%; }
}
@media (max-width: 520px) {
  .hero-ctas .btn { width: 100%; }
  .hero-bubble { left: -6%; width: 32%; }
  .hero-trust { right: -2%; bottom: -7%; padding: .55rem .8rem .55rem .6rem; }
  .hero-trust img { width: 42px; }
}

/* Marquee ------------------------------------------------------------- */
.marquee { overflow: hidden; background: var(--brand); color: var(--bg); padding-block: 1rem; transform: rotate(-1.2deg); margin-inline: -2rem; }
.marquee-track { display: flex; align-items: center; gap: 1.5rem; width: max-content; font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); font-weight: 500; white-space: nowrap; }
.marquee .ico { --ico-accent: var(--sun); --ico-accent-o: 1; width: 1.6em; height: 1.6em; color: var(--sun); }
@media (prefers-color-scheme: dark) { .marquee { background: var(--sun); color: #1B2350; } .marquee .ico { color: #1B2350; --ico-accent: #1B2350; --ico-accent-o: .25; } }

/* Manifiesto ---------------------------------------------------------- */
.statement { padding-block: clamp(4.5rem, 3rem + 6vw, 7.5rem) 0; }
.includes { padding-top: clamp(4rem, 3rem + 4vw, 6.5rem); }
.statement-text {
  font-family: var(--font-display); font-weight: 500; color: var(--brand);
  font-size: clamp(1.7rem, 1.1rem + 2.6vw, 3.4rem); line-height: 1.26; letter-spacing: -.015em; max-width: 30ch;
}
.chip-img { display: inline-block; vertical-align: middle; width: 2.3em; height: 1.15em; border-radius: 999px; overflow: hidden; margin-inline: .08em; transform: translateY(-.06em); box-shadow: var(--shadow); }
.chip-img img { width: 100%; height: 100%; object-fit: cover; }

/* Bento "Incluye" ------------------------------------------------------ */
.bento {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "jard jard aire aire"
    "jard jard juego inst"
    "dorm cuid trato medi"
    "dorm bano bano acti";
}
.t-jardin { grid-area: jard; } .t-aire { grid-area: aire; } .t-juego { grid-area: juego; } .t-inst { grid-area: inst; }
.t-dormir { grid-area: dorm; } .t-cuid { grid-area: cuid; } .t-trato { grid-area: trato; } .t-medico { grid-area: medi; }
.t-bano { grid-area: bano; } .t-acti { grid-area: acti; }

.tile { position: relative; border-radius: var(--r-card); overflow: hidden; min-height: 230px; isolation: isolate; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tile h3 { font-size: 1.3rem; }
.tile p { margin-top: .45rem; font-size: .98rem; }
.badge { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--leaf); color: var(--brand); --ico-accent: var(--sun); --ico-accent-o: 1; }
.badge .ico { width: 32px; height: 32px; }
.badge.sm { width: 46px; height: 46px; border-radius: 14px; }
.badge.sm .ico { width: 26px; height: 26px; }

.tile-icon { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; align-items: center; column-gap: 1rem; row-gap: 1.25rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); }
.tile-icon > p { grid-column: 1 / -1; align-self: end; margin-top: 0; }
.tile-icon p { color: var(--muted); }
.tile-navy { background: var(--brand); border-color: transparent; }
.tile-navy h3 { color: var(--bg); }
.tile-navy p { color: color-mix(in srgb, var(--bg) 78%, transparent); }
.tile-navy .badge { background: rgb(255 255 255 / .12); color: var(--bg); }
@media (prefers-color-scheme: dark) { .tile-navy { background: #2B3A86; } .tile-navy h3 { color: #fff; } .tile-navy p { color: #D6DCF7; } .tile-navy .badge { color: #fff; } }
.tile-sun { display: flex; background: var(--sun); border-color: transparent; flex-direction: row; align-items: center; justify-content: flex-start; gap: clamp(1rem, .5rem + 2vw, 2rem); padding-inline: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.tile-sun h3, .tile-sun p { color: #1B2350; }
.tile-sun .badge { background: #fff; color: #1B2350; width: clamp(72px, 4rem + 3vw, 112px); height: clamp(72px, 4rem + 3vw, 112px); border-radius: 30px; transform: rotate(-6deg); box-shadow: 0 14px 30px -14px rgb(var(--shadow-rgb) / .5); }
.tile-sun .badge .ico { width: 58%; height: 58%; }
.tile-sun h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.tile-sun > div { max-width: 30ch; }

.tile-photo { display: flex; align-items: flex-end; min-height: 260px; color: var(--on-photo); }
.tile-photo picture, .tile-photo picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.tile-photo picture img { transition: transform 1.2s var(--ease); }
.tile-photo:hover picture img { transform: scale(1.04); }
.tile-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(15 20 48 / 0) 35%, rgb(15 20 48 / .78) 100%); }
.tile-photo .tile-body { padding: 1.5rem; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: .7rem; }
.tile-photo .tile-body p { grid-column: 1 / -1; }
.tile-photo h3 { color: #fff; font-size: 1.45rem; }
.tile-photo p { color: rgb(255 255 255 / .9); max-width: 36ch; }
.tile-photo .badge { width: auto; height: auto; background: none; color: #fff; border-radius: 0; }
.tile-photo .badge .ico { width: 34px; height: 34px; }
.t-dormir picture img { object-position: 30% 60%; }
.t-jardin h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); }

@media (max-width: 959px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-template-areas: "jard jard" "aire aire" "juego inst" "dorm dorm" "cuid trato" "medi medi" "bano bano" "acti acti"; }
  .t-jardin { min-height: 340px; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; grid-template-areas: "jard" "aire" "juego" "inst" "dorm" "cuid" "trato" "medi" "bano" "acti"; }
  .tile { min-height: 0; }
  .tile-icon { flex-direction: row; align-items: center; gap: 1rem; padding: 1.1rem; }
  .tile-icon .badge { order: -1; }
  .tile-icon h3 { font-size: 1.15rem; }
  .tile-icon > p { display: none; }
  .tile-sun { align-items: center; }
  .tile-sun > div { margin-left: 0; }
  .tile-photo { min-height: 240px; }
}

/* Calculadora ---------------------------------------------------------- */
.pricing { background: var(--surface-2); }
.calc { display: grid; grid-template-columns: 1.55fr 1fr; gap: 1.25rem; align-items: start; }
.calc-controls { display: grid; gap: 1.75rem; padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend, .field > label, .field .label { display: block; font-weight: 700; color: var(--brand); margin-bottom: .6rem; font-size: 1rem; }
.opt { font-weight: 500; color: var(--muted); }
.help { margin-top: .6rem; font-size: .9rem; color: var(--muted); }
.error { margin-top: .4rem; font-size: .9rem; color: #B3261E; font-weight: 600; }
@media (prefers-color-scheme: dark) { .error { color: #FFB4AB; } }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.segmented label, .size { position: relative; cursor: pointer; }
.segmented input, .size input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; height: 100%;
  padding: .95rem 1.1rem; border-radius: 18px; border: 2px solid var(--line); font-weight: 700; color: var(--ink);
  transition: border-color .2s, background-color .2s, transform .2s var(--ease);
  --ico-accent: var(--sun); --ico-accent-o: .9;
}
.segmented span .ico { width: 1.5em; height: 1.5em; color: var(--brand); }
.segmented small { width: 100%; font-weight: 500; color: var(--muted); font-size: .88rem; margin-left: 2.1em; margin-top: -.35rem; }
.segmented input:checked + span { border-color: var(--brand); background: var(--leaf); }
.segmented input:focus-visible + span, .size input:focus-visible ~ .size-dog { outline: 3px solid var(--sun); outline-offset: 2px; }

.sizes { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; }
.size { display: grid; justify-items: center; text-align: center; gap: .15rem; padding: .9rem .4rem .8rem; border-radius: 18px; border: 2px solid var(--line); transition: border-color .2s, background-color .2s, transform .25s var(--ease); }
.size:hover { transform: translateY(-2px); }
.size:has(input:checked) { border-color: var(--brand); background: var(--leaf); }
.size-dog { display: grid; place-items: end center; height: 64px; width: 64px; border-radius: 12px; }
.size-dog .ico { width: 60px; height: 60px; transform: scale(var(--s)); transform-origin: bottom center; color: var(--brand); --ico-accent: var(--sun); --ico-accent-o: .9; transition: transform .35s var(--ease); }
.size:has(input:checked) .size-dog .ico { animation: wag .5s var(--ease); }
.size-name { font-weight: 700; font-size: .95rem; line-height: 1.3; color: var(--ink); }
.size-kg { font-size: .8rem; color: var(--muted); }
@keyframes wag { 0% { rotate: 0deg; } 35% { rotate: -6deg; } 70% { rotate: 4deg; } 100% { rotate: 0deg; } }

.field-row { display: grid; grid-template-columns: 1.2fr 1fr .9fr; gap: 1rem; }
.field input[type="text"], .field input[type="date"] {
  width: 100%; height: 52px; padding: 0 1rem; border-radius: var(--r-field); border: 2px solid var(--line);
  background: var(--bg); color: var(--ink); font-size: 1rem; transition: border-color .2s;
}
.field input::placeholder { color: color-mix(in srgb, var(--muted) 85%, transparent); }
.field input:focus { border-color: var(--brand); outline: 3px solid var(--sun); outline-offset: 2px; }
.field input[aria-invalid="true"] { border-color: #B3261E; }
.stepper { display: grid; grid-template-columns: 48px 1fr 48px; height: 52px; border-radius: var(--r-field); border: 2px solid var(--line); background: var(--bg); overflow: hidden; }
.stepper:focus-within { border-color: var(--brand); outline: 3px solid var(--sun); outline-offset: 2px; }
.stepper button { border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--brand); transition: background-color .2s; }
.stepper button:hover { background: var(--surface-2); }
.stepper button:active .ico { transform: scale(.85); }
.stepper input { width: 100%; border: 0; background: transparent; text-align: center; font-weight: 700; font-size: 1.15rem; -moz-appearance: textfield; appearance: textfield; }
.stepper input:focus { outline: none; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.calc-summary { position: sticky; top: calc(var(--header-h) + 1rem); display: grid; gap: 1.1rem; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border-radius: var(--r-card); background: var(--brand); color: var(--bg); box-shadow: var(--shadow-lg); }
@media (prefers-color-scheme: dark) { .calc-summary { background: #232E68; color: #EEF0FA; } }
.sum-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.sum-lines { display: grid; gap: .5rem; margin: 0; }
.sum-lines div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .5rem; border-bottom: 1px dashed rgb(255 255 255 / .2); }
.sum-lines dt { opacity: .75; }
.sum-lines dd { margin: 0; font-weight: 700; text-align: right; }
.sum-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem; }
.sum-total span { width: 100%; opacity: .75; font-size: .95rem; }
.sum-total strong { font-family: var(--font-display); font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem); font-weight: 600; line-height: 1; color: var(--sun); font-variant-numeric: tabular-nums; }
.sum-total small { opacity: .75; font-weight: 600; }
.sum-gift { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: 14px; background: rgb(245 185 66 / .16); font-weight: 600; font-size: .95rem; --ico-accent: var(--sun); --ico-accent-o: 1; }
.sum-gift .ico { width: 1.6em; height: 1.6em; }
.sum-gift.is-new { animation: pop .5s var(--ease); }
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
.fine { font-size: .78rem; opacity: .7; line-height: 1.45; }

.rates { margin-top: 2.5rem; overflow-x: auto; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); }
.rates table { width: 100%; min-width: 640px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rates caption { text-align: left; padding: 1.25rem 1.5rem .25rem; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--brand); }
.rates th, .rates td { padding: 1rem 1.5rem; text-align: left; }
.rates thead th { font-size: .88rem; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); }
.rates tbody th { font-weight: 700; color: var(--brand); }
.rates tbody th small { display: block; font-weight: 500; color: var(--muted); }
.rates tbody td { font-weight: 700; font-size: 1.1rem; }
.rates tbody tr + tr > * { border-top: 1px solid var(--line); }

@media (max-width: 959px) {
  .calc { grid-template-columns: 1fr; }
  .calc-summary { position: static; }
}
@media (max-width: 640px) {
  .sizes { grid-template-columns: repeat(6, 1fr); }
  .size { grid-column: span 2; }
  .size:nth-child(4) { grid-column: 2 / span 2; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-row .field:first-child { grid-column: 1 / -1; }
  .segmented small { margin-left: 0; margin-top: 0; }
}
@media (max-width: 440px) {
  .field-row { grid-template-columns: 1fr; }
  .size-name { font-size: .9rem; }
}

/* Requisitos ---------------------------------------------------------- */
.reqs-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.reqs-head { position: sticky; top: calc(var(--header-h) + 2rem); }
.reqs-head h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); }
.reqs-head p { margin-block: 1rem 1.5rem; color: var(--muted); font-size: 1.125rem; }
.reqs-groups { display: grid; gap: 2.5rem; }
.req-group h3 { font-size: 1.35rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .75rem; }
.req-group h3::after { content: ""; flex: 1; height: 2px; background: var(--line); border-radius: 2px; }
.req-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; }
.req-cards li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.req-cards li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.req-cards .ico { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--leaf); color: var(--brand); --ico-accent: var(--sun); --ico-accent-o: 1; box-sizing: content-box; }
.req-cards strong { display: block; color: var(--ink); font-size: 1.05rem; line-height: 1.3; }
.req-cards span { display: block; margin-top: .25rem; color: var(--muted); font-size: .95rem; }
@media (max-width: 959px) { .reqs-grid { grid-template-columns: 1fr; } .reqs-head { position: static; } }
@media (max-width: 560px) { .req-cards { grid-template-columns: 1fr; } }

/* Servicios ----------------------------------------------------------- */
.services { padding-top: 0; }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.services-media { margin: 0; position: relative; }
.services-media::before { content: ""; position: absolute; inset: 8% 8% -6% -6%; border-radius: var(--r-photo); background: var(--sun); z-index: -1; transform: rotate(-3deg); }
.services-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r-photo); box-shadow: var(--shadow-lg); }
.hosp-logo { width: 96px; height: auto; margin-bottom: 1.25rem; }
.services-copy h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem); }
.services-copy > p { margin-top: 1rem; color: var(--muted); font-size: 1.1rem; max-width: 52ch; }
.serv-list { display: grid; gap: 1rem; margin-block: 1.75rem 2rem; }
.serv-list li { display: flex; gap: 1rem; align-items: center; }
.serv-list strong { display: block; color: var(--ink); }
.serv-list span:not(.badge) { color: var(--muted); font-size: .97rem; }
@media (max-width: 959px) { .services-grid { grid-template-columns: 1fr; } .services-media { max-width: 560px; } }

/* Galería ------------------------------------------------------------- */
.gallery { background: var(--surface-2); overflow: hidden; }
.gallery-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.gallery-head h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); max-width: 16ch; }
.gal-sub { margin-top: .75rem; color: var(--muted); font-size: 1.125rem; }
.gal-nav { display: flex; gap: .6rem; }
.round-btn { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); background: var(--surface); color: var(--brand); cursor: pointer; transition: transform .25s var(--ease), border-color .2s, opacity .2s; }
.round-btn:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--brand); }
.round-btn:disabled { opacity: .35; cursor: default; }
.round-btn .ico { width: 22px; height: 22px; }
.gal-track {
  --edge: max(1.25rem, calc((100vw - 1240px) / 2));
  display: grid; grid-auto-flow: column; grid-auto-columns: auto; gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 0 var(--edge) 1rem; scroll-padding-inline: var(--edge); scrollbar-width: none;
}
.gal-track::-webkit-scrollbar { display: none; }
.gal-track:focus-visible { outline-offset: -3px; }
.gal-item { scroll-snap-align: start; }
.gal-item { width: clamp(250px, 24vw, 340px); }
.gal-item.g-wide { width: clamp(300px, 42vw, 560px); }
.gal-item img { width: 100%; height: clamp(300px, 30vw, 420px); object-fit: cover; border-radius: var(--r-photo); }
.gal-item p { margin-top: .85rem; color: var(--muted); }
.gal-item strong { color: var(--brand); font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }

/* FAQ ----------------------------------------------------------------- */
.faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.faq-aside { position: sticky; top: calc(var(--header-h) + 2rem); }
.faq-aside h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); }
.faq-aside p { margin-block: 1rem 1.5rem; color: var(--muted); font-size: 1.1rem; }
.faq-list { display: grid; gap: .75rem; }
.faq-list details { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: box-shadow .3s var(--ease), border-color .3s; }
.faq-list details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none;
  padding: 1.2rem 1.4rem; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--brand);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ico { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--leaf); transition: transform .35s var(--ease), background-color .2s; box-sizing: content-box; }
.faq-list details[open] summary .ico { transform: rotate(45deg); background: var(--sun); color: #1B2350; }
.faq-a { padding: 0 1.4rem 1.3rem; color: var(--muted); }
.faq-a p { max-width: 58ch; }
.faq-a a { color: var(--brand); font-weight: 600; text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 3px; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq-list details::details-content { height: 0; overflow: clip; transition: height .4s var(--ease), content-visibility .4s allow-discrete; }
  .faq-list details[open]::details-content { height: auto; }
}
@media (max-width: 959px) { .faq-grid { grid-template-columns: 1fr; } .faq-aside { position: static; } }

/* Contacto ------------------------------------------------------------ */
.contact { padding-top: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-content: start; }
.c-card { display: grid; align-content: start; gap: .35rem; padding: 1.4rem; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.c-card h3 { font-size: 1.3rem; }
.c-card:not(.c-wa) { grid-template-columns: auto 1fr; align-items: center; column-gap: .9rem; row-gap: .5rem; }
.c-card:not(.c-wa) > :not(.c-ico):not(h3) { grid-column: 1 / -1; }
.c-card address { font-style: normal; color: var(--muted); }
.c-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--leaf); color: var(--brand); }
.c-ico .ico { width: 26px; height: 26px; }
.c-tel { display: inline-flex; align-items: center; gap: .4rem; margin-top: .35rem; font-weight: 700; font-size: 1.15rem; color: var(--brand); text-decoration: none; font-variant-numeric: tabular-nums; }
.c-tel:hover { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.c-wa { grid-column: 1 / -1; background: var(--sun); border-color: transparent; color: #1B2350; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.c-wa:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.c-wa .c-ico { background: #fff; color: #1B2350; }
.c-wa .c-label { margin-top: .5rem; font-weight: 600; }
.c-wa strong { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.c-go { display: inline-flex; align-items: center; gap: .35rem; margin-top: .6rem; font-weight: 700; }
.c-go .ico { transition: transform .25s var(--ease); }
.c-wa:hover .c-go .ico { transform: translate(3px, -3px); }
.c-place { grid-row: span 2; }
.c-social { grid-column: 1 / -1; display: flex; gap: .75rem; flex-wrap: wrap; }
.c-social a { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.15rem; border-radius: 999px; border: 2px solid var(--line); font-weight: 700; color: var(--brand); text-decoration: none; transition: border-color .2s, transform .25s var(--ease); }
.c-social a:hover { border-color: var(--brand); transform: translateY(-2px); }

.map { position: relative; min-height: 420px; border-radius: var(--r-card); overflow: hidden; background:
  radial-gradient(circle at 30% 30%, var(--leaf) 0 18%, transparent 19%),
  radial-gradient(circle at 75% 70%, var(--leaf) 0 14%, transparent 15%),
  repeating-linear-gradient(35deg, transparent 0 46px, var(--line) 46px 48px),
  repeating-linear-gradient(-55deg, transparent 0 70px, var(--line) 70px 73px),
  var(--surface-2); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-cover { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: .9rem; padding: 1.5rem; }
.map-pin { width: 64px; height: 64px; color: var(--brand); filter: drop-shadow(0 8px 10px rgb(35 46 104 / .3)); animation: bob 2.6s var(--ease) infinite; }
.map-cover > p:first-of-type { font-size: 1.15rem; line-height: 1.4; color: var(--ink); }
.map-actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.map-actions .btn-ghost { background: var(--surface); }
.map-note { font-size: .82rem; color: var(--muted); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 959px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .contact-cards { grid-template-columns: 1fr; } .c-place { grid-row: auto; } .map { min-height: 360px; } }

/* Footer -------------------------------------------------------------- */
.site-footer { margin-top: clamp(4rem, 3rem + 4vw, 7rem); padding-top: 3.5rem; border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.4fr .8fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.f-brand img { height: 72px; width: auto; }
.f-brand p { margin-top: 1rem; color: var(--muted); max-width: 32ch; }
.f-nav { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 2rem; align-content: start; }
.f-nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding-block: .2rem; }
.f-nav a:hover { color: var(--brand); text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.f-hosp p { font-size: .9rem; color: var(--muted); margin-bottom: .6rem; }
.f-hosp img { width: 110px; height: auto; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.25rem 6rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.footer-bottom a { color: var(--brand); font-weight: 700; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

/* WhatsApp flotante --------------------------------------------------- */
.wa-float { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 60; display: grid; justify-items: end; gap: .75rem; transition: transform .45s var(--ease), opacity .3s; }
.wa-float.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
.wa-btn { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 12px 24px -10px rgb(var(--shadow-rgb) / .45); transition: transform .3s var(--ease); }
.wa-btn:hover { transform: scale(1.06) rotate(-6deg); }
.wa-btn:active { transform: scale(.96); }
.wa-btn .ico { width: 34px; height: 34px; }
.wa-bubble { position: relative; max-width: 270px; padding: 1rem 2.4rem 1rem 1.1rem; border-radius: 20px 20px 6px 20px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); font-size: .95rem; line-height: 1.45; animation: pop .45s var(--ease); }
.wa-bubble strong { color: var(--brand); }
.wa-close { position: absolute; top: .45rem; right: .45rem; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--muted); }
.wa-close:hover { background: var(--surface-2); }
.wa-close .ico { width: 18px; height: 18px; }

/* Movimiento (solo si el usuario no pidió reducirlo) ------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  .js [data-hero] { animation: rise 1s var(--ease) both; }
  .js .hero-copy [data-hero]:nth-child(2) { animation-delay: .08s; }
  .js .hero-copy [data-hero]:nth-child(3) { animation-delay: .16s; }
  .js .hero-copy [data-hero]:nth-child(4) { animation-delay: .24s; }
  .js .hero-media[data-hero] { animation: rise-img 1.2s var(--ease) .1s both; }
  .js .hero-bubble { animation: rise 1s var(--ease) .5s both; }
  .js .hero-trust { animation: rise 1s var(--ease) .7s both; }
  .js .hl::after { animation: swipe .9s var(--ease) .55s both; }

  .marquee-track { animation: marquee 38s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }

  @supports (animation-timeline: view()) {
    .hero-photo img { animation: drift linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    .services-media::before { animation: tilt linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes rise-img { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes swipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes drift { to { transform: translateY(8%) scale(1.03); } }
@keyframes tilt { from { transform: rotate(0deg) translate(-4%, 4%); } to { transform: rotate(-3deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
