@font-face { font-family: "Plex Mono"; src: url("../fuentes/IBMPlexMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fuentes/IBMPlexMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  --papel: #F2F1ED;
  --papel-2: #E9E7E1;
  --tinta: #0F2A4A;
  --tinta-2: #3C5373;
  --linea: rgba(15, 42, 74, 0.12);
  --ambar: #F2C66D;
  --ok: #0B6B44;
  --radio: 20px;
  --borde: max(20px, 5vw);
  --ancho: 1240px;
  --t-display: "Outfit", sans-serif;
  --t-texto: "Instrument Sans", sans-serif;
  --t-dato: "Plex Mono", ui-monospace, monospace;
  --vidrio-claro: rgba(255, 255, 255, 0.62);
  --sombra-vidrio: inset 0 1px 0 rgba(255, 255, 255, 0.85), inset 0 -1px 0 rgba(15, 42, 74, 0.08), 0 30px 60px -24px rgba(15, 42, 74, 0.35), 0 2px 6px rgba(15, 42, 74, 0.06);
}

html { scroll-behavior: smooth; scrollbar-color: var(--tinta-2) var(--papel); }
body { background: var(--papel); color: var(--tinta); font-family: var(--t-texto); font-size: 18px; line-height: 1.55; overflow-x: hidden; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--papel); }
::-webkit-scrollbar-thumb { background: #B9C0CC; border-radius: 10px; border: 2px solid var(--papel); }

.envoltura { width: min(100% - 2 * var(--borde), var(--ancho)); margin-inline: auto; }
.h2 { font-family: var(--t-display); font-weight: 600; font-size: clamp(36px, 5.2vw, 76px); line-height: 0.98; letter-spacing: -0.035em; }
.texto { max-width: 52ch; color: var(--tinta-2); font-size: clamp(17px, 1.3vw, 20px); }

.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 15px 22px; border-radius: 14px; font-weight: 600; font-size: 16px; text-decoration: none; transition: transform .2s var(--ease-out), box-shadow .25s var(--ease-out), background .2s; }
.btn:active { transform: scale(.97); }
.btn-tinta { background: var(--tinta); color: #fff; box-shadow: 0 14px 30px -14px rgba(15, 42, 74, .7); }
.btn-tinta:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(15, 42, 74, .75); }
.btn-vidrio { background: rgba(255, 255, 255, .55); border: 1px solid rgba(15, 42, 74, .14); color: var(--tinta); }
.btn-vidrio:hover { background: rgba(255, 255, 255, .85); }
.btn svg { width: 18px; height: 18px; }

.nav { position: fixed; z-index: 50; top: 14px; left: 50%; translate: -50% 0; width: min(100% - 2 * var(--borde) + 36px, var(--ancho) + 36px); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 8px 8px 18px; border-radius: 18px; background: rgba(242, 241, 237, .88); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 10px 30px -18px rgba(15, 42, 74, .45); transition: transform .5s var(--ease-out); }
.nav .logo img { height: 24px; width: auto; }
.nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav ul a { display: block; padding: 8px 12px; border-radius: 10px; font-size: 15px; color: var(--tinta-2); text-decoration: none; transition: background .2s, color .2s; }
.nav ul a:hover { background: rgba(15, 42, 74, .06); color: var(--tinta); }
.nav .btn { padding: 11px 16px; font-size: 15px; }
.btn-contacto .contacto-tel { padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .28); font-weight: 500; font-variant-numeric: tabular-nums; color: #DCE4FF; white-space: nowrap; }
.nav.oculta { transform: translateY(-140%); }

