html.js:has(.immersive) {scroll-behavior:auto}
.immersive {position:relative;isolation:isolate;overflow:clip;color:#f5f5f7}
.immersive [hidden] {display:none!important}
/* Lienzo y póster comparten proyección. No hay un hueco de logo en el contenido.
   La escultura se aparta del texto: el metal se desvanece solo detrás de él
   (máscara del lienzo y del póster, nunca una capa encima), así el texto se lee
   perfecto y alrededor queda el mismo fondo que en el resto de la web (Adrian,
   2026-12-02). La caja del texto (--tx1, --ty0, --ty1) la mide js/immersive.js;
   estos valores son la reserva hasta entonces y sin JavaScript, calculados
   con la misma maqueta (texto centrado entre los márgenes del hero) para que
   al medir no haya salto. Arriba, el metal sale de la oscuridad por debajo
   del menú */
.immersive {
  --ty-medio:calc((100% + var(--nav-h) - 50px)/2);--ty-mitad:clamp(185px,15vw,265px);
  --tx1:calc(max(6vw,24px) + min(56vw,790px) - 30px);
  --ty0:calc(var(--ty-medio) - var(--ty-mitad));--ty1:calc(var(--ty-medio) + var(--ty-mitad));
}
.immersive-canvas,.immersive-object {
  position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0;
  --fundido:linear-gradient(to bottom,transparent,rgba(0,0,0,.1) calc(var(--nav-h)*.7),rgba(0,0,0,.5) calc(var(--nav-h)*1.15),rgba(0,0,0,.88) calc(var(--nav-h)*1.45),#000 calc(var(--nav-h)*1.65),#000 85%,transparent);
  --hueco-x:linear-gradient(90deg,rgba(0,0,0,var(--hueco,1)) calc(var(--tx1) + 12px),transparent calc(var(--tx1) + 170px));
  --hueco-y:linear-gradient(to bottom,transparent calc(var(--ty0) - 130px),#000 calc(var(--ty0) - 12px),#000 calc(var(--ty1) + 12px),transparent calc(var(--ty1) + 130px));
  -webkit-mask-image:var(--fundido),var(--hueco-x),var(--hueco-y);-webkit-mask-composite:source-out,source-in;
  mask-image:var(--fundido),var(--hueco-x),var(--hueco-y);mask-composite:subtract,intersect;
}
.immersive-object {display:block;overflow:hidden}
.immersive-poster {position:absolute;top:0;left:72%;height:100%;width:auto;max-width:none;aspect-ratio:8/5;transform:translateX(-50%);display:block}
.immersive[data-render="live"] .immersive-object {visibility:hidden}
.immersive-layout {min-height:max(740px,100svh);padding:calc(var(--nav-h) + 60px) max(6vw,24px) 110px;display:flex;align-items:center}
.immersive-intro,.immersive-offer,.immersive-foot {position:relative;z-index:2}
.immersive-intro {width:min(56vw,790px);text-align:left}
.immersive-discipline,.immersive-signature {font-size:clamp(12px,1vw,15px);font-weight:550;letter-spacing:.015em;color:#d4d4d8}
.immersive h1,.immersive-offer h2 {text-wrap:balance;letter-spacing:-.061em;line-height:1.04}
.immersive h1 {font-size:clamp(40px,4.25vw,72px);font-weight:540;margin:20px 0 0}
.immersive h1 span {display:block;color:#c7c7cc;font-weight:310;font-size:.87em;margin-top:.18em}
.immersive-description {max-width:53ch;margin:25px 0 0;font-size:clamp(14px,1.08vw,17px);line-height:1.6;color:#ccccd0;text-wrap:pretty}
.immersive-actions {display:flex;align-items:center;gap:24px;margin-top:28px}
.immersive-open {gap:14px}
.immersive-open span,.immersive-arrow {font-family:inherit}
.immersive-diagnosis,.immersive-back {font:inherit;font-size:14px;font-weight:520;color:#e5e5e8;text-decoration:underline;text-underline-offset:5px;text-decoration-color:#8b8b92}
.immersive-diagnosis {display:inline-flex;align-items:center;min-height:44px}
.immersive-foot {position:absolute;bottom:22px;left:max(6vw,24px);right:max(6vw,24px);display:flex;align-items:center;gap:17px;color:#b5b5bc;font-size:12px}
.immersive-foot::after {content:"";height:1px;flex:1;background:linear-gradient(90deg,#434348,transparent 90%)}
.immersive-offer {position:absolute;inset:var(--nav-h) 0 0;align-content:center;padding:32px max(6vw,24px) 62px}
.immersive-offer-inner {max-width:940px;margin:auto;opacity:var(--arrival,1);transform:translateY(calc((1 - var(--arrival,1))*18px))}
.immersive-offer-inner:has(a:focus-visible,.immersive-back:focus-visible) {opacity:1;transform:none}
.immersive-offer h2 {font-size:clamp(44px,6.1vw,95px);font-weight:460;margin:12px 0 36px}
.immersive-offer h2:focus {outline:none}
.immersive-links {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(24px,6vw,96px)}
.immersive-links a {display:grid;grid-template-columns:1fr auto;align-content:start;align-items:baseline;gap:14px 12px;border-top:1px solid #808088;padding:23px 0 18px;color:#ededf0;text-decoration:none}
.immersive-link-title {font-size:clamp(25px,2.7vw,46px);font-weight:490;letter-spacing:-.055em;line-height:1.06}
.immersive-link-copy {grid-row:2;grid-column:1/-1;color:#c8c8d0;max-width:39ch;font-size:16px;line-height:1.5}
.immersive-arrow {grid-row:1;grid-column:2;font-size:23px}
.immersive-links a:hover .immersive-link-title {text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px}
.immersive-offer-actions {display:flex;align-items:center;gap:32px;margin-top:24px;flex-wrap:wrap}
.immersive-back {min-height:44px;border:0;background:none;cursor:pointer}
.immersive-back span {margin-right:8px}
.immersive[data-open] .immersive-intro,.immersive[data-open] .immersive-foot,.immersive:not([data-open]) .immersive-offer {pointer-events:none}
.immersive[data-open]:not([data-render="live"]) .immersive-object {visibility:hidden}
@media(max-height:740px) and (min-width:701px) {
  .immersive {--ty-medio:calc((100% + var(--nav-h) - 35px)/2);--ty-mitad:clamp(150px,13vw,200px)}
  .immersive-layout {min-height:max(640px,100svh);padding-top:calc(var(--nav-h) + 35px);padding-bottom:70px}
  .immersive h1 {font-size:clamp(38px,3.8vw,60px)}
  .immersive-description {margin-top:20px}
  .immersive-actions {margin-top:22px}
}
@media(max-width:700px) {
  /* En el móvil el texto va pegado abajo: su caja acaba a 82px del borde */
  .immersive {--tx1:100%;--ty0:calc(100% - 462px);--ty1:calc(100% - 82px)}
  .immersive-layout {min-height:max(720px,100svh);padding:calc(var(--nav-h) + 115px) 22px 82px;align-items:flex-end}
  .immersive-intro {width:100%;max-width:500px}
  .immersive-poster {left:52%;aspect-ratio:8/11}
  .immersive h1 {font-size:clamp(31px,7.85vw,51px);line-height:1.065;margin-top:15px}
  .immersive h1 span {font-size:.98em;margin-top:.16em}
  .immersive-description {margin-top:18px;max-width:44ch}
  .immersive-actions {margin-top:22px;gap:16px;flex-wrap:wrap}
  .immersive-links {grid-template-columns:1fr;gap:8px}
  .immersive-links a {padding:17px 0 15px;gap:8px 18px}
  .immersive-offer h2 {margin-bottom:26px}
  .immersive-link-copy {font-size:15px}
  .immersive-foot {bottom:18px}
  .immersive-offer-actions {gap:10px 24px;margin-top:16px}
}
@media(max-width:700px) and (max-height:720px) {
  .immersive {--ty0:calc(100% - 440px);--ty1:calc(100% - 65px)}
  .immersive-layout {min-height:max(560px,100svh);padding:calc(var(--nav-h) + 70px) 18px 65px}
  .immersive h1 {font-size:clamp(28px,7vw,39px)}
  .immersive-description {margin-top:14px}
  .immersive-actions {margin-top:16px;row-gap:2px}
  .immersive-foot {bottom:14px}
  .immersive-offer {padding:12px 20px 24px}
}
@media(max-width:380px) {
  .immersive-actions {flex-wrap:nowrap;gap:12px}
  .immersive-open {padding-inline:13px;font-size:13px;gap:7px}
  .immersive-diagnosis {font-size:12px}
  .immersive-offer h2 {font-size:40px}
}
@media(prefers-reduced-motion:reduce) {.immersive-offer-inner {transform:none}}
@media(forced-colors:active) {
  .immersive-canvas {display:none}
  .immersive:not([data-open]) .immersive-object {visibility:visible!important;opacity:.12}
  .immersive-intro,.immersive-offer-inner {background:Canvas;color:CanvasText}
  .immersive-links a {border-color:LinkText}
}
/* Alturas de reserva de las secciones extensas de portada. El navegador
   recuerda la altura real después de mostrar cada sección. */
@media screen {
  .demo {--section-height:640px}
  .check {--section-height:885px}
  .services {--section-height:1260px}
  .sample {--section-height:560px}
  .faq {--section-height:720px}
  .contact {--section-height:790px}
  :is(.demo,.check,.services,.sample,.faq,.contact) {
    content-visibility:auto;
    contain-intrinsic-block-size:auto var(--section-height);
  }
}
@media screen and (max-width:960px) {
  .demo {--section-height:910px}
  .check {--section-height:1210px}
  .services {--section-height:1880px}
  .sample {--section-height:835px}
  .faq {--section-height:810px}
  .contact {--section-height:1550px}
}
@media screen and (max-width:520px) {
  .demo {--section-height:900px}
  .check {--section-height:1820px}
  .services {--section-height:1730px}
  .sample {--section-height:955px}
  .faq {--section-height:830px}
  .contact {--section-height:1795px}
}
