/* Lúmina · accesos, primera visita y cierre. La secuencia y sus tiempos se conservan.
   Regla editorial: títulos, nunca numeración visible de secciones o tratamientos. */
.eyebrow { font: 600 .75rem/1.3 var(--text); letter-spacing: .15em; }
.round-arrow { display: inline-grid; place-items: center; flex: none; width: 62px; height: 62px; border: 1.5px solid currentColor; border-radius: 50%; font: 400 35px/1 var(--text); }
.card h3 { margin-top: 0; }

/* Los mensajes ahora son accesos editoriales sobre el exterior. */
.chapter__msgs { width: min(590px, 47vw); }
.msg { gap: 24px; padding: 12px 0 24px; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; color: #080F1B; text-decoration: none; text-wrap: initial; }
.msg::before { content: ""; position: absolute; z-index: -1; inset: -90px -130px -100px -130px; background: radial-gradient(ellipse closest-side at 42% 46%, rgba(255,255,255,.96), rgba(255,255,255,.8) 45%, transparent 100%); pointer-events: none; }
.msg__title { max-width: 10ch; font: 800 clamp(2.5rem, 4.5vw, 4.75rem)/.99 var(--display); letter-spacing: -.055em; }
.msg__action { display: flex; align-items: center; gap: 16px; font: 600 .9rem/1.3 var(--text); letter-spacing: -.01em; }
.msg .round-arrow { background: #fff; color: #080F1B; transition: background .2s, color .2s, transform .2s; }
.msg:hover .round-arrow { background: var(--azul); border-color: var(--azul); color: #fff; transform: rotate(45deg); }
.journey-on .msg { pointer-events: none; }
.journey-on .msg.is-actionable { pointer-events: auto; }

/* Tarjetas con una acción visible, sin botones anidados dentro de enlaces. */
.access__card { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 28px; width: min(410px, 100%); border-radius: 28px; background: rgba(255,255,255,.97); border: 1px solid rgba(255,255,255,.8); box-shadow: 0 24px 64px -24px rgba(8,24,55,.45); backdrop-filter: none; -webkit-backdrop-filter: none; }
.access__card::before { display: none; }
.access__icon { grid-row: auto; width: 48px; height: 48px; border-radius: 50%; background: var(--celeste); --icon: var(--azul); }
.access__title { font-size: clamp(1.5rem, 2.15vw, 2rem); font-weight: 800; line-height: 1.05; letter-spacing: -.045em; }
.access__text { max-width: 30ch; font-size: .94rem; line-height: 1.5; }
.access__cta { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 12px 18px; border-radius: 999px; margin-top: 4px; background: var(--azul); color: #fff; font: 600 .9rem/1.2 var(--text); }
.access__cta > span { font-size: 24px; line-height: .8; transition: transform .2s; }
.access__card:hover .access__cta > span { transform: translate(3px,-3px); }
.access__card--a { color: #fff; background: #175CFF; border-color: #175CFF; }
.access__card--a .access__text, .access__card--c .access__text { color: rgba(255,255,255,.92); }
.access__card--a .access__icon { background: rgba(255,255,255,.16); --icon: #fff; }
.access__card--a .access__cta, .access__card--c .access__cta { background: #fff; color: #10264B; }
.access__card--c { background: #10264B; color: #fff; border-color: #10264B; }
.access__card--c .access__icon { background: rgba(255,255,255,.12); --icon: #fff; }

.urgent-access { position: relative; display: flex; align-items: center; gap: 13px; width: min(410px, 100%); padding: 16px 20px; border-radius: 20px; background: #fff; color: #10264B; box-shadow: 0 16px 36px -20px rgba(8,24,55,.5); text-decoration: none; }
.urgent-access__icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; color: var(--azul); background: var(--celeste); border-radius: 50%; }
.urgent-access__icon svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.urgent-access strong { display: block; font: 800 .95rem/1.2 var(--display); }
.urgent-access strong + span { display: block; font-size: .75rem; margin-top: 4px; color: var(--tinta-suave); }
.urgent-access__arrow { margin-left: auto; font-size: 28px; }
.urgent-access:hover { background: var(--celeste); }
.journey-on .urgent-access { opacity: 0; pointer-events: none; }
.journey-on .urgent-access.is-on { pointer-events: auto; }
/* La foto conserva fuera del encuadre el margen que usa el paneo existente. */
.journey-on .rec-zoom picture { position: absolute; inset: 0; display: block; }
.journey-on .chapter--reception .chapter__img { position: absolute; left: 50%; width: max(100%, calc(var(--stage-h) * 16 / 9)); max-width: none; height: 100%; transform: translateX(-50%); }

@media (min-width: 981px) {
  /* Una columna a la izquierda. El flujo reserva sitio para cada tarjeta
     mientras main.js conserva sus entradas y salidas originales. */
  .journey-on .chapter--reception .rec-panel { position: absolute; inset: clamp(12px, 2.4vh, 28px) auto clamp(12px, 2.4vh, 28px) var(--left); width: min(440px, 39vw); display: flex; flex-direction: column; justify-content: center; gap: 12px; }
  .journey-on .access { position: static; inset: auto; display: grid; grid-template-columns: 1fr; gap: 12px; width: 100%; flex: none; }
  .journey-on .access__card { position: relative; inset: auto; width: 100%; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; row-gap: 7px; padding: 18px; border-radius: 24px; }
  .journey-on .access__icon { grid-column: 1; grid-row: 1; width: 40px; height: 40px; }
  .journey-on .access__title { grid-column: 2; align-self: center; font-size: clamp(1.18rem, 1.55vw, 1.45rem); line-height: 1.1; }
  .journey-on .access__text { grid-column: 2; max-width: none; font-size: .875rem; line-height: 1.4; }
  .journey-on .access__cta { grid-column: 1 / -1; min-height: 44px; padding: 10px 16px; font-size: .875rem; }
  .journey-on .urgent-access { position: relative; inset: auto; width: 100%; min-height: 64px; padding: 11px 18px; flex: none; }
  .journey-on .rec-panel .space-copy { position: absolute; left: 0; right: auto; top: 0; bottom: auto; width: 100%; }
  html:not(.journey-on) .chapter--reception .rec-panel { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding: 56px var(--gutter); }
  html:not(.journey-on) .chapter--reception .access { position: static; display: grid; grid-template-columns: 1fr; width: min(440px, 100%); }
  html:not(.journey-on) .chapter--reception .access__card { width: 100%; }
  html:not(.journey-on) .chapter--reception .space-copy { position: static; width: min(560px, 100%); }
}

@media (min-width: 981px) and (max-height: 760px) {
  .journey-on .chapter--reception .rec-panel { gap: 10px; }
  .journey-on .access { gap: 9px; }
  .journey-on .access__card { grid-template-columns: 32px minmax(0, 1fr); padding: 12px 16px; row-gap: 6px; }
  .journey-on .access__icon { width: 32px; height: 32px; }
  .journey-on .access__icon svg { width: 22px; height: 22px; }
  .journey-on .access__title { font-size: 1.25rem; }
  .journey-on .access__text { font-size: .82rem; line-height: 1.35; }
  .journey-on .access__cta { margin-top: 2px; }
  .journey-on .urgent-access { min-height: 60px; padding: 9px 16px; }
}
@media (min-width: 981px) and (max-height: 650px) {
  .journey-on .access__text { display: none; }
}
@media (min-width: 981px) and (max-height: 520px) {
  .journey-on .chapter--reception .rec-panel { top: 8px; bottom: 8px; gap: 8px; }
  .journey-on .access { gap: 8px; }
  .journey-on .access__card { padding: 6px 14px; grid-template-columns: 24px minmax(0, 1fr); row-gap: 5px; }
  .journey-on .access__icon { width: 24px; height: 24px; }
  .journey-on .access__title { font-size: 1.05rem; }
  .journey-on .access__cta { min-height: 36px; padding: 8px 14px; margin-top: 0; }
  .journey-on .urgent-access { min-height: 48px; padding: 6px 14px; }
  .journey-on .urgent-access__icon { width: 32px; height: 32px; }
  .journey-on .urgent-access strong { font-size: .875rem; }
  .journey-on .urgent-access strong + span { font-size: .7rem; margin-top: 2px; }
}

/* En móvil, la fachada y el interior llenan el escenario. La pista no cambia. */
@media (max-width: 980px) {
  .chapter__msgs { width: auto; }
  .msg { position: relative; background: none; padding: 0; }
  .msg__title { font-size: clamp(2.3rem, 10.8vw, 4.25rem); }
  .round-arrow { width: 54px; height: 54px; font-size: 30px; }
  .journey-on .chapter--facade .chapter__media,
  .journey-on .chapter--reception .chapter__media { position: absolute; inset: 0; height: 100%; z-index: -2; }
  .journey-on .chapter--facade::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.38) 30%, transparent 68%); pointer-events: none; }
  .journey-on .chapter__msgs { position: absolute; inset: 6% var(--gutter) auto; padding: 0; display: grid; align-content: start; }
  .journey-on .msg::before { display: none; }
  .journey-on .rec-panel { position: absolute; inset: 0; padding: 22px var(--gutter) 104px; display: grid; align-content: end; }
  .journey-on .access { display: grid; margin: 0; }
  .journey-on .access__card { width: 100%; gap: 12px; padding: 24px; }
  .access__title { font-size: clamp(1.65rem, 7.5vw, 2.5rem); }
  .access__text { font-size: .9rem; }
  .journey-on .urgent-access { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 20px; width: auto; min-height: 64px; padding: 12px 16px; }
  .journey-on .rec-panel > .urgent-access { grid-area: auto; }
  .journey-on .space-copy { padding: 24px; background: rgba(255,255,255,.97); border-radius: 24px; }
  .journey-on .space-copy h2 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .journey-on .space-copy p { font-size: .94rem; }
}
@media (max-width: 980px) and (max-height: 700px) {
  .journey-on .rec-panel { padding-bottom: 88px; }
  .journey-on .access__card { padding: 20px; gap: 9px; }
  .access__icon { width: 38px; height: 38px; }
  .access__title { font-size: 1.65rem; }
  .access__text { font-size: .85rem; }
  .journey-on .urgent-access { bottom: 12px; min-height: 60px; }
  .msg__title { font-size: 2.25rem; }
}

/* Primera visita: lectura secuencial; todo permanece apilado sin movimiento. */
.visit { padding: 0; background: #EDF7FF; }
.visit__stage { padding: 88px 0; }
.visit__layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 7vw, 100px); }
.visit__intro > .eyebrow { color: var(--azul); }
.visit h2 { margin-top: 22px; font-size: clamp(2.7rem, 4.6vw, 4.65rem); line-height: 1.02; letter-spacing: -.055em; }
.visit h2 em { color: var(--azul); font-style: normal; }
.visit__intro > p { max-width: 30ch; margin-top: 24px; color: var(--tinta-suave); }
.visit__nav { display: grid; margin-top: 36px; max-width: 370px; }
.visit__nav a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; border-bottom: 1px solid #B7CDE2; font: 700 1.05rem/1.2 var(--display); text-decoration: none; }
.visit__nav a span { font-size: 25px; }
.visit__nav a[aria-current="step"] { color: var(--azul); border-color: var(--azul); }
.visit__steps { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 0; padding: 0; }
.visit__steps::before, .visit__step::after { display: none !important; }
.visit__step { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding: clamp(28px, 4vw, 56px); min-height: 460px; border-radius: 40px; background: #fff; box-shadow: 0 28px 60px -36px rgba(16,38,75,.18); }
.visit__symbol { display: block; width: 88px; height: 88px; margin-bottom: 42px; color: var(--azul); }
.visit__symbol svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.visit__step .eyebrow { color: var(--tinta-suave); font-size: .65rem; }
.visit__step h3 { margin: 16px 0 0; font: 800 clamp(2rem, 3vw, 3rem)/1.05 var(--display); letter-spacing: -.045em; }
.visit__step p { margin: 20px 0 0; max-width: 30ch; }
.visit__step:nth-child(2) { background: #10264B; color: #fff; }
.visit__step:nth-child(2) p, .visit__step:nth-child(2) .eyebrow, .visit__step:nth-child(2) .visit__symbol { color: #fff; }
.visit__step:last-child { background: #175CFF; color: #fff; }
.visit__step:last-child p, .visit__step:last-child .eyebrow, .visit__step:last-child .visit__symbol { color: #fff; }
.visit.is-enhanced { --visit-stage: calc(100svh - var(--header-h)); --visit-track: 155svh; height: calc(var(--visit-stage) + var(--visit-track)); }
.visit.is-enhanced .visit__stage { position: sticky; top: var(--header-h); height: var(--visit-stage); display: grid; align-items: center; padding: 30px 0; }
.visit.is-enhanced .visit__layout { width: 100%; }
.visit.is-enhanced .visit__steps { display: grid; }
.visit.is-enhanced .visit__step { grid-area: 1 / 1; opacity: var(--step-opacity, 0); transform: translate3d(0, var(--step-y, 24px), 0) scale(var(--step-scale, .97)); pointer-events: none; }
.visit.is-enhanced .visit__step:first-child { --step-opacity: 1; --step-y: 0px; --step-scale: 1; }

/* Cierre fotográfico; conserva el revelado de texto, añade profundidad con el scroll. */
.closing { min-height: min(820px, 95svh); padding: clamp(84px, 9vw, 130px) 0; display: flex; align-items: center; background: #DFECF5; color: #10264B; }
.closing__photo { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.closing__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.closing::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(237,247,255,.98), rgba(237,247,255,.85) 27%, rgba(237,247,255,.2) 54%, transparent 68%); }
.closing__inner { width: 100%; }
.closing h2 { margin-top: 28px; max-width: 12ch; font-size: clamp(3.5rem, 6.5vw, 6.6rem); line-height: .98; letter-spacing: -.06em; }
.closing__line--accent { color: var(--azul); }
.closing__inner > p:not(.closing__note) { max-width: 29ch; color: #294162; }
.closing .closing__cta { display: inline-flex; gap: 24px; padding: 8px 8px 8px 26px; color: #fff; }
.closing__cta .round-arrow { width: 48px; height: 48px; border: 0; background: #fff; color: var(--azul); font-size: 26px; }
.closing :focus-visible { outline-color: var(--azul); }
.site-footer { padding-top: 30px; }
@media (prefers-reduced-motion: no-preference) {
  .motion .closing__photo img { transform: scale(calc(1.08 - var(--cp, 0) * .08)); }
  .motion .closing__line:nth-child(3) > span { transition-delay: .26s; }
}
@media (max-width: 980px) {
  .visit__layout { grid-template-columns: 1fr; gap: 28px; }
  .visit__stage { padding: 64px 0; }
  .visit h2 { font-size: clamp(2.3rem, 8.8vw, 3.5rem); margin-top: 14px; }
  .visit__intro > p { margin-top: 16px; }
  .visit__nav { display: flex; gap: 14px; margin-top: 22px; max-width: none; }
  .visit__nav a { flex: 1; padding: 10px 0 12px; font-size: .78rem; }
  .visit__nav a span { display: none; }
  .visit__step { min-height: 310px; padding: 28px; border-radius: 28px; }
  .visit__symbol { width: 56px; height: 56px; margin-bottom: 24px; }
  .visit__step h3 { font-size: 1.85rem; }
  .visit__step p { font-size: .95rem; margin-top: 14px; }
  .visit.is-enhanced { --visit-track: 175svh; }
  .visit.is-enhanced .visit__stage { padding: 28px 0; }
  .closing { min-height: 830px; align-items: end; padding: 390px 0 60px; background: #10264B; }
  .closing__photo { bottom: auto; height: 620px; mask-image: linear-gradient(#000 70%, transparent); -webkit-mask-image: linear-gradient(#000 70%, transparent); }
  .closing__photo img { object-position: 84% 35%; }
  .closing::before { background: linear-gradient(0deg, #10264B 3%, rgba(16,38,75,.96) 23%, rgba(16,38,75,.55) 48%, transparent 76%); }
  .closing h2 { color: #fff; font-size: clamp(3rem, 12vw, 5.2rem); max-width: 14ch; }
  .closing__line--accent { color: #A5CEFF; }
  .closing__inner > p:not(.closing__note) { color: #fff; }
  .closing .closing__cta { width: auto; min-height: 64px; margin-top: 28px; }
  .closing :focus-visible { outline-color: #fff; }
}
@media (max-height: 740px) {
  .visit.is-enhanced .visit__step { min-height: 350px; }
  .visit.is-enhanced .visit__symbol { width: 56px; height: 56px; margin-bottom: 24px; }
}
@media (max-width: 980px) and (max-height: 740px) {
  .visit.is-enhanced .visit__layout { gap: 18px; }
  .visit.is-enhanced .visit__intro > p { display: none; }
  .visit.is-enhanced h2 { font-size: 2rem; }
  .visit.is-enhanced .visit__stage { padding: 16px 0; }
  .visit.is-enhanced .visit__nav { margin-top: 14px; }
  .visit.is-enhanced .visit__step { min-height: 268px; padding: 24px; }
  .visit.is-enhanced .visit__symbol { width: 40px; height: 40px; margin-bottom: 14px; }
  .visit.is-enhanced .visit__step h3 { font-size: 1.6rem; }
  .visit.is-enhanced .visit__step p { font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
  .msg .round-arrow, .access__cta > span { transition: none; }
  .closing__photo img { transform: none; }
}