.hero { position: relative; min-height: 100svh; padding: 128px 0 72px; display: flex; align-items: center; overflow: clip; }
.reticula { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--linea) 1px, transparent 1px), linear-gradient(90deg, var(--linea) 1px, transparent 1px); background-size: 120px 120px; background-position: center; opacity: .45; mask-image: radial-gradient(80% 70% at 65% 50%, #000 20%, transparent 78%); }
.hero .envoltura { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero h1 { font-family: var(--t-display); font-weight: 700; font-size: clamp(48px, 6.6vw, 98px); line-height: .93; letter-spacing: -0.04em; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .07em; margin-bottom: -.07em; }
.hero h1 .ln > span { display: block; transform: translateY(108%); animation: subir 1s var(--ease-out) forwards; }
.hero h1 .ln:nth-child(2) > span { animation-delay: .1s; }
.hero .texto { margin-top: 26px; opacity: 0; animation: aparecer .9s .45s var(--ease-out) forwards; }
.hero .acciones { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; animation: aparecer .9s .6s var(--ease-out) forwards; }

.escena { position: relative; height: clamp(520px, 66vh, 640px); perspective: 1600px; }
.escena-capas { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s var(--ease-out); transform: rotateX(calc(var(--my, 0) * 3deg)) rotateY(calc(var(--mx, 0) * -4deg)); }
.albaran { position: absolute; left: 0; top: 6%; width: min(360px, 62%); padding: 22px 22px 18px; border-radius: 10px; background: #FFFEFB; color: var(--tinta); box-shadow: 0 1px 0 rgba(15, 42, 74, .04), 0 40px 70px -40px rgba(15, 42, 74, .55), 0 6px 14px -6px rgba(15, 42, 74, .15); transform: rotate(-4deg) translateZ(0); opacity: 0; animation: posar 1.1s .25s var(--ease-out) forwards; }
.albaran header { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 12px; border-bottom: 1.5px solid var(--tinta); }
.albaran header b { font-family: var(--t-display); font-size: 18px; letter-spacing: -.01em; }
.albaran header span { font-family: var(--t-dato); font-size: 11px; color: var(--tinta-2); text-align: right; line-height: 1.4; }
.albaran table { width: 100%; border-collapse: collapse; margin-top: 8px; font-family: var(--t-dato); font-size: 13px; }
.albaran th { text-align: left; font-weight: 500; font-size: 12px; color: var(--tinta-2); padding: 6px 0; }
.albaran th:last-child, .albaran td:last-child { text-align: right; }
.albaran td { padding: 7px 0; border-top: 1px dashed rgba(15, 42, 74, .16); white-space: nowrap; }
.albaran td:first-child { max-width: 0; width: 100%; overflow: hidden; text-overflow: ellipsis; padding-right: 10px; }
.albaran tr.leida td { color: var(--tinta); }
.albaran tr.leida td:first-child::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--ok); vertical-align: 1px; }
.sello { position: absolute; right: 18px; bottom: 12px; padding: 4px 10px; border: 2px solid var(--real); color: var(--real); border-radius: 6px; font-family: var(--t-display); font-weight: 700; font-size: 13px; letter-spacing: .12em; transform: rotate(-8deg); }
.albaran footer { margin-top: 10px; font-family: var(--t-dato); font-size: 12px; color: var(--tinta-2); }

.lente { position: absolute; left: calc(min(360px, 62%) * .06); top: 22%; width: calc(min(360px, 62%) * .92); height: 46px; border-radius: 14px; overflow: hidden; display: flex; align-items: center; padding: 0 14px; background: rgba(255, 254, 251, .35); border: 1.5px solid rgba(255, 255, 255, .95); box-shadow: inset 0 2px 0 #fff, inset 0 0 0 1px rgba(15, 42, 74, .12), inset 8px 0 12px -10px rgba(95, 130, 255, .45), inset -8px 0 12px -10px rgba(95, 130, 255, .45), inset 0 -10px 14px -10px rgba(15, 42, 74, .4), 0 22px 36px -20px rgba(15, 42, 74, .55); transition: background .25s; -webkit-backdrop-filter: saturate(1.35) contrast(1.12) brightness(1.03); backdrop-filter: saturate(1.35) contrast(1.12) brightness(1.03); transform: translate3d(0, 0, 60px) rotate(-4deg) translateY(var(--lente-y, 0px)); opacity: 0; animation: fundido .8s .9s var(--ease-out) forwards; will-change: transform; }
.lente::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 22%); pointer-events: none; }
.lente-txt { position: relative; display: flex; justify-content: space-between; gap: 12px; width: 100%; font: 500 15.5px/1 var(--t-dato); color: var(--tinta); opacity: 0; transition: opacity .2s; }
.lente-txt span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lente.lee .lente-txt { opacity: 1; }
.lente.lee { background: rgba(255, 254, 251, .9); }

