/* ============================================================
   Dr. Gonzalo Caso · Cardiólogo — Rosario
   Paleta: Índigo #282B49 + Blanco roto #F8F7EE
   Tipografías: Montserrat (sustituto de Gotham Bold) + Instrument Serif cursiva
   ============================================================ */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("assets/fonts/montserrat-latin.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/instrument-serif.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("assets/fonts/instrument-serif-italic.woff2") format("woff2"); }

:root {
  --indigo: #282B49;
  --indigo-2: #1d2038;
  --cream: #F8F7EE;
  --cream-2: #EFEDE0;
  --ink: #282B49;
  --ink-soft: rgba(40, 43, 73, .74);
  --line: rgba(40, 43, 73, .14);
  --heart: #C8323C;
  --sans: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65; font-weight: 500;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
/* Selección de texto: azul sobre fondos blanco roto y blanco roto sobre fondos azules */
::selection { background: var(--indigo); color: var(--cream); text-shadow: none; }
/* Sobre fondos azules (hero, encabezado sobre el hero, turnos, pie y botones azules) la selección se invierte */
.hero ::selection, .site-header:not(.is-stuck):not(.menu-open) ::selection, .booking ::selection, .footer ::selection, .btn-solid::selection, .btn-solid ::selection { background: var(--cream); color: var(--indigo); }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--indigo); color: var(--cream); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Tipografía ---------- */
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; font-size: 1.1em; line-height: .9; }
.display { font-size: clamp(2.5rem, 6.4vw, 5.1rem); line-height: 1.02; font-weight: 700; letter-spacing: -.035em; }
.h2 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); line-height: 1.08; font-weight: 700; letter-spacing: -.03em; max-width: 18ch; }
.eyebrow { font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); margin-bottom: 18px; }
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 12px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--heart); animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.5); } 24% { transform: scale(1); } 36% { transform: scale(1.35); } }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.2rem); max-width: 46ch; color: var(--ink-soft); }
.body { color: var(--ink-soft); max-width: 52ch; }
.body + .body { margin-top: 16px; }
.note { margin-top: 22px; padding-left: 16px; border-left: 2px solid var(--indigo); font-size: .94rem; color: var(--ink); max-width: 46ch; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 26px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em; border: 1.5px solid transparent;
  transition: transform .35s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .35s var(--ease); will-change: transform; }
.btn .ico { width: 20px; height: 20px; flex: none; }
.btn-sm { padding: 11px 20px; font-size: .84rem; }
/* Claymorphism sutil: volumen mate, brillo interno arriba, sombra interna abajo y un "canto" de 3 px,
   como los íconos 3D de servicios */
