/* Web pública de Mía (mia.tica.cat). Sin estilos en línea: la política de contenido de la página solo admite esta hoja.
   Reglas de forma: botones en píldora, cajas a 14px, etiquetas a 6px. Un solo color de acento (el cian del producto).
   Dos temas: claro (por defecto) y oscuro (html[data-tema="oscuro"], lo pone tema.js). --acento es el relleno; --acento-t, el mismo color para texto. */

@font-face { font-family: "Bricolage"; src: url("/static/sitio/f/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/static/sitio/f/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/static/sitio/f/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --fondo: #f4f6f7;
  --fondo-2: #ffffff;
  --fondo-3: #eceff1;
  --linea: rgba(12, 24, 32, .12);
  --linea-2: rgba(12, 24, 32, .24);
  --texto: #0c1519;
  --suave: #44515b;
  --tenue: #64707a;
  --acento: #58d2ee;
  --acento-t: #0a7a96;
  --acento-rgb: 88, 210, 238;
  --sobre-acento: #04161c;
  --aviso: #96590a;
  --no: #b5382a;
  --si: #1b7743;
  --nav-bg: rgba(244, 246, 247, .94);
  --nodo-on: #dcf3f9;
  --sombra: 0 40px 80px -34px rgba(12, 30, 40, .55), 0 0 0 1px rgba(12, 24, 32, .1);
  --halo: .16;
  --r: 14px;
  --r-s: 6px;
  --titular: "Bricolage", "Geist", system-ui, sans-serif;
  --cuerpo: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gap: clamp(72px, 10vw, 136px);
  color-scheme: light;
}
:root[data-tema="oscuro"] {
  --fondo: #0a0d10;
  --fondo-2: #0f1317;
  --fondo-3: #151a20;
  --linea: rgba(226, 236, 244, .11);
  --linea-2: rgba(226, 236, 244, .2);
  --texto: #eef2f5;
  --suave: #a3adb7;
  --tenue: #7c8791;
  --acento-t: #58d2ee;
  --aviso: #f0b45a;
  --no: #f08a7c;
  --si: #7fd6a0;
  --nav-bg: rgba(10, 13, 16, .95);
  --nodo-on: #12272e;
  --sombra: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .5);
  --halo: .1;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fondo); color: var(--texto); font: 400 17px/1.6 var(--cuerpo); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { width: 1.15em; height: 1.15em; flex: none; }
:focus-visible { outline: 2px solid var(--acento-t); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(var(--acento-rgb), .3); }

.ancho { width: min(1200px, 100% - 48px); margin-inline: auto; }
.salto { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--acento); color: var(--sobre-acento); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.salto:focus { top: 12px; }

h2 { font: 700 clamp(2rem, 4.4vw, 3.5rem)/1.04 var(--titular); letter-spacing: -.035em; max-width: 17ch; text-wrap: balance; }
h3 { font: 600 1.1rem/1.3 var(--cuerpo); letter-spacing: -.01em; }
.sub { margin-top: 20px; color: var(--suave); font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.55; max-width: 58ch; text-wrap: pretty; }
.ceja { font: 500 .8rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--acento-t); margin-bottom: 20px; }
section { padding-block: var(--gap); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; font: 600 1rem/1 var(--cuerpo); text-decoration: none; white-space: nowrap; border: 1px solid transparent; cursor: pointer; transition: transform .18s ease, background-color .18s ease, border-color .18s ease; }
.btn:active { transform: scale(.98); }
.btn-pri { background: var(--acento); color: var(--sobre-acento); }
.btn-pri:hover { background: #7ddff5; }
.btn-pri svg { transition: transform .2s ease; }
.btn-pri:hover svg { transform: translateX(3px); }
.btn-sec { border-color: var(--linea-2); color: var(--texto); }
.btn-sec:hover { border-color: var(--texto); }
.btn-s { height: 40px; padding: 0 18px; font-size: .92rem; }

/* Barra */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 40; border-bottom: 1px solid transparent; transition: background-color .25s ease, border-color .25s ease; }
.nav.pegada { background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--linea); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.marca { display: inline-flex; align-items: baseline; gap: 9px; text-decoration: none; }
.marca-m { font: 800 1.45rem/1 var(--titular); letter-spacing: -.04em; }
.marca-t { font: 500 .72rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--tenue); }
.nav-links { display: flex; gap: 30px; }
.nav-links a, .enlace-entrar { font-size: .94rem; color: var(--suave); text-decoration: none; transition: color .15s ease; }
.nav-links a:hover, .enlace-entrar:hover { color: var(--texto); }
.nav-acc { display: flex; align-items: center; gap: 20px; }
.tema { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--linea-2); background: none; color: var(--suave); cursor: pointer; display: grid; place-items: center; transition: color .15s ease, border-color .15s ease, transform .18s ease; }
.tema[hidden] { display: none; }
.tema:hover { color: var(--texto); border-color: var(--texto); }
.tema:active { transform: scale(.94); }
.tema svg { width: 19px; height: 19px; }
.tema-sol, [data-tema="oscuro"] .tema-luna { display: none; }
[data-tema="oscuro"] .tema-sol { display: block; }

