/* Una sola paleta por producto; JavaScript lee estos tokens para los materiales 3D. */
:root {
  color-scheme: light;
  --paper: #f5f6fa;
  --white: #ffffff;
  --ink: #141827;
  --muted: #555d71;
  --product-color: #ebe7df;
  --product-secondary: #d6d2ca;
  --product-text: #56534c;
  --product-light: #ebe7df;
  --on-product: #141827;
  --line: #d8dce7;
  --page: 1280px;
  font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

:root, [data-product] {
  --accent: var(--product-text);
  --light-accent: var(--product-light);
}
[data-product="salud"] { --product-color: #415BE6; --product-secondary: #14B8A6; --product-text: #415BE6; --product-light: #8D9CEE; --on-product: #FFFFFF; }
[data-product="cuentas"] { --product-color: #0F766E; --product-secondary: #7CC4B6; --product-text: #0F766E; --product-light: #7CC4B6; --on-product: #FFFFFF; }
[data-product="factura"] { --product-color: #CAD77F; --product-secondary: #CAD77F; --product-text: #5F6B22; --product-light: #CAD77F; --on-product: #141827; }
[data-product="agenda"] { --product-color: #185B53; --product-secondary: #8B6B33; --product-text: #185B53; --product-light: #70C6BB; --on-product: #FFFFFF; }
[data-product="hme"] { --product-color: #FFC720; --product-secondary: #FFC720; --product-text: #776000; --product-light: #FFC720; --on-product: #141827; }
[data-product="presidencial"] { --product-color: #C9A86A; --product-secondary: #C9A86A; --product-text: #786036; --product-light: #C9A86A; --on-product: #141827; }
[data-product="lekalitas"] { --product-color: #FFFFFF; --product-secondary: #181818; --product-text: #181818; --product-light: #FFFFFF; --on-product: #181818; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 16px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
img, svg, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--product-color); color: var(--on-product); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; }
p { line-height: 1.65; }
h2 { font-size: clamp(32px, 3.3vw, 48px); line-height: 1.15; letter-spacing: -1.2px; }
.wrap { width: min(var(--page), calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; left: 20px; top: -100px; z-index: 100; padding: 14px 20px; background: var(--white); color: var(--ink); }
.skip-link:focus { top: 12px; }
.site-header { position: absolute; z-index: 10; height: 100px; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; color: var(--paper); }
.wordmark { display: inline-flex; align-items: baseline; font-size: 40px; line-height: 1; font-weight: 750; letter-spacing: -2px; }
.wordmark::after { content: ""; width: 7px; height: 7px; background: var(--product-color); border-radius: 50%; margin-left: 5px; }
.primary-nav { display: flex; align-items: center; gap: 32px; font-size: 14px; }
.primary-nav a:hover, .products-menu summary:hover { color: var(--light-accent); }
.nav-contact { border-bottom: 1px solid var(--product-color); padding: 12px 0; }
.products-menu { position: relative; }
.products-menu summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 0; }
.products-menu summary::-webkit-details-marker { display: none; }
.products-menu summary::after { content: "+"; font-size: 20px; }
.products-menu[open] summary::after { content: "−"; }
.menu-panel { position: absolute; right: -80px; top: 48px; width: 310px; padding: 12px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 20px 80px #0004; }
.menu-panel a { display: flex; gap: 14px; align-items: center; padding: 8px 12px; min-height: 50px; }
.menu-panel a:hover, .menu-panel a[aria-current] { background: #e8e7e3; color: var(--ink); }
/* Símbolos del sitio: sin placa, color heredado y una misma caja óptica. */
.product-logo { width: 64px; height: 64px; color: var(--product-text); flex-shrink: 0; }
.menu-panel .product-logo { width: 32px; height: 32px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 1.3px; line-height: 1.5; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 50px; padding: 14px 22px; border: 1px solid var(--on-product); border-radius: 5px; background: var(--product-color); color: var(--on-product); font-size: 14px; font-weight: 600; transition: background .2s; }
.button:hover { background: var(--product-color); box-shadow: inset 0 0 0 2px var(--on-product); }
.button span { font-size: 21px; font-weight: 400; line-height: 1; }
.text-link { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; padding-block: 10px; border-bottom: 1px solid currentColor; font-size: 14px; font-weight: 600; }
.text-link { color: var(--accent); }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 32px; }
/* La versión estática es el estado base y conserva enlaces a los siete productos. */
.experience { height: 780px; min-height: 720px; position: relative; isolation: isolate; overflow: hidden; color: #f5f6fa; background: #141827; }
.experience::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#101420d9,transparent 64%),linear-gradient(0deg,#101420d9,transparent 30%); z-index: -1; pointer-events: none; }
.scene-surface { position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse at 69% 42%,#343c50 0,#1c2232 47%,#111522 85%); }
.scene-surface canvas { position: absolute; width: 100%; height: 100%; inset: 0; }
.scene-heading { position: absolute; left: max(48px,calc((100% - 1280px)/2)); top: 144px; max-width: 550px; pointer-events: none; }
.scene-heading .eyebrow { color: #c2c9df; }
.scene-title { font: 400 clamp(54px,6vw,88px)/.99 Georgia,"Times New Roman",serif; letter-spacing: -2px; margin-top: 20px; max-width: 570px; }
.scene-title { color: var(--light-accent); }
.scene-title em { font-weight: 400; color: inherit; }
.scene-subtitle { margin-top: 24px; font-size: 16px; max-width: 380px; color: #c2c9df; }
.scene-explanation { position: absolute; bottom: 158px; left: max(48px,calc((100% - 1280px)/2)); width: 320px; }
.scene-explanation .eyebrow { color: var(--light-accent); margin-bottom: 12px; }
.scene-explanation > p:not(.eyebrow) { color: #e1e5f0; font-size: 14px; line-height: 1.65; }
.scene-explanation .text-link { margin-top: 14px; color: var(--light-accent); }
.scene-explanation .text-link:hover { color: var(--light-accent); }
.scene-detail { position: absolute; right: max(48px,calc((100% - 1280px)/2)); bottom: 160px; width: 230px; font-size: 14px; color: #e1e5f0; }
.scene-detail-rule { display: block; width: 36px; height: 3px; background: var(--product-color); margin-bottom: 15px; }
.scene-detail .button { margin-top: 16px; background: var(--product-color); color: var(--on-product); border-color: var(--on-product); }
.scene-detail .button:hover { background: var(--product-color); }
.scene-side-note { position: absolute; right: 20px; top: 46%; writing-mode: vertical-rl; font-size: 12px; color: #c2c9df; letter-spacing: 1px; }
.product-dock { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; padding: 7px; max-width: calc(100% - 48px); border: 1px solid #ffffff24; border-radius: 12px; background: #141827e8; box-shadow: 0 10px 40px #0003; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #7f8aa6 transparent; z-index: 3; }
.dock-item { flex: 0 0 94px; min-height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; font-size: 12px; padding: 8px 4px; white-space: nowrap; border-radius: 6px; border: 1px solid transparent; }
.dock-item .product-logo { width: 32px; height: 32px; color: var(--product-light); }
.dock-item[aria-current="page"] .product-logo { color: var(--on-product); }
.dock-item:hover { background: #ffffff12; }
.dock-item[aria-current="page"] { background: var(--product-color); color: var(--on-product); border-color: #ebe7df; }
.contact-icon { width: 30px; height: 30px; display: grid; place-items: center; font-size: 26px; }
.motion-toggle { position: absolute; right: 24px; top: 110px; border: 0; border-bottom: 1px solid #ffffff50; background: transparent; color: #c2c9df; padding: 10px 0; font-size: 12px; z-index: 4; }
.experience :focus-visible, .site-header :focus-visible { outline-color: #ebe7df; }
.scene-cursor { display: none; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border: 1px solid #ffffff60; border-radius: 50%; pointer-events: none; margin: -11px; }
.scene-cursor::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff8; }
.static-system { position: absolute; right: 11%; top: 25%; width: 43%; height: 330px; display: flex; align-items: center; justify-content: center; transform: rotate(-16deg); }
.static-system i { position: relative; display: block; width: 12%; height: calc(190px + var(--order)*13px); margin-left: -2%; background: linear-gradient(120deg,#ffffff35,transparent 65%),var(--product-color); border-radius: 70% 10% 70% 10%; transform: skewY(-12deg) translateY(calc(var(--order)*-6px)); opacity: .78; box-shadow: 12px 18px 50px #0003; }
.experience.is-immersive { height: 100svh; min-height: 720px; }
.is-immersive .static-system { display: none; }
@media (hover:hover) { .is-immersive.has-pointer .scene-cursor { display: block; } }
/* Directorio de productos: filas continuas, sin mosaico ni contenedores por tarjeta. */
.home-content { padding-top: 90px; }
.home-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 60px; margin-bottom: 48px; }
.home-intro .eyebrow { color: var(--accent); margin-bottom: 22px; }
.home-intro > p { max-width: 355px; color: var(--muted); font-size: 16px; }
.product-row { display: grid; grid-template-columns: 64px 1fr 1.25fr 115px; align-items: center; gap: 30px; padding: 32px 8px; border-top: 1px solid var(--line); transition: background .2s; }
.product-row:last-child { border-bottom: 1px solid var(--line); }
.product-row:hover { background: #eae9e5; }
.product-row h3 { font-size: 28px; letter-spacing: -.5px; margin-top: 5px; }
.product-row .eyebrow { color: var(--muted); letter-spacing: .6px; }
.product-row > p { color: var(--muted); font-size: 15px; }
.row-link { font-size: 14px; font-weight: 600; color: var(--accent); display: flex; justify-content: space-between; gap: 16px; }
.brand-note { margin-top: 100px; padding: 70px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.brand-note .eyebrow { color: var(--accent); margin-bottom: 20px; }
.brand-note p:not(.eyebrow) { color: var(--muted); }
.brand-note p + p { margin-top: 20px; }
.brand-note .text-link { margin-top: 22px; }
.cta-band { padding: 65px 0 80px; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.cta-band .eyebrow { color: var(--accent); margin-bottom: 18px; }
.cta-band h2 { max-width: 700px; }
.breadcrumb { display: flex; gap: 12px; font-size: 12px; color: var(--muted); padding-top: 32px; }
.breadcrumb a:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: 1.4fr .8fr; gap: 100px; padding: 60px 0 80px; align-items: center; }
.product-identity { display: flex; align-items: center; gap: 16px; font-size: 16px; font-weight: 600; margin-bottom: 30px; }
.hero-copy > .eyebrow, .product-outline .eyebrow { color: var(--accent); }
.hero h1 { font-size: clamp(48px,5.3vw,74px); line-height: 1.06; letter-spacing: -1.7px; margin-top: 20px; }
h1 em { font-family: Georgia,"Times New Roman",serif; font-weight: 400; color: var(--accent); }
.hero-copy > p { color: var(--muted); font-size: 17px; max-width: 600px; margin-top: 28px; }
.product-outline { border-left: 3px solid var(--product-color); padding-left: 36px; }

.outline-audience { font: 28px/1.3 Georgia,serif; margin-top: 16px; }
.product-outline ul { list-style: none; margin: 28px 0 0; padding: 0; }
.product-outline li { border-top: 1px solid var(--line); }
.product-outline li a { display: flex; justify-content: space-between; gap: 15px; padding: 18px 0; font-size: 14px; }
.product-outline li a:hover { color: var(--accent); }
.capabilities { padding: 70px 0; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 60px; margin-bottom: 45px; }
.section-heading .eyebrow { color: var(--accent); margin-bottom: 20px; }
.section-heading > p { color: var(--muted); font-size: 15px; max-width: 360px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 80px; }
.feature { padding: 30px 0; border-top: 1px solid var(--line); }
.feature h3 { font-size: 24px; line-height: 1.3; letter-spacing: -.4px; }
.feature p { color: var(--muted); font-size: 15px; margin-top: 14px; max-width: 490px; }
.product-context { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; padding: 60px 0 70px; border-block: 1px solid var(--line); }
.product-context .eyebrow { color: var(--accent); margin-bottom: 20px; }
.product-context h2 { max-width: 470px; font-size: 36px; }
.product-context p { color: var(--muted); font-size: 16px; }
.product-context p + p { margin-top: 18px; }
.next-step { display: grid; grid-template-columns: 1.25fr 1fr; margin-block: 80px; border-block: 1px solid var(--line); }
.next-product { padding: 45px 50px 45px 0; border-top: 3px solid var(--product-color); }
.next-product .eyebrow, .next-product h2 { color: var(--accent); }
.next-product > .product-logo { margin-block: 26px; }
.next-product h2 { font-size: 36px; }
.next-product h2 span { display: inline-block; color: var(--accent); }
.next-product > p:last-child { font-size: 17px; color: var(--muted); margin-top: 18px; }
.next-product:hover h2 { color: var(--accent); }
.next-contact { background: color-mix(in srgb, var(--product-color) 5%, var(--paper)); padding: 45px; }
.next-contact h2 { margin-top: 24px; }
.next-contact p:not(.eyebrow) { color: var(--muted); margin-block: 20px 26px; }
.next-contact .eyebrow { color: var(--muted); }
.contact-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; padding: 65px 0 80px; align-items: start; }
.contact-hero h1 { font-size: clamp(48px,5.3vw,74px); line-height: 1.07; letter-spacing: -1.5px; margin-top: 24px; }
.contact-hero .intro { font-size: 17px; color: var(--muted); max-width: 430px; margin-top: 28px; }
.contact-panel { border-left: 1px solid var(--line); padding-left: 50px; }
.contact-panel > .eyebrow { color: var(--accent); margin-bottom: 18px; }
.contact-panel h2 { font-size: 34px; }
.form-intro { color: var(--muted); font-size: 15px; margin-block: 20px 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form-wide { grid-column: 1 / -1; }
.form-field label { font-size: 14px; font-weight: 600; }
.form-field label span { color: var(--muted); font-weight: 400; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 48px; border: 1px solid #9aa3b8; border-radius: 4px; background: #fff; color: var(--ink); padding: 11px 12px; font-size: 16px; }
.form-field textarea { resize: vertical; line-height: 1.5; }
.form-field [aria-invalid="true"] { border: 2px solid #a02e40; }
.field-hint { color: var(--muted); font-size: 12px; line-height: 1.5; }
.field-error { color: #a02e40; font-size: 13px; line-height: 1.5; }
.form-help { color: var(--muted); font-size: 13px; margin-block: 24px 20px; }
.form-submit:disabled { opacity: .6; cursor: default; }
.form-status { margin-top: 24px; border-left: 3px solid var(--product-color); background: #e8e7e3; padding: 20px; font-size: 15px; }
.contact-guide { border-top: 1px solid var(--line); padding: 60px 0 80px; }
.contact-guide h2 { margin-bottom: 35px; }
.guide-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 50px; }
.guide-grid h3 { font-size: 22px; }
.guide-grid p { color: var(--muted); font-size: 15px; margin-top: 16px; }
.site-footer { background: var(--ink); color: var(--paper); padding: 55px 0 25px; }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr .7fr; gap: 60px; }
.footer-brand p { color: #c2c9df; font-size: 14px; margin-top: 24px; }
.footer-heading { font-size: 12px; color: #c2c9df; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; }
.footer-products { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; font-size: 14px; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; font-size: 14px; }
.site-footer a:hover { color: var(--light-accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid #ffffff24; margin-top: 50px; padding-top: 22px; color: #c2c9df; font-size: 12px; }
@media (min-width:1800px) { .scene-heading { top: 18%; } .scene-title { font-size: 96px; } }
@media (max-width:1050px) {
 .wrap { width: calc(100% - 56px); }
 .scene-heading, .scene-explanation { left: 28px; }
 .scene-detail { right: 28px; width: 200px; }
 .scene-title { font-size: 65px; }
 .dock-item { flex-basis: 84px; }
 .hero, .contact-hero { gap: 45px; }
 .product-outline { padding-left: 24px; }
 .product-row { gap: 22px; grid-template-columns: 64px 1fr 1.1fr 90px; }
 .product-row h3 { font-size: 25px; }
 .brand-note, .product-context { gap: 50px; }
 .contact-panel { padding-left: 28px; }
}
@media (max-width:760px) {
 .wrap { width: calc(100% - 40px); }
 .site-header { height: 78px; }
 .wordmark { font-size: 34px; }
 .primary-nav { gap: 22px; font-size: 13px; }
 .nav-home { display: none; }
 .menu-panel { position: fixed; top: 72px; right: 20px; width: calc(100% - 40px); max-height: calc(100svh - 100px); overflow: auto; }
 .experience, .experience.is-immersive { height: 100svh; min-height: 740px; }
 .experience::after { background: linear-gradient(180deg,#10142060,transparent 38%,#10142012 51%,#101420e8 66%); }
 .scene-heading { left: 24px; top: 107px; right: 24px; max-width: none; }
 .scene-heading .eyebrow { font-size: 12px; letter-spacing: .8px; }
 .scene-title { font-size: clamp(46px,10vw,65px); letter-spacing: -1.3px; margin-top: 13px; }
 .scene-subtitle { font-size: 14px; margin-top: 15px; max-width: 310px; }
 .scene-explanation { left: 24px; bottom: calc(148px + env(safe-area-inset-bottom,0px)); right: 24px; width: auto; max-width: none; }
 .scene-explanation .eyebrow { margin-bottom: 7px; }
 .scene-explanation > p:not(.eyebrow) { font-size: 14px; line-height: 1.55; max-width: 480px; }
 .scene-explanation .text-link { margin-top: 7px; font-size: 14px; }
 .scene-detail { right: 24px; top: 85px; bottom: auto; width: auto; }
 .scene-detail > p, .scene-detail-rule { display: none; }
 .scene-detail .button { margin: 0; min-height: 40px; padding: 8px 13px; font-size: 12px; gap: 10px; }
 .scene-side-note { right: 9px; top: 40%; font-size: 12px; }
 .product-dock { left: max(16px,env(safe-area-inset-left)); right: max(16px,env(safe-area-inset-right)); bottom: calc(32px + env(safe-area-inset-bottom,0px)); transform: none; max-width: none; width: auto; padding: 5px; gap: 3px; border-radius: 8px; }
 .dock-item { flex-basis: 88px; min-height: 76px; }
 .motion-toggle { top: auto; right: 24px; bottom: calc(359px + env(safe-area-inset-bottom,0px)); padding: 6px 0; font-size: 12px; }
 .static-system { right: 10%; left: 10%; top: 34%; width: 80%; height: 190px; }
 .static-system i { height: calc(100px + var(--order)*8px); }
 .home-content { padding-top: 52px; }
 .home-intro, .section-heading { flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 32px; }
 .home-intro > p { max-width: none; font-size: 15px; }
 h2 { font-size: 34px; letter-spacing: -.7px; }
 .product-row { grid-template-columns: 54px 1fr; gap: 15px 20px; padding: 26px 0; }
 .product-row .product-logo { width: 54px; height: 54px; }
 .product-row h3 { font-size: 27px; }
 .product-row .eyebrow { font-size: 12px; letter-spacing: .25px; }
 .product-row > p { grid-column: 1/-1; font-size: 15px; }
 .row-link { grid-column: 2; justify-content: flex-start; }
 .brand-note { grid-template-columns: 1fr; gap: 28px; margin-top: 50px; padding: 36px 0; }
 .cta-band { flex-direction: column; align-items: flex-start; padding: 40px 0 55px; gap: 26px; }
 .breadcrumb { padding-top: 25px; }
 .hero { grid-template-columns: 1fr; gap: 42px; padding: 40px 0 48px; }
 .hero h1 { font-size: clamp(43px,8.9vw,64px); letter-spacing: -1px; }
 .hero-copy > p { font-size: 16px; }
 .product-identity { margin-bottom: 24px; }
 .product-identity .product-logo { width: 56px; height: 56px; }
 .actions { gap: 20px; }
 .product-outline { padding-left: 24px; }
 .outline-audience { font-size: 25px; }
 .product-outline ul { margin-top: 20px; }
 .product-outline li a { padding-block: 15px; }
 .capabilities { padding: 45px 0; }
 .section-heading > p { max-width: none; }
 .feature-grid { grid-template-columns: 1fr; }
 .feature { padding-block: 25px; }
 .feature h3 { font-size: 23px; }
 .product-context { grid-template-columns: 1fr; gap: 28px; padding-block: 40px; }
 .product-context h2 { font-size: 32px; }
 .product-context p { font-size: 15px; }
 .next-step { grid-template-columns: 1fr; margin-block: 48px; }
 .next-product { padding: 32px 0; }
 .next-product h2 { font-size: 31px; }
 .next-contact { padding: 32px 24px; margin-inline: -20px; }
 .contact-hero { grid-template-columns: 1fr; gap: 42px; padding: 42px 0 55px; }
 .contact-hero h1 { font-size: 52px; letter-spacing: -1px; }
 .contact-hero .intro { font-size: 16px; }
 .contact-panel { border-left: 0; padding: 34px 0 0; border-top: 1px solid var(--line); }
 .contact-panel h2 { font-size: 32px; }
 .form-grid { grid-template-columns: 1fr; }
 .contact-guide { padding: 40px 0 55px; }
 .guide-grid { grid-template-columns: 1fr; gap: 30px; }
 .footer-top { grid-template-columns: 1fr 1fr; gap: 40px 25px; }
 .footer-brand { grid-column: 1/-1; }
 .footer-products { grid-template-columns: 1fr; gap: 14px; }
 .site-footer { padding-top: 42px; }
 .footer-bottom { font-size: 12px; gap: 20px; }
}
@media (max-width:380px) { .scene-title { font-size: 45px; } .scene-explanation { left: 20px; right: 20px; } .scene-heading { left: 20px; } .scene-detail { right: 20px; } }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

.home-intro h1 { font-size: clamp(32px, 3.3vw, 48px); line-height: 1.15; letter-spacing: -1.2px; }
@media (max-width:760px) { .home-intro h1 { font-size: 34px; letter-spacing: -.7px; } }

@media (max-width:760px) {
 .scene-detail { top: auto; bottom: calc(150px + env(safe-area-inset-bottom,0px)); }
 .scene-explanation .text-link { max-width: calc(100% - 125px); }
 .scene-side-note { display: none; }
}
/* La máscara superior mantiene el título y su frase legibles sobre todas las piezas. */
@media (max-width:760px) {
 .experience::after { background: linear-gradient(180deg,#101420e8 0%,#101420d9 26%,#10142000 45%,#10142010 52%,#101420ef 67%); }
}
/* Los controles conservan contraste aunque la luz de la escena cambie detrás. */
.scene-detail { width: 220px; padding: 0; background: transparent; border: 0; }
.scene-detail > p { padding: 6px 0; color: var(--light-accent); background: #141827; }
body[data-page="inicio"] .scene-detail > p, body[data-page="inicio"] .scene-detail-rule { display: none; }
.scene-side-note { padding: 12px 5px; background: #141827ed; border-radius: 3px; }
.motion-toggle { padding: 10px 12px; background: #141827ed; border: 1px solid #ffffff30; border-radius: 4px; }
@media (max-width:760px) {
 .scene-detail { width: auto; padding: 0; background: transparent; border: 0; }
 .motion-toggle { padding: 7px 10px; }
}