.btn { border: 0; }
.btn-solid {
  background: linear-gradient(180deg, #3a3e66 0%, #282B49 100%); color: var(--cream);
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, .16), inset 0 -4px 8px rgba(10, 12, 30, .35),
    0 3px 0 #1a1c33, 0 14px 22px -10px rgba(40, 43, 73, .55); }
.btn-solid:hover { transform: translateY(-2px);
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, .2), inset 0 -4px 8px rgba(10, 12, 30, .35),
    0 5px 0 #1a1c33, 0 20px 28px -12px rgba(40, 43, 73, .6); }
.btn-cream {
  background: linear-gradient(180deg, #FFFEF8 0%, #EEEADB 100%); color: var(--indigo);
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, .95), inset 0 -4px 8px rgba(40, 43, 73, .12),
    0 3px 0 #D3CDB6, 0 14px 22px -10px rgba(10, 12, 30, .45); }
.btn-cream:hover { transform: translateY(-2px);
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, .95), inset 0 -4px 8px rgba(40, 43, 73, .12),
    0 5px 0 #D3CDB6, 0 20px 28px -12px rgba(10, 12, 30, .5); }
.btn-solid:active, .btn-cream:active { transform: translateY(2px); transition-duration: .08s; }
.btn-ghost { border: 1.5px solid var(--indigo); color: var(--indigo); }
.btn-ghost:hover { background: var(--indigo); color: var(--cream); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.link-arrow { display: inline-flex; gap: 8px; font-weight: 700; font-size: .92rem; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; transition: gap .3s var(--ease); }
.link-arrow:hover { gap: 14px; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.site-header.is-stuck { background: rgba(248, 247, 238, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.header-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; flex-direction: column; line-height: 1.1; margin-right: auto; }
.brand-name { font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
.brand-role { font-family: var(--serif); text-transform: uppercase; letter-spacing: .12em; font-size: .86rem; margin-top: 2px; }
.nav { display: flex; gap: 30px; font-size: .88rem; font-weight: 700; }
.nav a { position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--indigo); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--indigo); transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Animaciones de entrada ---------- */
.rise { opacity: 1; transform: none; }
.js .rise { opacity: 0; transform: translateY(26px); animation: rise .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
.js .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.js .line .rise { display: block; transform: translateY(105%); }
@keyframes rise { to { opacity: 1; transform: none; } }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; } /* defensa: nunca ocultar split-text */

/* ---------- Hero (carrusel de fondo) ---------- */
.hero { position: relative; min-height: 100svh; padding: calc(var(--header-h) + 32px) 0 112px; display: flex; align-items: center; overflow: hidden;
  background: var(--indigo); color: var(--cream); isolation: isolate; }
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.slide.is-active { opacity: 1; }
.slide picture { position: absolute; inset: 0; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%; transform: scale(1.1); transition: transform 7.5s linear; }
.slide.is-active img { transform: scale(1); }
.hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(29, 32, 56, .9) 0%, rgba(40, 43, 73, .74) 38%, rgba(40, 43, 73, .28) 68%, rgba(40, 43, 73, .1) 100%),
    linear-gradient(180deg, rgba(29, 32, 56, .5) 0%, transparent 22%, transparent 70%, rgba(29, 32, 56, .55) 100%); }
.hero-grid { position: relative; z-index: 1; display: block; }
.hero-copy { max-width: 560px; }
.hero-copy .display { margin: 0 0 26px; color: var(--cream); text-shadow: 0 2px 30px rgba(20, 22, 40, .35); }
.hero .lead { color: rgba(248, 247, 238, .86); }

/* Header claro mientras está sobre el hero */
.site-header:not(.is-stuck):not(.menu-open) { color: var(--cream); }
.site-header:not(.is-stuck):not(.menu-open) .nav a::after { background: var(--cream); }
.site-header:not(.is-stuck):not(.menu-open) .burger span { background: var(--cream); }
.site-header:not(.is-stuck):not(.menu-open) .header-cta { background: linear-gradient(180deg, #FFFEF8 0%, #EEEADB 100%); color: var(--indigo);
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, .95), inset 0 -3px 6px rgba(40, 43, 73, .12), 0 3px 0 #D3CDB6, 0 10px 18px -10px rgba(10, 12, 30, .45); }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 11vw, 140px) 0; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }

/* Sobre mí */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-media { position: relative; max-width: 460px; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame { aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: var(--cream-2); }
.frame img { object-position: 50% 22%; transform: scale(1.06); }
.stamp { position: absolute; right: -26px; bottom: -30px; width: 100px; height: 100px; border-radius: 50%; display: grid; place-items: center; }
.stamp img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(40,43,73,.35)); animation: beat 1.6s ease-in-out infinite; }
.about-copy .h2 { margin-bottom: 24px; }
.trayectoria { margin-top: 36px; border-top: 1px solid var(--line); }
.trayectoria > div { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.trayectoria dt { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); padding-top: 4px; }
.trayectoria dd { font-weight: 700; font-size: .98rem; line-height: 1.5; }
.matriculas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.matriculas span { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; }
/* Redes en Sobre mí: solo íconos, en el orden Instagram, email, LinkedIn y Facebook */
.socials { display: flex; gap: 22px; margin-top: 26px; }
.socials a { display: grid; place-items: center; width: 30px; height: 30px; color: var(--ink); transition: transform .45s var(--ease), opacity .3s; }
.socials a:hover { transform: translateY(-3px); opacity: .7; }
.socials svg { width: 26px; height: 26px; }

/* Servicios */
.services { background: var(--cream); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cards { gap: clamp(20px, 3vw, 44px); }
.card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 8px 0; background: none; border: 0; }
.card-ico { height: 124px; width: auto; max-width: 100%; object-fit: contain; margin: 0 0 30px;
  filter: drop-shadow(0 22px 18px rgba(40, 43, 73, .22)); animation: bob 6s ease-in-out infinite alternate; transition: scale .45s var(--ease); cursor: default; }
.card:nth-child(2) .card-ico { animation-delay: -1.5s; }
.card:nth-child(3) .card-ico { animation-delay: -3s; }
.card:nth-child(4) .card-ico { animation-delay: -4.5s; }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-12px); } }
/* Al pasar el mouse por la tarjeta (o al cruzar el centro de la pantalla en celular): el ícono crece y el texto se despliega.
   El texto siempre ocupa su lugar, así la sección no cambia de alto. */