/* Portada */
.portada { padding-block: 0; min-height: min(100svh, 900px); display: flex; align-items: center; position: relative; overflow: hidden; }
.portada-txt { position: relative; z-index: 2; }
.portada::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 78% 42%, rgba(var(--acento-rgb), var(--halo)), transparent 70%); pointer-events: none; }
.portada-in { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: clamp(32px, 4vw, 64px); align-items: center; padding-block: 96px 56px; position: relative; }
h1 { font: 800 clamp(3.1rem, 5.5vw, 4.9rem)/.97 var(--titular); letter-spacing: -.05em; }
h1 em { font-style: normal; color: var(--acento-t); display: block; }
.entrada { margin-top: 28px; font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.5; color: var(--suave); max-width: 34ch; text-wrap: pretty; }
.acciones { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.portada-img { width: 132%; perspective: 1600px; }
.portada-img img { border-radius: var(--r); border: 1px solid var(--linea-2); box-shadow: var(--sombra); transform: rotateY(var(--gy, -13deg)) rotateX(var(--gx, 5deg)); transform-origin: 0 50%; transition: transform .25s ease-out; will-change: transform; }

/* Un lunes cualquiera */
.lunes { border-top: 1px solid var(--linea); }
.lunes-t { font: 500 1rem/1.3 var(--mono); letter-spacing: 0; color: var(--tenue); max-width: none; }
.cifras { margin-top: 40px; display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 0; }
.cifra { padding: 4px 32px 4px 0; }
.cifra + .cifra { padding-left: 32px; border-left: 1px solid var(--linea); }
.cifra dt { font: 800 clamp(4.2rem, 11vw, 9.5rem)/.86 var(--titular); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.cifra dd { margin-top: 14px; color: var(--suave); font-size: 1.08rem; max-width: 20ch; line-height: 1.35; }
.cifra:last-child dt { color: var(--tenue); }
.lunes-p { margin-top: 64px; font: 500 clamp(1.35rem, 2.3vw, 1.95rem)/1.32 var(--titular); letter-spacing: -.02em; max-width: 30ch; text-wrap: pretty; margin-left: auto; }

/* Demo */
.demo { background: var(--fondo-2); border-block: 1px solid var(--linea); }
.demo-caja { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; align-items: start; }
.demo-lista { display: flex; flex-direction: column; }
.demo-q { text-align: left; background: none; border: 0; border-top: 1px solid var(--linea); color: var(--tenue); padding: 20px 0 20px 20px; cursor: pointer; font: inherit; position: relative; transition: color .2s ease; }
.demo-q:last-child { border-bottom: 1px solid var(--linea); }
.demo-q::before { content: ""; position: absolute; left: 0; top: 20px; bottom: 20px; width: 2px; background: var(--acento-t); transform: scaleY(0); transform-origin: 50% 0; transition: transform .3s ease; }
.demo-q.on::before { transform: scaleY(1); }
.demo-q:hover, .demo-q.on { color: var(--texto); }
.demo-q-t { display: block; font: 600 1.12rem/1.3 var(--cuerpo); letter-spacing: -.01em; }
.demo-q-d { display: grid; grid-template-rows: 0fr; color: var(--suave); font-size: .96rem; line-height: 1.5; transition: grid-template-rows .3s ease, margin-top .3s ease; }
.demo-q-d { overflow: hidden; max-height: 0; opacity: 0; transition: max-height .35s ease, opacity .3s ease, margin-top .3s ease; }
.demo-q.on .demo-q-d { max-height: 8em; opacity: 1; margin-top: 8px; }
.demo-vista { min-width: 0; }
.demo-dice { display: flex; align-items: baseline; gap: 14px; min-height: 2.9em; margin-bottom: 14px; flex-wrap: wrap; }
.demo-quien { font: 500 .78rem/1 var(--mono); color: var(--tenue); text-transform: uppercase; letter-spacing: .06em; }
.demo-escribe { font: 500 1.08rem/1.35 var(--cuerpo); }
.demo-escribe.tecleando::after { content: ""; display: inline-block; width: 2px; height: 1.05em; background: var(--acento-t); margin-left: 3px; vertical-align: -.15em; animation: parpadeo .9s steps(1) infinite; }
.demo-pila { position: relative; aspect-ratio: 1800 / 1013; border-radius: var(--r); overflow: hidden; border: 1px solid var(--linea-2); background: #05090d; }
.demo-pila img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02); transition: opacity .5s ease, transform .7s ease; }
.demo-pila img.on { opacity: 1; transform: none; }
.demo-nota, .video-nota, .tablon-pie, .permisos-pie, .calc-pie { color: var(--tenue); font-size: .88rem; line-height: 1.45; }
.demo-nota { margin-top: 14px; }

/* Oficina */
.oficina-caja { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 24px; align-items: stretch; }
.org { border: 1px solid var(--linea); border-radius: var(--r); padding: 28px; background: linear-gradient(180deg, var(--fondo-2), var(--fondo)); min-width: 0; }
.org-arriba { display: flex; flex-direction: column; align-items: center; gap: 22px; padding-bottom: 22px; position: relative; }
.org-arriba::after { content: ""; position: absolute; left: 50%; top: 40px; bottom: 0; width: 1px; background: var(--linea-2); z-index: 0; }
.nodo { position: relative; z-index: 1; display: block; background: var(--fondo-3); border: 1px solid var(--linea); border-radius: 10px; padding: 10px 14px; transition: border-color .35s ease, background-color .35s ease, transform .35s ease; }
.nodo b { display: block; font: 600 .95rem/1.25 var(--cuerpo); }
.nodo span { display: block; font-size: .8rem; line-height: 1.3; color: var(--tenue); margin-top: 2px; }
.nodo-tu { background: var(--texto); border-color: var(--texto); color: var(--fondo); text-align: center; padding: 10px 26px; border-radius: 999px; }
.nodo-tu span { color: inherit; opacity: .7; }
.nodo-dir { text-align: center; max-width: 320px; }
.nodo-jefe { border-color: var(--linea-2); text-align: center; }
.nodo.on { border-color: var(--acento-t); background: var(--nodo-on); transform: translateY(-2px); }
.nodo-tu.on { background: var(--acento); border-color: var(--acento); color: var(--sobre-acento); }
.org-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; border-top: 1px solid var(--linea-2); padding-top: 22px; position: relative; }
.org-col { position: relative; min-width: 0; }
.org-col::before { content: ""; position: absolute; left: 50%; top: -22px; height: 22px; width: 1px; background: var(--linea-2); }
.org-col ul { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; padding-left: 12px; border-left: 1px solid var(--linea); }