.fichas { position: absolute; right: -4%; top: 4%; width: min(290px, 44%); display: flex; flex-direction: column; gap: 14px; transform-style: preserve-3d; transform: translateZ(60px); }
.ficha { position: relative; width: 100%; padding: 14px 16px; border-radius: 16px; background: var(--vidrio-claro); border: 1px solid rgba(255, 255, 255, .75); box-shadow: var(--sombra-vidrio); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); opacity: 0; transform: translate3d(-80px, 30px, -120px) scale(.9); transition: opacity .7s var(--ease-out), transform .9s cubic-bezier(.2, .8, .2, 1.02); }
.ficha.esta { opacity: 1; transform: translate3d(0, 0, var(--z, 0px)) scale(var(--s, 1)); }
.ficha:nth-child(1) { --z: 0px; }
.ficha:nth-child(2) { --z: 30px; }
.ficha:nth-child(3) { --z: 60px; }
.ficha .nom { font-weight: 600; font-size: 15px; line-height: 1.3; }
.ficha .meta { margin-top: 6px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-family: var(--t-dato); font-size: 12px; color: var(--tinta-2); }
.estado { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-family: var(--t-texto); font-weight: 600; font-size: 12px; }
.estado.ok { color: var(--ok); background: rgba(14, 122, 79, .11); }
.estado.pregunta { color: var(--tinta); background: var(--ambar); }
.estado.parecido { color: var(--tinta); background: #E3E7EF; }
.ficha .preg { margin-top: 10px; font-size: 14px; }
.ficha .botones { margin-top: 8px; display: flex; gap: 6px; }
.ficha .botones span { padding: 6px 12px; border-radius: 9px; font-weight: 600; font-size: 13px; background: rgba(15, 42, 74, .07); transition: background .25s, color .25s, transform .15s var(--ease-out); }
.ficha .botones span.si { background: var(--tinta); color: #fff; }
.ficha .botones span.pulsado { transform: scale(.95); background: var(--real); }
.pildora-ok { position: absolute; right: 6%; bottom: -2%; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 99px; background: rgba(15, 42, 74, .92); color: #fff; font-size: 16px; font-weight: 600; box-shadow: 0 18px 30px -16px rgba(15, 42, 74, .8); opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.pildora-ok.esta { opacity: 1; transform: none; }
.pildora-ok img { width: 16px; height: 16px; }

.problema { position: relative; overflow: clip; padding: clamp(96px, 14vh, 160px) 0; }
.problema .envoltura > div:first-child { position: relative; z-index: 1; }
.problema .envoltura { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.cita { margin: 36px 0 0; padding: 0; font-family: var(--t-display); font-weight: 500; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2; letter-spacing: -0.02em; color: var(--tinta); max-width: 30ch; }
.cita footer { margin-top: 14px; font-family: var(--t-texto); font-size: 16px; font-weight: 500; color: var(--tinta-2); letter-spacing: 0; }
.situaciones { margin: 40px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--linea); }
.situaciones li { padding: 18px 0; border-bottom: 1px solid var(--linea); font-size: clamp(17px, 1.3vw, 20px); }
.situaciones li span { font-family: var(--t-dato); font-size: .9em; }
.pregunta-final { margin-top: 28px; font-family: var(--t-display); font-weight: 600; font-size: clamp(20px, 1.8vw, 26px); }
.pila { position: relative; height: 460px; }
.hoja { position: absolute; left: 50%; top: 50%; width: 250px; height: 330px; margin: -165px 0 0 -125px; border-radius: 8px; background: #FFFEFB; box-shadow: 0 30px 50px -30px rgba(15, 42, 74, .5), 0 2px 6px rgba(15, 42, 74, .08); padding: 22px; transform: translate3d(var(--x0), calc(var(--y0) - var(--alto-caida, 260px) * (1 - var(--caida, 0))), 0) rotate(calc(var(--r0) * (2 - var(--caida, 0)))); }
.hoja i { display: flex; justify-content: space-between; gap: 8px; margin: 9px 0; padding-top: 7px; border-top: 1px dashed rgba(15, 42, 74, .14); font: 400 11px/1.2 var(--t-dato); font-style: normal; color: #5F6F86; white-space: nowrap; overflow: hidden; }
.hoja b { display: block; margin-bottom: 18px; font: 500 12.5px/1.3 var(--t-dato); color: var(--tinta-2); }
.hoja:nth-child(1) { --x0: -40px; --y0: 20px; --r0: -9deg; }
.hoja:nth-child(2) { --x0: 30px; --y0: -6px; --r0: 6deg; }
.hoja:nth-child(3) { --x0: -10px; --y0: -24px; --r0: -3deg; }
.hoja:nth-child(4) { --x0: 18px; --y0: 10px; --r0: 11deg; }

.max { position: relative; padding: clamp(80px, 12vh, 140px) 0; background: linear-gradient(var(--papel), var(--papel-2) 30%, var(--papel-2) 70%, var(--papel)); }
.max-cabecera { max-width: 760px; }
.max-cabecera .texto { margin-top: 22px; }
.recorrido { margin-top: 64px; align-items: center; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); }
.recorrido-escena { position: relative; height: 600px; display: grid; place-items: center; border-radius: 28px; background: var(--tinta); overflow: hidden; isolation: isolate; }
.recorrido-escena::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(126, 157, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(126, 157, 255, .08) 1px, transparent 1px); background-size: 40px 40px; }
.recorrido-escena .md { --md-bg: rgba(255, 255, 255, .94); }
.recorrido-escena .md { margin: 24px; }
.pasos { margin: 0; padding: 0; list-style: none; counter-reset: paso; }
.paso { display: flex; flex-direction: column; justify-content: center; padding: 22px 0; border-top: 1px solid var(--linea); opacity: 1; transition: opacity .5s var(--ease-out); }
.paso:not(.activo) h3, .paso:not(.activo) p, .paso:not(.activo)::before { color: #4F6180; }
.paso h3 { transition: color .4s; }
.paso.activo { opacity: 1; }
.paso.activo::after { content: ""; display: block; height: 2px; margin-top: 14px; background: var(--real); transform-origin: left; animation: barra 1.2s var(--ease-out); }
@keyframes barra { from { transform: scaleX(0); } }
.paso::before { counter-increment: paso; content: counter(paso); font-family: var(--t-dato); font-size: 14px; color: var(--tinta-2); margin-bottom: 14px; }
.paso h3 { font-family: var(--t-display); font-weight: 600; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.05; letter-spacing: -0.025em; }
.paso p { margin-top: 12px; color: var(--tinta-2); max-width: 36ch; }
.real { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; padding-top: 28px; border-top: 1px solid var(--linea); color: var(--tinta-2); }
.real strong { color: var(--tinta); }
.punto { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(14, 122, 79, .5); animation: latido 2.4s ease-out infinite; vertical-align: 1px; }

.altas { margin-top: clamp(80px, 12vh, 140px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.altas h3 { font-family: var(--t-display); font-weight: 600; font-size: clamp(32px, 3.6vw, 52px); line-height: 1; letter-spacing: -0.03em; }
.altas p { margin-top: 18px; }
.ficha-alta { position: relative; justify-self: center; width: min(460px, 100%); padding: 20px; border-radius: 24px; background: rgba(255, 255, 255, .66); border: 1px solid rgba(255, 255, 255, .8); box-shadow: var(--sombra-vidrio); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); display: grid; grid-template-columns: 132px 1fr; gap: 18px; }
.foto-prod { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; background: linear-gradient(180deg, #E2E6EE, #CDD4E0); overflow: hidden; display: grid; place-items: center; }
.bote { width: 56%; height: 70%; border-radius: 10px 10px 8px 8px; background: #fff; box-shadow: inset -8px 0 12px -6px rgba(15, 42, 74, .18), 0 10px 20px -10px rgba(15, 42, 74, .5); position: relative; }
.bote::before { content: ""; position: absolute; left: 14%; right: 14%; top: -12%; height: 14%; border-radius: 4px 4px 0 0; background: var(--tinta); }
.bote::after { content: ""; position: absolute; left: 12%; right: 12%; top: 32%; height: 30%; border-radius: 4px; background: var(--real); opacity: .85; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.campos { display: flex; flex-direction: column; gap: 9px; }
.campo { display: grid; gap: 4px; }
.campo small { font-size: 12px; color: var(--tinta-2); }
.campo .valor { display: block; min-height: 1.35em; font-weight: 600; font-size: 15px; line-height: 1.35; }
.campo .valor::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--real); opacity: 0; }
.campo .valor.escribe::after { opacity: 1; animation: cursor .8s steps(1) infinite; }
@keyframes cursor { 50% { opacity: 0; } }
.ficha-alta .ok-final span:last-child.pulsado { transform: scale(.95); background: var(--real); }
.campo .barra { height: 12px; border-radius: 6px; background: rgba(15, 42, 74, .07); overflow: hidden; }
.campo .barra::after { content: ""; display: block; height: 100%; width: var(--w, 80%); border-radius: inherit; background: rgba(15, 42, 74, .28); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.ficha-alta.viva .campo .barra::after { transform: scaleX(1); }
.ficha-alta.viva .campo:nth-child(2) .barra::after { transition-delay: .25s; }
.ficha-alta.viva .campo:nth-child(3) .barra::after { transition-delay: .5s; }
.ficha-alta.viva .campo:nth-child(4) .barra::after { transition-delay: .75s; }
.ficha-alta .ok-final { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--linea); font-size: 14px; color: var(--tinta-2); }
.ficha-alta .ok-final span:last-child { padding: 9px 14px; border-radius: 10px; background: var(--tinta); color: #fff; font-weight: 600; opacity: .3; transition: opacity .4s 1.2s, transform .2s var(--ease-out); }
.ficha-alta.viva .ok-final span:last-child { opacity: 1; }

.regla { position: relative; padding: clamp(110px, 18vh, 200px) 0; background: var(--tinta); color: #fff; overflow: clip; isolation: isolate; }
.regla::before { content: ""; position: absolute; inset: -80px 0; z-index: -1; background-image: linear-gradient(rgba(126, 157, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(126, 157, 255, .08) 1px, transparent 1px); background-size: 120px 120px; transform: translateY(calc(var(--p, 0) * -60px)); }
.regla .envoltura { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.regla .h2 { font-size: clamp(44px, 7vw, 112px); }
.regla .h2 span { display: block; }
.regla .h2 span + span { color: #BCCCFF; transition: color .6s var(--ease-out); }
.regla.decidido .h2 span + span { color: #fff; }
.regla p { margin-top: 28px; font-size: clamp(18px, 1.5vw, 22px); color: #C9D3E3; max-width: 34ch; }
.mando { justify-self: center; position: relative; width: min(320px, 100%); aspect-ratio: 1; display: grid; place-items: center; }
.mando .anillo, .mando .onda { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(188, 204, 255, .42); transform: scale(calc(.7 + var(--p, 0) * .3)); }
.mando .anillo + .anillo { inset: 16%; border-color: rgba(188, 204, 255, .3); }
.mando .onda { opacity: 0; border-width: 2px; border-color: rgba(255, 255, 255, .7); }
.mando .boton svg { display: inline-block; width: 0; height: 22px; margin-right: 0; vertical-align: -2px; opacity: 0; transition: opacity .3s, width .3s var(--ease-out), margin .3s var(--ease-out); }
.mando.pulsado .boton svg { opacity: 1; width: 22px; margin-right: 10px; }
.mando .boton { position: relative; padding: 26px 34px; border-radius: 26px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -12px 24px -14px rgba(0, 0, 0, .5), 0 40px 70px -30px rgba(0, 0, 0, .7); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); font-family: var(--t-display); font-weight: 600; font-size: clamp(28px, 2.6vw, 36px); padding: 30px 46px; letter-spacing: -0.01em; transition: transform .18s var(--ease-out), background .3s, color .3s; }
.mando.pulsado .boton { transform: scale(.95); background: rgba(255, 255, 255, .92); color: var(--tinta); }

.equipo { padding: clamp(110px, 16vh, 180px) 0; }
.equipo .envoltura { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.equipo .texto { margin-top: 22px; }
.baraja { position: relative; height: 660px; perspective: 1400px; }
.carta { position: absolute; left: 50%; top: 50%; width: min(380px, 92%); padding: 20px 22px; border-radius: 18px; background: #FFFEFB; border: 1px solid rgba(15, 42, 74, .08); box-shadow: 0 24px 44px -26px rgba(15, 42, 74, .45); transform: translate(-50%, -50%) translate3d(0, calc(var(--i) * 10px * (1 - var(--abre, 0)) + var(--off, 0px) * var(--abre, 0)), calc(var(--i) * -40px * (1 - var(--abre, 0)))) rotate(calc(var(--i) * (1 - var(--abre, 0)) * 1.4deg)); transition: transform .2s linear; z-index: calc(10 - var(--i)); }
.carta h3 { font-family: var(--t-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.carta h3 small { font-family: var(--t-texto); font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: rgba(15, 42, 74, .07); color: var(--tinta-2); white-space: nowrap; }
.carta p { margin-top: 6px; font-size: 15px; color: var(--tinta-2); line-height: 1.45; }
.carta:not(.max-carta) { background: rgba(242, 241, 237, .92); border: 1.5px dashed rgba(15, 42, 74, .26); box-shadow: none; }
.carta:not(.max-carta) h3 { color: var(--tinta-2); }
.carta.max-carta { background: var(--tinta); color: #fff; border-color: transparent; }
.carta.max-carta p { color: #C9D3E3; }
.carta.max-carta h3 small { background: rgba(110, 231, 176, .16); color: #6EE7B0; }

.origen { padding: clamp(100px, 14vh, 160px) 0; border-top: 1px solid var(--linea); }
.origen .h2 { max-width: 14ch; }
.origen .texto { margin-top: 24px; }
.sectores { margin: 72px 0 0; padding: 0; list-style: none; }
.sectores li { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 0; font-family: var(--t-display); font-weight: 600; font-size: clamp(26px, 3.4vw, 48px); line-height: 1; letter-spacing: -0.035em; transition: padding-left .4s var(--ease-out), color .3s; }
.sectores li::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--tinta); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease-out); }
.sectores li.visto::after { transform: scaleX(1); }
.sectores li:last-child { border-bottom: 1px solid var(--linea); }
.sectores li:hover { padding-left: 12px; color: var(--real); }
.sectores li span { font-family: var(--t-dato); font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--tinta-2); }
.formatos { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; color: var(--tinta-2); }
.formatos strong { color: var(--tinta); font-weight: 600; }

.cierre { position: relative; padding: clamp(110px, 16vh, 180px) 0 clamp(90px, 12vh, 140px); background: var(--real); color: #fff; overflow: hidden; isolation: isolate; }
.cierre .envoltura { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.cierre .h2 { font-size: clamp(42px, 6vw, 92px); }
.cierre p { margin-top: 22px; font-size: clamp(18px, 1.4vw, 21px); color: #DCE4FF; }
.cierre .acciones { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.cierre .btn-blanco { background: #fff; color: var(--tinta); box-shadow: 0 16px 34px -16px rgba(10, 20, 60, .6); font-size: 18px; padding: 18px 26px; }
.cierre .btn-blanco:hover { transform: translateY(-2px); }
.modulos { position: relative; justify-self: center; width: min(400px, 80%); aspect-ratio: 1; }
.modulos .m { position: absolute; width: 31.6%; height: 31.6%; border-radius: 3px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); opacity: clamp(0, (.97 - var(--p, 0)) * 15, 1); transform: translate3d(calc(var(--dx) * (1 - var(--p, 0))), calc(var(--dy) * (1 - var(--p, 0))), 0) rotate(calc(var(--dr) * (1 - var(--p, 0)))); }
.modulos .m.t { background: #BCCCFF; border-color: transparent; }
.modulos .m.l { background: #fff; border-color: transparent; }
.modulos .libre { position: absolute; left: 68.4%; top: 34.2%; width: 31.6%; height: 31.6%; border: 1.5px dashed rgba(255, 255, 255, calc(.55 - min(.55, max(0, (var(--p, 0) - .85) * 4)))); border-radius: 3px; display: grid; place-items: center; }
.modulos .simbolo-final { position: absolute; inset: 0; width: 100%; height: 100%; opacity: clamp(0, (var(--p, 0) - .88) * 12, 1); }
.modulos .libre { opacity: clamp(0, (.97 - var(--p, 0)) * 15, 1); }
.modulos .libre svg { width: 80%; height: 80%; opacity: calc((var(--p, 0) - .85) * 6.6); transform: scale(calc(.4 + .6 * min(1, max(0, (var(--p, 0) - .85) * 6.6)))) rotate(calc((1 - var(--p, 0)) * 90deg)); }

.pie { padding: 40px 0 48px; background: var(--tinta); color: #C9D3E3; font-size: 15px; }
.pie .envoltura { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.pie img { height: 22px; width: auto; }
.pie nav { display: flex; gap: 22px; }
.pie a { color: #fff; }

[data-revela] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
[data-revela].visto { opacity: 1; transform: none; }

@keyframes subir { to { transform: none; } }
@keyframes fundido { to { opacity: 1; } }
@keyframes aparecer { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes posar { from { opacity: 0; transform: rotate(-12deg) translate3d(-40px, 60px, -200px); } to { opacity: 1; transform: rotate(-4deg) translateZ(0); } }
@keyframes latido { 0% { box-shadow: 0 0 0 0 rgba(14, 122, 79, .45); } 70%, 100% { box-shadow: 0 0 0 10px rgba(14, 122, 79, 0); } }

@media (max-width: 960px) {
  .nav ul { display: none; }
  .hero { padding-top: 112px; }
  .hero .envoltura, .problema .envoltura, .recorrido, .altas, .regla .envoltura, .equipo .envoltura, .cierre .envoltura { grid-template-columns: 1fr; }
  .escena { height: 560px; }
  .recorrido-escena { position: relative; top: 0; height: auto; padding: 24px 0; }
  .paso { min-height: 0; padding: 32px 0; opacity: 1; }
  .pila { height: 380px; --alto-caida: 30px; }
  .baraja { height: 720px; }
  .modulos { width: min(300px, 80%); }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .nav { padding-left: 14px; }
  .nav .btn .contacto-txt { display: none; }
  .btn-contacto .contacto-tel { padding-left: 0; border-left: 0; color: #fff; }
  .escena { height: 640px; }
  .albaran { width: 84%; padding: 16px; }
  .albaran table { font-size: 11px; }
  .lente { left: 10%; width: 70%; }
  .fichas { width: 90%; top: 318px; right: 0; }
  .fichas { gap: 8px; } .ficha { padding: 10px 12px; } .ficha:nth-child(1) { display: none; }
  .ficha .preg { font-size: 13px; }
  .pildora-ok { right: auto; left: 0; bottom: -2%; font-size: 15px; }
  .hero .acciones .btn { flex: 1 1 100%; justify-content: center; }
  .ficha-alta { grid-template-columns: 96px 1fr; }
  .sectores li { flex-direction: column; align-items: flex-start; gap: 6px; }
  .baraja { height: 760px; }
  .carta { width: 94%; }
}
@media (max-width: 960px) {
  .ficha, .ficha-alta, .mando .boton, .nav { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}

.entrada { display: none; }
.con-entrada, .con-entrada body { overflow: hidden; }
.con-entrada .entrada { touch-action: none; overscroll-behavior: contain; position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--papel); transition: transform 1.1s cubic-bezier(.76, 0, .24, 1), border-radius 1.1s cubic-bezier(.76, 0, .24, 1); will-change: transform; }
.entrada.fuera { transform: translateY(-100%); border-radius: 0 0 48px 48px; pointer-events: none; }
.con-entrada:not(.dentro) .hero * { animation-play-state: paused !important; }
.entrada-centro { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px; }
.entrada-logo { height: clamp(28px, 4vw, 40px); width: auto; opacity: 0; animation: aparecer .9s .15s var(--ease-out) forwards; }
.entrada-frase { margin-top: 14px; font-family: var(--t-display); font-weight: 500; font-size: clamp(18px, 1.6vw, 22px); color: var(--tinta-2); opacity: 0; animation: aparecer .9s .3s var(--ease-out) forwards; }
.boton-esfera { margin-top: clamp(40px, 8vh, 72px); width: 108px; height: 108px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .98), rgba(255, 255, 255, .55) 38%, rgba(220, 228, 245, .55) 70%, rgba(180, 194, 222, .7)); box-shadow: inset 0 -10px 22px -8px rgba(15, 42, 74, .28), inset 0 6px 14px rgba(255, 255, 255, .9), 0 30px 50px -22px rgba(15, 42, 74, .55), 0 0 0 1px rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; animation: aparecer .9s .45s var(--ease-out) forwards, flota 4s 1.4s ease-in-out infinite alternate; transition: transform .2s var(--ease-out); }
.boton-esfera:hover { transform: scale(1.04); }
.boton-esfera:focus-visible { outline: 2px solid var(--real); outline-offset: 6px; border-radius: 50%; }
.entrada.arrastra { transition: none; }
.boton-esfera:active { transform: scale(.94); }
.boton-esfera img { width: 40px; height: 40px; }
.entrada-pista { margin-top: 22px; display: inline-flex; flex-direction: column; align-items: center; gap: 6px; font-size: 15px; color: var(--tinta-2); opacity: 0; animation: aparecer .9s .7s var(--ease-out) forwards; }
.entrada-pista svg { width: 20px; height: 20px; animation: empuja 1.6s ease-in-out infinite; }
.esferas { position: absolute; inset: 0; overflow: hidden; }
.entrada::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--linea) 1px, transparent 1px), linear-gradient(90deg, var(--linea) 1px, transparent 1px); background-size: 120px 120px; background-position: center; opacity: .55; mask-image: radial-gradient(80% 70% at 50% 50%, #000 25%, transparent 80%); }
.esfera { position: absolute; border-radius: 50%; background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, .85) 0 6%, rgba(255, 255, 255, .10) 26%, rgba(255, 255, 255, 0) 58%, rgba(15, 42, 74, .12) 100%); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .75), inset 0 -10px 22px -10px rgba(15, 42, 74, .28), 0 30px 50px -30px rgba(15, 42, 74, .45); animation: deriva-esfera var(--d) ease-in-out infinite alternate; transform: translate(calc(var(--emx, 0) * var(--k, 8px)), calc(var(--emy, 0) * var(--k, 8px))); transition: transform .8s var(--ease-out); }
.esfera::before { content: ""; position: absolute; inset: -6%; border-radius: 50%; background-image: linear-gradient(rgba(15, 42, 74, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 42, 74, .13) 1px, transparent 1px); background-size: 34% 34%; background-position: center; transform: scale(1.12); mask-image: radial-gradient(circle at 50% 50%, #000 40%, transparent 70%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 40%, transparent 70%); opacity: .9; }
.esfera::after { content: ""; position: absolute; left: 18%; top: 12%; width: 34%; height: 22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0)); transform: rotate(-25deg); }
.e1 { width: 180px; height: 180px; left: 8%; top: 14%; --d: 9s; --k: 20px; }
.e2 { width: 90px; height: 90px; right: 14%; top: 18%; --d: 7s; }
.e3 { width: 260px; height: 260px; right: 6%; bottom: 6%; --d: 11s; --k: 24px; }
.e4 { width: 60px; height: 60px; left: 22%; bottom: 18%; --d: 6s; --k: 6px; }
.e5 { width: 120px; height: 120px; left: 46%; top: 6%; --d: 10s; --k: 12px; }
.entrada.fuera .esfera { transform: translateY(-30vh) scale(.8); transition: transform 1.1s cubic-bezier(.76, 0, .24, 1); }
@keyframes flota { to { transform: translateY(-8px); } }
@keyframes empuja { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes deriva-esfera { to { translate: 14px -22px; } }

[data-inclina] { --rx: 0deg; --ry: 0deg; transition: transform .5s var(--ease-out); }
.ficha-alta[data-inclina], .recorrido-escena .md[data-inclina] { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }
.mando .boton { transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--sc, 1)); }
.mando.pulsado .boton { --sc: .95; transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--sc)); }
[data-inclina]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(120% 80% at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .55), transparent 40%); opacity: var(--brillo, 0); transition: opacity .4s; }
.ficha-alta[data-inclina], .recorrido-escena .md[data-inclina] { box-shadow: calc(var(--nx, 0) * -30px) calc(28px + var(--ny, 0) * -30px) 60px -18px rgba(15, 42, 74, .38), inset 0 1px 0 rgba(255, 255, 255, .85); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }

@media (max-height: 760px) and (min-width: 961px) { .hero { padding: 104px 0 48px; } .escena { height: 520px; } }
@media (min-width: 1100px) { .recorrido-escena .md { scale: 1.14; } }

@media (min-width: 961px) {
  .hero .escena { transform: translate3d(0, calc(var(--h, 0) * -140px), 0) scale(calc(1 - var(--h, 0) * .08)); }
  .hero .texto, .hero .acciones { translate: 0 calc(var(--h, 0) * -40px); }
  .hero .escena-capas { transform: rotateX(calc(var(--my, 0) * 3deg + var(--h, 0) * 18deg)) rotateY(calc(var(--mx, 0) * -4deg - var(--h, 0) * 10deg)) translateZ(calc(var(--h, 0) * -120px)); }
  .hero .fichas { transform: translateZ(calc(60px + var(--h, 0) * 260px)) translateX(calc(var(--h, 0) * 40px)); }
  .hero h1 { transform: translate3d(0, calc(var(--h, 0) * -80px), 0); opacity: calc(1 - var(--h, 0) * .6); }
}

.origen-titular { font-size: clamp(44px, 8vw, 128px); max-width: 12ch; }
.origen-texto { margin-top: 40px; max-width: 30ch; font-family: var(--t-display); font-weight: 500; font-size: clamp(26px, 3vw, 44px); line-height: 1.18; letter-spacing: -0.02em; color: var(--tinta); }
.origen-texto .pal { opacity: .16; transition: opacity .35s var(--ease-out); }
.origen-texto .pal.on { opacity: 1; }

:focus-visible { outline-color: var(--real); }
#titular:focus { outline: none; }
.regla :focus-visible, .cierre :focus-visible, .pie :focus-visible { outline-color: #fff; }
.cierre .btn-blanco:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

@media (min-width: 961px) {
  .regla { min-height: 200vh; padding: 0; }
  .regla .envoltura { position: sticky; top: 0; min-height: 100svh; align-content: center; }
  .origen-momento { height: 200vh; }
  .origen-fijo { position: sticky; top: 0; min-height: 100svh; display: grid; align-content: center; }
  .recorrido { align-items: start; }
  .recorrido-escena { position: sticky; top: 104px; height: min(600px, calc(100svh - 140px)); }
}
.origen-texto { font-size: clamp(30px, 4.2vw, 64px); max-width: 24ch; }

.presenta-aviso { position: fixed; left: 50%; bottom: 24px; z-index: 150; padding: 10px 18px; border-radius: 99px; background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 14px 34px -16px rgba(15, 42, 74, .45); color: var(--tinta); font: 600 14px/1 var(--t-dato, inherit); letter-spacing: .02em; pointer-events: none; opacity: 0; transform: translate(-50%, 10px); transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); }
.presenta-aviso.esta { opacity: 1; transform: translate(-50%, 0); }
.presenta.quieto, .presenta.quieto * { cursor: none !important; }

@media (prefers-reduced-motion: reduce) {
  .hero h1 .ln > span, .hero .texto, .hero .acciones, .albaran, .lente { animation: none; opacity: 1; transform: none; }
  .albaran { transform: rotate(-4deg); }
  .lente { transform: rotate(-4deg); }
  .ficha { opacity: 1; transform: translate3d(0, 0, var(--z, 0px)); }
  .pildora-ok { opacity: 1; transform: none; }
  [data-revela] { opacity: 1; transform: none; }
  .hoja { --caida: 1 !important; }
  .carta { --abre: 1 !important; }
  .modulos { --p: 1 !important; }
  .punto { animation: none; }
  .origen-texto .pal { opacity: 1; }
}
