:root{
  --fondo:#fff; --suave:#f5f6f8; --linea:#e3e6ea; --tinta:#1c2733; --apagado:#4a5766;
  --enlace:#26456b; --marca:#ff8a00; --marca-suave:#fff1de;
  --ojo:#fff6e3; --ojo-tinta:#6b4a00; --ok:#eaf5ee; --ok-tinta:#1d5a38;
  --fallo:#fdeeee; --fallo-tinta:#8a2a2a; --truco:#eef3fa; --truco-tinta:#26456b; --nota:#f3f4f6;
  --sans:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --lectura:72ch; --radio:10px; --alto-cab:68px;
}
*{box-sizing:border-box}
html{scroll-padding-top:calc(var(--alto-cab) + 16px);-webkit-text-size-adjust:100%}
body{margin:0;background:var(--fondo);color:var(--tinta);font:400 18px/1.65 var(--sans);overflow-wrap:break-word}
::selection{background:var(--marca-suave);color:var(--tinta)}
a{color:var(--enlace);text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:3px}
a:hover{text-decoration-thickness:2.5px}
:focus-visible{outline:3px solid var(--marca);outline-offset:2px;border-radius:4px}
img{max-width:100%;height:auto}
.salto{position:absolute;left:-999px;top:8px;background:#fff;padding:10px 14px;z-index:30;border:2px solid var(--tinta)}
.salto:focus{left:8px}

/* cabecera */
.cabecera{position:sticky;top:0;z-index:20;height:var(--alto-cab);display:flex;align-items:center;gap:20px;padding:0 24px;background:var(--fondo);border-bottom:1px solid var(--linea)}
.logo{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--tinta);font-weight:700;flex:none}
.logo img{display:block;height:40px;width:auto;max-width:none}
.logo span{padding-left:12px;border-left:1px solid var(--linea);color:var(--apagado);font-weight:600}
.buscador{position:relative;flex:1;max-width:620px;margin:0 auto}
.buscador>svg{position:absolute;left:14px;top:50%;width:22px;height:22px;transform:translateY(-50%);stroke:var(--apagado);fill:none;stroke-width:2;stroke-linecap:round;pointer-events:none}
.buscador input{width:100%;height:46px;padding:0 16px 0 46px;font:inherit;font-size:17px;color:var(--tinta);background:var(--suave);border:1px solid var(--linea);border-radius:999px}
.buscador input::placeholder{color:#5d6a79}
.buscador input:focus{background:#fff;border-color:#9aa6b4;outline:3px solid var(--marca-suave)}
.resultados{position:absolute;left:0;right:0;top:54px;margin:0;padding:6px;list-style:none;background:#fff;border:1px solid var(--linea);border-radius:var(--radio);box-shadow:0 8px 24px rgba(28,39,51,.12);max-height:70vh;overflow:auto}
.resultados a{display:block;padding:12px 14px;border-radius:8px;text-decoration:none;color:var(--tinta)}
.resultados a:hover,.resultados a:focus{background:var(--suave)}
.resultados small{display:block;color:var(--apagado);font-size:15px}
.resultados .vacio{padding:14px;color:var(--apagado)}
.pdf{display:flex;align-items:center;gap:8px;flex:none;font-weight:600;text-decoration:none;padding:10px 14px;border:1px solid var(--linea);border-radius:999px;color:var(--tinta)}
.pdf:hover{background:var(--suave)}
.pdf svg,.btn-indice svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.btn-indice{display:none;align-items:center;gap:8px;font:inherit;font-weight:600;color:var(--tinta);background:#fff;border:1px solid var(--linea);border-radius:999px;padding:10px 14px;cursor:pointer}

/* marco */
.marco{display:grid;grid-template-columns:300px minmax(0,1fr) 240px;min-height:calc(100vh - var(--alto-cab))}
.indice{position:sticky;top:var(--alto-cab);align-self:start;height:calc(100vh - var(--alto-cab));overflow:auto;padding:20px 16px 40px;border-right:1px solid var(--linea)}
.parte{margin-bottom:6px}
.parte summary{list-style:none;cursor:pointer;display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:10px 12px;border-radius:8px;font-weight:700}
.parte summary::-webkit-details-marker{display:none}
.parte summary:hover{background:var(--suave)}
.p-cuando{font-size:14px;font-weight:500;color:var(--apagado)}
.parte ul{list-style:none;margin:2px 0 8px;padding:0}
.parte a,.pronto{display:flex;align-items:flex-start;gap:10px;padding:8px 12px 8px 16px;border-radius:8px;text-decoration:none;color:var(--tinta);font-size:16.5px;line-height:1.4}
.parte a:hover{background:var(--suave)}
.parte a[aria-current=page]{background:var(--suave);font-weight:700}
.parte a[aria-current=page]::before{content:"";flex:none;width:9px;height:9px;margin-top:.45em;border-radius:50%;background:var(--marca);order:-1}
.marca{display:none;flex:none;width:18px;height:18px;margin-top:2px}
.marca svg{width:18px;height:18px;stroke:#1d7a4a;fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.parte a.visto .marca{display:block}
.parte a[aria-current=page] .marca{display:none}
.pronto{color:#6b7684;cursor:default;justify-content:space-between}
.pronto small{font-size:13px;border:1px solid var(--linea);border-radius:999px;padding:0 8px;height:22px;line-height:20px;flex:none}

/* lectura */
.contenido{padding:36px 56px 80px;min-width:0}
article,.portada,.camino{max-width:var(--lectura)}
.miga{margin:0 0 8px;font-size:15.5px;color:var(--apagado)}
.miga a{color:var(--apagado)}
h1{font-size:clamp(32px,4.2vw,44px);line-height:1.15;letter-spacing:-.015em;margin:0 0 14px;text-wrap:balance}
h2{font-size:28px;line-height:1.25;margin:56px 0 14px;letter-spacing:-.01em}
h3{font-size:21px;margin:30px 0 10px}
p{margin:0 0 16px}
.resumen,.intro{font-size:21px;line-height:1.55;color:var(--apagado);margin-bottom:22px}
.borrador{display:inline-block;background:var(--ojo);color:var(--ojo-tinta);border-radius:8px;padding:6px 12px;font-size:15.5px}
.etiqueta{list-style:none;margin:0 0 34px;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.etiqueta li{display:flex;gap:12px;align-items:center;padding:10px 16px 10px 12px;background:var(--suave);border-radius:var(--radio);font-weight:600;line-height:1.3}
.etiqueta svg{flex:none;width:24px;height:24px;stroke:var(--apagado);fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.etiqueta small{display:block;font-size:13.5px;font-weight:500;color:var(--apagado)}
.boton{display:inline-block;padding:0 .4em;margin:0 .05em;background:#fff;border:1px solid #b8c0ca;border-bottom-width:2px;border-radius:6px;font-weight:600;white-space:nowrap}
code{font:.9em ui-monospace,SFMono-Regular,Menlo,monospace;background:var(--suave);padding:.1em .35em;border-radius:5px}

/* pasos */
.pasos{margin:0 0 20px;padding:0;list-style:none;counter-reset:paso}
.pasos>li{counter-increment:paso;position:relative;padding:0 0 4px 52px;margin-bottom:16px}
ul.pasos>li{counter-increment:none;padding-left:26px}
ul.pasos>li::before{content:"";position:absolute;left:6px;top:.75em;width:7px;height:7px;border-radius:50%;background:var(--apagado)}
ol.pasos>li::before{content:counter(paso);position:absolute;left:0;top:0;width:36px;height:36px;border-radius:50%;background:var(--tinta);color:#fff;font-weight:700;font-size:17px;line-height:36px;text-align:center}
.pasos>li>p:first-child{font-size:19px;font-weight:500;margin-bottom:12px;padding-top:3px}

/* capturas */
.captura{margin:6px 0 22px}
.captura img{display:block;width:100%;border:1px solid var(--linea);border-radius:var(--radio);box-shadow:0 2px 10px rgba(28,39,51,.08)}
.captura figcaption{margin:10px auto 0;max-width:46em;text-align:center;font-size:15.5px;line-height:1.4;color:var(--apagado);text-wrap:balance}
.captura.pendiente .hueco{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:170px;background:var(--suave);border:1.5px dashed #aab3bf;border-radius:var(--radio);color:var(--apagado);font-weight:600}

/* equipo: una persona por bloque, cada una con su tono suave */
[data-persona]{--tono:#eceff3;--tono-tinta:#2f3b49}
[data-persona=sofia]{--tono:#e6eef9;--tono-tinta:#1f4478}
[data-persona=matias]{--tono:#e4f2e9;--tono-tinta:#1b5a37}
[data-persona=maria]{--tono:#eee9f8;--tono-tinta:#48367a}
[data-persona=lucia]{--tono:#dff1f1;--tono-tinta:#14565d}
.avatar{flex:none;display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:var(--tono);color:var(--tono-tinta);font-weight:700;font-size:26px;line-height:1}
.equipo{list-style:none;margin:8px 0 8px;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.equipo a{display:flex;flex-direction:column;align-items:flex-start;gap:2px;height:100%;padding:16px 14px 14px;border-radius:14px;background:var(--tono);color:var(--tono-tinta);text-decoration:none}
.equipo a:hover{box-shadow:0 4px 14px rgba(28,39,51,.12)}
.equipo .avatar{background:#fff;margin-bottom:10px}
.equipo .r-nombre{font-weight:700;font-size:20px;color:var(--tinta)}
.equipo .r-rol{font-size:16px;line-height:1.35;color:var(--tinta)}
.equipo .r-beneficio{margin-top:8px;font-size:16px;font-weight:700;color:var(--tono-tinta)}
.miembro>p:first-of-type>strong:first-child{color:var(--tono-tinta)}
.equipo .r-cuando{margin-top:auto;padding-top:10px;font-size:15px;font-weight:600}
/* caras del equipo (fotos de la landing) */
img.avatar.foto{object-fit:cover;object-position:50% 5%;background:var(--tono)}
.miembro-cab img.avatar{width:72px;height:72px}
.equipo a{padding:0 0 14px;overflow:hidden}
.equipo a>span{padding:0 14px}
.equipo .r-foto{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;object-position:50% 5%;margin:0 0 10px;background:#fff;border-radius:0}
.equipo .r-foto:not(.foto){display:grid;place-items:center;aspect-ratio:1/1;font-size:40px;font-weight:700}
/* cabecera con las caras, título en blanco sobre la foto */
.hero-cap{position:relative;isolation:isolate;display:flex;align-items:flex-end;min-height:360px;margin:6px 0 30px;border-radius:20px;overflow:hidden;background:#1a2430;color:#fff}
.hero-fotos{position:absolute;inset:0;z-index:-2;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:2px}
.hero-fotos img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 20%}
.hero-fotos img[src*="sofia"]{object-position:56% 20%}
.hero-fotos img[src*="maria"]{object-position:44% 20%}
.hero-cap::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(to top,rgba(14,24,34,.9) 0%,rgba(14,24,34,.62) 40%,rgba(14,24,34,.06) 72%)}
.hero-texto{padding:clamp(20px,4vw,34px);max-width:46ch}
.hero-cap h1{color:#fff;margin:0 0 8px;text-shadow:0 1px 14px rgba(0,0,0,.35)}
.hero-cap .resumen{color:rgba(255,255,255,.94);margin:0;font-size:20px}
@media (max-width:860px){.hero-cap{min-height:330px}}
.miembro{margin-top:64px}
.miembro-cab{display:flex;align-items:center;gap:16px;margin-bottom:18px}
.miembro-cab h2{margin:0;font-size:30px;line-height:1.1}
.rol{margin:2px 0 0;font-size:19px;color:var(--apagado)}
.cuando{margin-left:auto;align-self:flex-start;padding:4px 14px;border-radius:999px;background:var(--tono);color:var(--tono-tinta);font-size:15px;font-weight:700;white-space:nowrap}
.miembro .captura{margin:26px 0 0;padding:clamp(14px,3vw,26px);background:var(--tono);border-radius:18px}
.miembro .captura img{border:0;border-radius:10px;box-shadow:0 8px 22px rgba(28,39,51,.14)}
.miembro .captura figcaption{margin-top:14px;color:var(--tono-tinta);font-weight:600}
.miembro .captura.pendiente .hueco{background:rgba(255,255,255,.7);border-color:var(--tono-tinta);color:var(--tono-tinta)}
/* marcas naranjas encima de las capturas: recuadros y números */
.marcado,.pantalla.web,.pantalla.menu{position:relative}
.marcas{position:absolute;inset:0;pointer-events:none}
.marca-caja{position:absolute;border:3px solid var(--marca);border-radius:10px;box-shadow:0 0 0 2px rgba(255,255,255,.9)}
.marca-num{position:absolute;display:grid;place-items:center;width:30px;height:30px;transform:translate(-50%,-50%);border-radius:50%;background:var(--marca);color:var(--tinta);font-weight:800;font-size:17px;line-height:1;box-shadow:0 0 0 2px #fff}
.pantalla.menu{flex:0 0 min(300px,72%)}
.captura .pantalla.menu img{display:block;width:100%;height:auto;border:1px solid var(--linea);border-radius:12px;background:#fff;box-shadow:0 8px 22px rgba(28,39,51,.14)}
.marcado-movil{position:relative;display:block}
/* un PDF o una hoja: se enseña a tamaño de hoja, no a todo el ancho */
.captura.hoja{max-width:440px;margin-inline:auto}
/* varias capturas juntas: web ancha + móvil, o dos móviles */
.pantallas{display:flex;justify-content:center;align-items:flex-end;gap:clamp(10px,2.5vw,20px)}
.pantalla.web{flex:1 1 0;min-width:0}
.pantallas:has(.web + .web){flex-direction:column;align-items:stretch;gap:18px}
.captura .pantalla.web img{display:block;width:100%;height:auto;border:1px solid var(--linea);border-radius:10px;box-shadow:0 8px 22px rgba(28,39,51,.14)}
.pantalla.movil{flex:0 0 clamp(120px,31%,210px);padding:5px;background:#2b3440;border-radius:22px;box-shadow:0 8px 22px rgba(28,39,51,.18)}
.pantallas:not(:has(.web)) .pantalla.movil{flex-basis:clamp(130px,38%,230px)}
.captura .pantalla.movil img{display:block;width:100%;height:auto;border:0;border-radius:17px;box-shadow:none;background:#fff}
@media (max-width:860px){.equipo{grid-template-columns:1fr 1fr}.miembro-cab{flex-wrap:wrap}.cuando{margin-left:72px;align-self:auto}}

/* avisos */
.aviso{display:flex;gap:14px;align-items:flex-start;margin:20px 0;padding:16px 18px;border-radius:var(--radio);background:var(--nota)}
.aviso svg{flex:none;width:26px;height:26px;margin-top:1px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.aviso p{margin:0}
.aviso.warn{background:var(--ojo);color:var(--ojo-tinta)} .aviso.ok{background:var(--ok);color:var(--ok-tinta)}
.aviso.fail{background:var(--fallo);color:var(--fallo-tinta)} .aviso.tip{background:var(--truco);color:var(--truco-tinta)}
.aviso p,.aviso strong{color:var(--tinta)}
.aviso strong:first-child{color:inherit}
.aviso .boton{color:var(--tinta)}

/* pestañas */
.tabs{margin:12px 0 24px}
.tabs .panel{padding:4px 0}
.tabs.activo .panel{display:none}
.tabs.activo .panel.on{display:block}
.tabs.activo .panel>h3{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.tablist{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.tablist button{font:inherit;font-weight:600;padding:12px 20px;min-height:48px;background:#fff;color:var(--tinta);border:1.5px solid #b8c0ca;border-radius:999px;cursor:pointer}
.tablist button[aria-selected=true]{background:var(--tinta);color:#fff;border-color:var(--tinta)}

/* pie */
.pie{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:64px;padding-top:24px;border-top:1px solid var(--linea)}
.pie a{display:block;padding:16px 18px;border:1px solid var(--linea);border-radius:var(--radio);text-decoration:none;color:var(--tinta);font-weight:600}
.pie a:hover{background:var(--suave)}
.pie small{display:block;font-size:14px;font-weight:500;color:var(--apagado)}
.pie .sig{text-align:right;grid-column:2}
.pie .ant{grid-column:1}

/* índice de la página */
.toc{position:sticky;top:var(--alto-cab);align-self:start;padding:36px 20px;font-size:15.5px}
.toc-t{font-weight:700;margin:0 0 10px}
.toc ul{list-style:none;margin:0;padding:0}
.toc a{display:block;padding:6px 0;color:var(--apagado);text-decoration:none;line-height:1.4}
.toc a:hover{color:var(--tinta);text-decoration:underline}

/* portada */
.portada{padding-top:24px}
.portada h1{font-size:clamp(36px,5vw,52px)}
.cta{margin:26px 0 12px}
.boton-grande{display:inline-flex;align-items:center;gap:12px;padding:16px 26px;background:var(--tinta);color:#fff;border-radius:999px;font-weight:700;font-size:19px;text-decoration:none;min-height:56px}
.boton-grande:hover{background:#0f1822;text-decoration:none}
.boton-grande svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.seguir{font-size:18px;margin-top:22px}
.logros{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:10px}
.logros li{padding-left:22px;position:relative}
.logros li::before{content:"";position:absolute;left:0;top:.7em;width:8px;height:8px;border-radius:50%;background:var(--apagado)}
.dos-formas{margin-top:64px;max-width:var(--lectura)}
.dos-formas h2{font-size:30px;margin:0 0 8px}
.dispositivos{position:relative;margin:28px 0 36px;padding:0 0 18px}
.portatil{width:88%}
.portatil-pantalla{background:#2b3440;padding:10px 10px 12px;border-radius:14px 14px 4px 4px}
.portatil-pantalla img{display:block;width:100%;height:auto;border-radius:4px;background:#fff}
.portatil-base{height:12px;margin:0 -5%;background:#d5d9df;border-radius:0 0 16px 16px}
.telefono{position:absolute;right:0;bottom:0;width:27%;background:#2b3440;padding:6px;border-radius:26px;box-shadow:0 6px 20px rgba(28,39,51,.16)}
.telefono img{display:block;width:100%;height:auto;border-radius:20px;background:#fff}
.comparacion{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto auto auto;column-gap:32px;row-gap:0;margin-bottom:8px}
.comparacion>div+div{padding-left:32px;border-left:1px solid var(--linea)}
.comparacion h3{display:flex;align-items:center;gap:10px;margin:0 0 10px}
.comparacion h3 svg{flex:none;width:26px;height:26px;stroke:var(--tinta);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.comparacion p{margin:0 0 10px}
.comparacion>div{display:grid;grid-row:span 4;grid-template-rows:subgrid;align-content:start}
.escritorio{margin-top:22px;padding-top:18px;border-top:1px solid var(--linea)}
.instalar{display:flex;gap:14px;align-items:flex-start}
.instalar img{flex:none;width:52px;height:52px;border:1px solid var(--linea);border-radius:12px;background:#fff}
.instalar h4{margin:0 0 2px;font-size:18px}
.instalar p{margin:0;font-size:17px;line-height:1.55;color:var(--apagado)}
.mini{position:relative;margin:14px 0 0;max-width:432px}
.mini img{display:block;width:100%;height:auto;border-radius:8px;border:1px solid var(--linea)}
.marca-instalar{position:absolute;left:9.5%;top:16%;width:43%;height:66%;border:3px solid var(--marca);border-radius:999px;pointer-events:none}
.descargas{display:flex;flex-wrap:wrap;gap:12px;align-self:start;padding-top:6px}
.tienda{display:inline-flex;align-items:center;gap:10px;flex:1 1 150px;min-width:0;padding:8px 14px;background:var(--tinta);color:#fff;border-radius:10px;text-decoration:none;min-height:52px}
.tienda:hover{background:#0f1822;text-decoration:none}
.tienda>svg{flex:none;width:26px;height:26px}
.tienda.trazo>svg{stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tienda span{display:flex;flex-direction:column;line-height:1.15;text-align:left}
.tienda small{font-size:11px;opacity:.85}
.tienda strong{font-size:16px;font-weight:600}
@media (max-width:860px){.comparacion{grid-template-columns:1fr;grid-template-rows:none;row-gap:24px}.comparacion>div{display:block;grid-row:auto}.comparacion>div+div{padding-left:0;border-left:0;padding-top:24px;border-top:1px solid var(--linea)}.telefono{width:30%;padding:4px;border-radius:20px}.telefono img{border-radius:16px}}
.camino{margin-top:56px}
.etapa{display:grid;grid-template-columns:130px 1fr;gap:24px;padding:26px 0;border-top:1px solid var(--linea)}
.etapa-cuando{font-weight:700;color:var(--apagado);padding-top:4px}
.etapa h2{margin:0 0 6px;font-size:26px}
.etapa p{color:var(--apagado);margin-bottom:10px}
.etapa ul{margin:0;padding-left:20px}
.etapa li{margin-bottom:4px}
.etapa li.pronto{display:list-item;padding:0;color:#6b7684}
.etapa li.pronto small{margin-left:8px}

/* cabecera de la semana 1: el móvil inclinado sobre fondo oscuro, con dos fichas flotantes */
.hero-movil{display:flex;align-items:flex-end;min-height:500px;background:#0a1016 radial-gradient(70% 75% at 80% 38%,rgba(80,122,168,.34),transparent 72%)}
.hero-movil::after{display:none}
.hero-movil .hero-texto{position:relative;z-index:2;max-width:min(24em,52%);padding:clamp(22px,4vw,36px)}
.hero-movil h1{text-shadow:none}
.hero-movil .resumen{color:rgba(255,255,255,.88)}
.hero-escena{position:absolute;inset:0;z-index:1;pointer-events:none}
.movil-inclinado{position:absolute;z-index:1;right:6%;top:44px;width:min(262px,38%);padding:7px;background:#10151b;border-radius:38px;box-shadow:0 0 0 1.5px #9aa6b3,0 0 0 4px #232b34,-18px 38px 60px rgba(0,0,0,.6);transform:perspective(1100px) rotateY(-20deg) rotateX(6deg) rotateZ(5deg)}
.movil-inclinado img{display:block;width:100%;height:auto;border-radius:31px;background:#fff}
.ficha{position:absolute;z-index:3;display:flex;align-items:center;gap:12px;padding:11px 20px 11px 11px;border-radius:18px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.24);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 12px 30px rgba(0,0,0,.4);color:#fff;line-height:1.25;white-space:nowrap}
.ficha svg{flex:none;box-sizing:content-box;width:22px;height:22px;padding:9px;border-radius:50%;background:rgba(255,255,255,.16);stroke:#fff;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ficha small{display:block;font-size:14px;color:rgba(255,255,255,.8)}
.ficha strong{display:block;font-size:17px;font-weight:700}
.ficha.f1{left:35%;top:50px}
.ficha.f2{left:27%;top:132px}
.ficha.f2 svg{stroke:#8ae8b2;background:rgba(138,232,178,.18)}
@media (prefers-reduced-motion:no-preference){
  .ficha{animation:ficha-entra .7s cubic-bezier(.16,1,.3,1) both}
  .ficha.f2{animation-delay:.18s}
  @keyframes ficha-entra{from{opacity:0;transform:translateY(12px)}}
}
@media (max-width:640px){
  .hero-movil{flex-direction:column;align-items:stretch;min-height:0}
  .hero-movil .hero-texto{max-width:none;padding-bottom:6px}
  .hero-escena{position:relative;inset:auto;height:330px;overflow:hidden}
  .movil-inclinado{right:5%;top:30px;width:min(190px,48%)}
  .ficha{padding:9px 14px 9px 9px}.ficha strong{font-size:16px}
  .ficha.f1{left:4%;top:24px}.ficha.f2{left:4%;top:104px}
}
/* cabecera del envío: un monitor con la aplicación y el presupuesto saliendo de la pantalla */
.hero-monitor{display:flex;align-items:flex-end;min-height:500px;background:#040b2b linear-gradient(180deg,#040b2b 0%,#07185a 52%,#0b2a86 100%)}
.hero-monitor::after{display:none}
.hero-monitor::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(55% 60% at 68% 86%,rgba(120,175,255,.55),transparent 72%)}
.hero-monitor .hero-texto{position:relative;z-index:2;max-width:min(24em,46%);padding:clamp(22px,4vw,36px)}
.hero-monitor h1{text-shadow:none}
.hero-monitor .resumen{color:rgba(255,255,255,.9)}
.monitor{position:absolute;right:4%;bottom:34px;width:54%;transform:perspective(1500px) rotateY(-7deg);transform-origin:100% 50%}
.monitor-pantalla{padding:5px;background:#0c1118;border-radius:9px;box-shadow:0 0 0 1.5px #5d6a7a,0 30px 50px rgba(0,0,0,.5)}
.monitor-pantalla img{display:block;width:100%;height:auto;border-radius:5px;background:#fff}
.monitor-cuello{width:15%;height:42px;margin:0 auto;background:linear-gradient(90deg,#1b232d,#313c49,#1b232d)}
.monitor-base{width:42%;height:7px;margin:0 auto;border-radius:99px;background:#2a333e;box-shadow:0 8px 14px rgba(0,0,0,.45)}
.resplandor{position:absolute;right:33%;bottom:150px;width:190px;height:200px;border-radius:50%;background:radial-gradient(closest-side,rgba(255,255,255,.95) 0%,rgba(170,210,255,.55) 50%,transparent 100%);filter:blur(14px)}
.hoja-sale{position:absolute;z-index:2;right:34%;bottom:196px;width:21%;transform:perspective(900px) rotateY(-14deg) rotateX(8deg) rotateZ(-7deg);transform-origin:50% 100%}
.hoja-sale img{display:block;width:100%;height:auto;background:#fff;border-radius:3px;box-shadow:-10px 22px 34px rgba(0,0,0,.5)}
.hoja-sale.atras{z-index:1;opacity:.5;right:39%;bottom:178px;filter:blur(1.5px)}
.hero-monitor .ficha.f1{left:auto;right:5%;top:30px;z-index:3}
@media (prefers-reduced-motion:no-preference){
  .hoja-sale:not(.atras){animation:hoja-sale 1s cubic-bezier(.16,1,.3,1) .15s both}
  @keyframes hoja-sale{from{opacity:0;transform:perspective(900px) rotateY(-14deg) rotateX(8deg) rotateZ(-7deg) translateY(60px) scale(.85)}}
}
@media (max-width:640px){
  .hero-monitor{flex-direction:column;align-items:stretch;min-height:0}
  .hero-monitor .hero-texto{max-width:none;padding-bottom:6px}
  .hero-monitor .hero-escena{position:relative;inset:auto;height:290px;overflow:hidden}
  .monitor{width:70%;right:3%;bottom:10px}
  .hoja-sale{width:30%;right:56%;bottom:60px}.hoja-sale.atras{right:62%;bottom:44px}
  .resplandor{right:56%;bottom:60px;height:140px}
  .hero-monitor .ficha.f1{top:10px;right:4%}
}
/* móvil inclinado con el presupuesto saliendo de la pantalla: haz de luz, dos hojas y una flecha */
.con-hoja{background:#050b22 radial-gradient(75% 80% at 78% 40%,rgba(80,130,200,.5),transparent 72%)}
.con-hoja .movil-inclinado{top:150px;box-shadow:0 0 0 1.5px #9aa6b3,0 0 0 4px #232b34,-18px 38px 60px rgba(0,0,0,.6),0 0 70px rgba(130,185,255,.45)}
.con-hoja .haz{position:absolute;z-index:2;right:2%;top:80px;width:380px;height:160px;border-radius:50%;background:radial-gradient(closest-side,#fff 0%,rgba(215,236,255,.92) 32%,rgba(120,175,255,.55) 62%,transparent);filter:blur(9px)}
.con-hoja .haz::after{content:"";position:absolute;left:30%;right:30%;bottom:46%;height:190px;background:linear-gradient(to top,rgba(225,242,255,.9),rgba(160,205,255,.35) 60%,transparent)}
.con-hoja .hoja-sale{z-index:3;right:15%;bottom:auto;top:10px;width:150px;transform:perspective(900px) rotateY(-10deg) rotateZ(6deg);transform-origin:50% 100%}
.con-hoja .hoja-sale.atras{z-index:2;right:25%;top:34px;opacity:.5;transform:perspective(900px) rotateY(-10deg) rotateZ(-4deg)}
.con-hoja .hoja-sale img{box-shadow:0 22px 38px rgba(0,0,0,.55),0 0 28px rgba(190,225,255,.5)}
.con-hoja .flecha-sale{position:absolute;z-index:3;right:2%;top:52px;width:64px;height:64px;fill:none;stroke:#fff;stroke-width:6;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 4px 8px rgba(0,0,0,.4))}
.con-hoja .ficha{z-index:4}
.con-hoja .ficha.f1{left:26%;top:40px}
@media (prefers-reduced-motion:no-preference){
  .con-hoja .hoja-sale:not(.atras){animation:hoja-sube 1.1s cubic-bezier(.16,1,.3,1) .2s both}
  .con-hoja .haz{animation:haz-late 2.6s ease-in-out .2s infinite alternate}
  @keyframes hoja-sube{from{opacity:0;transform:perspective(900px) rotateY(-10deg) rotateZ(6deg) translateY(90px) scale(.8)}}
  @keyframes haz-late{from{opacity:.8}to{opacity:1}}
}
@media (max-width:640px){
  .con-hoja .hero-escena{height:380px}
  .con-hoja .movil-inclinado{top:130px;right:6%;width:min(190px,46%)}
  .con-hoja .haz{width:230px;right:2%;top:92px}
  .con-hoja .hoja-sale{width:112px;right:17%;top:10px}.con-hoja .hoja-sale.atras{right:34%;top:28px}
  .con-hoja .flecha-sale{display:none}
  .con-hoja .ficha.f1{left:4%;top:230px}
}
/* cabecera de las tarifas: estudio claro, ordenador inclinado a la derecha y móvil delante a la izquierda */
.hero-estudio{display:flex;align-items:flex-start;min-height:540px;background:#e4e6e9 radial-gradient(80% 90% at 70% 30%,#f6f7f8,transparent 70%);color:#17202a}
.hero-estudio::after{display:none}
.hero-estudio .hero-texto{position:relative;z-index:2;max-width:min(21em,42%);padding:clamp(22px,4vw,38px)}
.hero-estudio h1{color:#17202a;text-shadow:none}
.hero-estudio .resumen{color:#364250}
.estudio-conjunto{position:absolute;right:3%;top:46px;width:58%;transform:perspective(2000px) rotateY(-9deg) rotateZ(4.5deg);transform-origin:50% 40%}
.estudio-monitor{padding:1.1% 1.1% 0;background:linear-gradient(180deg,#f7f8f9,#dfe2e6);border-radius:14px;box-shadow:0 0 0 1px #c3c8ce,-14px 40px 60px rgba(40,50,64,.28)}
.estudio-pantalla{overflow:hidden;border-radius:6px;background:#fff;box-shadow:0 0 0 1px #b9bec5}
.estudio-pantalla img{display:block;width:100%;height:auto}
.estudio-monitor::after{content:"";display:block;height:clamp(22px,5.2vw,44px)}
.estudio-cuello{width:13%;height:clamp(40px,7vw,72px);margin:0 auto;background:linear-gradient(90deg,#c9ced4,#f4f5f7 45%,#bfc4ca);clip-path:polygon(10% 0,90% 0,100% 100%,0 100%)}
.estudio-base{width:32%;height:12px;margin:0 auto;border-radius:99px;background:linear-gradient(180deg,#f0f2f4,#bcc2c9);box-shadow:0 16px 24px rgba(40,50,64,.3)}
.estudio-movil{position:absolute;z-index:3;left:40%;top:150px;width:min(188px,22%);padding:5px;background:#12161b;border-radius:30px;box-shadow:0 0 0 2px #d4d8dd,0 0 0 3.5px #9ea5ad,-16px 34px 50px rgba(30,40,54,.38);transform:perspective(1200px) rotateY(10deg) rotateZ(-3deg)}
.estudio-movil img{display:block;width:100%;height:auto;border-radius:25px;background:#fff}
.hero-estudio .ficha{background:rgba(255,255,255,.95);border:1px solid #fff;color:#17202a;box-shadow:0 12px 30px rgba(40,50,64,.2)}
.hero-estudio .ficha small{color:#4a5663}
.hero-estudio .ficha svg{stroke:#1f4478;background:#e6eef9}
.hero-estudio .ficha.f2 svg{stroke:#1b5a37;background:#e4f2e9}
.hero-estudio .ficha.f1{left:auto;right:5%;top:auto;bottom:74px}
.hero-estudio .ficha.f2{left:auto;right:5%;top:auto;bottom:14px}
@media (max-width:640px){
  .hero-estudio{flex-direction:column;align-items:stretch;min-height:0}
  .hero-estudio .hero-texto{max-width:none;padding-bottom:6px}
  .hero-estudio .hero-escena{position:relative;inset:auto;height:420px;overflow:hidden}
  .estudio-conjunto{width:84%;right:-10%;top:14px}
  .estudio-cuello,.estudio-base{display:none}
  .estudio-movil{left:5%;top:60px;width:33%}
  .hero-estudio .ficha{padding:9px 14px 9px 9px}.hero-estudio .ficha strong{font-size:16px}
  .hero-estudio .ficha.f1{left:auto;right:4%;bottom:76px}.hero-estudio .ficha.f2{left:auto;right:4%;bottom:12px}
}
/* cabecera de clientes: monitor inclinado sobre fondo claro, palabra enorme cortada por el borde y pie plateado.
   Nombres propios (cab-monitor-*): no reutilizar clases de las parejas de capturas. Usa contenedor, no ventana,
   porque la cabecera mide poco aunque la ventana sea ancha (el menú lateral ocupa sitio). */
.cab-monitor-claro{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;min-height:0;container-type:inline-size;container-name:cabcli;background:linear-gradient(180deg,#f4f6f9,#e6eaf0);color:#17202a}
.cab-monitor-claro::after{display:none}
.cab-monitor-claro .hero-texto{grid-area:1/1;position:relative;z-index:3;max-width:42%;padding:clamp(22px,4vw,38px)}
.cab-monitor-claro h1{color:#17202a;text-shadow:none}
.cab-monitor-claro .resumen{color:#364250}
.cab-monitor-escena{grid-area:1/1;position:relative;min-height:500px;pointer-events:none}
.cab-monitor-palabra{position:absolute;left:-1.5cqw;bottom:-5cqw;z-index:0;font-size:29cqw;line-height:.8;font-weight:700;letter-spacing:-.04em;color:#fff;white-space:nowrap}
.cab-monitor-grupo{position:absolute;z-index:1;right:3%;bottom:-70px;width:58%;transform:perspective(1700px) rotateY(-13deg) rotateX(2deg) rotateZ(-1.6deg);transform-origin:50% 100%}
.cab-monitor-marco{position:relative;padding:6px;background:#14181e;border-radius:12px;box-shadow:0 0 0 1px #3a424c,-16px 34px 56px rgba(30,40,54,.32);overflow:hidden}
.cab-monitor-marco img{display:block;width:100%;height:auto;border-radius:7px;background:#fff}
.cab-monitor-marco::after{content:"";position:absolute;inset:6px;border-radius:7px;background:linear-gradient(115deg,rgba(255,255,255,.16) 0 28%,transparent 28.2%)}
.cab-monitor-pie{width:17%;height:120px;margin:0 auto;background:linear-gradient(90deg,#a9afb7,#eceef1 46%,#9ea5ad);clip-path:polygon(8% 0,92% 0,100% 100%,0 100%)}
.cab-monitor-claro .ficha{z-index:4;background:rgba(255,255,255,.95);border:1px solid #fff;color:#17202a;box-shadow:0 12px 30px rgba(40,50,64,.2)}
.cab-monitor-claro .ficha small{color:#4a5663}
.cab-monitor-claro .ficha svg{stroke:#1f4478;background:#e6eef9}
.cab-monitor-claro .ficha.f1{left:auto;right:4%;top:26px}
@container cabcli (max-width:720px){
  .cab-monitor-claro .hero-texto{max-width:none;padding-bottom:4px}
  .cab-monitor-escena{grid-area:2/1;min-height:350px;overflow:hidden}
  .cab-monitor-palabra{font-size:34cqw;left:-2cqw;bottom:-6cqw}
  .cab-monitor-grupo{width:92%;right:4%;bottom:-40px}
  .cab-monitor-pie{height:70px}
  .cab-monitor-claro .ficha.f1{right:4%;top:8px;padding:9px 14px 9px 9px}
}
/* cabecera del correo (MatIAs): bandeja de entrada abajo a la izquierda, móvil a la derecha y facturas volando de una al otro.
   Nombres propios (cab-correo-*). Medidas en cqw: siguen al ancho de la cabecera, no al de la ventana. */
.cab-correo{display:block;min-height:0;container-type:inline-size;container-name:cabcorreo;background:radial-gradient(55% 60% at 84% 40%,rgba(24,190,156,.25),transparent 70%),radial-gradient(55% 55% at 6% 100%,rgba(255,176,96,.12),transparent 70%),#0e1513}
.cab-correo::after{display:none}
.cab-correo .hero-texto{position:relative;z-index:3;max-width:62%;min-height:620px;padding:clamp(22px,4vw,36px)}
.cab-correo h1{text-shadow:none}
.cab-correo .resumen{color:rgba(255,255,255,.86)}
.cab-correo-escena{position:absolute;inset:0;pointer-events:none}
.cab-correo-buzon{position:absolute;z-index:1;left:5%;bottom:-104px;width:58%;background:#fbfbf9;border-radius:12px 12px 0 0;box-shadow:0 0 0 1px rgba(255,255,255,.5),0 30px 60px rgba(0,0,0,.5);overflow:hidden;color:#1d232a;transform:perspective(1600px) rotateY(9deg) rotateX(3deg);transform-origin:0 100%}
.cab-correo-barra{display:flex;align-items:center;gap:6px;padding:10px 14px;background:#eceef0;border-bottom:1px solid #dfe2e6}
.cab-correo-barra i{width:10px;height:10px;border-radius:50%;background:#c9ced4}
.cab-correo-barra span{margin-left:10px;font-size:14px;font-weight:700;color:#3a4450}
.cab-correo-lista{list-style:none;margin:0;padding:0}
.cab-correo-fila{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:11px 14px;border-bottom:1px solid #eceef0;line-height:1.25}
.cab-correo-ini{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#7a4a24;color:#fff;font-size:13px;font-weight:700}
.cab-correo-fila.c2 .cab-correo-ini{background:#6a3fc4}
.cab-correo-fila.c3 .cab-correo-ini{background:#1f5f99}
.cab-correo-fila.c4 .cab-correo-ini{background:#2f6f5a}
.cab-correo-txt{min-width:0}
.cab-correo-txt strong,.cab-correo-txt span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cab-correo-txt strong{font-size:15px}
.cab-correo-txt span{font-size:13.5px;color:#5b6672}
.cab-correo-adj{display:inline-flex;align-items:center;gap:4px;padding:3px 8px 3px 5px;border:1px solid #ecd2cd;border-radius:7px;background:#fff;color:#a9372a;font-size:12px;font-weight:700}
.cab-correo-adj svg,.cab-correo-vuela svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cab-correo-fila time{font-size:12.5px;color:#6b7581;white-space:nowrap}
.cab-correo-ruta{position:absolute;z-index:2;left:52%;top:262px;width:19%;height:180px;overflow:visible}
.cab-correo-ruta path{fill:none;stroke:rgba(150,240,214,.6);stroke-width:2;stroke-dasharray:3 7;stroke-linecap:round;vector-effect:non-scaling-stroke}
.cab-correo-vuela{position:absolute;z-index:3;left:47%;top:418px;display:flex;align-items:center;gap:6px;padding:7px 11px 7px 8px;background:#fff;border-radius:9px;color:#a9372a;box-shadow:0 10px 24px rgba(0,0,0,.4);opacity:0}
.cab-correo-vuela b{color:#1d232a;font-size:13px}
.cab-correo-movil{position:absolute;z-index:2;right:6%;top:44px;width:min(232px,27%);padding:7px;background:#10151b;border-radius:36px;box-shadow:0 0 0 1.5px #9aa6b3,0 0 0 4px #232b34,-18px 38px 60px rgba(0,0,0,.6);transform:perspective(1100px) rotateY(-16deg) rotateX(5deg) rotateZ(3deg)}
.cab-correo-movil img{display:block;width:100%;height:auto;border-radius:29px;background:#fff}
.cab-correo .ficha.f1{left:auto;right:4%;top:auto;bottom:22px}
.cab-correo .ficha.f1 svg{stroke:#8ae8b2;background:rgba(138,232,178,.18)}
@media (prefers-reduced-motion:no-preference){
  .cab-correo-vuela{animation:cab-correo-vuelo 4.2s cubic-bezier(.45,.05,.4,1) infinite}
  .cab-correo-vuela.v2{animation-delay:1.4s}
  .cab-correo-vuela.v3{animation-delay:2.8s}
  @keyframes cab-correo-vuelo{
    0%{opacity:0;transform:translate(0,0) scale(.85)}
    12%{opacity:1}
    45%{transform:translate(8cqw,-130px) rotate(-7deg) scale(1)}
    80%{opacity:1;transform:translate(18cqw,-176px) rotate(4deg) scale(.75)}
    100%{opacity:0;transform:translate(22cqw,-178px) scale(.4)}
  }
}
@media (prefers-reduced-motion:reduce){
  .cab-correo-vuela.v1{opacity:1;transform:translate(8cqw,-130px) rotate(-7deg)}
}
@container cabcorreo (max-width:600px){
  .cab-correo .hero-texto{max-width:none;min-height:0;padding-bottom:4px}
  .cab-correo-escena{position:relative;inset:auto;height:330px;overflow:hidden}
  .cab-correo-buzon{left:4%;top:84px;bottom:auto;width:64%;transform:none}
  .cab-correo-adj{padding:3px 5px}.cab-correo-adj svg{display:none}
  .cab-correo-fila{gap:9px;padding:9px 11px}
  .cab-correo-fila time{display:none}
  .cab-correo-movil{top:12px;right:4%;width:34%;border-radius:26px;padding:5px}
  .cab-correo-movil img{border-radius:21px}
  .cab-correo-ruta{left:30%;top:30px;width:40%;height:70px}
  .cab-correo-vuela{left:30%;top:96px}
  .cab-correo .ficha.f1{display:none}
  @media (prefers-reduced-motion:no-preference){.cab-correo-vuela{animation-name:cab-correo-vuelo-estrecho}}
  @media (prefers-reduced-motion:reduce){.cab-correo-vuela.v1{transform:translate(18cqw,-50px) rotate(-7deg)}}
}
@keyframes cab-correo-vuelo-estrecho{
  0%{opacity:0;transform:translate(0,0) scale(.85)}
  12%{opacity:1}
  50%{transform:translate(18cqw,-56px) rotate(-7deg) scale(1)}
  82%{opacity:1;transform:translate(36cqw,-40px) rotate(4deg) scale(.7)}
  100%{opacity:0;transform:translate(40cqw,-26px) scale(.4)}
}
/* cabecera de escanear: una mesa clara con una factura, un albarán y un ticket; un haz de luz los lee y algunos papeles pasan al móvil.
   Nombres propios (cab-mesa-*). Medidas en cqw: siguen al ancho de la cabecera. */
.cab-mesa{display:block;min-height:0;container-type:inline-size;container-name:cabmesa;color:#17202a;background:radial-gradient(70% 60% at 72% 28%,rgba(255,255,255,.85),transparent 72%),linear-gradient(180deg,#ece9e3,#dcd8cf)}
.cab-mesa::after{display:none}
.cab-mesa .hero-texto{position:relative;z-index:3;max-width:52%;min-height:540px;padding:clamp(22px,4vw,36px)}
.cab-mesa h1{color:#17202a;text-shadow:none}
.cab-mesa .resumen{color:#3a4350}
.cab-mesa-escena{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.cab-mesa-papel{position:absolute;z-index:1;display:flex;flex-direction:column;gap:8px;padding:14px 15px;background:#fff;border-radius:3px;box-shadow:0 14px 28px rgba(70,56,36,.22),0 1px 0 rgba(0,0,0,.05);font-size:11px;line-height:1.25;color:#1d232a;overflow:hidden}
.cab-mesa-papel b{font-size:10.5px;letter-spacing:.14em;color:#5b6672}
.cab-mesa-papel span{font-weight:700;font-size:12px}
.cab-mesa-papel i{display:block;height:5px;border-radius:3px;background:#e3e6ea}
.cab-mesa-papel i:nth-of-type(2){width:80%}.cab-mesa-papel i:nth-of-type(3){width:55%}
.cab-mesa-papel em{margin-top:auto;padding-top:6px;border-top:1px solid #e6e8eb;font-style:normal;font-weight:700}
.cab-mesa-papel.p-factura{left:4cqw;bottom:-40px;width:29cqw;min-width:140px;height:230px;transform:rotate(-7deg)}
.cab-mesa-papel.p-albaran{left:27cqw;bottom:-56px;width:25cqw;min-width:120px;height:210px;transform:rotate(5deg);background:#fbf6e8;z-index:2}
.cab-mesa-papel.p-ticket{left:49cqw;bottom:-70px;width:12cqw;min-width:70px;height:250px;transform:rotate(-3deg);z-index:1;clip-path:polygon(0 0,100% 0,100% 100%,92% 97%,84% 100%,76% 97%,68% 100%,60% 97%,52% 100%,44% 97%,36% 100%,28% 97%,20% 100%,12% 97%,6% 100%,0 97%)}
.cab-mesa-papel.p-ticket{padding:12px 9px}.cab-mesa-papel.p-ticket b{letter-spacing:.06em;font-size:9.5px}
.cab-mesa-haz{position:absolute;left:0;right:0;top:0;height:3px;background:#18be9c;box-shadow:0 0 14px 4px rgba(24,190,156,.55)}
.cab-mesa-vuela{position:absolute;z-index:3;left:20cqw;top:372px;display:flex;align-items:center;gap:6px;padding:7px 11px 7px 8px;background:#fff;border-radius:9px;color:#a9372a;box-shadow:0 10px 24px rgba(70,56,36,.3);opacity:0}
.cab-mesa-vuela svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cab-mesa-vuela b{color:#1d232a;font-size:13px}
.cab-mesa-movil{position:absolute;z-index:2;right:5%;top:38px;width:min(256px,31%);padding:7px;background:#10151b;border-radius:36px;box-shadow:0 0 0 1.5px #9aa6b3,0 0 0 4px #232b34,-18px 38px 60px rgba(40,34,24,.45);transform:perspective(1100px) rotateY(-16deg) rotateX(5deg) rotateZ(3deg)}
.cab-mesa-movil img{display:block;width:100%;height:auto;border-radius:29px;background:#fff}
.cab-mesa .ficha{z-index:4;background:rgba(255,255,255,.95);border:1px solid #fff;color:#17202a;box-shadow:0 12px 30px rgba(70,56,36,.22)}
.cab-mesa .ficha small{color:#4a5663}
.cab-mesa .ficha svg{stroke:#14735f;background:#e0f3ee}
.cab-mesa .ficha.f1{left:auto;right:4%;top:auto;bottom:24px}
@media (prefers-reduced-motion:no-preference){
  .cab-mesa-haz{animation:cab-mesa-escaneo 3.6s ease-in-out infinite}
  .cab-mesa-vuela{animation:cab-mesa-vuelo 4.4s cubic-bezier(.45,.05,.4,1) infinite}
  .cab-mesa-vuela.v2{animation-delay:1.45s}
  .cab-mesa-vuela.v3{animation-delay:2.9s}
  @keyframes cab-mesa-escaneo{0%{top:0;opacity:0}12%{opacity:1}88%{opacity:1}100%{top:calc(100% - 3px);opacity:0}}
  @keyframes cab-mesa-vuelo{
    0%{opacity:0;transform:translate(0,0) scale(.85)}
    12%{opacity:1}
    45%{transform:translate(16cqw,-130px) rotate(-7deg) scale(1)}
    80%{opacity:1;transform:translate(36cqw,-112px) rotate(4deg) scale(.72)}
    100%{opacity:0;transform:translate(40cqw,-100px) scale(.4)}
  }
}
@media (prefers-reduced-motion:reduce){
  .cab-mesa-vuela.v1{opacity:1;transform:translate(16cqw,-130px) rotate(-7deg)}
  .cab-mesa-haz{display:none}
}
@container cabmesa (max-width:600px){
  .cab-mesa .hero-texto{max-width:none;min-height:0;padding-bottom:4px}
  .cab-mesa-escena{position:relative;inset:auto;height:360px}
  .cab-mesa-papel{gap:6px;padding:10px 11px;min-width:0}
  .cab-mesa-papel span{font-size:11px}
  .cab-mesa-papel.p-factura{left:3cqw;bottom:-10px;width:31cqw;height:160px}
  .cab-mesa-papel.p-albaran{left:22cqw;bottom:-30px;width:25cqw;height:150px}
  .cab-mesa-papel.p-ticket{left:45cqw;bottom:-40px;width:12cqw;height:190px}
  .cab-mesa-movil{top:14px;right:4%;width:36%;border-radius:26px;padding:5px}
  .cab-mesa-movil img{border-radius:21px}
  .cab-mesa-vuela{left:24cqw;top:250px}
  .cab-mesa .ficha.f1{display:none}
  @media (prefers-reduced-motion:no-preference){.cab-mesa-vuela{animation-name:cab-mesa-vuelo-estrecho}}
  @media (prefers-reduced-motion:reduce){.cab-mesa-vuela.v1{transform:translate(14cqw,-80px) rotate(-7deg)}}
}
@keyframes cab-mesa-vuelo-estrecho{
  0%{opacity:0;transform:translate(0,0) scale(.85)}
  12%{opacity:1}
  45%{transform:translate(14cqw,-90px) rotate(-7deg) scale(1)}
  80%{opacity:1;transform:translate(36cqw,-130px) rotate(4deg) scale(.72)}
  100%{opacity:0;transform:translate(40cqw,-136px) scale(.4)}
}
/* cabecera de facturas por revisar: portátil visto desde arriba sobre un tapete verde, con facturas alrededor a las que les falta un dato.
   Nombres propios (cab-rev-*). Medidas en cqw: siguen al ancho de la cabecera. */
.cab-rev{display:block;min-height:0;container-type:inline-size;container-name:cabrev;background:radial-gradient(65% 55% at 52% 62%,rgba(255,255,255,.09),transparent 72%),radial-gradient(120% 90% at 50% 0%,#2a4d43,#1a332c 70%)}
.cab-rev::after{display:none}
.cab-rev .hero-texto{position:relative;z-index:3;max-width:60%;min-height:650px;padding:clamp(22px,4vw,36px)}
.cab-rev h1{text-shadow:0 2px 18px rgba(0,0,0,.35)}
.cab-rev .resumen{color:rgba(255,255,255,.88)}
.cab-rev-escena{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.cab-rev-portatil{position:absolute;z-index:1;left:21%;top:268px;width:58%;transform:rotate(-4deg)}
.cab-rev-pantalla{padding:2.4% 2.4% 3%;background:#0f1114;border-radius:14px 14px 4px 4px;box-shadow:0 0 0 1.5px #8d949c,0 26px 50px rgba(0,0,0,.45)}
.cab-rev-pantalla img{display:block;width:100%;height:auto;border-radius:4px;background:#fff}
.cab-rev-base{position:relative;height:0;padding-bottom:56%;margin:0 -3.5%;background:linear-gradient(180deg,#e6e9ec,#c2c7cd);border-radius:3px 3px 20px 20px;box-shadow:inset 0 3px 0 #a3aab1,0 34px 50px rgba(0,0,0,.4)}
.cab-rev-teclado{position:absolute;left:7%;right:7%;top:7%;height:46%;border-radius:6px;background-color:#26292e;background-image:repeating-linear-gradient(90deg,transparent 0 calc(100% / 14 - 3px),#c8cdd3 calc(100% / 14 - 3px) calc(100% / 14)),repeating-linear-gradient(180deg,transparent 0 calc(100% / 6 - 3px),#c8cdd3 calc(100% / 6 - 3px) calc(100% / 6))}
.cab-rev-panel{position:absolute;left:33%;right:33%;top:59%;height:33%;border-radius:9px;background:linear-gradient(180deg,#d6dadf,#c5cacf);box-shadow:inset 0 0 0 1px #a9afb6}
.cab-rev-papel{position:absolute;z-index:2;display:flex;flex-direction:column;gap:7px;width:20cqw;min-width:118px;aspect-ratio:3/4;padding:13px 12px;background:#fff;border-radius:3px;box-shadow:0 18px 32px rgba(0,0,0,.38);color:#1d232a;font-size:11px;line-height:1.2}
.cab-rev-papel b{font-size:10px;letter-spacing:.14em;color:#5b6672}
.cab-rev-papel i{display:block;height:5px;border-radius:3px;background:#e3e6ea}
.cab-rev-papel i:nth-of-type(2){width:72%}
.cab-rev-campo{display:flex;align-items:center;gap:6px;padding:5px 6px;border:1.5px dashed;border-radius:5px}
.cab-rev-campo small{font-size:10px;font-weight:700}
.cab-rev-campo u{flex:1;height:0;border-bottom:1.5px solid #cfd4da}
.cab-rev-aviso{display:inline-flex;align-self:flex-start;align-items:center;gap:4px;margin-top:auto;padding:3px 8px 3px 6px;border:1px solid;border-radius:999px;font-style:normal;font-size:10.5px;font-weight:700;white-space:nowrap}
.cab-rev-aviso svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cab-rev-ambar{color:#92400e;border-color:#f3c76b;background:#fffbeb}
.cab-rev-rojo{color:#991b1b;border-color:#f3a3a3;background:#fef2f2}
.cab-rev-campo.cab-rev-ambar,.cab-rev-campo.cab-rev-rojo{background:transparent}
.cab-rev-punto{position:absolute;top:-11px;right:-11px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#e5484d;color:#fff;font-weight:800;font-size:16px;box-shadow:0 0 0 3px #fff,0 6px 14px rgba(0,0,0,.3)}
.cab-rev-papel.r1{left:1cqw;top:272px;transform:rotate(-12deg)}
.cab-rev-papel.r2{left:5cqw;bottom:-44px;transform:rotate(9deg)}
.cab-rev-papel.r3{right:4cqw;top:42px;transform:rotate(10deg)}
.cab-rev-papel.r4{right:1cqw;bottom:22px;transform:rotate(-8deg)}
@media (prefers-reduced-motion:no-preference){
  .cab-rev-punto{animation:cab-rev-late 2.4s ease-in-out infinite}
  .cab-rev-papel.r2 .cab-rev-punto{animation-delay:.6s}
  .cab-rev-papel.r3 .cab-rev-punto{animation-delay:1.2s}
  .cab-rev-papel.r4 .cab-rev-punto{animation-delay:1.8s}
  @keyframes cab-rev-late{0%,70%,100%{transform:scale(1)}80%{transform:scale(1.18)}90%{transform:scale(.96)}}
}
@container cabrev (max-width:600px){
  .cab-rev .hero-texto{max-width:none;min-height:0;padding-bottom:4px}
  .cab-rev-escena{position:relative;inset:auto;height:330px}
  .cab-rev-portatil{left:8%;top:60px;width:84%;transform:rotate(-3deg)}
  .cab-rev-papel{width:31cqw;min-width:0;padding:10px 9px;gap:5px}
  .cab-rev-papel.r1{left:-1cqw;top:22px}
  .cab-rev-papel.r4{right:3cqw;bottom:-30px}
  .cab-rev-papel.r2,.cab-rev-papel.r3{display:none}
}
/* cabecera de facturas a clientes: fondo oscuro y cálido, móvil de frente, una factura sale de su lado y vuela al cliente.
   Nombres propios (cab-venta-*). Medidas en cqw: siguen al ancho de la cabecera. */
.cab-venta{display:block;min-height:0;container-type:inline-size;container-name:cabventa;background:radial-gradient(55% 45% at 38% 8%,rgba(112,128,82,.30),transparent 70%),radial-gradient(50% 55% at 100% 100%,rgba(176,98,46,.30),transparent 72%),radial-gradient(40% 40% at 0% 100%,rgba(176,98,46,.12),transparent 70%),#15120f}
.cab-venta::after{display:none}
.cab-venta .hero-texto{position:relative;z-index:3;max-width:54%;min-height:570px;padding:clamp(22px,4vw,36px)}
.cab-venta h1{color:#f3eee6;text-shadow:none}
.cab-venta .resumen{color:rgba(243,238,230,.78)}
.cab-venta-escena{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.cab-venta-movil{position:absolute;z-index:1;right:6%;top:40px;width:min(236px,30%);padding:7px;background:#0d0c0b;border-radius:38px;box-shadow:0 0 0 1.5px #5a554e,0 0 0 4px #1d1b19,0 40px 70px rgba(0,0,0,.6)}
.cab-venta-movil img{display:block;width:100%;height:auto;border-radius:31px;background:#fff}
.cab-venta-hoja{position:absolute;z-index:2;left:45%;top:300px;display:flex;flex-direction:column;gap:7px;width:22cqw;min-width:128px;aspect-ratio:3/4;padding:14px 13px;background:#fbf8f2;border-radius:3px;box-shadow:0 22px 40px rgba(0,0,0,.5);color:#1d1a16;font-size:11px;line-height:1.25;transform:rotate(-9deg)}
.cab-venta-hoja b{font-size:12px;letter-spacing:.16em;color:#1d1a16}
.cab-venta-hoja span{font-weight:700;font-size:11.5px;color:#4a443c}
.cab-venta-hoja small{font-size:10.5px;color:#6b645a}
.cab-venta-hoja i{display:block;height:5px;border-radius:3px;background:#e7e1d6}
.cab-venta-hoja i:nth-of-type(2){width:78%}.cab-venta-hoja i:nth-of-type(3){width:52%}
.cab-venta-hoja em{margin-top:auto;padding-top:7px;border-top:1px solid #e3dccf;font-style:normal;font-weight:800;font-size:12.5px}
.cab-venta-ruta{position:absolute;z-index:1;left:22%;top:395px;width:25%;height:110px;overflow:visible}
.cab-venta-ruta path{fill:none;stroke:rgba(232,180,120,.55);stroke-width:2;stroke-dasharray:3 7;stroke-linecap:round;vector-effect:non-scaling-stroke}
.cab-venta-vuela{position:absolute;z-index:3;left:44%;top:392px;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#f3eee6;color:#a2582a;box-shadow:0 8px 20px rgba(0,0,0,.45);opacity:0}
.cab-venta-vuela svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cab-venta .ficha{background:rgba(243,238,230,.1);border-color:rgba(243,238,230,.22);color:#f3eee6}
.cab-venta .ficha svg{stroke:#a9c98f;background:rgba(169,201,143,.16)}
.cab-venta .ficha.f1{left:5%;top:auto;bottom:34px}
@media (prefers-reduced-motion:no-preference){
  .cab-venta-hoja{animation:cab-venta-sale 1.1s cubic-bezier(.16,1,.3,1) .2s both}
  .cab-venta-vuela{animation:cab-venta-vuelo 3.6s cubic-bezier(.45,.05,.4,1) 1.2s infinite}
  .cab-venta-vuela.v2{animation-delay:2.4s}
  .cab-venta-vuela.v3{animation-delay:3.6s}
  .cab-venta .ficha.f1{animation-delay:1s}
  @keyframes cab-venta-sale{from{opacity:0;transform:translateX(18cqw) rotate(0deg) scale(.7)}}
  @keyframes cab-venta-vuelo{
    0%{opacity:0;transform:translate(0,0) scale(.7)}
    15%{opacity:1}
    50%{transform:translate(-11cqw,50px) rotate(-12deg) scale(1)}
    85%{opacity:1;transform:translate(-21cqw,96px) scale(.8)}
    100%{opacity:0;transform:translate(-23cqw,104px) scale(.5)}
  }
}
@container cabventa (max-width:600px){
  .cab-venta .hero-texto{max-width:none;min-height:0;padding-bottom:4px}
  .cab-venta-escena{position:relative;inset:auto;height:360px}
  .cab-venta-movil{right:6%;top:18px;width:40%;border-radius:28px;padding:5px}
  .cab-venta-movil img{border-radius:23px}
  .cab-venta-hoja{left:20%;top:62px;width:34cqw;min-width:0;padding:10px;gap:5px;font-size:9.5px}
  .cab-venta-hoja b{font-size:10px}.cab-venta-hoja span{font-size:10px}.cab-venta-hoja small{font-size:9px}.cab-venta-hoja em{font-size:10.5px;white-space:nowrap}
  .cab-venta-ruta{left:12%;top:230px;width:20%;height:70px}
  .cab-venta-vuela{left:22%;top:232px}
  .cab-venta .ficha.f1{left:4%;bottom:14px;padding:9px 14px 9px 9px}
  @media (prefers-reduced-motion:no-preference){.cab-venta-vuela{animation-name:cab-venta-vuelo-estrecho}}
}
@keyframes cab-venta-vuelo-estrecho{
  0%{opacity:0;transform:translate(0,0) scale(.7)}
  15%{opacity:1}
  50%{transform:translate(-6cqw,34px) rotate(-12deg) scale(1)}
  85%{opacity:1;transform:translate(-12cqw,60px) scale(.8)}
  100%{opacity:0;transform:translate(-13cqw,66px) scale(.5)}
}
/* cabecera de rentabilidad: facturas de material esparcidas y lavadas en claro, como una foto con velo;
   encima, un lema enorme en dos líneas (tinta y verde) y, abajo, el título y el semáforo de las obras.
   Nombres propios (cab-margen-*). Medidas en cqw: siguen al ancho de la cabecera. */
.cab-margen{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:1fr auto;align-items:end;min-height:0;container-type:inline-size;container-name:cabmargen;background:#e8ecf0;color:#12263a}
.cab-margen::after{display:none}
.cab-margen-fondo{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.cab-margen-fondo::after{content:"";position:absolute;inset:0;z-index:2;background:linear-gradient(180deg,rgba(232,236,240,.5) 0%,rgba(232,236,240,.66) 45%,rgba(232,236,240,.9) 78%,rgba(232,236,240,.97) 100%)}
.cab-margen-luz{position:absolute;z-index:3;top:-40%;left:50%;width:15cqw;height:190%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.5) 45%,rgba(255,255,255,.62) 55%,transparent);transform:rotate(28deg);mix-blend-mode:soft-light}
.cab-margen-papel{position:absolute;z-index:1;display:flex;flex-direction:column;gap:.55cqw;width:20cqw;min-width:150px;padding:1.6cqw 1.5cqw;background:#fff;border-radius:3px;box-shadow:0 18px 36px rgba(40,58,78,.2),0 1px 0 rgba(0,0,0,.05);color:#1d2a36;font-size:clamp(9px,1.02cqw,12.5px);line-height:1.3}
.cab-margen-papel b{font-size:1.08em;letter-spacing:.16em;color:#5b6876}
.cab-margen-papel>span{font-weight:700;font-size:1.12em;margin-bottom:.3cqw}
.cab-margen-papel p,.cab-margen-papel em{display:flex;justify-content:space-between;gap:10px;margin:0;font-variant-numeric:tabular-nums}
.cab-margen-papel p{padding-bottom:.4cqw;border-bottom:1px dashed #e1e5ea}
.cab-margen-papel p span:last-child,.cab-margen-papel em span:last-child{white-space:nowrap}
.cab-margen-papel em{margin-top:.4cqw;font-style:normal;font-weight:800;font-size:1.1em}
.cab-margen-papel.m1{left:-3cqw;top:-2cqw;transform:rotate(-8deg)}
.cab-margen-papel.m2{left:20cqw;top:7cqw;transform:rotate(5deg);background:#fbf7ec}
.cab-margen-papel.m3{left:41cqw;top:-3cqw;transform:rotate(-3deg)}
.cab-margen-papel.m4{left:60cqw;top:12cqw;transform:rotate(7deg)}
.cab-margen-papel.m5{left:79cqw;top:-1cqw;transform:rotate(-6deg);background:#fbf7ec}
.cab-margen-papel.m6{left:84cqw;top:23cqw;transform:rotate(4deg)}
.cab-margen-lema{grid-column:1/-1;grid-row:1;align-self:start;position:relative;z-index:2;margin:0;padding:clamp(26px,5cqw,52px) clamp(20px,4cqw,38px) 0;font-size:10.4cqw;line-height:.94;font-weight:800;letter-spacing:-.045em;color:#12263a}
.cab-margen-lema span{display:block}
.cab-margen-lema span+span{color:#137a50}
.cab-margen .hero-texto{grid-column:1;grid-row:2;position:relative;z-index:2;max-width:46ch;padding-top:clamp(26px,4cqw,44px)}
.cab-margen h1{color:#12263a;text-shadow:none}
.cab-margen .resumen{color:#3a4856}
.cab-margen-semaforo{grid-column:2;grid-row:2;position:relative;z-index:2;align-self:end;min-width:220px;margin:0 clamp(20px,4cqw,34px) clamp(20px,4cqw,34px) 0;padding:14px 16px 10px;background:rgba(255,255,255,.94);border:1px solid #fff;border-radius:14px;box-shadow:0 16px 36px rgba(40,58,78,.16)}
.cab-margen-semaforo small{display:block;margin-bottom:6px;font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#5b6876}
.cab-margen-semaforo ul{margin:0;padding:0;list-style:none}
.cab-margen-semaforo li{display:flex;align-items:center;gap:10px;padding:7px 0;font-size:16px;color:#22303d}
.cab-margen-semaforo li+li{border-top:1px solid #edf0f3}
.cab-margen-semaforo i{flex:none;width:12px;height:12px;border-radius:50%;background:var(--luz);box-shadow:0 0 0 4px var(--halo)}
.cab-margen-semaforo b{margin-left:auto;padding-left:18px;font-variant-numeric:tabular-nums;color:var(--cifra)}
.cab-margen-verde{--luz:#1f9d63;--halo:#dff3e8;--cifra:#137a50}
.cab-margen-ambar{--luz:#e0a21a;--halo:#fbefd2;--cifra:#8a5a00}
.cab-margen-rojo{--luz:#d64545;--halo:#fbe1e1;--cifra:#b03030}
@media (prefers-reduced-motion:no-preference){
  .cab-margen-lema span{animation:cab-margen-sube .9s cubic-bezier(.16,1,.3,1) both}
  .cab-margen-lema span+span{animation-delay:.12s}
  .cab-margen-semaforo li{animation:cab-margen-sube .7s cubic-bezier(.16,1,.3,1) both}
  .cab-margen-semaforo li:nth-child(1){animation-delay:.45s}
  .cab-margen-semaforo li:nth-child(2){animation-delay:.6s}
  .cab-margen-semaforo li:nth-child(3){animation-delay:.75s}
  @keyframes cab-margen-sube{from{opacity:0;transform:translateY(14px)}}
}
@container cabmargen (max-width:600px){
  .cab-margen{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto}
  .cab-margen-lema{font-size:13.2cqw;padding-top:30px}
  .cab-margen-semaforo{grid-column:1;grid-row:2;justify-self:start;min-width:0;width:calc(100% - 40px);margin:22px 20px 0;padding:10px 14px 6px}
  .cab-margen-semaforo li{font-size:15px;padding:5px 0}
  .cab-margen .hero-texto{grid-row:3;padding-top:18px}
  .cab-margen-fondo::after{background:linear-gradient(180deg,rgba(232,236,240,.62) 0%,rgba(232,236,240,.8) 40%,rgba(232,236,240,.95) 70%,#e8ecf0 100%)}
  .cab-margen-papel{width:31cqw;min-width:0;gap:3px;padding:8px;font-size:7px}
  .cab-margen-papel.m1{left:-5cqw;top:-6px}
  .cab-margen-papel.m2{left:27cqw;top:22px}
  .cab-margen-papel.m3{left:62cqw;top:-8px}
  .cab-margen-papel.m4{left:-3cqw;top:150px}
  .cab-margen-papel.m5{left:33cqw;top:168px}
  .cab-margen-papel.m6{left:70cqw;top:140px}
}
/* cabecera de proveedores: la ficha de un proveedor con su gasto total y, hacia ella, facturas y albaranes volando.
   Nombres propios (cab-prov-*). Medidas en cqw: siguen al ancho de la cabecera. */
.cab-prov{display:block;min-height:0;container-type:inline-size;container-name:cabprov;background:radial-gradient(50% 60% at 78% 45%,rgba(64,120,214,.28),transparent 70%),radial-gradient(45% 50% at 4% 100%,rgba(255,170,90,.16),transparent 70%),#0d1522}
.cab-prov::after{display:none}
.cab-prov .hero-texto{position:relative;z-index:3;max-width:48%;min-height:470px;padding:clamp(22px,4vw,36px)}
.cab-prov h1{text-shadow:none}
.cab-prov .resumen{color:rgba(255,255,255,.86)}
.cab-prov-escena{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.cab-prov-ficha{position:absolute;z-index:2;right:5cqw;top:50%;width:min(37cqw,400px);min-width:290px;margin-top:-132px;padding:18px 20px 16px;background:#fff;border-radius:16px;box-shadow:0 0 0 1px rgba(255,255,255,.6),0 34px 64px rgba(0,0,0,.5);color:#16222f}
.cab-prov-cab{display:flex;align-items:center;gap:12px}
.cab-prov-ini{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#dff3ec;color:#137a50;font-size:15px;font-weight:800}
.cab-prov-cab strong{min-width:0;font-size:17px;line-height:1.2;overflow-wrap:anywhere}
.cab-prov-sellos{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 14px}
.cab-prov-sellos span{display:inline-flex;align-items:center;gap:5px;padding:4px 10px 4px 7px;border:1px solid #bfe4d2;border-radius:999px;background:#eaf7f0;color:#137a50;font-size:12.5px;font-weight:700}
.cab-prov-sellos svg,.cab-prov-vuela svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cab-prov-ficha>small{display:block;font-size:12.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#5b6876}
.cab-prov-total{display:block;margin:2px 0 12px;font-size:clamp(28px,3.6cqw,38px);line-height:1.05;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.cab-prov-barras{display:flex;align-items:flex-end;gap:7px;height:56px;padding:0 2px;border-bottom:1px solid #e3e8ee}
.cab-prov-barras i{flex:1;height:var(--h);border-radius:5px 5px 0 0;background:linear-gradient(180deg,#5b94e6,#3b73c9);transform-origin:bottom}
.cab-prov-barras i:last-child{background:linear-gradient(180deg,#34b98a,#1f9d63)}
.cab-prov-docs{display:flex;gap:18px;margin:10px 0 0;font-size:13.5px;color:#3a4856}
.cab-prov-docs b{font-size:15px;color:#16222f}
.cab-prov-ruta{position:absolute;z-index:1;left:36%;top:46%;width:22%;height:48%;overflow:visible}
.cab-prov-ruta path{fill:none;stroke:rgba(140,190,255,.5);stroke-width:2;stroke-dasharray:3 7;stroke-linecap:round;vector-effect:non-scaling-stroke}
.cab-prov-vuela{position:absolute;z-index:1;left:36cqw;top:80%;display:flex;flex-direction:column;gap:2px;width:128px;padding:9px 11px 8px;border-radius:5px;box-shadow:0 14px 30px rgba(0,0,0,.45);color:#1d232a;opacity:0}
.cab-prov-vuela.es-factura{background:#fff}
.cab-prov-vuela.es-albaran{background:#fbf6e8}
.cab-prov-vuela svg{color:#a9372a}
.cab-prov-vuela b{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#4a5560}
.cab-prov-vuela small{font-size:14px;font-weight:800;font-variant-numeric:tabular-nums}
@media (prefers-reduced-motion:no-preference){
  .cab-prov-vuela{animation:cab-prov-vuelo 4.8s cubic-bezier(.45,.05,.4,1) infinite}
  .cab-prov-vuela.v2{animation-delay:1.6s}
  .cab-prov-vuela.v3{animation-delay:3.2s}
  .cab-prov-barras i{animation:cab-prov-crece .9s cubic-bezier(.16,1,.3,1) both}
  .cab-prov-barras i:nth-child(2){animation-delay:.08s}.cab-prov-barras i:nth-child(3){animation-delay:.16s}
  .cab-prov-barras i:nth-child(4){animation-delay:.24s}.cab-prov-barras i:nth-child(5){animation-delay:.32s}
  .cab-prov-barras i:nth-child(6){animation-delay:.4s}
  @keyframes cab-prov-crece{from{transform:scaleY(0)}}
  @keyframes cab-prov-vuelo{
    0%{opacity:0;transform:translate(0,0) rotate(-5deg) scale(.9)}
    12%{opacity:1}
    55%{transform:translate(12cqw,-112px) rotate(3deg) scale(1)}
    88%{opacity:1;transform:translate(22cqw,-170px) rotate(-2deg) scale(.7)}
    100%{opacity:0;transform:translate(25cqw,-186px) scale(.4)}
  }
}
@media (prefers-reduced-motion:reduce){
  .cab-prov-vuela.v1{opacity:1;transform:translate(10cqw,-96px) rotate(-5deg)}
  .cab-prov-vuela.v2{opacity:1;transform:translate(2cqw,-24px) rotate(4deg)}
}
@container cabprov (max-width:700px){
  .cab-prov .hero-texto{max-width:none;min-height:0;padding-bottom:4px}
  .cab-prov-escena{position:relative;inset:auto;height:366px}
  .cab-prov-ficha{right:auto;left:4%;top:44px;width:92%;min-width:0;margin-top:0;padding:14px 16px 12px}
  .cab-prov-total{font-size:30px}
  .cab-prov-vuela,.cab-prov-ruta{display:none}
}
/* cabecera de gestoría: ventana oscura con rejilla fina, título enorme con las últimas palabras en verde, una foto
   con su etiqueta y, debajo, un panel con la pantalla de Gestoría. Nombres propios (cab-gestor-*). */
.cab-gestor{display:block;min-height:0;container-type:inline-size;container-name:cabgestor;background:#0b100f;color:#fff;border:1px solid #1e2b28}
.cab-gestor-cuerpo{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);align-items:stretch}
.cab-gestor::after{display:none}
.cab-gestor-izq{display:flex;flex-direction:column;justify-content:space-between;min-width:0;border-right:1px solid #1e2b28}
.cab-gestor .hero-texto{max-width:none;padding:clamp(22px,4.2cqw,38px) clamp(18px,3.4cqw,30px) 18px}
.cab-gestor h1{margin:0 0 12px;font-size:clamp(30px,4.3cqw,46px);line-height:1.02;font-weight:500;letter-spacing:-.035em;text-shadow:none;color:#f1f5f3}
.cab-gestor-acento{display:block;color:#2fd69b}
.cab-gestor .resumen{margin:0;max-width:34ch;font-size:clamp(15px,1.75cqw,17.5px);line-height:1.45;color:rgba(241,245,243,.66)}
.cab-gestor-tarjeta{margin:18px clamp(14px,3cqw,26px) clamp(14px,3cqw,26px);padding:14px 16px 12px;background:#161d1b;border:1px solid #23312d;border-radius:14px}
.cab-gestor-tarjeta small{display:block;margin-bottom:8px;font:700 12px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.1em;color:#2fd69b}
.cab-gestor-tarjeta p{margin:0 0 12px;font-size:15.5px;line-height:1.4;color:#eef3f1}
.cab-gestor-tarjeta ul{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
.cab-gestor-tarjeta li{display:inline-flex;align-items:center;gap:5px;padding:4px 10px 4px 7px;border:1px solid #23413a;border-radius:999px;background:#0f1a17;color:#9fe9cc;font-size:12.5px;font-weight:600}
.cab-gestor-tarjeta svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cab-gestor-der{display:flex;flex-direction:column;gap:clamp(10px,2cqw,16px);min-width:0;padding:clamp(12px,2.4cqw,20px)}
.cab-gestor-foto{position:relative;flex:1 1 0;min-height:180px;border-radius:12px;overflow:hidden;background:#161d1b}
.cab-gestor-foto img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 24%}
.cab-gestor-foto::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(11,16,15,.0) 55%,rgba(11,16,15,.55) 100%)}
.cab-gestor-etiqueta{position:absolute;z-index:2;left:clamp(10px,2cqw,16px);top:clamp(10px,2cqw,16px);padding:3px 8px;background:#2fd69b;color:#052a1d;font:700 12.5px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.06em;text-transform:uppercase}
.cab-gestor-contorno{position:absolute;z-index:2;left:clamp(10px,2cqw,16px);bottom:-.14em;font-size:clamp(54px,9.5cqw,96px);line-height:1;font-weight:500;letter-spacing:-.03em;color:transparent;-webkit-text-stroke:1.4px rgba(47,214,155,.8)}
.cab-gestor-panel{flex:none;padding:12px 14px 14px;background:#161d1b;border:1px solid #23312d;border-radius:12px}
.cab-gestor-panel p{margin:0 0 10px;font-size:clamp(15px,1.9cqw,18px);font-weight:700;letter-spacing:-.01em;color:#f1f5f3}
.cab-gestor-pantalla{height:clamp(120px,19cqw,170px);overflow:hidden;border-radius:8px;background:#fff}
.cab-gestor-pantalla img{display:block;width:100%;height:auto}
@media (prefers-reduced-motion:no-preference){
  .cab-gestor h1,.cab-gestor .resumen,.cab-gestor-tarjeta,.cab-gestor-panel{animation:cab-gestor-sube .8s cubic-bezier(.16,1,.3,1) both}
  .cab-gestor .resumen{animation-delay:.1s}
  .cab-gestor-tarjeta{animation-delay:.25s}
  .cab-gestor-panel{animation-delay:.2s}
  .cab-gestor-contorno{animation:cab-gestor-sube 1s cubic-bezier(.16,1,.3,1) .35s both}
  @keyframes cab-gestor-sube{from{opacity:0;transform:translateY(14px)}}
}
@container cabgestor (max-width:700px){
  .cab-gestor-cuerpo{grid-template-columns:minmax(0,1fr)}
  .cab-gestor-izq{border-right:0}
  .cab-gestor h1{font-size:34px}
  .cab-gestor .resumen{max-width:none}
  .cab-gestor-tarjeta{margin-bottom:6px}
  .cab-gestor-der{padding-top:8px}
  .cab-gestor-foto{flex:none;height:220px}
  .cab-gestor-contorno{font-size:64px}
  .cab-gestor-pantalla{height:150px}
}
/* una resta a la vista: lo que cobras, lo que restas y lo que queda */
.cuenta{max-width:520px;margin:22px 0 26px;padding:16px 20px 12px;background:var(--suave);border:1px solid var(--linea);border-radius:var(--radio)}
.cuenta-t{margin:0 0 6px;font-size:15px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--apagado)}
.cuenta ul{margin:0;padding:0;list-style:none}
.cuenta li{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:baseline;gap:6px;padding:9px 0;font-size:19px}
.cuenta-signo{font-weight:700;color:var(--apagado)}
.cuenta li b{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.cuenta li b small{display:block;font-size:15px;font-weight:600;color:var(--ok-tinta)}
.cuenta-resta b{color:var(--fallo-tinta)}
.cuenta-queda{margin-top:4px;border-top:2px solid var(--tinta)}
.cuenta-queda .cuenta-etq,.cuenta-queda b{font-weight:800;color:var(--ok-tinta)}
/* ejemplos: lo que dices y lo que SofIA te deja escrito */
.caso{--tono:#e6eef9;--tono-tinta:#1f4478;margin:30px 0 10px}
.caso>h3{margin:0 0 10px}
.caso-par{display:grid;grid-template-columns:minmax(0,1fr) 34px minmax(0,1.2fr);gap:8px;align-items:stretch;margin-top:14px}
.dices,.queda{padding:18px 20px 18px;border-radius:18px}
.dices svg,.queda svg{display:inline-block;vertical-align:middle;width:22px;height:22px;margin-right:8px;stroke:var(--tono-tinta);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.quien{display:inline;margin:0;font-size:15.5px;font-weight:700;color:var(--tono-tinta)}
.dices{background:var(--tono);border-bottom-left-radius:4px}
.dices p:not(.quien){margin:12px 0 0;font-size:19px;line-height:1.5}
.queda{background:#fff;border:1px solid var(--linea);box-shadow:0 8px 22px rgba(28,39,51,.1)}
.queda .quien+p{margin:12px 0 8px;font-size:19px;font-weight:700}
.queda ul.pasos{margin:0 0 6px}
.queda ul.pasos>li{padding:0 0 0 20px;margin-bottom:6px}
.queda ul.pasos>li::before{left:3px;top:.7em;width:6px;height:6px}
.queda ul.pasos>li>p:first-child{margin:0;padding:0;font-size:16.5px;font-weight:400;line-height:1.5}
.queda>p:last-child{margin:12px 0 0;padding-top:12px;border-top:1px solid var(--linea);font-size:18px}
.caso-flecha{align-self:center;display:grid;place-items:center}
.caso-flecha svg{width:26px;height:26px;stroke:var(--apagado);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:700px){.caso-par{grid-template-columns:1fr}.caso-flecha{transform:rotate(90deg);height:30px}}
/* ficha de una tarifa */
.tarifa{margin:18px 0 8px;padding:4px 20px;background:#fff;border:1px solid var(--linea);border-radius:16px;box-shadow:0 6px 18px rgba(28,39,51,.08)}
.tarifa .campo{padding:14px 0;border-bottom:1px solid var(--linea)}
.tarifa .campo:last-child{border-bottom:0}
.tarifa .campo>span{display:block;margin-bottom:4px;font-size:15px;font-weight:600;color:var(--apagado)}
.tarifa .campo p{margin:0;font-size:19px;font-weight:600}
.tarifa .campo ul{margin:0;padding-left:20px}
.tarifa .campo li{margin:2px 0;font-size:17px;line-height:1.5}
/* frases que le puedes decir a SofIA, como globos de conversación */
.frases{--tono:#e6eef9;--tono-tinta:#1f4478;margin:20px 0;padding:18px 20px 20px;border-radius:18px;background:var(--tono)}
.frases svg{display:inline-block;vertical-align:middle;width:22px;height:22px;margin-right:8px;stroke:var(--tono-tinta);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.frases ul{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:10px}
.frases li{max-width:34em;padding:12px 18px;border-radius:16px 16px 16px 4px;background:#fff;font-size:19px;line-height:1.4;box-shadow:0 2px 8px rgba(28,39,51,.08)}
.frases li:nth-child(even){justify-self:end;border-radius:16px 16px 4px 16px}
/* lo que MatIAs apunta de una factura: la factura real a la izquierda y la captura de sus datos a la derecha */
.lee{--tono:#e7f3ee;--tono-tinta:#1d5a45;margin:26px 0;padding:18px 20px 16px;border-radius:18px;background:var(--tono)}
.lee .quien{margin:0;font-weight:700;color:var(--tono-tinta)}
.lee .quien svg,.lee-flecha svg{display:inline-block;vertical-align:middle;width:22px;height:22px;margin-right:8px;stroke:var(--tono-tinta);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.lee-par{display:grid;grid-template-columns:minmax(0,1.2fr) 30px minmax(0,1fr);gap:8px;align-items:start;margin-top:14px}
.lee-par small{display:block;margin:0 0 8px;font-size:14px;font-weight:700;color:var(--tono-tinta)}
.lee-papel img{display:block;width:100%;height:auto;border-radius:6px;background:#fff;box-shadow:0 10px 22px rgba(28,39,51,.14)}
.lee-papel img{transform:rotate(-1.4deg)}
.lee-par .hueco{display:grid;place-items:center;min-height:200px;padding:16px;text-align:center;border:2px dashed var(--tono-tinta);border-radius:8px;background:rgba(255,255,255,.7);color:var(--tono-tinta);font-weight:600}
.lee-par .hueco code{display:block;margin-top:6px;font-size:12.5px;background:transparent;word-break:break-all}
.lee-fila{margin:0;background:#fff;border-radius:12px;box-shadow:0 2px 10px rgba(28,39,51,.08);overflow:hidden}
.lee-fila div{display:grid;grid-template-columns:6.2em minmax(0,1fr);gap:10px;padding:8px 14px;border-bottom:1px solid #eef0f2;font-size:16px;line-height:1.35}
.lee-fila div:last-child{border-bottom:0}
.lee-fila dt{color:var(--apagado)}
.lee-fila dd{margin:0;font-weight:600}
.lee-flecha{display:grid;place-items:center;align-self:center;margin-top:24px}
.lee-flecha svg{margin:0;width:26px;height:26px}
.lee figcaption{margin-top:14px;text-align:center;color:var(--tono-tinta);font-weight:600;font-size:16.5px}
@media (max-width:640px){
  .lee-par{grid-template-columns:minmax(0,1fr)}
  .lee-flecha svg{transform:rotate(90deg)}
}
/* las dos maneras de hacer algo, para elegir (una recomendada) */
.maneras{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin:24px 0 34px}
.manera{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:20px 22px;border:1.5px solid #cfd5dc;border-radius:18px;background:#fff;color:var(--tinta);text-decoration:none;line-height:1.35}
.manera:hover{border-color:var(--tinta);background:var(--suave)}
.manera-reco{border:2px solid var(--tinta);background:var(--suave)}
.manera-cab{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.manera-n{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--tinta);color:#fff;font-weight:700;font-size:17px}
.manera-etiqueta{padding:3px 12px;border-radius:999px;background:#fff;border:1.5px solid var(--tinta);font-size:14.5px;font-weight:700;line-height:1.3}
.manera-icono{position:absolute;top:18px;right:20px}
.manera-icono svg{display:block;width:34px;height:34px;stroke:var(--tinta);fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.manera strong{font-size:21px;line-height:1.25}
.manera-texto{font-size:16.5px;color:var(--apagado)}
.manera-ir{display:flex;align-items:center;gap:10px;margin-top:auto;padding-top:14px;font-weight:700;font-size:16.5px}
.manera-ir>span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--marca)}
.manera-ir svg{display:block;width:16px;height:16px;stroke:var(--tinta);fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transform:rotate(90deg)}
/* los pasos de un capítulo, de un vistazo */
.recorrido{list-style:none;counter-reset:rec;display:grid;grid-template-columns:repeat(auto-fit,minmax(148px,1fr));gap:12px;margin:22px 0 30px;padding:0}
.recorrido li{counter-increment:rec;display:flex;flex-direction:column;gap:4px;padding:16px 16px 18px;background:var(--suave);border-radius:14px;line-height:1.3}
.recorrido li::before{content:counter(rec);display:grid;place-items:center;width:34px;height:34px;margin-bottom:8px;border-radius:50%;background:var(--tinta);color:#fff;font-weight:700;font-size:17px}
.recorrido strong{font-size:17.5px}
.recorrido span{font-size:15.5px;color:var(--apagado)}
/* cada paso con su captura debajo: dos por fila (una en pantallas estrechas) */
.recorrido-capturas{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px}
.recorrido-capturas li{align-items:flex-start}
.recorrido-capturas li:last-child:nth-child(odd){grid-column:1/-1}
.recorrido-capturas span.rec-pantalla{display:block;align-self:center;width:min(100%,190px);margin-top:14px;padding:5px;background:#2b3440;border-radius:22px;box-shadow:0 8px 22px rgba(28,39,51,.18)}
.recorrido-capturas .rec-pantalla img{display:block;width:100%;height:auto;border-radius:17px;background:#fff}
.recorrido-capturas .rec-hueco{min-height:200px;padding:16px;color:#fff;font-size:14px;text-align:center}
/* recorrido con capturas del ordenador: texto a la izquierda y captura ancha a la derecha (nombres rec-web, recorrido-web) */
.recorrido-web{grid-template-columns:1fr;gap:14px}
.recorrido-web li{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);grid-template-areas:"num img" "tit img" "txt img";grid-template-rows:auto auto 1fr;column-gap:26px;row-gap:4px;padding:20px 22px;align-items:start}
.recorrido-web li::before{grid-area:num;margin-bottom:6px}
.recorrido-web li>strong{grid-area:tit}
.recorrido-web li>span:not(.rec-web){grid-area:txt}
.recorrido-web .rec-web{grid-area:img;grid-row:1/4;align-self:center;display:block;overflow:hidden;background:#fff;border-radius:12px;box-shadow:0 0 0 1px #d5dbe2,0 10px 26px rgba(28,39,51,.14)}
.recorrido-web .rec-web img{display:block;width:100%;height:auto}
.recorrido-web .rec-hueco{min-height:160px;padding:16px;color:var(--apagado);font-size:14px;text-align:center}
@media (max-width:760px){.recorrido-web li{grid-template-columns:1fr;grid-template-areas:"num" "tit" "txt" "img";grid-template-rows:none}.recorrido-web .rec-web{grid-row:auto;margin-top:12px}}
/* enlace a una pieza aparte (el cómic): se abre en otra pestaña */
.ver{display:flex;align-items:center;gap:16px;margin:22px 0;padding:14px 20px 14px 14px;border:1.5px solid #b8c0ca;border-radius:16px;background:#fff;color:var(--tinta);text-decoration:none}
.ver:hover{background:var(--suave);border-color:var(--tinta)}
.ver-icono{flex:none;display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:var(--marca)}
.ver-icono svg{width:24px;height:24px;margin-left:3px;fill:var(--tinta)}
.ver-texto{flex:1;min-width:0;line-height:1.35}
.ver-texto strong{display:block;font-size:19px}
.ver-texto span{display:block;font-size:16.5px;color:var(--apagado)}
.ver-flecha svg{display:block;width:24px;height:24px;stroke:var(--tinta);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* Cabecera «banco y extractos»: un fichero de extracto se mete en la losa del saldo.
   Nombres propios (cab-ext-*). Medidas en cqw: siguen al ancho de la cabecera. */
.cab-ext{display:block;min-height:0;container-type:inline-size;container-name:cabext;background:radial-gradient(55% 70% at 80% 62%,rgba(32,150,146,.42),transparent 70%),radial-gradient(40% 45% at 0% 0%,rgba(255,138,0,.14),transparent 70%),#082a31}
.cab-ext::after{display:none}
.cab-ext .hero-texto{position:relative;z-index:3;max-width:46%;min-height:480px;padding:clamp(22px,4vw,36px)}
.cab-ext h1{text-shadow:none}
.cab-ext .resumen{color:rgba(255,255,255,.86)}
.cab-ext-escena{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.cab-ext-fichero{position:absolute;z-index:1;right:9cqw;top:34px;display:grid;grid-template-columns:auto 1fr;column-gap:10px;row-gap:1px;width:196px;padding:12px 14px 14px;background:#f4f1ea;border-radius:6px;box-shadow:0 18px 36px rgba(0,0,0,.45);color:#1d232a;transform:rotate(4deg)}
.cab-ext-fichero svg{grid-row:1/3;width:26px;height:26px;margin-top:2px;stroke:#0f766e;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cab-ext-fichero b{font-size:15px;letter-spacing:.01em}
.cab-ext-fichero small{font-size:12px;color:#5b6876}
.cab-ext-filas{grid-column:1/3;display:flex;flex-direction:column;gap:6px;margin-top:10px}
.cab-ext-filas i{display:block;width:var(--w);height:6px;border-radius:3px;background:#c9c4b6}
.cab-ext-filas i:nth-child(odd){background:#d8d3c5}
.cab-ext-losa{position:absolute;z-index:2;right:5cqw;bottom:40px;width:min(40cqw,410px);min-width:290px;padding:18px 20px 0;overflow:hidden;background:#fff;border-radius:16px;box-shadow:0 0 0 1px rgba(255,255,255,.6),0 34px 64px rgba(0,0,0,.5);color:#16222f}
.cab-ext-losa>small{display:block;font-size:12.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#5b6876}
.cab-ext-losa p{margin:0;font-size:16px;line-height:1.35;color:#3a4856}
.cab-ext-losa>p:first-of-type{margin-top:8px}
.cab-ext-cifra{display:block;margin:0 0 2px;font-size:clamp(30px,4.2cqw,44px);line-height:1.05;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.cab-ext-chip{display:inline-flex;align-items:center;gap:5px;margin:12px 0 4px;padding:4px 11px 4px 8px;border:1px solid #bfe4d2;border-radius:999px;background:#eaf7f0;color:#137a50;font-size:13px;font-weight:700}
.cab-ext-chip svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cab-ext-grafico{display:block;width:calc(100% + 40px);height:64px;margin:0 -20px}
.cab-ext-grafico .area{fill:rgba(15,118,110,.14)}
.cab-ext-grafico .linea{fill:none;stroke:#0f766e;stroke-width:2.4;stroke-linejoin:round;vector-effect:non-scaling-stroke}
@media (prefers-reduced-motion:no-preference){
  .cab-ext-fichero{animation:cab-ext-baja 5.2s cubic-bezier(.5,0,.3,1) infinite}
  .cab-ext-chip{animation:cab-ext-late 5.2s ease-in-out infinite}
  .cab-ext-grafico .linea{animation:cab-ext-traza 5.2s ease-out infinite}
  @keyframes cab-ext-baja{
    0%,8%{opacity:0;transform:translateY(-26px) rotate(1deg)}
    22%{opacity:1;transform:translateY(0) rotate(4deg)}
    55%{opacity:1;transform:translateY(0) rotate(4deg)}
    78%{opacity:1;transform:translateY(172px) rotate(2deg) scale(.9)}
    100%{opacity:0;transform:translateY(190px) rotate(2deg) scale(.88)}
  }
  @keyframes cab-ext-late{0%,70%,100%{transform:scale(1)}82%{transform:scale(1.12)}92%{transform:scale(.98)}}
  @keyframes cab-ext-traza{0%,72%{opacity:1}80%{opacity:.35}92%,100%{opacity:1}}
}
@container cabext (max-width:700px){
  .cab-ext .hero-texto{max-width:none;min-height:0;padding-bottom:4px}
  .cab-ext-escena{position:relative;inset:auto;height:360px}
  .cab-ext-fichero{right:auto;left:8%;top:14px;width:176px}
  .cab-ext-losa{right:auto;left:4%;bottom:22px;width:92%;min-width:0;padding:14px 16px 0}
  .cab-ext-cifra{font-size:32px}
}
/* Cabecera «cobros y pagos»: el movimiento del banco y su factura encajan y sale el sello.
   Fondo claro. Nombres propios (cab-enc-*). Medidas en cqw: siguen al ancho de la cabecera. */
.cab-enc{display:block;min-height:0;container-type:inline-size;container-name:cabenc;background:radial-gradient(55% 75% at 78% 45%,rgba(31,157,99,.16),transparent 70%),radial-gradient(40% 50% at 0% 100%,rgba(255,138,0,.10),transparent 70%),#f2f5f1;color:#16222f}
.cab-enc::after{display:none}
.cab-enc .hero-texto{position:relative;z-index:3;max-width:46%;min-height:440px;padding:clamp(22px,4vw,36px)}
.cab-enc h1{color:#16222f;text-shadow:none}
.cab-enc .resumen{color:#3a4856}
.cab-enc-escena{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.cab-enc-conjunto{position:absolute;right:6cqw;top:50%;display:flex;flex-direction:column;gap:14px;width:min(42cqw,400px);min-width:280px;transform:translateY(-50%)}
.cab-enc-pieza{display:flex;flex-direction:column;gap:2px;padding:14px 18px 15px;background:#fff;border-radius:16px;box-shadow:0 0 0 1px rgba(22,34,47,.08),0 18px 40px rgba(22,34,47,.13)}
.cab-enc-banco{background:#f7f9fa}
.cab-enc-pieza small{font-size:12.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#5b6876}
.cab-enc-importe{margin:2px 0;font-size:clamp(24px,3cqw,30px);line-height:1.1;font-weight:800;color:#137a50;font-variant-numeric:tabular-nums}
.cab-enc-pieza span{font-size:14px;font-weight:600;line-height:1.3;overflow-wrap:anywhere}
.cab-enc-pieza em{font-style:normal;font-size:13px;color:#5b6876}
.cab-enc-factura p{display:flex;justify-content:space-between;gap:10px;margin:4px 0 0;font-size:16px;font-variant-numeric:tabular-nums}
.cab-enc-union{position:absolute;left:50%;top:50%;z-index:2;display:grid;place-items:center;width:38px;height:38px;margin:-19px 0 0 -19px;border-radius:50%;background:#1f9d63;box-shadow:0 0 0 4px #f2f5f1,0 6px 14px rgba(22,34,47,.18)}
.cab-enc-union svg{width:24px;height:24px;fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.cab-enc-union svg circle{display:none}
.cab-enc-sello{position:absolute;right:-12px;bottom:-26px;z-index:3;display:flex;flex-direction:column;align-items:center;padding:6px 16px 7px;border:3px solid #1f9d63;border-radius:10px;background:rgba(255,255,255,.88);color:#137a50;transform:rotate(-8deg)}
.cab-enc-sello b{font-size:22px;font-weight:900;letter-spacing:.14em;text-transform:uppercase;line-height:1.1}
.cab-enc-sello small{font-size:12px;font-weight:700}
@media (prefers-reduced-motion:no-preference){
  .cab-enc-banco{animation:cab-enc-baja .9s cubic-bezier(.3,.7,.3,1) .2s both}
  .cab-enc-factura{animation:cab-enc-sube .9s cubic-bezier(.3,.7,.3,1) .2s both}
  .cab-enc-union{animation:cab-enc-une .5s ease-out 1.05s both}
  .cab-enc-sello{animation:cab-enc-sella .55s cubic-bezier(.2,.8,.3,1) 1.45s both}
  @keyframes cab-enc-baja{from{opacity:0;transform:translateY(-40px)}}
  @keyframes cab-enc-sube{from{opacity:0;transform:translateY(40px)}}
  @keyframes cab-enc-une{0%{opacity:0;transform:scale(0)}70%{opacity:1;transform:scale(1.18)}100%{opacity:1;transform:scale(1)}}
  @keyframes cab-enc-sella{0%{opacity:0;transform:rotate(-8deg) scale(1.7)}75%{opacity:1;transform:rotate(-8deg) scale(.94)}100%{opacity:1;transform:rotate(-8deg) scale(1)}}
}
@container cabenc (max-width:700px){
  .cab-enc .hero-texto{max-width:none;min-height:0;padding-bottom:4px}
  .cab-enc-escena{position:relative;inset:auto;height:350px}
  .cab-enc-conjunto{right:auto;left:5%;top:16px;width:84%;min-width:0;transform:none}
  .cab-enc-sello{right:-6px;bottom:-20px}
  .cab-enc-sello b{font-size:18px}
}
/* Cabecera de «Cómo irá tu caja»: «Lo que viene», semana a semana, y el semáforo al final.
   Fondo claro y cálido. Nombres propios (cab-via-*). Estado base = final; animación una sola vez. */
.cab-via{display:block;min-height:0;container-type:inline-size;container-name:cabvia;background:radial-gradient(55% 70% at 80% 40%,rgba(31,157,99,.12),transparent 70%),radial-gradient(45% 55% at 0% 100%,rgba(255,138,0,.10),transparent 70%),#f6f4ef;color:#16222f}
.cab-via::after{display:none}
.cab-via .hero-texto{position:relative;z-index:3;max-width:44%;min-height:510px;padding:clamp(22px,4vw,36px)}
.cab-via h1{color:#16222f;text-shadow:none}
.cab-via .resumen{color:#3a4856}
.cab-via-escena{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.cab-via-tarjeta{position:absolute;right:5cqw;top:50%;width:min(48cqw,450px);min-width:300px;transform:translateY(-50%);padding:14px 18px 14px;background:#fff;border-radius:18px;box-shadow:0 0 0 1px rgba(22,34,47,.08),0 18px 40px rgba(22,34,47,.13)}
.cab-via-tarjeta>small{display:block;margin-bottom:6px;font-size:12.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#5b6876}
.cab-via-lista{position:relative;list-style:none;margin:0;padding:0 0 0 18px}
.cab-via-lista::before{content:"";position:absolute;left:4px;top:10px;bottom:12px;width:2px;border-radius:2px;background:#e3e7ea}
.cab-via-lista li{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:2px 10px;padding:6px 0 7px;border-bottom:1px solid #eef1f3}
.cab-via-lista li:last-child{border-bottom:0}
.cab-via-lista li::before{content:"";position:absolute;left:-18px;top:12px;width:10px;height:10px;border-radius:50%;background:#fff;border:2px solid #9aa6b1}
.cab-via-lista li.cab-via-hoy::before{background:#16222f;border-color:#16222f}
.cab-via-sem{font-size:13.5px;font-weight:700;color:#26323f}
.cab-via-lista b{font-size:15px;font-weight:800;font-variant-numeric:tabular-nums;color:#16222f}
.cab-via-fichas{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:5px}
.cab-via-ficha{display:inline-flex;align-items:baseline;gap:5px;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:600;background:#f1f3f5;color:#3a4856;white-space:nowrap}
.cab-via-ficha em{font-style:normal;font-weight:800;font-variant-numeric:tabular-nums}
.cab-via-ficha.entra{background:#e4f4ec;color:#137a50}
.cab-via-aviso{display:flex;align-items:flex-start;gap:9px;margin:10px 0 0;padding:9px 12px;border:1.5px solid #9fd8bb;border-radius:12px;background:#eaf7f0;color:#0f5f3e;font-size:13.5px;line-height:1.35}
.cab-via-aviso svg{flex:none;width:20px;height:20px;fill:none;stroke:#1f9d63;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.cab-via-aviso b{display:block;font-size:15px}
@media (prefers-reduced-motion:no-preference){
  .cab-via-tarjeta{animation:cab-via-entra .6s cubic-bezier(.3,.7,.3,1) .1s both}
  .cab-via-lista li{animation:cab-via-fila .45s ease-out calc(.45s + var(--i)*.42s) both}
  .cab-via-ficha{animation:cab-via-ficha .4s cubic-bezier(.2,.8,.3,1) calc(.65s + var(--i)*.42s) both}
  .cab-via-aviso{animation:cab-via-aviso .5s cubic-bezier(.2,.8,.3,1) 2.85s both}
  @keyframes cab-via-entra{from{opacity:0;transform:translateY(calc(-50% + 24px))}}
  @keyframes cab-via-fila{from{opacity:0;transform:translateY(8px)}}
  @keyframes cab-via-ficha{from{opacity:0;transform:scale(.85)}}
  @keyframes cab-via-aviso{0%{opacity:0;transform:scale(.94)}70%{opacity:1;transform:scale(1.02)}100%{opacity:1;transform:scale(1)}}
}
@container cabvia (max-width:700px){
  .cab-via .hero-texto{max-width:none;min-height:0;padding-bottom:4px}
  .cab-via-escena{position:relative;inset:auto;height:auto;padding:16px 5% 24px}
  .cab-via-tarjeta{position:relative;right:auto;top:auto;width:100%;min-width:0;transform:none}
  @media (prefers-reduced-motion:no-preference){.cab-via-tarjeta{animation-name:cab-via-entra-m}}
}
@keyframes cab-via-entra-m{from{opacity:0;transform:translateY(24px)}}
/* Cabecera de «Tu dinero, día a día»: el reparto de lo que sale y la porción gris que se pulsa y toma color.
   Fondo claro. Nombres propios (cab-rep-*). El estado base es el final; las animaciones (una sola vez) parten del principio. */
.cab-rep{display:block;min-height:0;container-type:inline-size;container-name:cabrep;background:radial-gradient(50% 70% at 80% 45%,rgba(47,123,224,.13),transparent 70%),radial-gradient(40% 50% at 0% 100%,rgba(255,138,0,.09),transparent 70%),#f3f5f8;color:#16222f}
.cab-rep::after{display:none}
.cab-rep .hero-texto{position:relative;z-index:3;max-width:46%;min-height:460px;padding:clamp(22px,4vw,36px)}
.cab-rep h1{color:#16222f;text-shadow:none}
.cab-rep .resumen{color:#3a4856}
.cab-rep-escena{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.cab-rep-tarjeta{position:absolute;right:5cqw;top:50%;width:min(46cqw,430px);min-width:300px;transform:translateY(-50%);padding:14px 16px 10px;background:#fff;border-radius:18px;box-shadow:0 0 0 1px rgba(22,34,47,.08),0 18px 40px rgba(22,34,47,.13)}
.cab-rep-tarjeta>small{display:block;font-size:12.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#5b6876}
.cab-rep-anillo{position:relative;width:min(150px,36cqw);margin:8px auto 12px}
.cab-rep-anillo svg{display:block;width:100%;height:auto;fill:none;stroke-width:5.6;overflow:visible}
.cab-rep-anillo circle.sin{stroke:#8a70d6}
.cab-rep-centro{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.cab-rep-centro small{font-size:12px;color:#5b6876}
.cab-rep-centro b{font-size:13.5px;font-weight:800;font-variant-numeric:tabular-nums}
.cab-rep-filas{list-style:none;margin:0;padding:0}
.cab-rep-filas li{position:relative;display:grid;grid-template-columns:12px minmax(0,1fr) auto 34px;align-items:center;gap:8px;padding:4px 2px;font-size:13.5px;line-height:1.25}
.cab-rep-filas li i{width:11px;height:11px;border-radius:3px;background:var(--c)}
.cab-rep-filas .cab-rep-nom{display:grid;min-width:0;font-weight:600;color:#26323f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cab-rep-filas .cab-rep-nom>span{grid-area:1/1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cab-rep-filas .antes{opacity:0;color:#6b7683}
.cab-rep-filas li b{font-weight:700;font-variant-numeric:tabular-nums}
.cab-rep-filas li em{font-style:normal;text-align:right;font-size:13px;color:#5b6876;font-variant-numeric:tabular-nums}
.cab-rep-sin::after{content:"";position:absolute;inset:0 -6px;border:2.5px solid #FF8A00;border-radius:10px;opacity:0}
@media (prefers-reduced-motion:no-preference){
  .cab-rep-tarjeta{animation:cab-rep-entra .6s cubic-bezier(.3,.7,.3,1) .1s both}
  .cab-rep-anillo circle{animation:cab-rep-traza .5s ease-out calc(.5s + var(--i)*.28s) both}
  .cab-rep-anillo circle.sin{animation:cab-rep-traza .5s ease-out calc(.5s + var(--i)*.28s) both,cab-rep-pinta .7s ease 3.2s both}
  .cab-rep-filas li{animation:cab-rep-fila .4s ease-out calc(.6s + var(--i)*.14s) both}
  .cab-rep-sin i{animation:cab-rep-pinta-i .7s ease 3.2s both}
  .cab-rep-sin .antes{animation:cab-rep-oculta .45s ease 3.2s both}
  .cab-rep-sin .despues{animation:cab-rep-muestra .45s ease 3.2s both}
  .cab-rep-sin::after{animation:cab-rep-toque .85s ease 2.8s both}
  @keyframes cab-rep-entra{from{opacity:0;transform:translateY(calc(-50% + 24px))}}
  @keyframes cab-rep-traza{from{stroke-dasharray:0 100;opacity:0}20%{opacity:1}}
  @keyframes cab-rep-pinta{from{stroke:#cfd4da}}
  @keyframes cab-rep-pinta-i{from{background:#cfd4da}}
  @keyframes cab-rep-fila{from{opacity:0;transform:translateX(10px)}}
  @keyframes cab-rep-oculta{from{opacity:1}to{opacity:0}}
  @keyframes cab-rep-muestra{from{opacity:0}}
  @keyframes cab-rep-toque{0%{opacity:0;transform:scale(1.06)}35%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}
}
@container cabrep (max-width:700px){
  .cab-rep .hero-texto{max-width:none;min-height:0;padding-bottom:4px}
  .cab-rep-escena{position:relative;inset:auto;height:400px}
  .cab-rep-tarjeta{right:auto;left:5%;top:16px;width:90%;min-width:0;transform:none}
  .cab-rep-anillo{width:min(150px,44cqw)}
  .cab-rep-centro b{font-size:12.5px}
  .cab-rep-filas li{font-size:12.5px;gap:6px;grid-template-columns:12px minmax(0,1fr) auto 30px}
  .cab-rep-filas .cab-rep-nom{white-space:normal}
  @media (prefers-reduced-motion:no-preference){.cab-rep-tarjeta{animation-name:cab-rep-entra-m}@keyframes cab-rep-entra-m{from{opacity:0;transform:translateY(24px)}}}
}
/* las cajas de «Tu banco y tus facturas» (cajas, caja-*) */
.cajas{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:18px 0 26px;padding:0}
.cajas li{display:flex;flex-direction:column;gap:5px;padding:16px 18px 18px;border:1.5px solid var(--linea);border-top-width:5px;border-radius:14px;background:#fff;line-height:1.35}
.cajas .caja-icono{display:grid;place-items:center;width:40px;height:40px;margin-bottom:6px;border-radius:12px}
.cajas .caja-icono svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cajas strong{font-size:19px}
.cajas .caja-que{font-size:16.5px}
.cajas .caja-haces{font-size:15.5px;color:var(--apagado)}
.caja-ya{border-top-color:#1f9d63}.caja-ya .caja-icono{background:#eaf7f0;color:#137a50}
.caja-necesita{border-top-color:#d4a017}.caja-necesita .caja-icono{background:#fff6e3;color:#8a5a00}
.caja-ticket{border-top-color:#9c6b4e}.caja-ticket .caja-icono{background:#f4ece6;color:#7a4f36}
/* móvil y tablet */
@media (max-width:1180px){.marco{grid-template-columns:280px minmax(0,1fr)}.toc{display:none}}
@media (max-width:860px){
  body{font-size:18px}
  .cabecera{flex-wrap:wrap;height:auto;padding:10px 16px;gap:10px}
  :root{--alto-cab:112px}
  .btn-indice{display:flex;order:1}
  .logo{order:0;margin-right:auto}
  .pdf{order:2;padding:10px}.pdf span{display:none}
  .buscador{order:3;flex:1 0 100%;max-width:none}
  .marco{display:block}
  .indice{display:none;position:fixed;inset:var(--alto-cab) 0 0 0;height:auto;z-index:15;background:#fff;border:0;padding:12px 16px 60px}
  body.indice-abierto .indice{display:block}
  .contenido{padding:24px 16px 64px}
  h2{font-size:25px;margin-top:44px}
  .etapa{grid-template-columns:1fr;gap:4px}
  .pie{grid-template-columns:1fr}.pie .sig,.pie .ant{grid-column:auto;text-align:left}
}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
@media print{.cabecera,.indice,.toc,.pie,.buscador{display:none!important}.marco{display:block}.contenido{padding:0}}

/* Cabecera de «Conoce a LucIA»: negro con brillo verde, móvil inclinado con su chat y dos fichas.
   Estado base = estado final; solo se anima una vez, y solo sin «reducir movimiento».
   Nombres propios (cab-lucia-*). Medidas en cqw: siguen al ancho de la cabecera. */
.cab-lucia{display:block;min-height:0;container-type:inline-size;container-name:cablucia;background:radial-gradient(46% 62% at 80% 46%,rgba(22,170,140,.30),transparent 72%),radial-gradient(34% 40% at 0% 102%,rgba(22,170,140,.13),transparent 70%),#06090a}
.cab-lucia::after{display:none}
.cab-lucia .hero-texto{position:relative;z-index:3;display:flex;flex-direction:column;justify-content:center;max-width:52%;min-height:590px;padding:clamp(22px,4vw,40px)}
.cab-lucia h1{margin:0 0 16px;color:#f2f7f5;font-size:clamp(30px,5.4cqw,50px);line-height:1.08;letter-spacing:-.02em;text-wrap:balance;text-shadow:none}
.cab-lucia .resumen{color:rgba(242,247,245,.78);font-size:19px;line-height:1.5;max-width:30em}
.cab-lucia-escena{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.cab-lucia-luz{position:absolute;right:2%;top:12%;width:56%;aspect-ratio:1;border-radius:50%;background:radial-gradient(closest-side,rgba(40,200,166,.16),transparent);filter:blur(10px)}
.cab-lucia-movil{position:absolute;z-index:1;right:8%;top:30px;width:min(258px,31%);padding:7px;background:#0b0e0e;border-radius:40px;box-shadow:0 0 0 1.5px #4d5655,0 0 0 4px #161b1b,0 44px 80px rgba(0,0,0,.65),0 0 90px rgba(30,190,158,.16);transform:perspective(1500px) rotateY(-15deg) rotateX(3deg) rotateZ(3deg);transform-origin:50% 60%}
.cab-lucia-movil img{display:block;width:100%;height:auto;border-radius:33px;background:#f6f8f8}
.cab-lucia-chip{position:absolute;z-index:3;display:flex;align-items:center;gap:13px;padding:12px 24px 12px 12px;border-radius:22px;background:rgba(22,28,28,.66);border:1px solid rgba(255,255,255,.14);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 18px 40px rgba(0,0,0,.5);color:#f2f7f5;line-height:1.2;white-space:nowrap}
.cab-lucia-chip small{display:block;font-size:16px;color:rgba(242,247,245,.74)}
.cab-lucia-chip strong{display:block;font-size:25px;font-weight:700;letter-spacing:-.01em}
.cab-lucia-ico{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:50%;background:rgba(45,212,168,.16)}
.cab-lucia-ico svg{width:21px;height:21px;fill:none;stroke:#37d9ae;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cab-lucia-chip.c1{left:47%;top:132px}
.cab-lucia-chip.c2{right:3%;bottom:74px}
.cab-lucia-chip.c2 strong{font-size:23px}
.cab-lucia-pie{position:absolute;z-index:2;right:5%;bottom:20px;margin:0;font-size:14px;color:rgba(242,247,245,.62)}
@media (prefers-reduced-motion:no-preference){
  .cab-lucia-movil{animation:cab-lucia-entra 1s cubic-bezier(.16,1,.3,1) .1s both}
  .cab-lucia-chip.c1{animation:cab-lucia-chip 1s cubic-bezier(.16,1,.3,1) .7s both}
  .cab-lucia-chip.c2{animation:cab-lucia-chip 1s cubic-bezier(.16,1,.3,1) 1.1s both}
  @keyframes cab-lucia-entra{from{opacity:0;transform:perspective(1500px) rotateY(-15deg) rotateX(3deg) rotateZ(3deg) translateY(36px)}}
  @keyframes cab-lucia-chip{from{opacity:0;transform:translateY(16px) scale(.94)}}
}
@container cablucia (max-width:620px){
  .cab-lucia .hero-texto{max-width:none;min-height:0;padding-bottom:6px}
  .cab-lucia h1{font-size:clamp(28px,8cqw,38px)}
  .cab-lucia .resumen{font-size:18px}
  .cab-lucia-escena{position:relative;inset:auto;height:400px}
  .cab-lucia-movil{right:6%;top:14px;width:44%;padding:5px;border-radius:30px;transform:perspective(1200px) rotateY(-12deg) rotateZ(2deg)}
  .cab-lucia-movil img{border-radius:25px}
  .cab-lucia-chip{padding:9px 16px 9px 9px;gap:10px;border-radius:18px}
  .cab-lucia-chip small{font-size:13.5px}
  .cab-lucia-chip strong{font-size:20px}
  .cab-lucia-chip.c2 strong{font-size:18px}
  .cab-lucia-ico{width:34px;height:34px}.cab-lucia-ico svg{width:17px;height:17px}
  .cab-lucia-chip.c1{left:3%;top:96px}
  .cab-lucia-chip.c2{right:auto;left:7%;bottom:60px}
  .cab-lucia-pie{left:5%;right:5%;bottom:14px;font-size:13px}
  @media (prefers-reduced-motion:no-preference){
    .cab-lucia-movil{animation-name:cab-lucia-entra-estrecho}
    @keyframes cab-lucia-entra-estrecho{from{opacity:0;transform:perspective(1200px) rotateY(-12deg) rotateZ(2deg) translateY(30px)}}
  }
}

/* Cabecera de «Qué le puedes preguntar a LucIA»: fondo claro; una barra de pregunta que se escribe sola y las respuestas de tres temas.
   Estado base = estado final; se anima una vez y solo sin «reducir movimiento». Nombres propios (cab-preg-*). */
.cab-preg{display:block;min-height:0;container-type:inline-size;container-name:cabpreg;background:radial-gradient(60% 70% at 88% 8%,rgba(20,150,125,.16),transparent 70%),radial-gradient(40% 50% at 0% 100%,rgba(20,150,125,.08),transparent 70%),#f1f6f5;color:#14302b;border:1px solid #dbe7e4}
.cab-preg::after{display:none}
.cab-preg .hero-texto{position:relative;z-index:3;display:flex;flex-direction:column;justify-content:center;max-width:40%;min-height:500px;padding:clamp(22px,4vw,40px)}
.cab-preg h1{margin:0 0 14px;color:#10302a;font-size:clamp(28px,4.6cqw,44px);line-height:1.1;letter-spacing:-.02em;text-wrap:balance;text-shadow:none}
.cab-preg .resumen{color:#3c5651;font-size:19px;line-height:1.5}
.cab-preg-escena{position:absolute;left:42%;right:3.5%;top:0;bottom:0;display:flex;flex-direction:column;justify-content:center;gap:22px;pointer-events:none}
.cab-preg-barra{display:flex;align-items:center;gap:12px;padding:8px 9px 8px 8px;background:#fff;border:1px solid #cfe0dc;border-radius:999px;box-shadow:0 14px 34px rgba(20,60,52,.12)}
.cab-preg-barra img{flex:none;width:42px;height:42px;border-radius:50%;object-fit:cover;object-position:50% 18%;box-shadow:0 0 0 2px #fff,0 0 0 4px #2cb89a}
.cab-preg-texto{flex:1;min-width:0;display:block;overflow:hidden;white-space:nowrap;font-size:clamp(13.5px,1.8cqw,17px);font-weight:600;color:#14302b;text-overflow:ellipsis}
.cab-preg-mic{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:50%;background:#0e7c66}
.cab-preg-mic svg{width:22px;height:22px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cab-preg-tarjetas{display:flex;flex-direction:column;gap:12px}
.cab-preg-tarj{display:flex;align-items:center;gap:14px;padding:13px 20px 13px 13px;background:#fff;border:1px solid #d7e6e2;border-radius:18px;box-shadow:0 10px 26px rgba(20,60,52,.10)}
.cab-preg-tarj.t2{margin-left:22px}.cab-preg-tarj.t3{margin-left:44px}
.cab-preg-ico{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:12px;background:#dff3ee}
.cab-preg-ico svg{width:22px;height:22px;fill:none;stroke:#0e7c66;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.cab-preg-tarj small{display:block;font-size:15px;line-height:1.25;color:#4a625d}
.cab-preg-tarj b{display:block;font-size:26px;line-height:1.15;letter-spacing:-.01em;color:#10302a}
.cab-preg-tarj em{display:block;font-style:normal;font-size:14.5px;line-height:1.3;color:#4a625d}
@media (prefers-reduced-motion:no-preference){
  .cab-preg-texto{animation:cab-preg-teclea 1.9s steps(36,end) .5s both}
  .cab-preg-tarj{animation:cab-preg-sale .9s cubic-bezier(.16,1,.3,1) both}
  .cab-preg-tarj.t1{animation-delay:2.5s}.cab-preg-tarj.t2{animation-delay:2.9s}.cab-preg-tarj.t3{animation-delay:3.3s}
  @keyframes cab-preg-teclea{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
  @keyframes cab-preg-sale{from{opacity:0;transform:translateY(16px)}}
}
@container cabpreg (max-width:660px){
  .cab-preg .hero-texto{max-width:none;min-height:0;padding-bottom:4px}
  .cab-preg h1{font-size:clamp(27px,7.4cqw,36px)}
  .cab-preg .resumen{font-size:18px}
  .cab-preg-escena{position:relative;left:auto;right:auto;top:auto;bottom:auto;padding:14px clamp(18px,4cqw,28px) 28px}
  .cab-preg-texto{font-size:15px;white-space:normal;line-height:1.25;text-overflow:clip}
  .cab-preg-barra{border-radius:30px}
  .cab-preg-tarj{padding:11px 16px 11px 11px;gap:12px}
  .cab-preg-tarj.t2{margin-left:12px}.cab-preg-tarj.t3{margin-left:24px}
  .cab-preg-tarj b{font-size:22px}
  .cab-preg-tarj small{font-size:14px}
}