.tablon { border: 1px solid var(--linea); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; background: var(--fondo-2); min-width: 0; }
.tablon-cab { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--linea); }
.vivo { font: 500 .74rem/1 var(--mono); color: var(--si); text-transform: uppercase; letter-spacing: .06em; display: inline-flex; align-items: center; gap: 8px; }
.vivo::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: latido 2s ease-in-out infinite; }
.vivo.parado { color: var(--tenue); }
.vivo.parado::before { animation: none; }
.tablon-lista { flex: 1; display: flex; flex-direction: column; min-height: 318px; overflow: hidden; }
.tk { padding: 14px 0; border-bottom: 1px solid var(--linea); }
.tk.entra { animation: entra .5s cubic-bezier(.2, .7, .2, 1) both; }
.tk-ruta { font-size: .82rem; color: var(--tenue); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tk-ruta b { color: var(--acento-t); font-weight: 500; }
.pri { margin-left: auto; font: 500 .7rem/1 var(--mono); padding: 4px 6px; border-radius: var(--r-s); border: 1px solid var(--linea-2); color: var(--suave); }
.pri-2 { color: var(--aviso); border-color: color-mix(in srgb, currentColor 45%, transparent); }
.pri-1 { color: var(--no); border-color: color-mix(in srgb, currentColor 45%, transparent); }
.tk-txt { margin-top: 6px; font-size: .95rem; line-height: 1.4; }
.tablon-pie { margin-top: 14px; }

.deptos { margin-top: 88px; }
.deptos-t { font: 500 1rem/1.3 var(--mono); color: var(--tenue); }
.deptos-lista { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; border-top: 1px solid var(--linea-2); }
.depto { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--linea); align-items: baseline; transition: background-color .2s ease; }
.depto dt { font: 700 1.2rem/1.2 var(--titular); letter-spacing: -.02em; }
.depto dd { color: var(--suave); font-size: .98rem; line-height: 1.5; }
.depto:hover dt { color: var(--acento-t); }