.card:hover .card-ico, .card.is-on .card-ico { scale: 1.12; }
.js .card p { opacity: 0; transform: translateY(-8px); clip-path: inset(0 0 100% 0);
  transition: opacity .45s var(--ease), transform .55s var(--ease), clip-path .6s var(--ease); }
.js .card:hover p, .js .card.is-on p { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.card h3 { font-size: 1.18rem; line-height: 1.25; letter-spacing: -.02em; margin-bottom: 12px; font-weight: 700; }
.card p { font-size: .93rem; line-height: 1.6; color: var(--ink-soft); max-width: 28ch; }

/* Atención */
.ph img { width: 100%; height: 100%; object-fit: cover; }
.care-photos { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: clamp(14px, 2vw, 24px); align-items: start; max-width: 980px; margin-inline: auto; }
.ph { border-radius: 22px; overflow: hidden; aspect-ratio: 3 / 5; background: var(--cream-2); }
.ph-1 { margin-top: 0; } .ph-2 { margin-top: 56px; } .ph-3 { margin-top: 112px; }
.ph-3 img { object-position: 22% 50%; }
.ph-2 img { object-position: 40% 50%; }
/* Microinteracción: parallax por columnas (translate, independiente del reveal). */
.ph { translate: 0 var(--py, 0px); will-change: translate; }

/* Consultorios */
.places { background: var(--cream-2); }
.care { background: var(--cream-2); overflow: clip; }
.place-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.place { background: var(--cream); border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 4vw, 44px); position: relative; overflow: hidden; }
.place::after { content: ""; position: absolute; right: -60px; top: -60px; width: 190px; height: 190px; border-radius: 50%; background: var(--indigo); opacity: .06; transition: transform .6s var(--ease), opacity .4s; }
.place:hover::after { transform: scale(1.6); opacity: .1; }
.place-day { font-family: var(--serif); font-style: italic; font-size: 1.9rem; line-height: 1; margin-bottom: 14px; }
.place h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.03em; line-height: 1.1; font-weight: 700; }
.place-addr { margin-top: 8px; color: var(--ink-soft); }
.place-hours { display: flex; align-items: center; gap: 10px; margin: 22px 0 26px; font-weight: 700; font-size: 1.05rem; }
.place-hours svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex: none; }
/* Foto del consultorio: aparece al pasar el mouse (escritorio) o al cruzar el centro de la pantalla (celular) */
.place > *:not(.place-photo) { position: relative; z-index: 1; }
.place-photo { position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.place-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease); }
.place-photo::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(29, 32, 56, .86) 0%, rgba(29, 32, 56, .62) 50%, rgba(29, 32, 56, .25) 100%); }
.place:nth-child(1) .place-photo img { object-position: 78% 50%; }
.place:nth-child(2) .place-photo img { object-position: 72% 55%; }
.place, .place-day, .place h3, .place-addr, .place-hours, .place .link-arrow { transition: color .45s var(--ease), border-color .45s var(--ease); }
/* Links de la tarjeta: la flecha y el subrayado se corren con la misma suavidad que aparece la foto */
.place .link-arrow { transition: color .45s var(--ease), border-color .45s var(--ease), gap .6s var(--ease); }
.place.is-lit { border-color: transparent; color: var(--cream); }
.place.is-lit .place-photo { opacity: 1; }
.place.is-lit .place-photo img { transform: scale(1); }
.place.is-lit .place-addr { color: rgba(248, 247, 238, .82); }
.place.is-lit::after { opacity: 0; }
@media (hover: hover) {
  .place:hover { border-color: transparent; color: var(--cream); }
  .place:hover .place-photo { opacity: 1; }
  .place:hover .place-photo img { transform: scale(1); }
  .place:hover .place-addr { color: rgba(248, 247, 238, .82); }
  .place:hover::after { opacity: 0; }
}

/* Tarjeta entera como enlace de turnos: el link de turno estira su área a toda la tarjeta
   y el link de Google Maps queda por encima para seguir siendo independiente. */
.place { cursor: pointer; display: flex; flex-direction: column; align-items: flex-start;
  transition: color .45s var(--ease), border-color .45s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease); }
