/* Doctor Online MX v2 — App médica (páginas gemelas: /app-medica-doctor y /app-medica-clinica) */

/* ---------- Hero ---------- */
.app-hero .s-hero__bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(0, 85, 255, .16) 1px, transparent 1.4px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(48% 62% at 78% 46%, #000, transparent 72%); mask-image: radial-gradient(48% 62% at 78% 46%, #000, transparent 72%); }
/* La segunda línea del H1 va en cielo: el azul eléctrico sobre la noche del hero no llega al contraste (3.5:1) */
.app-h1__sub { margin-top: .22em; font-size: .56em; font-weight: 560; letter-spacing: -.015em; line-height: 1.08; color: var(--sky); }
.price__from { align-self: center; margin-right: .1rem; font-size: var(--fs-small); font-weight: 620; color: var(--ink-2); }
.aud-switch { view-transition-name: aud-switch; }

/* Escenario del celular */
.app-stage { width: 100%; padding: .5rem 0 3rem; isolation: isolate; }
.app-stage__halo { position: absolute; z-index: -1; left: 50%; top: 46%; width: min(118%, 640px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 85, 255, .3), rgba(0, 85, 255, .1) 55%, rgba(0, 85, 255, 0)); }
.app-stage__halo::before, .app-stage__halo::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(0, 85, 255, .16); }
.app-stage__halo::before { inset: 14%; }
.app-stage__halo::after { inset: 27%; border-color: rgba(0, 85, 255, .1); }
.app-tilt { position: relative; perspective: 1500px; animation: app-tilt-in 1.5s var(--ease-out) .15s both; }
@keyframes app-tilt-in { from { opacity: 0; transform: translateY(46px) scale(.94); } }
.app-phone { --pw: clamp(220px, 60vw, 292px); transform: rotateY(calc(-10deg + var(--tx, 0) * 16deg)) rotateX(calc(4deg - var(--ty, 0) * 10deg)) rotateZ(.5deg); transform-style: preserve-3d; transition: transform 1.1s var(--ease-out); view-transition-name: app-phone; }
.app-stage__shadow { width: 62%; height: 30px; margin-top: -8px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 38, 128, .3), rgba(0, 38, 128, 0)); filter: blur(6px); }
.app-stage .ex-label { left: 50%; bottom: .4rem; transform: translateX(-50%); white-space: nowrap; }