/* Control */
.control { background: var(--fondo-2); border-block: 1px solid var(--linea); }
.control-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.garantias { margin-top: 44px; display: grid; gap: 22px; }
.garantias li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; color: var(--suave); font-size: 1rem; line-height: 1.5; }
.garantias svg { width: 24px; height: 24px; color: var(--acento-t); margin-top: 1px; }
.garantias b { color: var(--texto); font-weight: 600; }
.permisos { border: 1px solid var(--linea-2); border-radius: var(--r); background: var(--fondo); padding: 8px 24px 20px; position: sticky; top: 96px; }
.permisos-cab, .permiso { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.permisos-cab { padding: 16px 0 12px; font: 500 .74rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--tenue); border-bottom: 1px solid var(--linea-2); }
.permiso { padding: 15px 0; border-bottom: 1px solid var(--linea); font-size: .98rem; line-height: 1.35; }
.est { font: 500 .8rem/1.2 var(--mono); padding: 6px 9px; border-radius: var(--r-s); border: 1px solid var(--linea-2); text-align: right; white-space: nowrap; }
.est-apr { color: var(--aviso); border-color: color-mix(in srgb, currentColor 45%, transparent); }
.est-tu { color: var(--texto); border-color: var(--linea-2); }
.est-no { color: var(--no); border-color: color-mix(in srgb, currentColor 45%, transparent); }
.est-si { color: var(--si); border-color: color-mix(in srgb, currentColor 45%, transparent); }
.permisos-pie { margin-top: 16px; }

