/* The Ark. Colours, sizes, radii and timings copied from the owner's design canvas
   (Main/Phone 2026-09-29; Marca, Entrar, Bloqueado A/B/C 2026-11-11; the tiles' own icons, the
   proposal of 2026-11-12 the owner approved on 2026-11-22).
   No inline styles anywhere (CSP style-src 'self'): state lives in classes and data-*. */

@font-face {
  font-family: "Onest";
  src: url("/static/fuentes/onest-latin-400-700.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: "Onest", system-ui, sans-serif; background: #060914; color: #EEF1F8; }
/* One column the height of the window: the demo banner sits inside it, not on top of it. */
body.ark { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
a { color: #EEF1F8; }
a:hover { color: #FFFFFF; }
[hidden] { display: none !important; }

.ark-btn:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 4px; }

/* --- demo banner and certificate notice ---------------------------------------- */
.ark-demo {
  position: relative; z-index: 6; display: flex; align-items: center; justify-content: center;
  padding: 10px 20px; background: #F2B24C; color: #060914; font-size: 14px; font-weight: 600; text-align: center;
}
.ark-nota {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 96px;
  background: #141C36; border-bottom: 1px solid #3A4466; font-size: 14px; color: #EEF1F8;
}
.ark-nota svg { width: 16px; height: 16px; flex-shrink: 0; }

/* --- the screen ----------------------------------------------------------------- */
.ark-pantalla {
  position: relative; flex: 1 0 auto; overflow-x: hidden;
  display: flex; flex-direction: column; background: #060914; color: #EEF1F8;
}

/* --- top bar ---------------------------------------------------------------------- */
.ark-cabecera {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  height: 72px; padding: 28px 96px 0 96px; box-sizing: content-box;
}
.ark-cab-izq { display: flex; align-items: center; gap: 20px; }
.ark-cab-izq--c { gap: 14px; }
.ark-cab-der { display: flex; align-items: center; gap: 24px; }
.ark-marca { display: flex; align-items: center; gap: 10px; }
.ark-marca-texto { font-size: 20px; font-weight: 700; letter-spacing: 0.02em; }
.ark-marca-baldosa {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9px; background: #EEF1F8;
}
.ark-marca-baldosa--mini { width: 16px; height: 16px; border-radius: 4px; background: #A9B1C7; }
.ark-divisor { width: 1px; height: 24px; background: #2A3352; }
.ark-logo { display: block; width: 36px; height: 36px; border-radius: 10px; object-fit: contain; }
.ark-soc { font-size: 18px; font-weight: 500; color: #D5DAE8; }
.ark-reloj { font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ark-avatar {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid #EEF1F8;
  background: #1B2446; color: #EEF1F8; font-size: 15px; font-weight: 600;
}
.ark-tel-col { display: flex; flex-direction: column; gap: 2px; }
.ark-tel-soc { font-size: 16px; font-weight: 600; color: #EEF1F8; }
.ark-tel-marca {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 500; color: #A9B1C7; letter-spacing: 0.02em;
}
[data-marca="C"] .ark-tel-marca { gap: 6px; }

/* --- the glow in the focused programme's colour ----------------------------------- */
.ark-glow {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none;
  opacity: 0; transition: opacity 420ms ease;
  background: radial-gradient(960px 600px at 24% 50%, var(--glow) 0%, rgba(6, 9, 20, 0) 72%);
}
.ark-glow.is-on { opacity: 1; }

/* --- «Tus programas» -------------------------------------------------------------- */
.ark-principal { position: relative; display: flex; flex-direction: column; padding: 0 96px; }
.ark-etiqueta {
  margin-top: 88px; font-size: 14px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: #A9B1C7;
}
.ark-fila { margin-top: 20px; height: 248px; display: flex; align-items: flex-start; gap: 24px; }

/* Each tile is the programme's own icon (owner, 2026-11-22; the proposal «cada mosaico con el
   ícono de su programa»: 40/52 px corners, the others at 82 %). The icon brings its own ground. */
.ark-tile {
  position: relative; overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  width: 176px; height: 176px; padding: 0; border: 0; border-radius: 40px;
  background: none; color: #FFFFFF; font: inherit; text-decoration: none;
  opacity: 0.82; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); cursor: pointer;
  transition: width 180ms ease, height 180ms ease, border-radius 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}
.ark-tile.is-on {
  width: 236px; height: 236px; border-radius: 52px; opacity: 1;
  box-shadow: 0 0 0 3px #FFFFFF, 0 28px 60px rgba(0, 0, 0, 0.55);
}
.ark-tile:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 6px; }

/* The programme's own icon: its ground fills the box and its drawing (the programme's own file,
   never recoloured here) sits in the middle, as large as the proposal draws it. */
.ark-icono { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.ark-icono img { display: block; width: var(--dibujo); height: var(--dibujo); }
.i-gato { --dibujo: 74.6%; background: #0E1732; }     /* CAT's white cat on CAT's navy */
.i-aguila { --dibujo: 79.5%; background: #FFFFFF; }   /* EAGLE's eagle on white */
.i-pato { --dibujo: 75%; background: #2FB39A; }       /* NoDuck's white duck on NoDuck's teal */

/* Not included: the same icon, dimmed (the proposal: 38 %, its colour drained), with the lock of
   the chosen version on top. B dims it with its veil instead. */
.ark-tile.is-locked .ark-icono { opacity: 0.38; filter: saturate(0.35); }

/* Not included, A: «apagado, con brillo». The icon is dimmed, not the tile: the lock stays sharp. */
[data-bloqueado="A"] .ark-tile.is-locked { opacity: 1; }
.ark-sheen {
  position: absolute; top: -20%; bottom: -20%; left: 0; width: 45%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-160%) skewX(-12deg);
  animation: ark-sheen 3.6s ease-in-out 0.6s infinite; pointer-events: none;
}
.ark-tile:not(.is-on) .ark-sheen { display: none; }
@keyframes ark-sheen {
  0% { transform: translateX(-160%) skewX(-12deg); }
  55%, 100% { transform: translateX(330%) skewX(-12deg); }
}
/* content-box, as drawn on the canvas: the border adds to the badge (38, 62/82 and 36 px). */
.ark-candado { position: absolute; display: flex; align-items: center; justify-content: center; border-radius: 50%; box-sizing: content-box; }
.ark-candado--a { top: 12px; right: 12px; width: 36px; height: 36px; background: rgba(6, 9, 20, 0.8); border: 1px solid #3A4466; }
.ark-tile.is-on .ark-candado--a { top: 16px; right: 16px; }

/* Not included, B: «velo que se aclara» */
[data-bloqueado="B"] .ark-tile.is-locked .ark-icono { opacity: 1; }
.ark-velo {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(6, 9, 20, 0.66); transition: background 320ms ease;
}
.ark-tile.is-on .ark-velo { background: rgba(6, 9, 20, 0.34); }
.ark-candado--b {
  top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px;
  background: rgba(6, 9, 20, 0.78); border: 1px solid rgba(255, 255, 255, 0.28);
}
.ark-candado--b svg { width: 26px; height: 26px; }
.ark-tile.is-on .ark-candado--b { width: 80px; height: 80px; }
.ark-tile.is-on .ark-candado--b svg { width: 34px; height: 34px; }

/* Not included, C: «solo el contorno» */
[data-bloqueado="C"] .ark-tile.is-locked { overflow: visible; background: #0B1022; border: 2px solid var(--acento); }
[data-bloqueado="C"] .ark-tile.is-locked .ark-icono { background: none; }   /* the drawing alone */
[data-bloqueado="C"] .ark-tile.is-locked.is-on { box-shadow: 0 0 0 3px #FFFFFF, 0 0 56px var(--acento-66); }
.ark-candado--c { top: 12px; right: 12px; width: 32px; height: 32px; border: 2px solid var(--acento); }
.ark-candado--c svg { stroke: var(--acento); }
.ark-tile.is-on .ark-candado--c { top: 16px; right: 16px; }

/* --- the focused programme ---------------------------------------------------------- */
.ark-detalle { margin-top: 40px; display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.ark-detalle h1 { margin: 0; font-size: 64px; font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; }
.ark-desc { margin: 0; font-size: 22px; color: #C3CADB; }
.ark-estado { display: flex; align-items: center; gap: 14px; font-size: 16px; color: #A9B1C7; }
.ark-estado-punto { display: flex; align-items: center; gap: 8px; }
.ark-punto { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #3DDC97; }
.ark-punto.is-mant { background: #F2B24C; }
.ark-estado--noincl { gap: 8px; color: #C3CADB; }
/* Why the programme's certificate is refused (owner, 2026-11-30): one line on a desktop, wrapping on a phone. It may
   run past the detail's 760 px into the empty space on its right (never past the page's margin), so the line naming
   the programme stays one line. Close under the status and «Abrir» closer to it, so the page grows by ~15 px, not the
   line's 37: at 1440x900 «Cerrar sesión» stays on screen, demo banner included. */
.ark-motivo {
  margin: -4px 0 0; width: max-content; max-width: min(1100px, calc(100vw - 192px));
  font-size: 16px; line-height: 1.4; color: #F2B24C; overflow-wrap: anywhere;
}
.ark-motivo + .ark-acciones { margin-top: 0; }
.ark-acciones { margin-top: 18px; display: flex; gap: 12px; }
.ark-acciones--noincl { margin-top: 32px; }
.ark-abrir {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 40px; border-radius: 999px; border: 0;
  background: #F5F7FB; color: #060914; font-family: inherit; font-size: 18px; font-weight: 600;
  cursor: pointer; text-decoration: none;
}
.ark-abrir:hover { color: #060914; }
.ark-abrir.is-off { background: #2A3352; color: #8E97B0; cursor: not-allowed; }
.ark-noincl {
  height: 56px; padding: 0 32px; display: flex; align-items: center; gap: 10px;
  border-radius: 999px; border: 2px solid #3A4466; background: transparent; color: #C3CADB;
  font-family: inherit; font-size: 18px; font-weight: 600; cursor: not-allowed;
}
/* «Me interesa» (ARK-M12): the locked tile's one action, beside its disabled pill. The outline of
   «Volver al menú» in the page's own text colour, so it reads as a button and never as «Abrir». */
.ark-acciones--bloqueado { flex-wrap: wrap; align-items: center; }
.ark-interes { margin: 0; }
.ark-boton-interes {
  height: 56px; padding: 0 32px; display: flex; align-items: center; gap: 10px;
  border-radius: 999px; border: 2px solid #EEF1F8; background: transparent; color: #EEF1F8;
  font-family: inherit; font-size: 18px; font-weight: 600; cursor: pointer;
}
.ark-boton-interes:hover { background: #141C36; }
.ark-boton-interes svg { flex-shrink: 0; }
.ark-interes-hecho {
  height: 56px; padding: 0 8px; display: inline-flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 600; color: #EEF1F8;
}
.ark-interes-hecho svg { flex-shrink: 0; }
/* «Intentar cerrar en CAT» (review 1 of PR #21): under the notice that names what the chain skipped, one
   outlined pill each, like «Me interesa». */
.ark-reintentos { display: flex; flex-wrap: wrap; gap: 10px; }
.ark-entrar-centro .ark-reintentos { justify-content: center; }
.ark-reintento {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px;
  border: 2px solid #EEF1F8; color: #EEF1F8; font-size: 15px; font-weight: 600; text-decoration: none;
}
.ark-reintento:hover { background: #141C36; color: #FFFFFF; }
/* «Cerrar también Microsoft en este equipo» (ARK-M11): optional, under «Entrar con Microsoft». */
.ark-ms-salir { margin: 0; }
.ark-entrar--c .ark-ms-salir { margin-top: -8px; }

/* --- footer ------------------------------------------------------------------------ */
.ark-pie {
  position: relative; margin-top: auto; display: flex; justify-content: space-between; align-items: center;
  padding: 40px 96px 40px 96px; font-size: 14px; color: #8E97B0;
}
.ark-teclas { display: flex; gap: 24px; align-items: center; }
.ark-tecla-grupo { display: flex; gap: 6px; align-items: center; }
kbd {
  display: inline-flex; min-width: 28px; height: 26px; align-items: center; justify-content: center;
  padding: 0 8px; border: 1px solid #3A4466; border-radius: 6px;
  font-family: inherit; font-size: 12px; font-weight: 600; color: #D5DAE8;
}
.ark-salir { margin: 0; }
.ark-enlace {
  min-height: 44px; background: none; border: 0; padding: 8px 0; color: #C3CADB;
  font-family: inherit; font-size: 14px; font-weight: 500; text-decoration: underline; cursor: pointer;
}
.ark-pista { font-size: 13px; color: #8E97B0; }

/* --- «Abriendo NoCat…» ----------------------------------------------------------------- */
.ark-abriendo {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: var(--profundo); color: #FFFFFF;
}
.ark-abriendo-icono { display: flex; }
.ark-icono-grande { width: 120px; height: 120px; border-radius: 27px; }
.ark-abriendo-titulo { font-size: 44px; font-weight: 700; }
.ark-abriendo-sub { font-size: 18px; color: #FFFFFF; }
.ark-volver {
  margin-top: 12px; height: 48px; padding: 0 28px; border-radius: 999px; border: 2px solid #FFFFFF;
  background: transparent; color: #FFFFFF; font-family: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
}

/* --- «Cerrando sesión en NoCat…»: one step of the logout chain ---------------------------- */
.ark-cerrando {
  align-items: center; justify-content: center; gap: 16px; padding: 0 28px;
  background: var(--profundo); color: #FFFFFF; text-align: center;
}
.ark-cerrando .ark-abriendo-titulo { margin: 0; }
.ark-continuar { display: inline-flex; align-items: center; text-decoration: none; }
.ark-continuar:hover { color: #FFFFFF; }

/* --- sign-in page ------------------------------------------------------------------------ */
.ark-fondo-entrar { position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; }
.ark-entrar--a .ark-fondo-entrar { background: radial-gradient(900px 620px at 50% 46%, #2A335299 0%, rgba(6, 9, 20, 0) 72%); }
.ark-entrar--b .ark-fondo-entrar { background: radial-gradient(960px 600px at 24% 50%, #2A335299 0%, rgba(6, 9, 20, 0) 72%); }
.ark-entrar--c .ark-fondo-entrar { background: radial-gradient(640px 480px at 50% 38%, #3A446688 0%, rgba(6, 9, 20, 0) 70%); }
.ark-entrar-centro {
  position: relative; flex-grow: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 28px; padding: 0 20px 72px 20px;
}
.ark-entrar--c .ark-entrar-centro { gap: 20px; }
.ark-logo--grande { width: 96px; height: 96px; border-radius: 24px; }
.ark-entrar-titulo { margin: 0; font-size: 52px; font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; text-align: center; }
.ark-aviso {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 12px;
  background: #141C36; border: 1px solid #3A4466; font-size: 16px; color: #EEF1F8;
}
.ark-aviso svg { flex-shrink: 0; }
.ark-entrar--c .ark-aviso { margin-top: 8px; }
.ark-entrar-form { margin: 0; }
.ark-boton-entrar {
  margin-top: 8px; height: 60px; padding: 0 36px; display: flex; align-items: center; gap: 14px;
  border-radius: 999px; border: 0; background: #F5F7FB; color: #060914;
  font-family: inherit; font-size: 18px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.ark-boton-entrar:hover { color: #060914; }
.ark-entrar--b .ark-boton-entrar { margin-top: 18px; height: 56px; }
.ark-entrar--c .ark-boton-entrar { margin-top: 16px; }
.ark-entrar-pie {
  position: relative; display: flex; justify-content: center; padding: 0 96px 40px 96px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #8E97B0;
}
.ark-entrar--b .ark-entrar-pie { justify-content: flex-start; margin-top: auto; }
.ark-entrar-b { position: relative; display: flex; flex-direction: column; padding: 0 96px; }
.ark-fila-tenue { margin-top: 20px; height: 248px; display: flex; align-items: flex-start; gap: 24px; }
.ark-tile-tenue {
  width: 176px; height: 176px; flex-shrink: 0; border-radius: 40px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; opacity: 0.28;
}
.ark-entrar-b-detalle { margin-top: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 760px; }
.ark-entrar-b-detalle .ark-entrar-titulo { font-size: 64px; text-align: left; }
/* B at the end of a sign-out with programmes to try again (review 2 of PR #21): a little tighter, so the page
   still fits 1440×900 with three of them, two notice lines and the Microsoft button. */
.ark-entrar-b-detalle.ark-con-reintentos { margin-top: 16px; gap: 12px; }
.ark-con-reintentos .ark-boton-entrar { margin-top: 4px; }
.ark-marca-grande { display: flex; }
.ark-marca-grande-baldosa {
  display: flex; align-items: center; justify-content: center;
  width: 152px; height: 152px; border-radius: 36px; background: #EEF1F8; box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
}
.ark-marca-grande-texto { margin: 0; font-size: 56px; font-weight: 700; letter-spacing: 0.01em; line-height: 1; }

/* --- the legal documents (step N6b) --------------------------------------------------------- */
/* The footer's links: small, wrapping, each a 44 px touch target. */
.ark-legal {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px;
  font-size: 13px; font-weight: 500; letter-spacing: normal; text-transform: none;
}
.ark-legal a { display: inline-flex; align-items: center; min-height: 44px; color: #A9B1C7; }
.ark-legal a:hover { color: #EEF1F8; }
/* The same keyboard ring as the buttons and tiles (3 px white). */
.ark-legal a:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 4px; color: #EEF1F8; }
.ark-entrar-pie.ark-con-legal { flex-direction: column; align-items: center; gap: 4px; }
.ark-entrar--b .ark-entrar-pie.ark-con-legal { align-items: flex-start; }
.ark-entrar--b .ark-con-legal .ark-legal { justify-content: flex-start; }
.ark-cerrando-pie { margin-top: 24px; }
.ark-cerrando-pie .ark-legal a { color: #FFFFFF; }
.ark-pie--doc { justify-content: center; }

/* A document. */
.ark-doc-principal { position: relative; width: 100%; max-width: 860px; margin: 0 auto; padding: 32px 48px 8px 48px; }
.ark-doc-datos {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin: 0 0 20px 0;
  font-size: 14px; color: #A9B1C7;
}
.ark-doc-nombre { font-weight: 600; color: #EEF1F8; }
.ark-doc-datos a, .ark-doc-otras a, .ark-doc-volver a { display: inline-flex; align-items: center; min-height: 44px; }
.ark-doc-texto { font-size: 16px; line-height: 1.6; color: #D5DAE8; overflow-wrap: anywhere; }
.ark-doc-texto h1 { margin: 20px 0 12px 0; font-size: 32px; line-height: 1.15; color: #EEF1F8; }
.ark-doc-texto h2 { margin: 28px 0 10px 0; font-size: 24px; line-height: 1.2; color: #EEF1F8; }
.ark-doc-texto h3, .ark-doc-texto h4, .ark-doc-texto h5, .ark-doc-texto h6 { margin: 24px 0 8px 0; font-size: 19px; color: #EEF1F8; }
.ark-doc-texto p, .ark-doc-texto ol, .ark-doc-texto ul { margin: 0 0 12px 0; }
.ark-doc-texto li { margin: 4px 0; }
.ark-doc-texto blockquote {
  margin: 0 0 16px 0; padding: 10px 16px; border-left: 4px solid #F2B24C; border-radius: 8px; background: #141C36;
}
.ark-doc-texto blockquote p { margin: 4px 0; }
.ark-doc-texto hr { border: 0; border-top: 1px solid #2A3352; margin: 24px 0; }
.ark-doc-texto code, .ark-doc-huella code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.9em;
  padding: 1px 4px; border-radius: 4px; background: #141C36;
}
.ark-doc-tabla { overflow-x: auto; margin: 0 0 16px 0; }
.ark-doc-texto table { border-collapse: collapse; min-width: 100%; font-size: 14px; }
.ark-doc-texto th, .ark-doc-texto td { padding: 8px 10px; border: 1px solid #3A4466; text-align: left; vertical-align: top; }
.ark-doc-texto th { background: #141C36; color: #EEF1F8; }
.ark-doc-huella, .ark-doc-otras { font-size: 13px; color: #8E97B0; overflow-wrap: anywhere; }
.ark-doc-volver { margin: 8px 0 0 0; font-size: 15px; }

/* The terms at sign-in. */
.ark-aceptar-caja {
  position: relative; width: 100%; max-width: 600px; margin: 0 auto; padding: 40px 20px 8px 20px;
  display: flex; flex-direction: column; gap: 18px;
}
.ark-aceptar-caja h1 { margin: 0; font-size: 44px; font-weight: 700; line-height: 1.1; }
.ark-aceptar-entrada { margin: 0; font-size: 18px; color: #D5DAE8; }
.ark-aceptar-cambios {
  padding: 12px 18px; border-radius: 12px; background: #141C36; border: 1px solid #3A4466; color: #D5DAE8; font-size: 15px;
}
.ark-aceptar-cambios p { margin: 0 0 6px 0; font-weight: 600; color: #EEF1F8; }
.ark-aceptar-cambios ul { margin: 0; padding-left: 20px; }
.ark-aceptar-docs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ark-aceptar-docs a { display: inline-flex; align-items: center; min-height: 44px; font-size: 17px; font-weight: 500; }
.ark-aceptar-nota { font-size: 14px; color: #A9B1C7; }
.ark-aceptar-form { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.ark-casilla { display: flex; align-items: center; gap: 14px; min-height: 44px; font-size: 17px; cursor: pointer; }
.ark-casilla input { width: 24px; height: 24px; margin: 0; flex-shrink: 0; accent-color: #F5F7FB; }
.ark-aceptar-botones { display: flex; flex-wrap: wrap; gap: 12px; }
.ark-boton-aceptar, .ark-boton-no {
  height: 56px; padding: 0 36px; border-radius: 999px; font-family: inherit; font-size: 18px; font-weight: 600; cursor: pointer;
}
.ark-boton-aceptar { border: 0; background: #F5F7FB; color: #060914; }
.ark-boton-no { border: 2px solid #3A4466; background: transparent; color: #EEF1F8; }

/* --- reduced motion ----------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .ark-glow, .ark-tile, .ark-velo { transition: none; }
  .ark-sheen { animation: none; display: none; }
}

/* --- desktop / phone ---------------------------------------------------------------------- */
/* Exactly the complement of the phone query below, so no fractional width shows both. */
@media not all and (max-width: 700px) {
  .ark-solo-telefono { display: none !important; }
}

/* Between the phone and the full desktop the 96 px margins would push the third tile out
   (236 + 176 + 176 + 2 x 24 = 636 px of tiles). */
@media (min-width: 701px) and (max-width: 900px) {
  .ark-cabecera, .ark-principal, .ark-entrar-b { padding-left: 32px; padding-right: 32px; }
  .ark-pie, .ark-entrar-pie { padding-left: 32px; padding-right: 32px; }
  .ark-nota { padding-left: 32px; padding-right: 32px; }
  .ark-motivo { max-width: calc(100vw - 64px); }
}

@media (max-width: 700px) {
  .ark-solo-escritorio { display: none !important; }
  .ark-nota { padding: 8px 20px; }
  .ark-cabecera { height: auto; padding: 20px 20px 0 20px; box-sizing: border-box; }
  .ark-cab-izq--tel { gap: 12px; }

  .ark-glow { background: radial-gradient(520px 520px at 30% 36%, var(--glow) 0%, rgba(6, 9, 20, 0) 70%); }
  .ark-principal { padding: 0; flex-grow: 1; }
  .ark-etiqueta { margin-top: 44px; padding: 0 20px; font-size: 13px; }
  .ark-fila {
    margin-top: 14px; height: 232px; gap: 14px; padding: 8px 20px 0 20px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .ark-fila::-webkit-scrollbar { display: none; }
  .ark-tile { width: 140px; height: 140px; border-radius: 32px; scroll-snap-align: center; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35); }
  .ark-tile.is-on { width: 188px; height: 188px; border-radius: 41px; box-shadow: 0 0 0 3px #FFFFFF, 0 20px 44px rgba(0, 0, 0, 0.55); }
  .ark-tile:focus-visible { outline-offset: 5px; }

  .ark-detalle { margin-top: 20px; padding: 0 20px; gap: 10px; max-width: none; }
  .ark-detalle h1 { font-size: 36px; line-height: 1.1; letter-spacing: 0; }
  .ark-desc { font-size: 17px; line-height: 1.4; }
  .ark-estado { gap: 10px; font-size: 14px; }
  .ark-motivo { width: auto; max-width: 100%; font-size: 14px; }
  .ark-acciones { margin-top: 14px; }
  .ark-abrir, .ark-noincl { width: 100%; justify-content: center; }
  .ark-acciones--bloqueado { flex-direction: column; align-items: stretch; gap: 10px; }
  .ark-interes, .ark-boton-interes { width: 100%; justify-content: center; }
  .ark-interes-hecho { justify-content: center; }

  .ark-pie { flex-direction: column; align-items: center; gap: 10px; padding: 24px 20px 28px 20px; }
  /* The four short links of the legal texts fit one row at 390 px (each still a 44 px target). */
  .ark-legal { gap: 0 14px; }
  .ark-enlace { padding: 10px 0; }

  .ark-abriendo { gap: 14px; padding: 0 28px; }
  .ark-icono-grande { width: 96px; height: 96px; border-radius: 22px; }
  .ark-abriendo-titulo { font-size: 30px; text-align: center; }
  .ark-abriendo-sub { font-size: 16px; line-height: 1.4; text-align: center; }

  .ark-entrar-titulo { font-size: 36px; }
  .ark-entrar-b { padding: 0 20px; }
  .ark-entrar--b .ark-etiqueta { padding: 0; }
  .ark-fila-tenue { height: auto; gap: 12px; }
  .ark-tile-tenue { width: 88px; height: 88px; border-radius: 20px; }
  .ark-entrar-b-detalle { margin-top: 28px; }
  .ark-entrar-b-detalle .ark-entrar-titulo { font-size: 36px; }
  .ark-entrar-pie { padding: 0 20px 28px 20px; }
  .ark-entrar-centro { padding: 0 20px 48px 20px; }
  .ark-marca-grande .ark-arca { width: 112px; height: 112px; }
  .ark-marca-grande-baldosa { width: 112px; height: 112px; border-radius: 27px; }
  .ark-marca-grande-baldosa .ark-arca { width: 74px; height: 74px; }
  .ark-marca-grande-texto { font-size: 40px; }

  .ark-doc-principal { padding: 20px 20px 8px 20px; }
  .ark-doc-texto h1 { font-size: 26px; }
  .ark-doc-texto h2 { font-size: 21px; }
  .ark-aceptar-caja { padding-top: 28px; }
  .ark-aceptar-caja h1 { font-size: 32px; }
  .ark-boton-aceptar, .ark-boton-no { width: 100%; }
}