/* Tarjetas flotantes: vidrio oscuro, como las .float-card del resto del sistema sobre el hero nocturno */
.app-float { position: absolute; z-index: 3; display: none; align-items: center; gap: .65rem; padding: .55rem .95rem .55rem .55rem; border-radius: 16px; background: rgba(6, 16, 46, .62); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 20px 50px -20px rgba(0, 0, 0, .6); animation: enter-in 1s var(--ease-out) both; animation-delay: var(--d, 0s); translate: calc(var(--tx, 0) * -18px) calc(var(--ty, 0) * -12px); transition: translate 1.1s var(--ease-out); }
.app-float .i { width: 2.25rem; height: 2.25rem; padding: .5rem; border-radius: 12px; background: var(--electric); color: #fff; box-shadow: 0 8px 16px -8px rgba(0, 85, 255, .9); }
.app-float span { display: grid; line-height: 1.25; }
.app-float b { font-size: .92rem; font-weight: 650; color: #fff; }
.app-float em { font-style: normal; font-size: var(--fs-xs); color: rgba(255, 255, 255, .7); }
.app-float--a { left: 0; top: 58%; }
.app-float--b { right: 0; top: 20%; }
.app-float--c { left: 2%; top: 30%; }
@media (min-width: 560px) { .app-float { display: flex; } }
@media (min-width: 1024px) { .app-float--a { left: -6%; } .app-float--b { right: -9%; } .app-float--c { left: -8%; } }

/* ---------- La app ficticia (DOM) ---------- */
.app-ui { position: absolute; inset: 0; display: flex; flex-direction: column; gap: .62em; padding: calc(var(--pw) * .15) .85em 0; background: linear-gradient(180deg, #EEF4FE, #fff 34%); font-size: calc(var(--pw) * .042); line-height: 1.3; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-stretch: 100%; letter-spacing: -.01em; text-align: left; }
.app-ui .i { width: 1.2em; height: 1.2em; }
.app-ui__head { display: flex; align-items: center; gap: .6em; }
.app-ui__head img { width: 2.6em; height: 2.6em; border-radius: 50%; object-fit: cover; object-position: 50% 18%; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--electric); }
.app-ui__head > span:not(.app-ui__bell):not(.app-ui__logo) { display: grid; flex: 1; min-width: 0; }
.app-ui__head em { font-style: normal; font-size: .8em; color: var(--ink-3); }
.app-ui__head b { font-size: 1.1em; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-ui__bell { position: relative; flex: none; width: 2.3em; height: 2.3em; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 1px #E2E8F3; color: var(--ink-2); }
.app-ui__bell::after { content: ""; position: absolute; top: .45em; right: .5em; width: .45em; height: .45em; border-radius: 50%; background: var(--electric); box-shadow: 0 0 0 2px #fff; }
.app-ui__logo { flex: none; width: 2.6em; height: 2.6em; border-radius: .8em; display: grid; place-items: center; background: linear-gradient(145deg, var(--electric), #002E99); color: #fff; font-weight: 750; font-size: .95em; letter-spacing: -.02em; box-shadow: 0 .5em 1em -.5em rgba(0, 85, 255, .9); }

.app-ui__week { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .35em; }
.app-ui__week li { display: grid; justify-items: center; gap: .05em; padding: .35em 0 .4em; border-radius: .8em; }
.app-ui__week em { font-style: normal; font-size: .66em; color: var(--ink-3); }
.app-ui__week b { font-size: .95em; font-weight: 700; font-variant-numeric: tabular-nums; }
.app-ui__week .on { background: var(--ink); color: #fff; box-shadow: 0 .5em 1em -.6em rgba(6, 20, 51, .9); }
.app-ui__week .on em { color: rgba(255, 255, 255, .7); }
.app-ui__kpis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45em; }
.app-ui__kpis li { display: grid; gap: .1em; padding: .6em .65em; border-radius: .9em; background: #fff; box-shadow: 0 0 0 1px #E2E8F3; }
.app-ui__kpis li:first-child { background: var(--electric); color: #fff; box-shadow: 0 .6em 1.2em -.6em rgba(0, 85, 255, .85); }
.app-ui__kpis b { font-size: 1.42em; font-weight: 750; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.app-ui__kpis span { font-size: .72em; color: var(--ink-3); white-space: nowrap; }
.app-ui__kpis li:first-child span { color: rgba(255, 255, 255, .85); }

.app-ui__sec { display: flex; justify-content: space-between; align-items: baseline; margin-top: .1em; }
.app-ui__sec b { font-size: .9em; font-weight: 700; }
.app-ui__sec span { font-size: .74em; font-weight: 650; color: var(--electric); }

.app-ui__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .42em; }
.app-ui__list li { display: grid; grid-template-columns: 2.9em minmax(0, 1fr) auto; gap: .45em; align-items: center; padding: .55em .6em; border-radius: .9em; background: #fff; box-shadow: 0 0 0 1px #E2E8F3; font-size: .84em; animation: app-row .7s var(--ease-out) both; animation-delay: calc(1.05s + var(--i, 0) * .14s); }
@keyframes app-row { from { opacity: 0; transform: translateY(.8em); } }
.app-ui__list time { font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.app-ui__list span { display: grid; min-width: 0; }
.app-ui__list b { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-ui__list em { font-style: normal; font-size: .88em; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-ui__list i { font-style: normal; font-size: .76em; font-weight: 650; padding: .25em .6em; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.app-ui__list i.ok { background: rgba(62, 207, 191, .2); color: var(--mint-ink); }
.app-ui__list i.new { background: var(--electric-050); color: var(--electric-600); }

.app-ui__note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .25em .65em; align-items: center; padding: .65em .75em; border-radius: .9em; background: var(--night-2); color: #fff; font-size: .82em; animation: app-row .7s var(--ease-out) 1.5s both; }
.app-ui__note > .i { grid-row: span 3; width: 2.2em; height: 2.2em; padding: .5em; border-radius: .65em; background: rgba(143, 182, 255, .18); color: var(--sky); }
.app-ui__note b { font-weight: 650; }
.app-ui__note em { font-style: normal; font-size: .9em; color: rgba(255, 255, 255, .72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-ui__wave { display: flex; gap: .2em; align-items: center; height: 1.15em; }
.app-ui__wave i { width: .22em; height: calc(var(--h) * 1.1em); border-radius: 1em; background: var(--sky); transform-origin: center; animation: app-wave 1.1s var(--ease-in-out) both; animation-delay: calc(1.8s + var(--k) * .05s); }
@keyframes app-wave { 0% { transform: scaleY(.15); } 55% { transform: scaleY(1.25); } 100% { transform: none; } }

.app-ui__foot { margin-top: auto; display: grid; gap: .55em; }
.app-ui__agent { display: flex; align-items: center; gap: .55em; padding: .45em .45em .45em .8em; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px #E2E8F3, 0 .8em 1.6em -1em rgba(11, 29, 59, .35); font-size: .8em; }
.app-ui__agent > .i { flex: none; color: var(--electric); }
.app-ui__say { flex: 1; min-width: 0; min-height: 2.5em; display: flex; align-items: center; line-height: 1.25; color: var(--ink); }
.app-ui__agent.is-typing .app-ui__say::after { content: ""; display: inline-block; width: 1.5px; height: 1.1em; margin-left: 2px; background: var(--electric); animation: app-caret 1s steps(1) infinite; }
@keyframes app-caret { 50% { opacity: 0; } }
.app-ui__mic { flex: none; width: 2.4em; height: 2.4em; border-radius: 50%; display: grid; place-items: center; background: var(--electric); color: #fff; }
.app-ui__mic .i { width: 1.05em; height: 1.05em; }
.is-sending .app-ui__mic { animation: app-mic .7s var(--ease-out); }
@keyframes app-mic { 0% { box-shadow: 0 0 0 0 rgba(0, 85, 255, .5); } 45% { transform: scale(.9); } 100% { box-shadow: 0 0 0 .8em rgba(0, 85, 255, 0); } }
.app-ui__tabs { display: flex; justify-content: space-around; margin: 0 -.85em; padding: .5em .5em calc(var(--pw) * .07); background: #fff; box-shadow: 0 -1px 0 #E2E8F3; }
.app-ui__tabs span { display: grid; justify-items: center; gap: .15em; font-size: .66em; font-weight: 600; color: var(--ink-3); }
.app-ui__tabs .i { width: 1.85em; height: 1.85em; }
.app-ui__tabs .on { color: var(--electric); }

.app-ui__toast { position: absolute; z-index: 20; top: calc(var(--pw) * .13); left: .6em; right: .6em; display: flex; align-items: center; gap: .65em; padding: .7em .85em; border-radius: 1.1em; background: rgba(255, 255, 255, .93); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 .8em 2em -.6em rgba(11, 29, 59, .38), 0 0 0 1px rgba(11, 29, 59, .06); transform: translateY(-170%); opacity: 0; transition: transform .8s var(--ease-out), opacity .4s; }
.app-ui__toast .i { flex: none; width: 2em; height: 2em; padding: .45em; border-radius: .6em; background: var(--mint); color: #fff; }
.app-ui__toast span { display: grid; font-size: .8em; }
.app-ui__toast b { font-weight: 650; }
.app-ui__toast em { font-style: normal; color: var(--ink-2); }
.app-ui__toast.is-shown { transform: none; opacity: 1; }

/* Clínica: agenda multi-doctor */
.app-ui__chips { display: flex; gap: .35em; overflow: hidden; }
.app-ui__chips span { flex: none; padding: .35em .75em; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px #E2E8F3; font-size: .72em; font-weight: 650; color: var(--ink-2); white-space: nowrap; transition: background-color .4s var(--ease-out), color .4s var(--ease-out); }
.app-ui__chips span.on { background: var(--ink); color: #fff; box-shadow: none; }
.app-cal { display: grid; grid-template-columns: 2.3em repeat(3, minmax(0, 1fr)); grid-template-rows: auto repeat(4, 4.85em); gap: .35em; padding: .6em .5em .55em; border-radius: 1em; background: #fff; box-shadow: 0 0 0 1px #E2E8F3, 0 1em 2em -1.6em rgba(11, 29, 59, .35); font-size: .9em; }
.app-cal__doc { display: grid; justify-items: center; gap: .12em; text-align: center; min-width: 0; transition: opacity .5s var(--ease-out); }
.app-cal__doc img, .app-cal__doc i { width: 2.3em; height: 2.3em; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.app-cal__doc i { display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: .9em; background: #DCE8FF; color: #2A4E8F; }
.app-cal__doc b { max-width: 100%; font-size: .74em; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-cal__doc em { max-width: 100%; font-style: normal; font-size: .62em; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-cal__t { grid-column: 1; padding-top: .25em; font-size: .64em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.app-cal__b { display: grid; align-content: start; gap: .1em; min-width: 0; padding: .45em .45em; border-radius: .6em; font-size: .74em; line-height: 1.2; overflow: hidden; animation: app-row .6s var(--ease-out) both; animation-delay: calc(1.05s + var(--i, 0) * .07s); transition: opacity .5s var(--ease-out); }
.app-cal__b b { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-cal__b span { opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-cal__b--1 { background: var(--electric-050); color: var(--electric-600); box-shadow: inset 2px 0 0 var(--electric); }
.app-cal__b--2 { background: #E8ECF4; color: var(--ink); box-shadow: inset 2px 0 0 var(--ink); }
.app-cal__b--3 { background: #EDF3FF; color: #2A4E8F; box-shadow: inset 2px 0 0 var(--sky); }
.is-focus .app-cal__b:not(.app-cal__b--1), .is-focus .app-cal__doc:not(.app-cal__doc--1) { opacity: .38; }
.app-ui__answer { justify-self: start; max-width: 90%; padding: .6em .8em; border-radius: 1.1em 1.1em 1.1em .3em; background: var(--ink); color: #fff; font-size: .78em; line-height: 1.35; opacity: 0; transform: translateY(.6em) scale(.96); transform-origin: left bottom; transition: opacity .45s var(--ease-out), transform .6s var(--ease-out); }
.app-ui__answer.is-shown { opacity: 1; transform: none; }
.app-ui__answer--ok { justify-self: stretch; max-width: none; display: flex; align-items: center; gap: .6em; padding: .55em .7em; border-radius: 1em; background: #fff; color: var(--ink); box-shadow: 0 0 0 1px rgba(62, 207, 191, .5), 0 .8em 1.6em -1em rgba(10, 107, 97, .45); font-size: .8em; }
.app-ui__answer--ok .i { flex: none; width: 2em; height: 2em; padding: .45em; border-radius: .6em; background: var(--mint); color: #fff; }
.app-ui__answer--ok span { display: grid; min-width: 0; }
.app-ui__answer--ok b { font-weight: 650; }
.app-ui__answer--ok em { font-style: normal; color: var(--ink-2); font-size: .92em; }

/* ---------- Índice de la página ---------- */
.app-subnav { position: relative; z-index: 60; }
.app-subnav .wrap { display: flex; align-items: center; gap: 1rem; }
.app-subnav ul { display: flex; gap: .4rem; margin: 0; padding: .65rem 0; list-style: none; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
.app-subnav ul::-webkit-scrollbar { display: none; }
.app-subnav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 999px; white-space: nowrap; font-size: var(--fs-small); font-weight: 600; color: var(--ink-2); background: var(--card); box-shadow: 0 0 0 1px var(--line); transition: background-color .25s var(--ease-out), color .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.app-subnav a:not(.btn):hover { color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong); }
.app-subnav a[aria-current] { background: var(--ink); color: #fff; box-shadow: none; }
.app-subnav__cta { display: none; }
/* El índice sube como tarjeta sobre el hero, igual que la primera sección en las demás páginas de servicio */
.app-subnav { margin-top: -2.5rem; padding-top: .6rem; border-radius: 2.5rem 2.5rem 0 0; background: var(--paper); box-shadow: 0 -30px 60px -40px rgba(4, 11, 32, .45); }
@media (max-width: 759px) { .app-subnav { margin-top: -1.5rem; padding-top: .45rem; border-radius: 1.5rem 1.5rem 0 0; } }
@media (min-width: 1024px) {
  .app-subnav { position: sticky; top: var(--header-h); padding-top: .35rem; background: transparent; box-shadow: none; transition: transform .45s var(--ease-out), border-radius .35s var(--ease-out); }
  .app-subnav::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--paper); box-shadow: 0 -30px 60px -40px rgba(4, 11, 32, .45); transition: background-color .35s var(--ease-out); }
  /* Ya fija arriba: barra plana de vidrio */
  .app-subnav.is-stuck { border-radius: 0; }
  .app-subnav.is-stuck::before { background: rgba(245, 248, 253, .86); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); box-shadow: 0 1px 0 var(--line); }
  .app-subnav .wrap { position: relative; }
  .app-subnav ul { -webkit-mask-image: none; mask-image: none; }
  .app-subnav a:not(.btn) { min-height: 40px; background: transparent; box-shadow: none; }
  .app-subnav a[aria-current]:not(.btn) { background: var(--ink); color: #fff; }
  .app-subnav__cta { display: inline-flex; margin-left: auto; }
  body:has(.site-header.is-hidden) .app-subnav { transform: translateY(calc(var(--header-h) * -1)); }
  /* Las anclas y el foco no deben quedar debajo de la cabecera + el índice fijo */
  html { scroll-padding-top: calc(var(--header-h) + 4.75rem); }
}

/* ---------- Intro ---------- */
.app-intro__grid { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 1024px) { .app-intro__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: 4rem; } }
.app-intro__side { display: grid; gap: 1rem; padding-left: 1.25rem; border-left: 2px solid var(--electric); }

/* ---------- Diferencias de la versión clínica ---------- */
.diff-wrap { margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.diff-wrap > h3 { margin-bottom: 1.25rem; }
.diff { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
@media (min-width: 640px) { .diff { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .diff { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.diff li { display: grid; align-content: start; gap: .5rem; padding: 1.25rem; border-radius: var(--r-card); background: var(--paper-2); }
.diff .i { width: 1.6rem; height: 1.6rem; color: var(--electric); }
.diff b { font-weight: 640; font-stretch: var(--semi-wide); line-height: 1.25; }
.diff p { font-size: var(--fs-small); color: var(--ink-2); }

/* ---------- Módulos: galería horizontal v3 (12 tarjetas + la medida) ---------- */
.app-mods { padding-block: 0 clamp(3.5rem, 2.5rem + 4vw, 6rem); color: rgba(255, 255, 255, .8); }
.app-mods .hg__pin { padding-block: clamp(4.5rem, 3.5rem + 4vw, 7rem) .5rem; }
.app-mods .hg__head { align-items: end; }
.app-mods__title { display: grid; gap: 1rem; justify-items: start; }
.app-mods__title .t-d2 { max-width: 14ch; font-size: clamp(2.1rem, 1.2rem + 3vw, 4rem); }
.app-mods__side { display: grid; gap: 1.1rem; justify-items: start; max-width: 29rem; }
.app-mods__side > p { font-size: var(--fs-small); line-height: 1.5; color: rgba(255, 255, 255, .74); }
.app-mods__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; width: 100%; }
.app-mods .hg__progress { width: min(240px, 100%); }
.mods-mini { display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; padding: .3rem .95rem .3rem .35rem; border-radius: 999px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(143, 182, 255, .3); font-size: var(--fs-xs); font-weight: 650; color: #fff; transition: background-color .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.mods-mini:hover { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(143, 182, 255, .6); }
.mods-mini b { min-width: 1.9rem; height: 1.9rem; padding: 0 .45rem; border-radius: 999px; display: grid; place-items: center; background: var(--electric); font-family: var(--font); font-weight: 760; font-size: .85rem; font-variant-numeric: tabular-nums; box-shadow: 0 8px 18px -8px rgba(0, 85, 255, .9); }
.mods-mini.is-bump b { animation: mods-bump .5s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes mods-bump { 40% { transform: scale(1.3); } }

/* ol[class] del reset (0,1,1) anula el padding del kit (.hg__track, 0,1,0): se repone aquí */
.app-mods .hg__track { align-items: stretch; padding: .5rem max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 1.25rem; }
.app-mods .hg__track > .mcard { width: min(84vw, 400px); }
.mcard { --acc: 0, 85, 255; --acc-ink: var(--sky); position: relative; display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .02)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: box-shadow .45s var(--ease-out), background-color .45s var(--ease-out), transform .6s var(--ease-out); transform-style: preserve-3d; }
.mcard[data-acc="mint"] { --acc: 62, 207, 191; --acc-ink: var(--mint); }
.mcard[data-acc="sky"] { --acc: 143, 182, 255; }
.mcard:hover { box-shadow: inset 0 0 0 1px rgba(var(--acc), .55), 0 40px 80px -40px rgba(var(--acc), .75); }
.mcard:focus-within { box-shadow: inset 0 0 0 2px #fff; }
.mcard.is-picked { background: linear-gradient(180deg, rgba(0, 85, 255, .34), rgba(255, 255, 255, .03) 70%); box-shadow: inset 0 0 0 1.5px rgba(143, 182, 255, .75), 0 40px 80px -40px rgba(0, 85, 255, .95); }

/* Arte: suelo en perspectiva, halo del color del módulo e ícono de vidrio con reflejo */
.mcard__art { position: relative; height: 10rem; flex: none; display: grid; place-items: center; overflow: hidden; background: radial-gradient(70% 95% at 50% 100%, rgba(var(--acc), .5), rgba(var(--acc), 0) 70%), linear-gradient(180deg, rgba(7, 20, 55, .95), rgba(7, 20, 55, 0)); perspective: 420px; }
.mcard__art::before { content: ""; position: absolute; left: -40%; right: -40%; bottom: -10%; height: 90%; background-image: linear-gradient(rgba(var(--acc), .32) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--acc), .32) 1px, transparent 1px); background-size: 30px 30px; transform: rotateX(70deg); transform-origin: 50% 100%; -webkit-mask-image: linear-gradient(0deg, #000 5%, transparent 80%); mask-image: linear-gradient(0deg, #000 5%, transparent 80%); }
.mcard__art::after { content: ""; position: absolute; width: 9.5rem; height: 3.2rem; left: 50%; bottom: 1.1rem; translate: -50% 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(var(--acc), .45), 0 0 26px rgba(var(--acc), .35); transform: rotateX(62deg); }
.mcard__ico { position: relative; z-index: 1; width: 4.4rem; height: 4.4rem; margin-bottom: 1.4rem; border-radius: 1.35rem; display: grid; place-items: center; color: #fff; background: linear-gradient(150deg, rgba(var(--acc), .62), rgba(var(--acc), .14) 55%, rgba(255, 255, 255, .06)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 0 0 1px rgba(255, 255, 255, .22), 0 24px 40px -14px rgba(var(--acc), 1), 0 0 64px -8px rgba(var(--acc), .75); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transform: rotateX(16deg) rotateZ(-4deg); transition: transform .8s var(--ease-out); -webkit-box-reflect: below 8px linear-gradient(transparent 58%, rgba(255, 255, 255, .16)); }
.mcard__ico .i { width: 1.95rem; height: 1.95rem; filter: drop-shadow(0 2px 8px rgba(var(--acc), .9)); }
.mcard:hover .mcard__ico { transform: translateY(-.45rem) rotateX(0deg) rotateZ(0deg) scale(1.06); }

.mcard__body { position: relative; flex: 1; display: flex; flex-direction: column; gap: .7rem; padding: 1.2rem 1.5rem 1.5rem; }
.mcard__tag { align-self: flex-start; padding: .28rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 650; color: var(--acc-ink); background: rgba(var(--acc), .13); box-shadow: inset 0 0 0 1px rgba(var(--acc), .3); }
.mcard__t { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.08; letter-spacing: -.01em; word-spacing: .05em; color: #fff; text-wrap: balance; }
.mcard__desc { font-size: var(--fs-small); line-height: 1.5; color: rgba(255, 255, 255, .74); }
.mcard__ticks { gap: .4rem; margin-top: .1rem; }
.mcard__ticks li { font-size: .875rem; }
.mcard .mod__pick { margin-top: auto; align-self: flex-start; }

/* Botón «Me interesa» (sobre vidrio oscuro) */
.mod__pick { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1.15rem; border-radius: 999px; font-size: var(--fs-small); font-weight: 620; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .34); transition: background-color .25s var(--ease-out), box-shadow .25s var(--ease-out), transform .3s var(--ease-out); }
.mod__pick:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1.5px #fff; }
.mod__pick:active { transform: scale(.97); }
.mod__pick .i { width: 1.1rem; height: 1.1rem; }
.mod__pick .i--check, .mod__pick[aria-pressed="true"] .i--plus { display: none; }
.mod__pick[aria-pressed="true"] .i--check { display: block; }
.mod__pick[aria-pressed="true"] { background: var(--electric); box-shadow: 0 10px 24px -10px rgba(0, 85, 255, .95); }

/* Tarjeta final: módulo a la medida */
.mcard--custom { justify-content: center; background: radial-gradient(85% 70% at 25% 10%, rgba(0, 85, 255, .55), rgba(0, 85, 255, 0) 70%), rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(143, 182, 255, .3); }
.mcard--custom::before { content: ""; position: absolute; inset: 10px; border-radius: 20px; border: 1.5px dashed rgba(143, 182, 255, .4); pointer-events: none; }
.mcard--custom .mcard__body { flex: none; gap: .9rem; padding: 2rem 1.9rem; }
.mcard__plus { width: 3.2rem; height: 3.2rem; border-radius: 16px; display: grid; place-items: center; background: var(--electric); color: #fff; box-shadow: 0 14px 28px -12px rgba(0, 85, 255, 1); }
.mcard--custom .btn { align-self: flex-start; margin-top: .3rem; }
.mod-custom__price { display: grid; gap: .1rem; }
.mod-custom__price b { font-family: var(--font-display); font-size: clamp(1.8rem, 1.5rem + 1vw, 2.4rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; color: #fff; font-variant-numeric: tabular-nums; }
.mod-custom__price .t-xs { color: rgba(255, 255, 255, .65); }

/* Bandeja de selección, ya fuera de la galería */
.app-mods__after { position: relative; display: grid; gap: clamp(2rem, 1.5rem + 2vw, 3rem); margin-top: clamp(1rem, .5rem + 1.5vw, 2rem); }
.mods-tray { display: grid; gap: .9rem; padding: 1.15rem 1.35rem; border-radius: var(--r-card); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
@media (min-width: 1024px) { .mods-tray { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.5rem; } }
.mods-tray__count { display: flex; align-items: baseline; gap: .45rem; font-size: var(--fs-small); font-weight: 600; color: rgba(255, 255, 255, .78); }
.mods-tray__count b { font-family: var(--font); font-size: 1.7rem; font-weight: 760; letter-spacing: -.02em; color: var(--sky); font-variant-numeric: tabular-nums; line-height: 1; }
.mods-tray .t-small { color: rgba(255, 255, 255, .7); }
.mods-tray__chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.mods-tray__chips li { padding: .3rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); font-size: var(--fs-xs); font-weight: 600; color: #fff; animation: mod-in .35s var(--ease-out); }
@keyframes mod-in { from { opacity: 0; transform: translateY(8px); } }
.mods-tray__ctas { gap: .5rem 1.25rem; }

/* Diferencias de la versión clínica, sobre la banda oscura */
.app-mods .diff-wrap > h3 { margin-bottom: 1.25rem; }
.app-mods .diff li { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.app-mods .diff .i { color: var(--sky); }
.app-mods .diff b { color: #fff; }
.app-mods .diff p { color: rgba(255, 255, 255, .72); }

/* Escritorio fijado: la cabecera de la página y el índice no tapan la galería */
@media (min-width: 1024px) {
  .app-mods.is-pinned .hg__pin { padding-block: calc(var(--header-h) + .75rem) 1.25rem; }
  .app-mods.is-pinned .hg__head { margin-bottom: 1.5rem; }
  .app-mods.is-pinned .app-mods__title { gap: .75rem; }
  .app-mods.is-pinned .app-mods__title .t-d2 { max-width: 21ch; font-size: clamp(2.3rem, 1.1rem + 2.1vw, 3.1rem); }
  .app-mods .hg__track > .mcard { width: 430px; }
  .app-mods.is-pinned .mcard__art { height: 8.5rem; }
  .app-mods.is-pinned .mcard__ico { margin-bottom: 1rem; }
  .app-mods.is-pinned .hg__track { padding-bottom: .75rem; }
  body.hg-active .app-subnav { transform: translateY(-160%) !important; opacity: 0; pointer-events: none; transition: transform .45s var(--ease-out), opacity .3s var(--ease-out); }
}
/* Pantallas bajas (1366 × 700): menos arte y sin viñetas; título, descripción y botón siguen */
@media (min-width: 1024px) and (max-height: 820px) {
  .app-mods.is-pinned .app-mods__title { gap: .6rem; }
  .app-mods.is-pinned .app-mods__title .t-d2 { font-size: clamp(2rem, 1rem + 2vw, 2.7rem); max-width: 18ch; }
  .app-mods.is-pinned .hg__head { margin-bottom: 1rem; }
  .app-mods.is-pinned .mcard__art { height: 6.75rem; }
  .app-mods.is-pinned .mcard__ico { width: 3.4rem; height: 3.4rem; margin-bottom: .9rem; border-radius: 1.05rem; }
  .app-mods.is-pinned .mcard__ico .i { width: 1.5rem; height: 1.5rem; }
  .app-mods.is-pinned .mcard__art::after { width: 7rem; height: 2.4rem; bottom: .6rem; }
  .app-mods.is-pinned .mcard__body { gap: .55rem; padding: 1rem 1.35rem 1.25rem; }
  .app-mods.is-pinned .mcard__t { font-size: 1.32rem; }
}
@media (min-width: 1024px) and (max-height: 760px) {
  .app-mods.is-pinned .app-mods__title .badge { display: none; }
  .app-mods.is-pinned .mcard__ticks { grid-template-columns: 1fr 1fr; gap: .3rem .75rem; }
  .app-mods.is-pinned .mcard__ticks li { grid-template-columns: 1rem minmax(0, 1fr); gap: .45rem; font-size: .8rem; line-height: 1.3; }
  .app-mods.is-pinned .mcard__ticks li::before { width: 1rem; height: 1rem; }
  .app-mods.is-pinned .mcard__desc { font-size: .9rem; line-height: 1.45; }
  .app-mods.is-pinned .mcard__art { height: 5.25rem; }
  .app-mods.is-pinned .mcard__ico { width: 2.9rem; height: 2.9rem; margin-bottom: .6rem; -webkit-box-reflect: unset; }
  .app-mods.is-pinned .mcard__art::after { display: none; }
  .app-mods.is-pinned .mcard--custom .mcard__body { padding: 1.4rem 1.5rem; gap: .65rem; }
}

/* ---------- Comparativa ---------- */
.cmp table { width: 100%; border-collapse: separate; border-spacing: 0; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 1.05rem 1.25rem; border-bottom: 1px solid var(--line); font-size: var(--fs-small); color: var(--ink-2); font-weight: 400; }
.cmp thead th { padding-top: 1.2rem; font-size: 1rem; font-weight: 650; font-stretch: var(--semi-wide); color: var(--ink); }
.cmp tbody th { width: 22%; font-weight: 620; color: var(--ink); }
.cmp .cmp__us, .cmp tbody td:first-of-type { background: var(--electric-050); color: var(--ink); }
.cmp .cmp__us { border-radius: 18px 18px 0 0; color: var(--electric-600); }
.cmp tbody tr:last-child td:first-of-type { border-radius: 0 0 18px 18px; }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp__note { margin-top: 1.5rem; max-width: 70ch; }
@media (max-width: 759px) {
  .cmp table, .cmp thead, .cmp tbody { display: block; }
  .cmp tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem .5rem; }
  .cmp thead tr { padding-bottom: .35rem; }
  .cmp thead th:first-child { display: none; }
  .cmp thead th, .cmp thead .cmp__us { display: block; width: auto; padding: 0 .2rem; border: 0; border-radius: 0; background: none; font-size: var(--fs-xs); }
  .cmp tbody tr { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .cmp tbody th { grid-column: 1 / -1; width: auto; padding: 0; border: 0; font-size: var(--fs-small); }
  .cmp tbody td { display: block; padding: .6rem .7rem; border: 0; border-radius: 12px; font-size: var(--fs-small); line-height: 1.4; }
  .cmp tbody td:last-of-type { background: rgba(11, 29, 59, .04); }
  .cmp tbody tr:last-child td:first-of-type { border-radius: 12px; }
}

/* ---------- Proceso de 6 semanas ---------- */
.gantt { padding: clamp(1.25rem, 1rem + 1.6vw, 2.25rem); border-radius: var(--r-panel); background: var(--card); box-shadow: var(--shadow-2), 0 0 0 1px var(--line); }
.gantt__scale { display: none; }
.gantt__rows { list-style: none; margin: 0; padding: 0; display: grid; }
.gantt__rows li { display: grid; gap: .75rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.gantt__rows li:first-child { border-top: 0; padding-top: 0; }
.gantt__when { font-size: var(--fs-xs); font-weight: 650; color: var(--electric-600); }
.gantt__label h3 { margin-top: .15rem; font-size: 1.08rem; font-weight: 640; font-stretch: var(--semi-wide); line-height: 1.25; }
.gantt__label p { margin-top: .25rem; font-size: var(--fs-small); color: var(--ink-2); }
.gantt__track { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; height: 12px; }
.gantt__track::before { content: ""; position: absolute; inset: 0; border-radius: 999px; background: repeating-linear-gradient(90deg, var(--paper-2) 0 calc(16.666% - 3px), transparent calc(16.666% - 3px) 16.666%); }
.gantt__bar { position: relative; grid-column: var(--from) / var(--to); grid-row: 1; border-radius: 999px; background: linear-gradient(90deg, var(--electric), #4D86FF); box-shadow: 0 6px 14px -6px rgba(0, 85, 255, .75); transform-origin: left center; transition: transform 1.1s var(--ease-out); transition-delay: calc(.15s + var(--i, 0) * .2s); }
.motion-ready .gantt:not(.is-in) .gantt__bar { transform: scaleX(0); }
.gantt__foot { margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px dashed var(--line-strong); display: grid; gap: .9rem; }
.gantt__cap { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--fs-small); font-weight: 640; color: var(--ink); }
.gantt__cap .i { color: var(--electric); }
.gantt__pay { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.gantt__pay li { display: grid; align-content: start; gap: .1rem; padding-left: .7rem; border-left: 2px solid var(--electric); font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.35; }
.gantt__pay b { font-size: 1.35rem; font-weight: 700; font-stretch: var(--wide); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
@media (min-width: 900px) {
  .gantt__scale { display: grid; grid-template-columns: minmax(0, 20rem) repeat(6, minmax(0, 1fr)); padding-bottom: .85rem; border-bottom: 1px solid var(--line); font-size: var(--fs-xs); font-weight: 650; color: var(--ink-3); }
  .gantt__scale span + span { padding-left: .6rem; border-left: 1px solid var(--line); }
  .gantt__rows li { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); align-items: center; gap: 0; padding: 1.3rem 0; }
  .gantt__rows li:first-child { padding-top: 1.3rem; }
  .gantt__label { padding-right: 2rem; }
  .gantt__track { height: 46px; gap: 0; align-items: center; }
  .gantt__track::before { border-radius: 0; background: linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 16.666% 100%; }
  .gantt__bar { height: 32px; margin: 0 6px; border-radius: 12px; }
  .gantt__foot { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); align-items: start; gap: 0; }
  .gantt__pay { position: relative; display: block; height: 3.6rem; }
  .gantt__pay li { position: absolute; top: 0; left: calc((var(--at) - 1) / 6 * 100%); }
  .gantt__pay li:last-child { left: auto; right: 0; padding: 0 .7rem 0 0; border-left: 0; border-right: 2px solid var(--electric); text-align: right; }
}

/* ---------- Después de la entrega ---------- */
ol.after { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 1rem; }
@media (min-width: 900px) {
  ol.after { grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.25rem; padding-top: 2.4rem; }
  .after::before { content: ""; position: absolute; left: 2rem; right: 2rem; top: .45rem; height: 2px; background: linear-gradient(90deg, var(--sky), rgba(143, 182, 255, .1)); transform-origin: left center; transition: transform 1.6s var(--ease-out); }
  .motion-ready .after:not(.is-in)::before { transform: scaleX(0); }
  .after__card::before { content: ""; position: absolute; left: 1.9rem; top: calc(-2.4rem + .05rem); width: 13px; height: 13px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 6px rgba(143, 182, 255, .18); }
}
.after__card { position: relative; display: grid; align-content: start; gap: .7rem; padding: clamp(1.4rem, 1rem + 1.5vw, 2rem); border-radius: var(--r-card); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.after__when { font-size: var(--fs-xs); font-weight: 650; color: var(--sky); }
.after__card h3 { font-size: 1.15rem; font-weight: 650; font-stretch: var(--semi-wide); line-height: 1.25; color: #fff; }
.after__price { display: grid; gap: .2rem; font-size: var(--fs-small); color: rgba(255, 255, 255, .78); }
.after__price b { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); font-weight: 700; font-stretch: var(--wide); letter-spacing: -.04em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.after__card > p:not(.after__when):not(.after__price) { font-size: var(--fs-small); color: rgba(255, 255, 255, .74); }
.after__card .ticks { grid-template-columns: 1fr 1fr; gap: .5rem 1rem; margin-top: .25rem; }
.after__card--main { background: linear-gradient(160deg, rgba(0, 85, 255, .55), rgba(0, 85, 255, .14)); box-shadow: inset 0 0 0 1px rgba(143, 182, 255, .35), 0 30px 60px -30px rgba(0, 85, 255, .9); }
.after__card--opt { background: transparent; box-shadow: none; border: 1.5px dashed rgba(143, 182, 255, .38); }
.after-note { margin-top: 1.25rem; padding: 1.1rem 1.25rem; border-radius: var(--r-card); background: rgba(255, 255, 255, .06); font-size: var(--fs-small); color: rgba(255, 255, 255, .8); }
.after-note b { color: #fff; }

/* ---------- Precio ---------- */
.price-year { display: grid; gap: .35rem; padding: 1rem 1.1rem; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--fs-small); color: var(--ink-2); }
.price-year b { color: var(--ink); font-weight: 640; }
.price-wa { justify-self: center; display: inline-flex; align-items: center; gap: .45rem; }
.price-wa .i { width: 1.1rem; height: 1.1rem; }
.price-how { grid-column: 1 / -1; display: grid; gap: .85rem; padding: 1.25rem; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.s-price__lists .price-how h3 { margin: 0; }
.price-how__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; counter-reset: none; }
.price-how__steps li { display: grid; gap: .1rem; padding: .7rem .8rem; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px var(--line); font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.3; }
.price-how__steps b { font-size: 1.3rem; font-weight: 700; font-stretch: var(--wide); letter-spacing: -.03em; color: var(--electric); font-variant-numeric: tabular-nums; }
@media (max-width: 559px) {
  .price-how { padding: 1rem; }
  .price-how__steps { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
  .price-how__steps li { grid-template-columns: 3.6rem minmax(0, 1fr); align-items: center; padding: .55rem .75rem; font-size: var(--fs-small); }
}
.cmp thead th:nth-child(2) { width: 42%; }

/* ---------- ¿Por dónde empezar? ---------- */
.ruta { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.ruta__step { position: relative; display: grid; align-content: start; gap: .55rem; padding: 1.35rem 1.3rem 1.45rem; border-radius: var(--r-card); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.ruta__n { font-size: .95rem; font-weight: 700; font-stretch: var(--wide); color: var(--electric); font-variant-numeric: tabular-nums; }
.ruta__when { font-size: var(--fs-xs); font-weight: 650; color: var(--ink-3); }
.ruta__step h3 { font-size: 1.15rem; font-weight: 650; font-stretch: var(--semi-wide); line-height: 1.2; }
.ruta__step > p:not(.ruta__when) { font-size: var(--fs-small); color: var(--ink-2); }
ul.ruta__items { list-style: none; margin: .2rem 0 0; padding: .6rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .1rem; font-size: var(--fs-small); }
.ruta__items li { display: flex; gap: .55rem; align-items: baseline; padding: .2rem 0; color: var(--ink-2); }
.ruta__items li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--electric); transform: translateY(-2px); }
.ruta__items a { display: inline-block; padding: .25rem 0; color: var(--electric-600); font-weight: 620; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
.ruta__items a:hover { color: var(--ink); }
.ruta__step--here { background: var(--night); box-shadow: 0 30px 60px -30px rgba(0, 38, 128, .75); overflow: hidden; }
.ruta__step--here::before { content: ""; position: absolute; width: 18rem; height: 18rem; right: -8rem; top: -9rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 85, 255, .55), rgba(0, 85, 255, 0)); pointer-events: none; }
.ruta__step--here > * { position: relative; }
.ruta__step--here h3 { color: #fff; }
.ruta__step--here > p:not(.ruta__when) { color: rgba(255, 255, 255, .74); }
.ruta__step--here .ruta__when { color: var(--sky); }
.ruta__step--here .ruta__items li { color: rgba(255, 255, 255, .8); }
.ruta__step--here .ruta__items li::before { background: var(--sky); }
.ruta__step--here .ruta__items a { color: #fff; }
.ruta__cta { justify-self: start; margin-top: .6rem; }
@media (min-width: 900px) {
  .ruta { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 1rem; }
  .ruta__step { min-height: calc(23rem + var(--n) * 2.75rem); }
  .ruta__step--here { grid-template-rows: auto auto auto auto auto 1fr; }
  .ruta__cta { align-self: end; }
  .motion-ready .ruta:not(.is-in) .ruta__step { opacity: 0; transform: translateY(calc(26px + var(--n) * 10px)); }
  .motion-ready .ruta.is-in .ruta__step { transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--n) * .12s); }
}
.ruta-help { margin-top: 1.5rem; display: grid; gap: 1.1rem; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.ruta-help .t-body { margin-top: .3rem; }
@media (min-width: 900px) { .ruta-help { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2rem; } }
@media (max-width: 559px) { .ruta-help .btn { width: 100%; } }

/* ---------- Permisos por rol (clínica) ---------- */
.roles { display: grid; gap: 1.25rem; }
@media (min-width: 1024px) { .roles { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem; align-items: start; } }
.roles__tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
@media (min-width: 1024px) { .roles__tabs { grid-template-columns: minmax(0, 1fr); } }
.roles__tab { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .75rem; align-items: center; min-height: 64px; padding: .8rem .9rem; border-radius: var(--r-card); background: var(--card); box-shadow: 0 0 0 1px var(--line); text-align: left; transition: background-color .3s var(--ease-out), color .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.roles__tab:hover { box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-1); }
.roles__tab .i-box { width: 2.4rem; height: 2.4rem; border-radius: 12px; display: grid; place-items: center; background: var(--electric-050); color: var(--electric); transition: background-color .3s, color .3s; }
.roles__tab span:last-child { display: grid; min-width: 0; }
.roles__tab b { font-weight: 640; line-height: 1.2; }
.roles__tab small { font-size: var(--fs-xs); color: var(--ink-3); }
.roles__tab[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: 0 16px 32px -18px rgba(6, 20, 51, .8); }
.roles__tab[aria-selected="true"] .i-box { background: rgba(143, 182, 255, .16); color: var(--sky); }
.roles__tab[aria-selected="true"] small { color: rgba(255, 255, 255, .7); }
.roles__panels { display: grid; gap: 1rem; }
.roles__panel { position: relative; overflow: hidden; display: grid; gap: 1rem; padding: clamp(1.4rem, 1rem + 2vw, 2.4rem); border-radius: var(--r-panel); background: var(--card); box-shadow: var(--shadow-3), 0 0 0 1px var(--line); }
.roles__panel::before { content: ""; position: absolute; width: 24rem; height: 24rem; right: -10rem; top: -12rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 85, 255, .12), rgba(0, 85, 255, 0)); pointer-events: none; }
.roles__panel > * { position: relative; }
.roles.is-ready .roles__panel:not([hidden]) { animation: mod-in .5s var(--ease-out); }
.roles__panel h3 { display: flex; align-items: center; gap: .6rem; font-size: var(--fs-h3); font-weight: 640; font-stretch: var(--wide); letter-spacing: -.02em; line-height: 1.15; }
.roles__panel h3 .i { width: 1.5rem; height: 1.5rem; color: var(--electric); }
.roles__panel > p { color: var(--ink-2); }
.roles__lists { display: grid; gap: 1.25rem; }
.roles__lists { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.roles__lists p { margin-bottom: .6rem; font-size: var(--fs-xs); font-weight: 650; color: var(--ink-3); }

/* ---------- Formulario ---------- */
.pick-more { border-radius: var(--r-field); box-shadow: inset 0 0 0 1.5px var(--line-strong); padding: 0 .95rem; transition: box-shadow .2s var(--ease-out); }
.pick-more[open] { padding-bottom: 1rem; }
.pick-more summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 50px; cursor: pointer; font-size: var(--fs-small); font-weight: 600; color: var(--ink); }
.pick-more summary::-webkit-details-marker { display: none; }
.pick-more summary::after { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--electric-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230055FF' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M5 12h14M12 5v14'/%3E%3C/svg%3E") center / 12px no-repeat; transition: transform .35s var(--ease-out); }
.pick-more[open] summary::after { transform: rotate(45deg); }
.pick-more summary .field__hint { margin-left: .2rem; }
.pick-more .choice-group { gap: .4rem; }
.pick-more .choice span { min-height: 44px; font-size: var(--fs-xs); }
.s-form__panel .choice span { background: #fff; color: var(--ink); }
.s-form__panel .choice input:checked + span { background: var(--electric); color: #fff; }
.s-mini-steps b { color: #fff; font-weight: 640; }
#formulario .stack > .s-mini-steps { margin-top: var(--stack); }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .app-phone, .app-float { transition: none; translate: none; }
}

/* ---------- Celular: carruseles con deslizamiento para no alargar la página ---------- */
.swipe-hint { display: none; }
@media (max-width: 899px) {
  ol.ruta { grid-auto-flow: column; grid-auto-columns: minmax(16.5rem, 82%); grid-template-columns: none; gap: .75rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: .25rem var(--gutter) 1.25rem; scroll-padding-inline: var(--gutter); }
  .ruta::-webkit-scrollbar { display: none; }
  .ruta__step { scroll-snap-align: start; }
  .swipe-hint { display: flex; align-items: center; gap: .5rem; margin: -.25rem 0 .75rem; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-3); }
  .swipe-hint::after { content: ""; width: 2.2rem; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--electric), rgba(0, 85, 255, 0)); }
}
@media (max-width: 639px) {
  ul.diff { grid-auto-flow: column; grid-auto-columns: minmax(15rem, 78%); grid-template-columns: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) .5rem; scroll-padding-inline: var(--gutter); }
  .diff::-webkit-scrollbar { display: none; }
  .diff li { scroll-snap-align: start; }
}
@media (min-width: 640px) { .swipe-hint--sm { display: none; } }
@media (max-width: 899px) {
  ol.after { grid-auto-flow: column; grid-auto-columns: minmax(16.5rem, 84%); grid-template-columns: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) .5rem; scroll-padding-inline: var(--gutter); }
  ol.after::-webkit-scrollbar { display: none; }
  .after__card { scroll-snap-align: start; }
  .theme-night .swipe-hint { color: rgba(255, 255, 255, .6); }
  .theme-night .swipe-hint::after { background: linear-gradient(90deg, var(--sky), rgba(143, 182, 255, 0)); }
}
@media (max-width: 759px) {
  ol.s-steps.app-kick { grid-auto-flow: column; grid-auto-columns: minmax(15rem, 78%); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: .25rem var(--gutter) .75rem; scroll-padding-inline: var(--gutter); }
  ol.s-steps.app-kick::-webkit-scrollbar { display: none; }
  .app-kick li { scroll-snap-align: start; }
  .swipe-hint--kick { display: flex; }
}
@media (min-width: 760px) { .swipe-hint--kick { display: none !important; } }
@media (max-width: 639px) {
  #formulario .s-mini-steps { display: none; }
}

/* ---------- Tipografía de display (sigue el token del sistema) ---------- */
.after__price b, .price-how__steps b, .gantt__pay b, .roles__panel h3 { font-family: var(--font-display, inherit); letter-spacing: -.015em; }
@media (max-width: 899px) { .after__card .ticks { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 559px) {
  .roles__tab { grid-template-columns: minmax(0, 1fr); min-height: 56px; padding: .65rem .85rem; }
  .roles__tab .i-box { display: none; }
}

/* Áreas táctiles de 44 px en enlaces sueltos */
ul.ruta__items li { padding: 0; min-height: 1.9rem; }
ul.ruta__items a { padding: .7rem 0; }
.mods-tray__ctas .link, .price-wa { position: relative; }
.mods-tray__ctas .link::before, .price-wa::before { content: ""; position: absolute; inset: -.6rem -.25rem; }

/* Tras la frase de entrada, la primera sección no repite el aire completo de sección (evita un hueco de ~230 px) */
.app-intro + .section { padding-top: calc(var(--space-section) * .55); }
/* Resumen del precio junto al formulario (lo que decía el selector de pago del sitio anterior) */
.app-form-price { display: grid; gap: .2rem; padding: .9rem 1.1rem; border-radius: var(--r-card); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(143, 182, 255, .2); }
.app-form-price b { font-family: var(--font-display); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); font-weight: 600; letter-spacing: -.01em; color: #fff; font-variant-numeric: tabular-nums; }
.app-form-price span { font-size: var(--fs-small); color: rgba(255, 255, 255, .72); }
/* El select obligatorio («Número de doctores») marca el error igual que los campos de texto */
.s-form__panel .select[aria-invalid="true"] { border-color: #D92D20; box-shadow: 0 0 0 4px rgba(217, 45, 32, .12); }

/* =====================================================================
   v3 — ritmo de fondos, bento, banda cinética y precio como clímax
   ===================================================================== */

/* ---------- Lo que incluye: bento con la imagen 3D ---------- */
.app-base { overflow: clip; }
.app-bento { display: grid; gap: 1rem; }
@media (min-width: 1024px) { .app-bento { grid-template-columns: minmax(0, .78fr) minmax(0, 1.5fr); gap: 1.25rem; align-items: stretch; } }
.app-bento__visual { position: relative; border-radius: var(--r-panel); background: var(--night); box-shadow: var(--shadow-3); transform-style: preserve-3d; transition: transform .25s linear; }
.app-bento__visual figure { position: relative; margin: 0; height: 100%; min-height: 22rem; border-radius: inherit; overflow: hidden; background: var(--night); }
.app-bento__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.app-bento__visual figure::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(143, 182, 255, .22); background: linear-gradient(180deg, rgba(4, 11, 32, 0) 55%, rgba(4, 11, 32, .7)); pointer-events: none; }
.app-bento__chip { position: absolute; z-index: 2; left: 1.1rem; right: 1.1rem; bottom: 1.1rem; width: auto; transform: translateZ(40px); }
.app-bento__list { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.app-bento__list > li { position: relative; display: grid; align-content: start; gap: .55rem; padding: 1.4rem 1.4rem 1.5rem; border-radius: 22px; background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow-1); overflow: hidden; transition: box-shadow .35s var(--ease-out), transform .45s var(--ease-out); }
.app-bento__list > li::before { content: ""; position: absolute; width: 12rem; height: 12rem; right: -6rem; top: -6rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 85, 255, .1), rgba(0, 85, 255, 0)); opacity: 0; transition: opacity .4s var(--ease-out); pointer-events: none; }
.app-bento__list > li:hover { transform: translateY(-3px); box-shadow: 0 0 0 1.5px rgba(0, 85, 255, .35), var(--shadow-2); }
.app-bento__list > li:hover::before { opacity: 1; }
.app-bento .i-box { width: 3rem; height: 3rem; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(150deg, #2D74FF, var(--electric) 45%, #0033A8); color: #fff; box-shadow: 0 14px 26px -12px rgba(0, 85, 255, .95), inset 0 1px 0 rgba(255, 255, 255, .35); }
.app-bento .i-box .i { width: 1.3rem; height: 1.3rem; }
.app-bento__list h3 { margin-top: .45rem; font-family: var(--font-display); font-size: 1.24rem; font-weight: 600; line-height: 1.12; letter-spacing: -.005em; word-spacing: .05em; color: var(--ink); }
.app-bento__list p { margin-top: .2rem; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }
.app-bento__list .why-line { display: block; margin-top: .55rem; font-size: var(--fs-xs); }
@media (min-width: 760px) and (max-width: 1023px) {
  .app-bento__visual figure { min-height: 0; aspect-ratio: 16 / 8; }
  .app-bento__visual img { object-position: 50% 40%; }
}
@media (min-width: 760px) { .swipe-hint--base { display: none !important; } }
@media (max-width: 759px) {
  .app-bento__visual { display: none; }
  .swipe-hint--base { display: flex; }
  ul.app-bento__list { grid-auto-flow: column; grid-auto-columns: minmax(15rem, 78%); grid-template-columns: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: .25rem var(--gutter) 1rem; scroll-padding-inline: var(--gutter); }
  .app-bento__list::-webkit-scrollbar { display: none; }
  .app-bento__list > li { scroll-snap-align: start; }
}

/* ---------- Banda cinética: sube como tarjeta sobre la sección clara ---------- */
.app-kinetic { z-index: 2; margin-top: -2.5rem; padding-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); border-radius: 2.5rem 2.5rem 0 0; box-shadow: 0 -30px 60px -40px rgba(4, 11, 32, .45); }
@media (max-width: 759px) { .app-kinetic { margin-top: -1.5rem; border-radius: 1.5rem 1.5rem 0 0; } }
/* La galería continúa la banda sin costura: el brillo empieza más abajo */
.app-mods.theme-night { background: radial-gradient(90% 55% at 50% 48%, #0A1A44 0%, var(--night) 72%), var(--night); }

/* ---------- Secciones que suben como tarjeta ---------- */
.app-cmp, .app-perm { padding-top: clamp(4rem, 3rem + 4vw, 7rem); }
.app-process.theme-night, .app-kick-sec { padding-top: clamp(4rem, 3rem + 4vw, 7rem); }
.app-after { overflow: clip; }

/* ---------- Proceso sobre la banda oscura (clínica) ---------- */
.theme-night .gantt { background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 80px -40px rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.theme-night .gantt__scale { color: rgba(255, 255, 255, .55); border-bottom-color: rgba(255, 255, 255, .12); }
.theme-night .gantt__scale span + span { border-left-color: rgba(255, 255, 255, .12); }
.theme-night .gantt__rows li { border-top-color: rgba(255, 255, 255, .1); }
.theme-night .gantt__when { color: var(--sky); }
.theme-night .gantt__label h3 { color: #fff; }
.theme-night .gantt__label p { color: rgba(255, 255, 255, .7); }
.theme-night .gantt__track::before { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .09) 0 calc(16.666% - 3px), transparent calc(16.666% - 3px) 16.666%); }
@media (min-width: 900px) { .theme-night .gantt__track::before { background: linear-gradient(90deg, rgba(255, 255, 255, .1) 1px, transparent 1px) 0 0 / 16.666% 100%; } }
.theme-night .gantt__bar { background: linear-gradient(90deg, var(--electric), #6E9BFF); box-shadow: 0 0 26px -4px rgba(0, 85, 255, .95), inset 0 1px 0 rgba(255, 255, 255, .3); }
.theme-night .gantt__foot { border-top-color: rgba(255, 255, 255, .18); }
.theme-night .gantt__cap { color: #fff; }
.theme-night .gantt__cap .i { color: var(--sky); }
.theme-night .gantt__pay li { color: rgba(255, 255, 255, .7); border-color: var(--sky); }
.theme-night .gantt__pay b { color: #fff; }

/* ---------- Precio: tarjeta oscura con brillo (clímax) ---------- */
.app-price-sec { padding-top: clamp(4rem, 3rem + 4vw, 7rem); }
.app-price.s-price { color: rgba(255, 255, 255, .8); background: radial-gradient(80% 70% at 10% 0%, #10286E 0%, rgba(16, 40, 110, 0) 60%), radial-gradient(120% 90% at 50% 0%, #0A1A44 0%, var(--night) 62%), var(--night); box-shadow: 0 70px 130px -60px rgba(0, 38, 160, .85), inset 0 0 0 1px rgba(143, 182, 255, .24); }
.app-price.s-price::before { width: 34rem; height: 34rem; right: -10rem; top: -14rem; background: radial-gradient(closest-side, rgba(0, 85, 255, .55), rgba(0, 85, 255, 0)); }
.app-price > .fx-aurora, .app-price > .fx-grid { position: absolute; }
.app-price .s-price__main .t-h3 { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); }
.app-price .price__num { font-size: clamp(3.6rem, 2.3rem + 4.6vw, 6.4rem); letter-spacing: -.03em; background: linear-gradient(100deg, #fff 0%, #fff 38%, #9FC0FF 55%, #fff 72%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 10px 40px rgba(0, 85, 255, .55)); }
.app-price .price__from { color: rgba(255, 255, 255, .7); }
.app-price .price-year { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .76); }
.app-price .price-year b { color: #fff; }
.app-price .s-price__lists h3 { color: #fff; }
.theme-night .ticks--no li::before { background: rgba(255, 255, 255, .08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23AEB9D3' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / 55% no-repeat; }
.theme-night .ticks--no li { color: rgba(255, 255, 255, .66); }
.app-price .price-how { background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.app-price .price-how__steps li { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .74); }
.app-price .price-how__steps b { color: var(--sky); }
.app-price .s-pay li { color: rgba(255, 255, 255, .82); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); }

/* ---------- Formulario sobre noche con aurora ---------- */
.app-form-sec { padding-top: clamp(4.5rem, 3rem + 5vw, 8rem); }
@media (min-width: 1024px) and (max-height: 660px) { .app-mods.is-pinned .mcard__ticks { display: none; } }
/* Fijada: título y texto lado a lado siempre */
@media (min-width: 1024px) {
  .app-mods.is-pinned .hg__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; gap: 2.5rem; }
  .app-mods.is-pinned .app-mods__title .t-d2 { max-width: none; }
}

/* ---------- Brillo que sigue al cursor en las tarjetas (solo ratón; sin animación infinita) ---------- */
.mcard::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(143, 182, 255, .13), rgba(143, 182, 255, 0) 55%); opacity: 0; transition: opacity .45s var(--ease-out); }
.mcard:hover::after { opacity: 1; }
.app-bento__list > li::before { inset: 0; width: auto; height: auto; right: 0; top: 0; border-radius: inherit; background: radial-gradient(320px circle at var(--mx, 85%) var(--my, 0%), rgba(0, 85, 255, .1), rgba(0, 85, 255, 0) 60%); }
/* Segunda línea del H1: subtítulo en blanco suave, sin acento de color */
.app-h1__sub { color: rgba(255, 255, 255, .82); }

/* Revisión r4 — textos secundarios de la tarjeta «a la medida» con más contraste */
.mod-custom__price .t-xs { color: rgba(255, 255, 255, .8); }
.mcard--custom .mcard__desc { color: rgba(255, 255, 255, .84); }