/* Calculadora */
.calc-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.calc-caja { border: 1px solid var(--linea-2); border-radius: var(--r); padding: clamp(22px, 3vw, 36px); background: var(--fondo-2); display: grid; gap: 24px; }
.campo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: baseline; }
.campo label { font-size: .98rem; color: var(--suave); line-height: 1.35; }
.campo output { font: 600 1.05rem/1 var(--mono); color: var(--texto); font-variant-numeric: tabular-nums; }
.campo input { grid-column: 1 / -1; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--acento-t) var(--pos, 50%), var(--linea-2) var(--pos, 50%)); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--linea-2); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--acento-t); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--texto); border: 0; box-shadow: 0 0 0 3px var(--fondo-2); margin-top: -9px; transition: transform .15s ease; }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--texto); border: 0; }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type=range]:focus-visible { outline: none; }
input[type=range]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--acento); outline-offset: 3px; }
input[type=range]:focus-visible::-moz-range-thumb { outline: 2px solid var(--acento); outline-offset: 3px; }
.calc-res { border-top: 1px solid var(--linea); padding-top: 22px; }
.calc-num { font: 800 clamp(2.4rem, 5vw, 3.9rem)/1 var(--titular); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.calc-num span { color: var(--acento-t); }
.calc-eq { margin-top: 8px; color: var(--suave); }
.calc-caja .btn { justify-self: start; }
.calc-pie { margin-top: -10px; }

/* Vídeo */
.video { background: var(--fondo-2); border-block: 1px solid var(--linea); }
.video-caja { margin-top: 44px; position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--linea-2); background: #000; aspect-ratio: 16 / 9; }
.video-caja video { width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; inset: 0; margin: auto; width: 92px; height: 92px; border-radius: 50%; border: 0; background: var(--acento); color: var(--sobre-acento); cursor: pointer; display: grid; place-items: center; transition: transform .2s ease, opacity .25s ease; }
.video-play svg { width: 34px; height: 34px; margin-left: 4px; }
.video-play:hover { transform: scale(1.06); }
.video-caja.en-marcha .video-play { opacity: 0; pointer-events: none; }
.video-nota { margin-top: 14px; }

/* Puesta en marcha */
.pasos { margin-top: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: paso; border-top: 1px solid var(--linea-2); }
.paso { counter-increment: paso; padding: 26px 28px 0 0; position: relative; }
.paso + .paso { padding-left: 28px; border-left: 1px solid var(--linea); }
.paso::before { content: counter(paso); display: block; font: 800 3.4rem/1 var(--titular); letter-spacing: -.05em; color: var(--acento-t); margin-bottom: 22px; }
.paso p { margin-top: 10px; color: var(--suave); font-size: .97rem; line-height: 1.5; }

/* Preguntas */
.preguntas { border-top: 1px solid var(--linea); }
.preguntas-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.preguntas h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); position: sticky; top: 104px; }
.faq { border-top: 1px solid var(--linea-2); }
details { border-bottom: 1px solid var(--linea); }
summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; font: 600 1.14rem/1.35 var(--cuerpo); letter-spacing: -.01em; }
summary::-webkit-details-marker { display: none; }
summary svg { color: var(--tenue); transition: transform .25s ease, color .2s ease; }
summary:hover svg { color: var(--acento-t); }
details[open] summary svg { transform: rotate(45deg); color: var(--acento-t); }
details p { padding: 0 44px 24px 0; color: var(--suave); max-width: 62ch; }