.place > .place-map { margin-top: auto; padding-top: 0; z-index: 3; border-bottom-color: transparent; }
.place-hours { margin: 12px 0 32px; align-items: flex-start; line-height: 1.45; }
.place-hours svg { margin-top: 1px; }
.place-label { font-weight: 500; color: var(--ink-soft); transition: color .45s var(--ease); }
.place > .place-cta { position: static; margin-top: 14px; display: inline-flex; }
.place-cta::before { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.place-cta:focus-visible { outline: none; }
.place-cta:focus-visible::before { outline: 2px solid var(--indigo); outline-offset: 3px; }
.place-cta .link-arrow { align-items: center; }
.place-cta .ico { width: 15px; height: 15px; flex: none; transition: transform .6s var(--ease); }
.place.is-lit .place-label { color: rgba(248, 247, 238, .78); }
@media (hover: hover) {
  .place:hover { transform: translateY(-4px); box-shadow: 0 26px 40px -24px rgba(40, 43, 73, .55); }
  .place:hover .place-label { color: rgba(248, 247, 238, .78); }
  .place:hover .place-cta .link-arrow { gap: 14px; }
  .place:hover .place-cta .ico { transform: translate(2px, -2px); }
}

/* Obras sociales */
.os-names { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; margin-top: 22px;
  font-size: .72rem; line-height: 1.75; color: rgba(40, 43, 73, .42); font-weight: 500; letter-spacing: .01em; }
.os-names li { white-space: nowrap; }

.os-band { background: var(--cream); padding: clamp(26px, 3.5vw, 40px) 0; border-bottom: 1px solid var(--line); }
.os-marquee { position: relative; display: flex; overflow: hidden; padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.os-track { display: flex; align-items: center; gap: clamp(44px, 6vw, 80px); padding-right: clamp(44px, 6vw, 80px); flex: none;
  animation: os-scroll 70s linear infinite; }
.os-marquee:hover .os-track { animation-play-state: paused; }
.os-track li { flex: none; display: grid; place-items: center; height: 56px; }
.os-track img { height: auto; max-height: 48px; width: auto; max-width: 190px; object-fit: contain; opacity: .8; transition: opacity .3s; }
.os-track li:hover img { opacity: 1; }
@keyframes os-scroll { to { transform: translateX(-100%); } }
@media (max-width: 560px) { .os-track img { max-height: 38px; max-width: 140px; } .os-track { animation-duration: 55s; } }

.os-more { display: none; }
.js .os-names { max-height: 0; margin-top: 0; overflow: hidden; transition: max-height .5s var(--ease), margin-top .5s var(--ease); }
.js .os-names.is-open { max-height: 60em; margin-top: 14px; }
.js .os-more { display: block; margin: 14px auto 0; padding: 6px 4px; border: 0; background: none;
  color: rgba(40, 43, 73, .42); font-size: .74rem; font-weight: 500; letter-spacing: .01em;
  text-decoration: underline; text-decoration-color: rgba(40, 43, 73, .25); text-underline-offset: 3px; }

/* Turnos */
/* ---------- Preguntas frecuentes ---------- */
.faq { background: var(--cream); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-weight: 700; font-size: 1.04rem; line-height: 1.35; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-right: 4px;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform .35s var(--ease); }
.faq details[open]:not(.is-closing) summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 32px 24px 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.65; max-width: 60ch; }
.faq details a { white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.faq details a:hover { text-decoration-color: currentColor; }
@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq summary { padding: 18px 0; font-size: 1rem; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.booking { background: var(--indigo); color: var(--cream); position: relative; }
.section.booking { padding: clamp(72px, 11vw, 140px) 0; }
.h2-light { color: var(--cream); margin-bottom: 38px; }
.steps { display: grid; gap: 22px; }
.steps li { display: grid; grid-template-columns: 46px 1fr; gap: 18px; align-items: baseline; }
.steps li span { font-family: var(--serif); font-style: italic; font-size: 1.4rem; text-align: center; }
.steps p { color: var(--cream); font-weight: 700; font-size: 1.1rem; }

/* Con JS: la sección queda fija mientras se scrollea y los pasos se agrandan uno a uno */
.js .section.booking { padding: 0; }
.js .booking-scroll { height: 340vh; }
.js .booking-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; contain: layout paint; }
.js .booking-inner { display: flex; flex-direction: column; justify-content: center; height: 100%;
  padding-top: calc(var(--header-h) + 24px); padding-bottom: 40px; }
.js .booking .h2-light { margin-bottom: 0; }
.js .steps { position: relative; display: block; flex: 1; min-height: 0; }
.js .steps li { position: absolute; left: 0; right: 0; top: 50%; display: flex; align-items: baseline; gap: .35em;
  font-size: clamp(2.4rem, 8.5vw, 8rem); line-height: 1; letter-spacing: -.04em;
  transform-origin: left center; will-change: transform, opacity; opacity: 0; }
.js .steps li span { flex: none; font-size: 1em; text-align: left; letter-spacing: 0; opacity: .55; }
.js .steps li p { font-size: 1em; font-weight: 700; max-width: 14ch; line-height: .98; }
/* Celular: transición por pasos con CSS (el scroll solo cambia de paso), distancias cortas y menos recorrido */
@media (max-width: 860px) {
  .js .booking-scroll { height: 230vh; }
  .js .steps.is-stepped li { opacity: 0; transform: translate3d(0, 0, 0) translateY(-50%) scale(.45);
    transition: transform .55s var(--ease), opacity .45s var(--ease); }
  .js .steps.is-stepped li.is-active { opacity: 1; transform: translate3d(0, 0, 0) translateY(-50%) scale(1); }
  .js .steps.is-stepped li.is-prev { opacity: .25; transform: translate3d(0, calc(var(--gap, 120px) * -1), 0) translateY(-50%) scale(.45); }
  .js .steps.is-stepped li.is-next { opacity: .25; transform: translate3d(0, var(--gap, 120px), 0) translateY(-50%) scale(.45); }
}

/* Footer */
.footer { background: var(--indigo-2); color: rgba(248, 247, 238, .78); padding: 52px 0 40px; font-size: .86rem; }
.footer-in { display: grid; gap: 14px; }
.footer-brand { display: flex; flex-direction: column; color: var(--cream); line-height: 1.1; margin-bottom: 8px; }
.footer-brand .brand-name { font-size: 1.3rem; }
.footer-urg { color: rgba(248, 247, 238, .5); font-size: .8rem; }
.footer-copy { opacity: .6; margin-top: 8px; }
/* Redes en el pie: con palabras */
.footer-social { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 6px; }
.footer-social a { color: var(--cream); font-weight: 600; font-size: .86rem; border-bottom: 1px solid rgba(248, 247, 238, .25); padding-bottom: 1px; transition: border-color .35s var(--ease); }
.footer-social a:hover { border-bottom-color: var(--cream); }

.footer-credit { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; padding-top: 22px; border-top: 1px solid rgba(248, 247, 238, .1); font-size: .78rem; color: rgba(248, 247, 238, .6); }
.casco-badge { display: inline-flex; align-items: center; transition: transform .3s var(--ease), opacity .3s; }
.casco-badge img { height: 20px; width: auto; display: block; }
.casco-badge:hover { transform: translateY(-2px); }

/* WhatsApp flotante */
.wa-float { position: fixed; right: clamp(16px, 2.4vw, 32px); bottom: calc(clamp(16px, 2.4vw, 32px) + env(safe-area-inset-bottom)); z-index: 60;
  width: 68px; height: 68px; display: grid; place-items: center; transition: transform .35s var(--ease); }
.wa-float img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(20, 90, 40, .38)); animation: wa-bob 3.4s ease-in-out infinite alternate; }
.wa-float:hover { transform: scale(1.1) rotate(-6deg); }
.wa-float[hidden] { display: none !important; }
@keyframes wa-bob { from { transform: translateY(0); } to { transform: translateY(-6px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .burger { display: block; }
  .header-cta { display: none; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0; background: var(--cream); padding: 12px var(--gutter) 28px;
    border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
  .nav a { padding: 16px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-header.menu-open { background: var(--cream); }
  /* En celular el desenfoque del encabezado se recalcula en cada cuadro al scrollear: se reemplaza por un fondo casi sólido */
  .site-header.is-stuck { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(248, 247, 238, .97); }

  .hero { min-height: 100svh; padding: calc(var(--header-h) + 38vh) 0 88px; align-items: flex-end; }
  .slide img { object-position: 74% 0%; }
  .hero .cta-row { display: none; }
  .hero .display { font-size: clamp(3rem, 14vw, 4.4rem); }
  .slide:nth-child(3) img { object-position: 50% 0%; }
  .hero-shade { background: linear-gradient(180deg, rgba(29, 32, 56, .5) 0%, rgba(40, 43, 73, .05) 16%, rgba(40, 43, 73, .1) 30%, rgba(29, 32, 56, .84) 46%, rgba(29, 32, 56, .95) 100%); }

  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 360px; margin-inline: auto; }
  .place-grid { grid-template-columns: 1fr; }
  .trayectoria > div { grid-template-columns: 1fr; gap: 4px; }

}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .care-photos { gap: 10px; }
  .ph-2 { margin-top: 36px; } .ph-3 { margin-top: 72px; }
  .card-ico { height: 104px; margin-bottom: 22px; }
  .cards { gap: 44px; }
  .cta-row .btn { width: 100%; }
  .stamp { right: -8px; width: 76px; height: 76px; }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
}

/* Solo se desactivan los efectos realmente intrusivos */
@media (prefers-reduced-motion: reduce) {
  .slide img, .slide.is-active img { transform: none; transition: none; }
}
