/* Medesthetique — sitio público y mapa 3D: cabecera, portada, recorrido, catálogo, secciones y cajón para agendar. */

:root { --promo-h: 0px; }
:root.has-promo { --promo-h: 40px; }

/* ---------- Aviso de campaña ---------- */
.promo { position: fixed; top: 0; left: 0; right: 0; z-index: 61; height: 40px; background: var(--navy-ink); color: #fff; font-size: 0.84rem; }
.promo-inner { height: 100%; display: flex; align-items: center; gap: 12px; }
.promo p { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo p b { font-weight: 600; }
.promo p span { color: rgba(255, 255, 255, 0.7); }
.promo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--powder); box-shadow: 0 0 0 4px rgba(155, 201, 216, 0.25); flex: none; animation: pulse 2.4s infinite; }
.promo-link { color: var(--powder); font-weight: 600; text-decoration: none; white-space: nowrap; }
.promo-link:hover { text-decoration: underline; }
.promo-close { border: 0; background: none; color: rgba(255, 255, 255, 0.7); font-size: 1.3rem; line-height: 1; padding: 4px 6px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(155, 201, 216, 0); } }
@media (max-width: 720px) { .promo p span { display: none; } }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; top: var(--promo-h); left: 0; right: 0; z-index: 60; height: var(--header-h);
  transition: background 0.4s, box-shadow 0.4s, top 0.3s;
}
.site-header.is-scrolled { background: var(--header-glass); backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
/* Velo detrás del menú: el texto se lee aunque la escultura o una foto quede debajo */
.site-header::before { content: ''; position: absolute; inset: 0 0 -28px; z-index: -1; pointer-events: none; background: linear-gradient(var(--header-glass) 55%, transparent); transition: opacity 0.4s; }
.site-header.is-scrolled::before { opacity: 0; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a:not(.btn) { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 0.9rem; font-weight: 500; color: var(--ink); transition: background 0.2s; }
.nav a:not(.btn):hover { background: var(--surface-a); }
.nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; }
@media (max-width: 1080px) {
  .nav {
    position: fixed; inset: calc(var(--header-h) + var(--promo-h)) 0 auto 0; z-index: 59;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 24px;
    background: var(--pearl); box-shadow: var(--shadow); border-top: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: 0.35s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .nav-cta { display: inline-flex; margin-top: 16px; }
  .menu-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 560px) { .header-cta { display: none; } }

/* ---------- Portada ---------- */
.hero {
  position: relative; min-height: max(680px, 100svh); display: grid; align-items: center; overflow: hidden;
  padding: calc(var(--header-h) + var(--promo-h) + 20px) 0 90px;
  background:
    radial-gradient(60% 70% at 78% 40%, var(--glow-a), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, var(--glow-b), transparent 70%),
    var(--porcelain);
}
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 140px; background: linear-gradient(transparent, var(--porcelain)); pointer-events: none; }
.hero-stage { position: absolute; top: calc(var(--header-h) + var(--promo-h)); height: calc(100svh - var(--header-h) - var(--promo-h)); left: 36%; right: 0; }
.hero-stage canvas, .story-stage canvas { width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-stage canvas.is-ready, .story-stage canvas.is-ready { opacity: 1; }
.hero-grid { position: relative; z-index: 2; pointer-events: none; }
.hero-copy { max-width: 600px; display: grid; gap: 26px; pointer-events: auto; }
.hero-title { font-size: clamp(3.3rem, 7.6vw, 7.4rem); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.hero-title .line:nth-child(2) > span { transition-delay: 0.12s; }
.hero-title .line:nth-child(3) > span { transition-delay: 0.24s; }
.is-loaded .hero-title .line > span { transform: none; }
.hero-lead { max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 14px 34px; padding-top: 10px; border-top: 1px solid var(--line); }
.hero-facts div { display: grid; gap: 2px; padding-top: 14px; }
.hero-facts dt { font-family: var(--font-display); font-size: 2.1rem; line-height: 1; color: var(--navy); }
.hero-facts dd { font-size: 0.82rem; color: var(--muted); max-width: 16ch; line-height: 1.35; }
.hero-scroll { position: absolute; left: 50%; bottom: 26px; z-index: 3; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; text-decoration: none; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.hero-scroll i { width: 1px; height: 40px; background: linear-gradient(var(--navy), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* Etiquetas que siguen a la escultura */
.hotspots { position: absolute; inset: 0; pointer-events: none; }
.hotspot { position: absolute; left: 0; top: 0; opacity: 0; animation: hs-in 0.9s var(--ease) var(--d) forwards; transition: opacity 0.4s; }
.hotspot.is-hidden { opacity: 0 !important; }
.hotspot i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(79, 151, 179, 0.35), 0 0 0 10px rgba(79, 151, 179, 0.12); }
.hotspot i::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(79, 151, 179, 0.5); animation: ring 2.6s var(--ease) infinite; }
.hotspot span { position: absolute; top: -22px; display: grid; gap: 1px; padding: 9px 14px; border-radius: 14px; white-space: nowrap; background: var(--glass); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: var(--shadow-sm); }
.hotspot span::before { content: ''; position: absolute; top: 22px; width: 44px; height: 1px; background: rgba(39, 71, 125, 0.35); }
.hs-r span { left: 54px; } .hs-r span::before { right: 100%; }
.hs-l span { right: 54px; } .hs-l span::before { left: 100%; }
.hotspot b { font-size: 0.86rem; font-weight: 600; color: var(--navy); }
.hotspot small { font-size: 0.74rem; color: var(--muted); }
@keyframes hs-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ring { from { transform: scale(0.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

@media (max-width: 980px) {
  .hero { align-items: end; padding-top: calc(var(--header-h) + var(--promo-h)); }
  .hero-stage { left: 0; bottom: auto; height: 58svh; top: calc(var(--header-h) + var(--promo-h) - 10px); }
  .hero-copy { padding-top: 54svh; gap: 20px; }
  .hero-title { font-size: clamp(2.8rem, 11vw, 4.6rem); }
  .hotspot span { padding: 7px 11px; }
  .hs-l span { right: 30px; } .hs-r span { left: 30px; }
  .hotspot span::before { width: 20px; }
  .hero-scroll { display: none; }
}
@media (max-width: 560px) {
  .hotspot small { display: none; }
  .hotspot span { top: -16px; }
  .hotspot span::before { top: 16px; }
  .hs-l span { right: auto; left: 30px; } .hs-l span::before { left: auto; right: 100%; }
  .hotspot:nth-child(1), .hotspot:nth-child(3) { display: none; }
}
.no-3d .hero-stage { background: radial-gradient(closest-side, var(--glow-a), transparent); }

/* Selector de escultura */
.sculpt-switch { position: absolute; right: var(--gutter); top: calc(var(--header-h) + var(--promo-h) + 12px); z-index: 3; align-items: center; background: var(--glass); backdrop-filter: blur(10px); }
.sculpt-switch > span { padding: 0 10px 0 12px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.sculpt-switch button { min-height: 34px; padding: 0 13px; font-size: 0.82rem; }
@media (max-width: 980px) { .sculpt-switch { right: 12px; top: calc(var(--header-h) + var(--promo-h) + 4px); } .sculpt-switch > span { display: none; } .sculpt-switch button { min-height: 30px; padding: 0 10px; font-size: 0.74rem; white-space: nowrap; } }
.hotspots.is-loading { opacity: 0; transition: opacity 0.3s; }

/* ---------- Franja ---------- */
.ribbon { overflow: hidden; border-block: 1px solid var(--line); background: var(--pearl); }
.ribbon-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ribbon span { display: inline-flex; align-items: center; gap: 28px; padding: 18px 0 18px 28px; font-family: var(--font-display); font-size: 1.45rem; color: var(--navy); white-space: nowrap; }
.ribbon span::after { content: '✦'; font-size: 0.7rem; color: var(--powder); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Recorrido zona por zona ---------- */
.story { position: relative; height: calc(var(--steps, 6) * 95vh + 40vh); background: linear-gradient(var(--porcelain), var(--tint) 40%, var(--porcelain)); }
.story-sticky { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; overflow: hidden; }
.story-stage { position: relative; height: 100%; }
.story-compare { position: absolute; left: 50%; bottom: 74px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(10px); border: 1px solid var(--glass-border); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.story-compare i { width: 120px; height: 3px; border-radius: 3px; background: var(--powder-200); overflow: hidden; }
.story-compare b { display: block; height: 100%; background: var(--navy); transform-origin: left; transform: scaleX(0); }
.story-disclaimer { position: absolute; left: 0; right: 0; bottom: 44px; text-align: center; font-size: 0.74rem; color: var(--muted); }
.story-copy { position: relative; padding-right: var(--gutter); display: grid; gap: 22px; align-content: center; height: 100%; }
.story-steps { position: relative; min-height: 360px; }
.story-step { position: absolute; inset: 0 auto auto 0; display: grid; gap: 16px; align-content: start; max-width: 460px; opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); pointer-events: none; }
.story-step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.story-n { font-size: 0.8rem; font-weight: 700; color: var(--sea); letter-spacing: 0.2em; }
.story-step h2 { font-size: clamp(2.4rem, 4.6vw, 4rem); }
.story-step p { color: var(--muted); font-size: 1.05rem; }
.story-trats { display: flex; flex-wrap: wrap; gap: 8px; }
.story-trats .chip { cursor: pointer; }
.story-step .btn { justify-self: start; }
.story-dots { display: flex; gap: 8px; }
.story-dots i { width: 28px; height: 3px; border-radius: 3px; background: var(--powder-200); transition: background 0.4s; }
.story-dots i.is-active { background: var(--navy); }
@media (max-width: 980px) {
  .story-sticky { grid-template-columns: 1fr; grid-template-rows: 54% 46%; }
  .story-copy { padding: 0 var(--gutter) 24px; align-content: start; }
  .story-steps { min-height: 250px; }
  .story-step p { font-size: 0.98rem; }
  .story-compare { bottom: 34px; }
  .story-disclaimer { bottom: 10px; }
}
.story.is-static { height: auto; padding: 100px 0; }
.story.is-static .story-sticky { position: static; height: auto; grid-template-columns: 1fr; }
.story.is-static .story-stage, .story.is-static .story-dots { display: none; }
.story.is-static .story-copy { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; padding: 0; }
.story.is-static .story-steps { display: grid; gap: 40px; min-height: 0; }
.story.is-static .story-step { position: static; opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Secciones ---------- */
.section { position: relative; padding: clamp(84px, 11vw, 150px) 0; }
.section-head { display: grid; gap: 16px; max-width: 780px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2, .etapas-copy h2, .gift-form h2, .manifesto h2 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; max-width: none; }
.section-head-row .lead { max-width: 42ch; }
@media (max-width: 860px) { .section-head-row { flex-direction: column; align-items: start; } }
.section-soft { background: linear-gradient(var(--porcelain), var(--blush) 50%, var(--porcelain)); }

/* ---------- Catálogo ---------- */
.catalog-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-a); font-weight: 600; font-size: 0.88rem; color: var(--muted); transition: 0.25s; }
.tabs button span { font-size: 0.72rem; padding: 1px 7px; border-radius: 999px; background: var(--powder-100); color: var(--navy); }
.tabs button:hover { border-color: var(--line-strong); color: var(--ink); }
.tabs button[aria-selected='true'] { background: var(--navy); border-color: var(--navy); color: var(--on-accent); }
.tabs button[aria-selected='true'] span { background: rgba(255, 255, 255, 0.18); color: #fff; }
.search { position: relative; flex: 0 1 320px; }
.search svg { position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; min-height: 46px; padding: 0 16px 0 44px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); }
.search input:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 4px rgba(79, 151, 179, 0.15); }
@media (max-width: 720px) { .search { flex-basis: 100%; } .tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; } .tabs button { flex: none; } }

.grid-treat { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.treat {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px;
  border-radius: 26px; background: var(--pearl); border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s, opacity 0.9s var(--ease);
}
.treat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--powder-200); }
.treat.is-featured::before { content: ''; position: absolute; inset: 0 26px auto; height: 2px; background: linear-gradient(90deg, transparent, var(--powder), transparent); }
.treat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.treat-cat { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.treat h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.85rem; line-height: 1.05; }
.treat h3 small { font-family: var(--font-body); font-size: 0.85rem; color: var(--muted); }
.treat > p { color: var(--muted); font-size: 0.93rem; }
.treat-effect { display: flex; gap: 8px; align-items: center; font-size: 0.86rem; font-weight: 600; color: var(--navy) !important; }
.treat-effect svg { width: 14px; height: 14px; color: var(--sea); flex: none; }
.treat-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.treat-meta span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: var(--porcelain); font-size: 0.76rem; color: var(--muted); }
.treat-meta svg { width: 13px; height: 13px; }
.treat-foot { display: flex; align-items: end; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.treat-price small { display: block; font-size: 0.72rem; color: var(--muted); }
.treat-price b { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; line-height: 1; color: var(--navy); }
.treat-price .treat-tbd { font-family: var(--font-body); font-size: 0.86rem; font-weight: 600; color: var(--muted); }
.treat-actions { display: flex; gap: 6px; }
.catalog-note { margin-top: 22px; }
.empty { padding: 40px; text-align: center; color: var(--muted); grid-column: 1 / -1; }
.empty .link { border: 0; background: none; padding: 0; }

/* ---------- Etapas ---------- */
.section-etapas { background: linear-gradient(var(--porcelain), var(--tint)); }
.etapas { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.etapas-copy { display: grid; gap: 20px; }
.etapas-seg { justify-self: start; }
.etapas-seg button { min-width: 64px; font-size: 0.95rem; }
.etapa-card { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center; padding: clamp(26px, 4vw, 44px); border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--shadow); }
.etapa-meter { position: relative; width: 170px; aspect-ratio: 1; }
.etapa-meter svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.etapa-meter circle { fill: none; stroke-width: 7; }
.etapa-meter .track { stroke: var(--powder-100); }
.etapa-meter .fill { stroke: var(--navy); stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }
.etapa-meter div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.etapa-meter b { font-family: var(--font-display); font-weight: 400; font-size: 2.6rem; line-height: 1; color: var(--navy); }
.etapa-meter span { font-size: 0.7rem; color: var(--muted); max-width: 10ch; line-height: 1.3; }
.etapa-body { display: grid; gap: 12px; }
.etapa-age { font-family: var(--font-display); font-size: 1.1rem; font-style: italic; color: var(--sea); }
.etapa-body h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.05; }
.etapa-body > p { color: var(--muted); }
.etapa-list { display: grid; gap: 8px; margin-top: 6px; }
.etapa-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 0.92rem; }
@media (max-width: 920px) { .etapas { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .etapa-card { grid-template-columns: 1fr; justify-items: start; } .etapa-meter { width: 130px; } }

/* ---------- Tecnología ---------- */
.section-tech { overflow: hidden; }
.tech-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 360px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 10px max(var(--gutter), calc((100vw - var(--max)) / 2)) 30px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2));
}
.tech-rail::-webkit-scrollbar { display: none; }
.tech-card {
  position: relative; overflow: hidden; scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; padding: 28px;
  min-height: 460px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface), var(--powder-100) 65%, var(--blush));
  border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm);
}
.tech-card .tag { align-self: start; background: var(--surface); }
.tech-card h3 { font-size: 2.6rem; line-height: 1; margin-top: 110px; }
.tech-type { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sea); }
.tech-card > p:not(.tech-type) { color: var(--muted); font-size: 0.93rem; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tech-card .btn { align-self: start; }
.tech-orb { position: absolute; right: -40px; top: -40px; width: 220px; aspect-ratio: 1; }
.tech-orb i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(39, 71, 125, 0.18); animation: orb 14s linear infinite; }
.tech-orb i:nth-child(1) { background: radial-gradient(circle at 35% 35%, #fff, rgba(155, 201, 216, 0.6) 55%, transparent 70%); border: 0; inset: 40px; }
.tech-orb i:nth-child(2) { inset: 20px; border-style: dashed; animation-duration: 22s; }
.tech-orb i:nth-child(3) { animation-direction: reverse; border-color: rgba(197, 143, 124, 0.35); }
@keyframes orb { to { transform: rotate(360deg); } }
.tech-nav { display: flex; gap: 10px; justify-content: flex-end; }

/* ---------- Precio o seguridad ---------- */
.section-navy { background: radial-gradient(70% 80% at 85% 10%, rgba(79, 151, 179, 0.35), transparent 60%), var(--navy-ink); color: #fff; }
.section-navy .eyebrow { color: var(--powder); }
.section-navy .display em { color: var(--powder); }
.section-navy .lead { color: rgba(255, 255, 255, 0.72); }
.manifesto { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.manifesto > div { display: grid; gap: 20px; position: sticky; top: 120px; }
.pillars { display: grid; gap: 14px; }
.pillars li { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; padding: 26px; border-radius: 22px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.pillars span { grid-row: span 2; font-family: var(--font-display); font-size: 2.2rem; line-height: 1; color: var(--powder); }
.pillars h3 { font-size: 1.12rem; font-weight: 600; }
.pillars p { color: rgba(255, 255, 255, 0.68); font-size: 0.95rem; }
@media (max-width: 900px) { .manifesto { grid-template-columns: 1fr; } .manifesto > div { position: static; } }

/* ---------- Equipo ---------- */
.grid-team { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.doc { display: grid; border-radius: var(--radius); background: var(--pearl); border: 1px solid var(--line); overflow: hidden; }
.doc-portrait { position: relative; aspect-ratio: 5 / 4; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 30% 20%, var(--surface), transparent 50%), linear-gradient(150deg, var(--powder-200), var(--blush)); }
.doc-portrait::before { content: ''; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(39, 71, 125, 0.18); }
.doc-portrait span { font-family: var(--font-display); font-size: 5.4rem; color: var(--navy); letter-spacing: 0.02em; }
.doc-body { display: grid; gap: 10px; padding: 24px; }
.doc-body h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; line-height: 1.1; }
.doc-role { font-size: 0.82rem; font-weight: 600; color: var(--sea); }
.doc-body > p:not(.doc-role) { color: var(--muted); font-size: 0.93rem; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 4px; font-size: 0.88rem; }

/* ---------- Testimonios y mitos ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); }
.two-col .section-head h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
@media (max-width: 920px) { .two-col { grid-template-columns: 1fr; } }
.quotes { display: grid; gap: 14px; }
.quote { display: grid; gap: 18px; padding: 26px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm); }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: 1.45rem; line-height: 1.25; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption > span:last-child { display: grid; }
.quote small { color: var(--muted); font-size: 0.8rem; }
.quote small a { color: var(--navy); }
.avatar { display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; background: linear-gradient(140deg, var(--powder-200), var(--blush)); color: var(--navy); font-weight: 700; font-size: 0.8rem; }
.avatar svg { width: 18px; height: 18px; }
.avatar-sm { width: 34px; height: 34px; font-size: 0.72rem; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 14px; height: 14px; flex: none; }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 0; top: 6px; width: 14px; height: 1.6px; background: var(--navy); transition: transform 0.3s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* ---------- Gift card ---------- */
.section-gift { background: radial-gradient(50% 60% at 20% 40%, var(--powder-100), transparent 70%), var(--porcelain); }
.gift { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.gift-preview { display: grid; gap: 20px; justify-items: center; perspective: 1200px; padding: 20px 0; }
.giftcard {
  --rx: 0deg; --ry: -8deg; --gx: 30%;
  width: min(100%, 460px); aspect-ratio: 1.6; border-radius: 26px; transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform 0.6s var(--ease); box-shadow: 0 40px 80px -30px rgba(20, 35, 63, 0.6);
}
.giftcard-face {
  position: relative; height: 100%; padding: 28px 30px; border-radius: inherit; overflow: hidden; color: #fff; display: grid; grid-template-rows: auto 1fr auto auto;
  background: radial-gradient(120% 90% at var(--gx) 0%, rgba(155, 201, 216, 0.55), transparent 55%), linear-gradient(140deg, #2f5590, #14233f);
}
.giftcard-face::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.16) 48%, transparent 60%); background-size: 250% 100%; background-position: var(--gx) 0; mix-blend-mode: screen; }
.giftcard .wordmark { justify-self: start; align-items: start; }
.giftcard .wordmark b { font-size: 1.2rem; }
.giftcard-amount { align-self: end; font-family: var(--font-display); font-size: clamp(3rem, 7vw, 4.4rem); line-height: 1; }
.giftcard-what { font-size: 0.9rem; color: rgba(255, 255, 255, 0.75); }
.giftcard-names { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.2); font-size: 0.8rem; color: rgba(255, 255, 255, 0.7); }
.giftcard-names b { color: #fff; font-weight: 600; }
.gift-msg { font-family: var(--font-display); font-style: italic; font-size: 1.4rem; color: var(--navy); text-align: center; min-height: 1.6em; }
.gift-form { display: grid; gap: 18px; }
.gift-seg { justify-self: start; }
.gift-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gift-amount { min-height: 54px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); transition: 0.25s; }
.gift-amount[aria-pressed='true'] { background: var(--navy); border-color: var(--navy); color: var(--on-accent); }
@media (max-width: 920px) { .gift { grid-template-columns: 1fr; } }

/* ---------- Sedes ---------- */
.grid-sedes { display: grid; gap: 18px; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
@media (max-width: 760px) { .grid-sedes { grid-template-columns: 1fr; } }
.sede { display: grid; gap: 12px; padding: 18px 18px 24px; border-radius: var(--radius); background: var(--pearl); border: 1px solid var(--line); }
.sede-map { position: relative; height: 180px; border-radius: 18px; overflow: hidden; margin-bottom: 8px; background: linear-gradient(135deg, var(--powder-100), var(--blush)); }
.sede-map i { position: absolute; inset: -40px; background-image: linear-gradient(rgba(39, 71, 125, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(39, 71, 125, 0.08) 1px, transparent 1px); background-size: 26px 26px; transform: rotate(-12deg); }
.sede-map i::after { content: ''; position: absolute; left: 0; right: 0; top: 55%; height: 12px; background: var(--surface-a); transform: rotate(18deg); }
.sede-map b { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -38px 0 0 -23px; display: grid; place-items: center; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--navy); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.sede-map b svg { width: 22px; height: 22px; transform: rotate(45deg); }
.sede h3 { font-size: 2.2rem; padding-inline: 6px; }
.sede > p { color: var(--muted); padding-inline: 6px; }
.sede dl { display: flex; flex-wrap: wrap; gap: 8px 26px; padding-inline: 6px; }
.sede dt { font-size: 0.74rem; color: var(--muted); }
.sede dd { font-weight: 600; }
.sede-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-inline: 6px; margin-top: 4px; }

/* ---------- Cierre y pie ---------- */
.closing { padding: clamp(80px, 10vw, 130px) 0; background: radial-gradient(60% 90% at 80% 0%, rgba(155, 201, 216, 0.5), transparent 60%), linear-gradient(140deg, var(--brand-navy), var(--navy-ink)); color: #fff; }
.closing-inner { display: grid; gap: 30px; justify-items: start; }
.closing h2 { font-size: clamp(2.6rem, 6vw, 5.4rem); max-width: 16ch; }
.closing h2 em { color: var(--powder); }
.closing-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.site-footer { background: var(--navy-ink); color: rgba(255, 255, 255, 0.72); padding: 60px 0 30px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-grid .wordmark { align-items: start; }
.footer-claim { margin-top: 14px; letter-spacing: 0.18em; font-size: 0.74rem; text-transform: uppercase; }
.footer-grid nav { display: grid; gap: 8px; align-content: start; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-hours b { color: #fff; display: block; margin-bottom: 6px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-top: 22px; font-size: 0.8rem; }
.footer-legal a { margin-left: auto; color: var(--powder); }
.footer-legal .credits { flex-basis: 100%; margin: 0; font-size: 0.74rem; color: rgba(255, 255, 255, 0.5); }
.footer-legal .credits a { margin: 0; color: rgba(255, 255, 255, 0.7); }
:root[data-theme-resolved='dark'] .site-footer, :root[data-theme-resolved='dark'] .section-navy { background-color: #0a101b; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } .footer-legal a { margin-left: 0; } }

/* ---------- Cajón para agendar ---------- */
.bk-progress { height: 2px; background: var(--line); }
.bk-progress i { display: block; height: 100%; width: 25%; background: var(--navy); transition: width 0.5s var(--ease); }
.bk-intro { color: var(--muted); margin-bottom: 18px; }
.bk-label { display: flex; align-items: center; gap: 8px; margin: 22px 0 10px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.bk-label:first-child { margin-top: 0; }
.bk-label svg { width: 16px; height: 16px; color: var(--sea); }
.bk-selected { display: flex; flex-wrap: wrap; gap: 6px; }
.bk-selected .chip svg { width: 14px; height: 14px; }
.bk-selected button { cursor: pointer; }
.bk-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bk-opt { display: grid; gap: 2px; text-align: left; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); transition: 0.2s; }
.bk-opt b { font-size: 0.9rem; font-weight: 600; }
.bk-opt small { font-size: 0.76rem; color: var(--muted); }
.bk-opt[aria-pressed='true'] { border-color: var(--navy); background: var(--powder-100); box-shadow: inset 0 0 0 1px var(--navy); }
.bk-more { margin-top: 16px; }
.bk-plan { padding: 16px; border-radius: 16px; background: var(--powder-100); margin-bottom: 6px; }
.bk-plan .bk-label { margin: 0 0 8px; color: var(--navy); }
.bk-plan ul { display: grid; gap: 4px; font-size: 0.9rem; }
.bk-sedes, .bk-docs { display: grid; gap: 8px; }
.bk-sede { display: flex; gap: 14px; text-align: left; padding: 16px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--surface); transition: 0.2s; }
.bk-sede span:last-child { display: grid; gap: 2px; }
.bk-sede small { color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.bk-sede-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--powder-100); color: var(--navy); }
.bk-sede-icon svg { width: 20px; height: 20px; }
.bk-docs { grid-template-columns: 1fr 1fr; }
.bk-doc { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); text-align: left; font-size: 0.88rem; }
.bk-sede[aria-pressed='true'], .bk-doc[aria-pressed='true'] { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: var(--powder-100); }
.bk-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.bk-day { display: grid; justify-items: center; flex: none; width: 62px; padding: 10px 0; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--surface); scroll-snap-align: center; }
.bk-day b { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; line-height: 1.1; }
.bk-day small { font-size: 0.7rem; color: var(--muted); text-transform: capitalize; }
.bk-day[aria-pressed='true'] { background: var(--navy); border-color: var(--navy); color: var(--on-accent); }
.bk-day[aria-pressed='true'] small { color: rgba(255, 255, 255, 0.75); }
.bk-day[disabled] { opacity: 0.4; }
.bk-slot-group { display: grid; grid-template-columns: 64px 1fr; gap: 10px; margin-bottom: 10px; align-items: start; }
.bk-slot-group > span { font-size: 0.8rem; color: var(--muted); padding-top: 10px; }
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.bk-slot { min-height: 40px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 600; font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.bk-slot[aria-pressed='true'] { background: var(--navy); border-color: var(--navy); color: var(--on-accent); }
.bk-slot[disabled] { opacity: 0.35; text-decoration: line-through; }
.bk-summary { display: grid; gap: 10px; padding: 16px; margin-bottom: 18px; border-radius: 16px; background: var(--powder-100); }
.bk-summary > div { display: flex; gap: 10px; align-items: start; font-size: 0.92rem; }
.bk-summary span { color: var(--navy); }
.bk-summary svg { width: 18px; height: 18px; margin-top: 2px; }
.bk-summary p::first-letter { text-transform: uppercase; }
.bk-done { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 6px 0 22px; }
.bk-done-mark { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--navy); color: var(--on-accent); animation: pop 0.7s var(--ease); }
.bk-done-mark svg { width: 34px; height: 34px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.6s 0.3s var(--ease) forwards; }
.bk-code { font-size: 0.86rem; color: var(--muted); }
.bk-code b { font-size: 1.1rem; color: var(--navy); letter-spacing: 0.06em; }
.bk-tips { margin-top: 18px; }
.bk-tips ul { display: grid; gap: 6px; padding-left: 18px; list-style: disc; color: var(--muted); font-size: 0.9rem; }
.bk-stepn { margin-right: auto; }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (max-width: 420px) { .bk-options, .bk-docs { grid-template-columns: 1fr; } }