/* Contacto */
.contacto { background: var(--acento); color: var(--sobre-acento); }
.contacto-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.contacto h2 { max-width: 15ch; font-size: clamp(2.1rem, 4.6vw, 3.7rem); }
.contacto-vias { display: grid; gap: 10px; }
.via { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 22px; border-radius: var(--r); border: 1px solid rgba(4, 22, 28, .28); text-decoration: none; transition: background-color .2s ease, transform .18s ease; }
.via svg { width: 26px; height: 26px; }
.via b { display: block; font: 700 1.2rem/1.2 var(--titular); letter-spacing: -.02em; }
.via small { display: block; font-size: .88rem; opacity: .75; margin-top: 2px; }
.via:hover { background: rgba(4, 22, 28, .1); }
.via:active { transform: scale(.99); }
.via-pri { background: var(--sobre-acento); color: #eef2f5; border-color: var(--sobre-acento); }
.via-pri:hover { background: #0a2730; }
.contacto :focus-visible { outline-color: var(--sobre-acento); }

/* Pie */
.pie { padding-block: 32px; font-size: .92rem; color: var(--tenue); }
.pie-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.pie .marca-m { font-size: 1.1rem; color: var(--texto); }
.pie a { color: var(--suave); text-underline-offset: 3px; }
.pie a:hover { color: var(--texto); }

/* Aparición al bajar (solo con JavaScript; sin él todo se ve) */
.js .ver { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.js .ver.visto { opacity: 1; transform: none; }

@keyframes parpadeo { 50% { opacity: 0; } }
@keyframes latido { 50% { opacity: .35; } }
@keyframes entra { from { opacity: 0; transform: translateY(-14px); } }

/* ───────────── Tableta ───────────── */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .portada { min-height: 0; }
  .portada-in { grid-template-columns: 1fr; padding-block: 120px 24px; }
  .entrada { max-width: 44ch; }
  .portada-img { width: 100%; margin-top: 16px; perspective: none; }
  .portada-img img { transform: none; }
  .demo-caja, .oficina-caja, .control-in, .calc-in, .preguntas-in, .contacto-in { grid-template-columns: 1fr; }
  .permisos, .preguntas h2 { position: static; }
  .pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .paso:nth-child(3) { padding-left: 0; border-left: 0; }
  .paso:nth-child(n+3) { border-top: 1px solid var(--linea); }
  .deptos-lista { grid-template-columns: 1fr; }
  .lunes-p { margin-left: 0; }
  .tablon-lista { min-height: 300px; }
}

/* ───────────── Móvil ───────────── */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .ancho { width: calc(100% - 32px); }
  .marca-t, .enlace-entrar { display: none; }
  .nav-acc { gap: 10px; }
  .nav .btn-s { padding: 0 14px; font-size: .86rem; }
  .nav-in { height: 60px; }
  .portada-in { padding-block: 104px 16px; }
  .acciones .btn { flex: 1 1 100%; }
  .cifras { grid-template-columns: 1fr; gap: 28px; }
  .cifra, .cifra + .cifra { padding: 0; border-left: 0; }
  .cifra dd { max-width: none; }
  .lunes-p { margin-top: 44px; }
  .demo-caja { margin-top: 36px; gap: 24px; }
  .demo-vista { order: -1; }
  .demo-q { padding: 16px 0 16px 16px; }
  .org { padding: 16px; }
  .org-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .org-col:nth-child(n+3)::before { display: none; }
  .nodo { padding: 8px 10px; }
  .nodo span { display: none; }
  .nodo-tu span, .nodo-dir span { display: block; }
  .depto { grid-template-columns: 1fr; gap: 6px; }
  .deptos { margin-top: 56px; }
  .permisos { padding: 4px 16px 16px; }
  .permiso { grid-template-columns: 1fr; gap: 8px; }
  .est { justify-self: start; text-align: left; white-space: normal; }
  .permisos-cab span:last-child { display: none; }
  .pasos { grid-template-columns: 1fr; row-gap: 0; }
  .paso, .paso + .paso { padding: 24px 0; border-left: 0; }
  .paso + .paso { border-top: 1px solid var(--linea); }
  .paso::before { font-size: 2.6rem; margin-bottom: 12px; }
  .video-play { width: 68px; height: 68px; }
  .video-play svg { width: 26px; height: 26px; }
  details p { padding-right: 0; }
  .calc-caja .btn { justify-self: stretch; white-space: normal; height: auto; min-height: 52px; padding-block: 12px; text-align: center; }
  .via { padding: 16px; }
  .via b { font-size: 1.08rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .ver { opacity: 1; transform: none; }
  .portada-img img { transform: none; }
  .portada-img { width: 100%; }
  .portada-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
