/* Página de estado de Unfiniti. SOLO tokens (var(--…)): ningún color, radio ni sombra literal.
   Colores, sombra y ritmo (--sp-*) viven en tokens.css (copia literal de la web). Anatomía, cabecera, pie, tarjetas, pestañas, píldora e insignias
   reproducen los componentes de unfiniti.solutions (SiteHeader/HelpHeader, HelpFooter/SiteFooter, SiteSection, HelpSectionHead, HelpCollectionCard, IconTile,
   SiteFilterBubble, .tab-strip, .uf-badge, Button). Canon: unfiniti.solutions/docs/canon. */

@font-face { font-family: 'Gilroy'; src: url('/fonts/Gilroy-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('/fonts/Gilroy-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('/fonts/Gilroy-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

/* Propios de esta página: ninguno es un valor nuevo. Radios = escala del canon 05 derivada de --radius (10 px); movimiento = motion.css de la web. Colores: solo tokens existentes. */
:root {
  --radius-md: calc(var(--radius) * 0.8); /* 8 */
  --radius-lg: var(--radius); /* 10 */
  --radius-xl: calc(var(--radius) * 1.4); /* 14 */
  --radius-card-s: var(--radius); /* 10: tarjeta pequeña (< 280) */
  --radius-card-m: calc(var(--radius) * 1.6); /* 16: tarjeta media (280-460) */
  --radius-card-l: calc(var(--radius) * 2.4); /* 24 */
  --radius-control-s: calc(var(--radius) * 0.6); /* 6 */
  --radius-control: var(--radius); /* 10 */
  --uf-ease-out: cubic-bezier(0.32, 0.72, 0, 1);
  --uf-ease-inout: cubic-bezier(0.2, 0, 0, 1);
  --uf-dur-micro: 150ms;
  --uf-dur-fade: 240ms;
  --uf-dur-pop: 140ms;
  /* Sistema cerrado de huecos (canon 03): escala 4·8·12·16·24·32·48·64·96 y los --sp-* del canon. Cada hueco con nombre apunta a un paso o a un token; el CSS no usa otros valores. */
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s6: 1.5rem; --s8: 2rem; --s12: 3rem; --s16: 4rem;
  --s-badge: 0.625rem; /* relleno lateral de .uf-badge (canon 09, copiado) */
  --s-c: 0.375rem; /* 6: hueco interno de controles pequeños (badge, píldora, calendario) */
  --s-nav: 1.2rem; /* hueco entre enlaces del nav (SiteHeader, copiado) */
  --h-cabecera: var(--sp-band); /* cabecera del sitio → primer contenido */
  /* Medidos en la web, páginas de utilidad de columna estrecha (/es/help/colecciones/*: 48 entre grupos; /es/developers/*: 16 del h2 al contenido; último contenido → pie 64/96/128) */
  --h-seccion: calc(var(--s12) / 2); /* relleno por lado de una sección: entre secciones = 48 */
  --h-titulo: var(--s4); /* título de sección → contenido */
  --h-tarjetas: var(--row-gap); /* tarjeta → tarjeta (24) */
  --h-relleno: var(--s6); /* relleno de tarjeta (24) */
  --h-fila: var(--s4); /* fila de lista sencilla (alto de relleno) */
  --h-insignias: var(--s3); /* insignias → título dentro de tarjeta */
  --h-meta: var(--s2); /* título → metadatos, título → texto, texto → hora */
  --h-actualizaciones: var(--s6); /* entre actualizaciones de la línea de tiempo */
  --h-nombre-barras: var(--s4); /* nombre del componente (y aviso) → barras */
  --h-barras-linea: var(--s3); /* barras → línea «Hace 90 días / % / Hoy» */
  --h-lista-leyenda: var(--s4); /* lista → leyenda */
  --h-dias: var(--s8); /* entre días de incidentes recientes */
  --h-fecha: var(--s3); /* fecha → tarjeta de incidente */
  --h-pie: calc(var(--sp-section) * 2 - var(--h-seccion)); /* último contenido → pie = 2 × --sp-section (64 / 96 / 128), como el help */
  --bar-gap: var(--s1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; border-color: var(--border); }
html { color-scheme: light; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--s4)); }
body {
  background: var(--card); color: var(--foreground); font-family: var(--font-sans);
  font-size: 1rem; line-height: 1.4; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-wrap: anywhere;
}
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
[hidden] { display: none !important; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; }
svg { display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted-foreground); }
.skip { position: fixed; left: 0.5rem; top: -4rem; z-index: 60; background: var(--foreground); color: var(--background); padding: var(--s2) var(--s3); border-radius: var(--radius-control); font-weight: 600; }
.skip:focus { top: 0.5rem; }

/* ── Contenedor y grid (canon 03): cabecera y pie a 1440 + gutter (como /developers); el CONTENIDO (.cc) en el contenedor más pequeño del canon, --w-docs (768, decisión del fundador 12-10); grid de 12 columnas con hueco de 24 */
.cc { --container: var(--w-docs); }
.page-container { width: 100%; max-width: calc(var(--container, var(--w-content)) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: var(--row-gap); }

/* ── Tipografía (canon 02, base.css de la web) */
.t-h2 { font-size: clamp(2rem, 1.6rem + 1.8vw, 3rem); line-height: 1; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
.t-title { font-size: clamp(1.5rem, 1.35rem + 0.5vw, 1.75rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
.t-h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 700; }
.t-lede { font-size: 1.125rem; line-height: 1.4; letter-spacing: -0.01em; color: var(--muted-foreground); max-width: 60ch; }
.t-body { font-size: 1rem; line-height: 1.4; letter-spacing: -0.01em; font-weight: 400; }
.t-small { font-size: 0.875rem; line-height: 1.45; letter-spacing: -0.01em; font-weight: 400; }
.t-eyebrow { font-size: 0.8125rem; line-height: 1.4; letter-spacing: 0; font-weight: 600; color: var(--muted-foreground); }
strong { font-weight: 600; }

/* Enlace de texto (canon 04): degradado legible + subrayado */
.link {
  background-image: var(--brand-gradient-text); background-clip: text; -webkit-background-clip: text; color: transparent;
  text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--foreground) 45%, transparent);
  text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.link:hover { text-decoration-thickness: 2px; }
.ic { width: 1rem; height: 1rem; flex: none; }
.ic-out { width: 0.875rem; height: 0.875rem; display: inline-block; margin-inline-start: var(--s1); vertical-align: -0.1em; color: var(--foreground); }

/* Insignia (canon 09 «Insignias»): fondo clarito, texto e icono del mismo color en fuerte, 24 px, píldora */
.uf-badge {
  --badge: var(--space-home);
  display: inline-flex; align-items: center; gap: var(--s-c); border-radius: var(--radius-pill); padding: 0 var(--s-badge); font-size: 0.8125rem; line-height: 1.5rem; font-weight: 600; white-space: nowrap;
  background: color-mix(in oklab, var(--badge) 18%, var(--card)); color: color-mix(in oklab, var(--badge) 45%, var(--foreground));
}
.uf-badge[data-st] { --badge: var(--st); }
.uf-badge .ic { width: 0.875rem; height: 0.875rem; }

/* ── Tono por estado (solo tokens existentes; el color de estado vive en insignia, punto de la línea de tiempo y barras) */
[data-st='operational'], .s-operational { --st: var(--space-wellness); }
[data-st='partial_outage'], .s-partial_outage { --st: var(--space-promotions); }
[data-st='major_outage'], .s-major_outage { --st: var(--destructive); }
[data-st='maintenance'], .s-maintenance { --st: var(--space-crm); }
[data-st='unknown'], [data-st='nodata'], .s-nodata, .s-unknown { --st: var(--space-home); }
.s-nodata, .s-unknown { --bar: var(--input); }

/* ── Botones (canon 04): neutro sólido, 10 px, 600; sm = 36 px con zona táctil de 44 por ::before */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 2.75rem; padding: 0 var(--s4); border: 1px solid transparent; border-radius: var(--radius-control);
  background: var(--foreground); color: var(--background); font: inherit; font-size: 0.9375rem; line-height: 1.5rem; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; cursor: pointer; list-style: none;
  transition: background-color var(--uf-dur-micro) var(--uf-ease-out), color var(--uf-dur-micro) var(--uf-ease-out);
}
.btn:hover { background: color-mix(in oklab, var(--foreground) 88%, var(--background)); }
.btn .ic { width: 1rem; height: 1rem; }
.btn-sm { position: relative; height: 2.25rem; min-height: 0; padding: 0 var(--s3); font-size: 0.875rem; }
.btn-sm::before { content: ''; position: absolute; inset: -0.3125rem 0; } /* 36 con borde de 1 px + 2 × 5 = 44 */
.btn-o { background: transparent; color: var(--foreground); border-color: var(--input); }
.btn-o:hover { background: var(--accent); }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

/* ── Baldosa de icono (IconTile.vue): 40×40, rounded-card-s, bg-card + texto foreground; la grande lleva el par canon 12 (18 % del tono / 70 % sobre tinta) */
.tile { display: flex; flex: none; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: var(--radius-card-s); background: var(--card); color: var(--foreground); }
.tile .ic { width: 1.25rem; height: 1.25rem; }
.tile-s { width: 2rem; height: 2rem; background: var(--background); }
.tile-s .ic { width: 1rem; height: 1rem; }

/* ── Cabecera fija de cristal (SiteHeader/HelpHeader: 52 px, sin borde ni sombra) */
.header-glass {
  background: color-mix(in oklab, var(--card) var(--header-glass), transparent);
  -webkit-backdrop-filter: saturate(var(--header-saturate)) blur(var(--header-blur)); backdrop-filter: saturate(var(--header-saturate)) blur(var(--header-blur));
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .header-glass { background: var(--card); } }
@media (prefers-reduced-transparency: reduce) { .header-glass { background: var(--card); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.site-h { position: fixed; inset-inline: 0; top: 0; z-index: 40; height: var(--header-h); }
.head { display: flex; height: 100%; align-items: center; }
.logo-link { display: inline-flex; flex: none; align-items: center; min-height: 2.75rem; color: var(--foreground); }
.logo { height: 1.25rem; width: auto; aspect-ratio: 677 / 155; }
.head-sep { flex: none; width: 1px; height: 1.25rem; margin-inline: var(--s4); background: var(--border); }
.head-brand { position: relative; display: inline-flex; align-items: center; min-height: 2.25rem; font-size: 1.125rem; line-height: 1; font-weight: 600; white-space: nowrap; color: var(--foreground); text-decoration: none; }
.head-brand::before { content: ''; position: absolute; inset: -0.25rem 0; }
.head-r { margin-inline-start: auto; display: flex; align-items: center; gap: var(--s2); }
.head-nav { display: none; align-items: center; gap: var(--s-nav); }
.head-link { position: relative; display: inline-flex; align-items: center; min-height: 2.25rem; font-size: 0.875rem; line-height: 1.4; color: var(--foreground); text-decoration: none; white-space: nowrap; transition: color var(--uf-dur-micro) var(--uf-ease-out); }
.head-link::before { content: ''; position: absolute; inset: -0.25rem 0; }
.head-link:hover { color: var(--muted-foreground); }
.head-link .ic-out { color: inherit; }
.head-web, .head-sep-r { display: none; }
@media (width < 46.5rem) { .head-sep { display: none; } .head-brand { margin-inline-start: var(--s3); font-size: 1rem; } }
@media (width >= 46.5rem) { .head-nav { display: flex; } }
@media (width >= 64rem) { .head-web { display: inline-flex; } }
@media (width >= 46.5rem) { .head-sep-r { display: block; margin-inline: var(--s2); } }

/* ── Menú flotante (details): --popover, radio xl, --shadow-float, entrada 140 ms (canon 06/07) */
.pop { position: relative; }
.pop-p {
  position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 50; width: min(19.375rem, calc(100vw - 2rem));
  background: var(--popover); color: var(--popover-foreground); border-radius: var(--radius-xl); box-shadow: var(--shadow-float); padding: var(--s4);
}
.pop-f .pop-p { left: 0; right: auto; top: calc(100% + 0.75rem); width: min(22rem, calc(100vw - 2rem)); }
.pop[open] > .pop-p { animation: pop-in var(--uf-dur-pop) var(--uf-ease-out); }
@keyframes pop-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.pop-t { font-weight: 600; margin-bottom: var(--s1); }
.pop-sus .pop-l { margin-top: var(--s4); padding-top: var(--s2); border-top: 1px solid var(--border); }
.pop-l { margin-top: var(--s3); display: grid; gap: var(--s1); }
.pop-sus { width: min(22rem, calc(100vw - 2rem)); }
.sus-f { display: grid; gap: var(--s2); margin-top: var(--s3); }
.sus-r { display: flex; gap: var(--s2); }
.sus-l { font-weight: 600; }
/* Campo = Input de la web (rounded-control, border-input, px-3), con 44 px de alto */
.inp { flex: 1 1 auto; min-width: 0; height: 2.75rem; padding: 0 var(--s3); border: 1px solid var(--input); border-radius: var(--radius-control); background: transparent; color: var(--foreground); font: inherit; font-size: 1rem; }
.inp:focus-visible { border-color: var(--ring); }
@media (width >= 48rem) { .inp { font-size: 0.875rem; } }
.pop-ft { display: grid; min-width: 0; }
.pop-ft > span:first-child { display: inline-flex; align-items: center; }
.aviso[data-sus] { margin-bottom: var(--s4); margin-top: 0; }
.pop-fila { display: flex; align-items: center; gap: var(--s3); min-height: 2.75rem; padding: var(--s1) var(--s2); border-radius: var(--radius-lg); text-decoration: none; font-size: 0.9375rem; font-weight: 600; transition: background-color var(--uf-dur-micro) var(--uf-ease-out); }
.pop-fila:hover { background: var(--accent); }
.fs { border: 0; padding: 0; min-width: 0; display: grid; }
.chk-l { display: flex; align-items: center; gap: var(--s3); min-height: 2.75rem; cursor: pointer; }
.chk-l input { width: 1.125rem; height: 1.125rem; accent-color: var(--foreground); margin: 0; flex: none; }
.acts { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2) var(--s4); margin-top: var(--s3); }
.acts .link { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* ── Secciones (SiteSection + canon 08): relleno de cada lado = --sp-section; cabecera de página = --sp-band arriba */
.main { padding-top: var(--header-h); }
.sec { padding-block: var(--h-seccion); }
.sec-ph { padding-top: var(--h-cabecera); padding-bottom: 0; }
.sec-top { padding-top: var(--h-cabecera); }
.sec-list { padding-top: var(--h-tarjetas); }

/* ── Cabecera de página interior (HelpPageHeader/PageHeaderTitle): migas, eyebrow, titular, línea de datos */
.ph { display: flex; flex-direction: column; align-items: flex-start; }
.ph-top { display: flex; align-items: center; gap: var(--s3); }
.ph-t { margin-top: var(--s4); }
.ph-m { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); margin-top: var(--s6); }
.ph .tab-strip, .ph .ph-b { margin-top: var(--s8); }
.crumbs { margin-bottom: var(--s3); color: var(--muted-foreground); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--s1); }
.crumbs li { display: inline-flex; align-items: center; min-height: 2.75rem; }
.crumbs li + li::before { content: '›'; margin-inline-end: var(--s1); }
.crumbs a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; transition: color var(--uf-dur-micro) var(--uf-ease-out); }
.crumbs a:hover { color: var(--foreground); }
.crumbs [aria-current='page'] { color: var(--foreground); }
.aviso { display: flex; align-items: flex-start; gap: var(--s2); padding: var(--s3) var(--s4); border-radius: var(--radius-card-s); background: color-mix(in oklab, var(--st) 18%, var(--card)); color: color-mix(in oklab, var(--st) 45%, var(--foreground)); font-weight: 600; }
.aviso .ic { margin-top: var(--s1); }

/* ── Tarjeta llena sin borde ni sombra (HelpCollectionCard): bg-background sobre blanco, 24 de relleno; la tarjeta-lista lleva 24 a los lados y sus filas el aire vertical */
.card { background: var(--background); border-radius: var(--radius-card-s); padding: var(--h-relleno); }
.lst { background: var(--background); border-radius: var(--radius-card-s); padding-inline: var(--h-relleno); list-style: none; }
.lst > li + li { border-top: 1px solid var(--border); }
.dot { flex: none; width: 0.5rem; height: 0.5rem; border-radius: var(--radius-pill); background: var(--st); }

/* ── Cabecera de sección: título t-h3 y botón sólido a la derecha; --h-titulo hasta el contenido */
.enlace-n { display: inline-flex; align-items: center; gap: var(--s1); min-height: 2.75rem; color: var(--foreground); font-size: 0.9375rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.enlace-n:hover { text-decoration-thickness: 2px; }
.sec-cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); margin-bottom: var(--h-titulo); }

/* ── Componentes: una tarjeta-lista; cada fila = nombre + insignia, aviso, barras y línea de disponibilidad (relleno de 24 como una tarjeta) */
.comp { container-type: inline-size; padding-block: var(--h-relleno); }
.comp-h { display: flex; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); }
.comp-n { font-weight: 600; min-width: 0; }
.comp-d { margin-top: var(--s1); }
.comp .nota { margin-top: var(--s3); }
.comp .strip-w { margin-top: var(--h-nombre-barras); }
.nota { display: flex; align-items: flex-start; gap: var(--s2); padding: var(--s3) var(--s4); border-radius: var(--radius-card-s); background: var(--card); color: var(--muted-foreground); }
.nota strong { color: var(--foreground); }
.nota .ic { margin-top: var(--s1); }

/* Barras de 90 / 60 / 30 días según el ancho de la propia fila (consulta de contenedor; solo CSS) */
.strip-w { position: relative; }
.strip { display: flex; gap: var(--bar-gap); height: 2.25rem; }
.b { flex: 1 1 0; min-width: 0; background: var(--bar, var(--st)); border-radius: var(--radius-pill); cursor: default; position: relative; transition: filter var(--uf-dur-micro) var(--uf-ease-out); }
.b:hover, .b:focus-visible { filter: brightness(0.82); }
.v90, .v60, .v30 { display: none; }
.v90 { display: inline; }
@container (width < 45rem) { .v90 { display: none; } .v60 { display: inline; } .strip:not(.cal) > .b:nth-child(-n + 30) { display: none; } }
@container (width < 32rem) { .v60 { display: none; } .v30 { display: inline; } .strip:not(.cal) > .b:nth-child(-n + 60) { display: none; } }
/* Sin JS: el nombre accesible se enseña como pista al pasar el ratón */
html:not(.js) .b:hover::after { content: attr(aria-label); position: absolute; top: calc(100% + 0.5rem); left: 50%; transform: translateX(-50%); z-index: 20; white-space: nowrap; background: var(--popover); color: var(--popover-foreground); border-radius: var(--radius-md); box-shadow: var(--shadow-float); padding: var(--s1) var(--s-badge); font-size: 0.8125rem; line-height: 1.4; font-weight: 400; }
.leg { display: flex; align-items: center; gap: var(--s3); margin-top: var(--h-barras-linea); }
.leg > span { white-space: nowrap; }
.leg-p { color: var(--foreground); font-weight: 600; }
.leg-l { flex: 1 1 0; min-width: 0.5rem; height: 1px; background: var(--input); }
@container (width < 24rem) { .leg { gap: var(--s2); } }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2) var(--s6); margin-top: var(--h-lista-leyenda); }
.legend li { display: inline-flex; align-items: center; }
@media (width < 40rem) { .legend { gap: var(--s2) var(--s3); font-size: 0.75rem; } .sw { width: 0.625rem; height: 0.625rem; margin-inline-end: var(--s1); } }
.sw { width: 0.75rem; height: 0.75rem; display: inline-block; margin-inline-end: var(--s2); background: var(--bar, var(--st)); border-radius: var(--radius-pill); }

/* Tooltip de día */
.tip { position: absolute; z-index: 20; top: 0; left: 0; width: min(20.3125rem, calc(100vw - 2rem)); background: var(--popover); color: var(--popover-foreground); border-radius: var(--radius-card-s); box-shadow: var(--shadow-float); padding: var(--s3) var(--s4) var(--s4); animation: pop-in var(--uf-dur-pop) var(--uf-ease-out); }
.tip::before { content: ''; position: absolute; top: -0.3125rem; left: var(--ax, 50%); translate: -50% 0; width: 0.625rem; height: 0.625rem; background: var(--popover); transform: rotate(45deg); }
.tip-h { font-weight: 600; margin-bottom: var(--s2); }
.tip-r { display: flex; align-items: center; gap: var(--s2); justify-content: space-between; background: var(--background); border-radius: var(--radius-md); padding: 0.375rem var(--s-badge); font-weight: 600; }
.tip-r + .tip-r { margin-top: var(--s1); }
.tip-r > span:first-child { display: inline-flex; align-items: center; gap: var(--s-c); color: color-mix(in oklab, var(--st) 45%, var(--foreground)); }
.tip-rel { margin-top: var(--s3); }
.tip-rel a { display: flex; align-items: center; min-height: 2.75rem; font-size: 0.8125rem; line-height: 1.4; }

/* ── Incidentes en curso: tarjeta destacada, neutra (bg-background), meta y línea de tiempo apiladas */
.incs { display: grid; gap: var(--h-tarjetas); }
.inc { background: var(--background); border-radius: var(--radius-card-m); padding: var(--h-relleno); }
.inc-g { display: grid; gap: var(--h-relleno); }
.inc-h { display: grid; justify-items: start; gap: var(--h-meta); }
.inc-b { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: calc(var(--h-insignias) - var(--h-meta)); }
.inc-t a, .irow-t a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.inc-t a:hover, .irow-t a:hover { text-decoration: underline; text-underline-offset: 3px; }
.inc-t { margin-block: calc(-1 * var(--s2)); }
.inc-e { display: grid; gap: var(--h-meta); justify-items: start; }
.inc-e .inc-t { margin-block: 0; }
.inc-e .inc-b { margin-bottom: 0; }
.inc .chk, .sec-top > .page-container > .chk, .sec-top > .page-container > .aviso { margin-top: var(--s4); }
.inc-e > .chk, .inc-e > .aviso { margin-top: 0; }

/* Línea de tiempo: punto del color del estado alineado con la 1.ª línea + hilo hasta el punto siguiente */
.tl { display: grid; align-content: start; }
.upd { --dot: 0.75rem; --lh: 1.4rem; position: relative; display: grid; gap: var(--h-meta); padding-inline-start: var(--s8); padding-bottom: var(--h-actualizaciones); max-width: calc(var(--w-prose) + var(--s8)); }
.upd:has(.upd-s) { --lh: 1.625rem; }
.upd:last-child { padding-bottom: 0; }
.upd::before { content: ''; position: absolute; left: 0; top: calc((var(--lh) - var(--dot)) / 2); width: var(--dot); height: var(--dot); border-radius: var(--radius-pill); background: var(--st, var(--muted-foreground)); }
.upd::after { content: ''; position: absolute; left: calc((var(--dot) - 2px) / 2); top: calc((var(--lh) + var(--dot)) / 2 + var(--s1)); bottom: calc(-1 * var(--s1)); width: 2px; border-radius: var(--radius-pill); background: var(--input); }
.upd:last-child::after { display: none; }

/* ── Incidentes recientes (portada) y meses (historial): fecha como subtítulo y una tarjeta por incidente */
.dias { display: grid; gap: var(--h-dias); }
.dia { display: grid; gap: var(--h-fecha); }
.dia-f { font-weight: 600; color: var(--muted-foreground); }
.dia-c, .mes-c, .mes-r { display: grid; gap: var(--h-tarjetas); }
.dia-q { display: flex; align-items: center; gap: var(--s2); min-height: 2.75rem; }
.dia-q .ic { color: var(--space-wellness); }
.meses { display: grid; gap: calc(var(--h-seccion) * 2); }
.mes-t { margin-bottom: var(--h-titulo); }
.acc { background: var(--background); border-radius: var(--radius-card-s); interpolate-size: allow-keywords; }
.acc-s { display: grid; gap: var(--h-meta); min-height: 3rem; padding: var(--h-relleno); cursor: pointer; border-radius: var(--radius-card-s); }
.acc-h { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.acc-t { display: flex; align-items: baseline; gap: var(--s3); min-width: 0; font-weight: 600; }
.acc-t .dot { align-self: center; }
.acc-r { max-width: var(--w-prose); }
.acc-m { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s3); }
.acc-c { display: grid; gap: var(--h-relleno); padding: 0 var(--h-relleno) var(--h-relleno); }
/* Altura animada con los tokens de movimiento (uf-accordion de la web); sin soporte de ::details-content abre al instante; reduced-motion lo anula abajo */
.acc::details-content { block-size: 0; overflow-y: clip; transition: block-size var(--uf-dur-fade) var(--uf-ease-out), content-visibility var(--uf-dur-fade) var(--uf-ease-out) allow-discrete; }
.acc[open]::details-content { block-size: auto; }
.mas-d > .mas-s { width: 100%; }
.mas-d[open] > .mas-s { margin-bottom: var(--h-tarjetas); }
.mas-c { display: none; }
[open] > summary .mas-a { display: none; }
[open] > summary .mas-c { display: inline; }
summary .ic:last-child { transition: transform var(--uf-dur-fade) var(--uf-ease-out); }
[open] > summary .ic:last-child { transform: rotate(180deg); }

/* ── Tira de pestañas (.tab-strip / .tab-item de la web, motion.css): 48 px, relleno 4, activa = foreground sobre background */
.tab-strip { display: inline-flex; align-items: center; justify-content: center; width: fit-content; max-width: 100%; height: 3rem; gap: var(--s1); padding: var(--s1); border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); color: var(--foreground); }
.tab-item { position: relative; display: inline-flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: var(--s2); height: 100%; padding: 0 clamp(var(--s-badge), 3vw, 1.25rem); border: 0; border-radius: calc(var(--radius) - 0.25rem); font-size: 1rem; font-weight: 500; line-height: 1.5rem; white-space: nowrap; text-decoration: none; color: var(--foreground); background: transparent; transition: background-color var(--uf-dur-micro) var(--uf-ease-out), color var(--uf-dur-micro) var(--uf-ease-out); }
.tab-item:not([aria-current='page']):hover { background: color-mix(in oklab, var(--foreground) 8%, transparent); }
.tab-item[aria-current='page'] { background: var(--foreground); color: var(--background); }

/* ── Burbuja de controles (SiteFilterBubble: radio xl, borde --border, fondo --card, relleno lateral 6, hueco 4) a todo el ancho, con la tira de pestañas (48 px) dentro y filtro + paginador a la derecha */
.bubble { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: space-between; gap: var(--s3); margin-bottom: var(--h-tarjetas); }
.bubble-i { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s1); min-height: 2.75rem; padding-inline: var(--s-c); border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--card); }
.bubble .tab-strip { border-color: transparent; }
.bubble .tab-item { padding-inline: var(--s3); }
.bubble-c { justify-content: flex-start; }
.bubble-sep { flex: none; width: 1px; height: 1.25rem; margin-inline: var(--s1); background: var(--border); }
.pager { display: flex; align-items: center; gap: var(--s1); }
.pager-t { min-width: 0; padding-inline: var(--s1); text-align: center; font-weight: 600; font-size: 0.875rem; line-height: 1.45; }
/* Mandos ghost de 44 px dentro de la burbuja (cabe: la tira mide 48) */
.ctl, .pg-b, .sel { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-c); height: 2.75rem; padding: 0 var(--s3); border: 0; border-radius: var(--radius-md); background: transparent; color: var(--foreground); font: inherit; font-size: 0.875rem; line-height: 1.4; font-weight: 600; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--uf-dur-micro) var(--uf-ease-out); }
.ctl:hover, a.pg-b:hover, .sel:hover { background: var(--accent); }
.pg-b { width: 2.75rem; padding: 0; }
.pg-off { opacity: 0.4; cursor: default; }
.filtro .ctl, .sel { width: 9rem; justify-content: space-between; text-overflow: ellipsis; }
.filtro { display: flex; }
.selector { display: flex; align-items: center; gap: var(--s2); }
.sel-w { position: relative; display: inline-flex; align-items: center; }
.sel { appearance: none; -webkit-appearance: none; padding-inline: var(--s3) var(--s8); }
.sel-i { position: absolute; right: var(--s3); top: 50%; translate: 0 -50%; pointer-events: none; }
@media (width < 40rem) {
  .bubble-i { padding-block: var(--s-c); }
  .bubble .tab-strip { width: 100%; }
  .bubble-i { width: 100%; }
  .bubble-sep { display: none; }
  .filtro, .selector, .sel-w, .filtro .ctl, .sel { width: 100%; flex: 1 1 100%; justify-content: space-between; }
  .pager { width: 100%; justify-content: space-between; }
}

/* ── Calendario: UNA tarjeta con los tres meses en tres columnas iguales (apilados con separador bajo 744); «lo normal en silencio, la excepción en voz alta» */
.cals { display: grid; gap: var(--h-relleno); }
.mcal + .mcal { border-top: 1px solid var(--border); padding-top: var(--h-relleno); }
@media (width >= 46.5rem) { .cals { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mcal + .mcal { border-top: 0; padding-top: 0; } }
.mcal-h { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); margin-bottom: var(--h-meta); }
.cal-s, .cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s1); }
.cal-s { margin-bottom: var(--s1); text-align: center; font-size: 0.875rem; line-height: 1.45; color: var(--muted-foreground); }
.cal { height: auto; }
.cal-d { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; border-radius: var(--radius-control-s); font-size: 0.875rem; line-height: 1; font-variant-numeric: tabular-nums; border: 1px solid transparent; }
.cal-d .ic-c { width: 0.625rem; height: 0.625rem; }
.cal-d.s-operational { --bar: color-mix(in oklab, var(--space-wellness) 18%, var(--card)); color: color-mix(in oklab, var(--space-wellness) 45%, var(--foreground)); }
.cal-d.s-partial_outage { color: var(--foreground); }
.cal-d.s-major_outage { color: var(--destructive-foreground); }
.cal-d.s-nodata { --bar: var(--card); color: var(--muted-foreground); }
.cal-d.is-f { --bar: transparent; color: var(--muted-foreground); }
.cal-d.is-hoy { border-color: var(--foreground); }
.f2 { grid-column-start: 2; } .f3 { grid-column-start: 3; } .f4 { grid-column-start: 4; } .f5 { grid-column-start: 5; } .f6 { grid-column-start: 6; } .f7 { grid-column-start: 7; }

/* ── Pie mínimo (HelpFooter/DevFooter): filete superior, py-6, una fila © · enlaces · idioma */
.site-f { margin-top: var(--h-pie); border-top: 1px solid var(--border); background: var(--card); }
.site-f .page-container { padding-block: var(--s6); }
.pie { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s8); }
.pie-l { order: 1; display: flex; flex-wrap: wrap; gap: 0 var(--s6); width: 100%; }
.pie-a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--muted-foreground); text-decoration: none; transition: color var(--uf-dur-micro) var(--uf-ease-out); }
.pie-a:hover { color: var(--foreground); }
@media (width >= 64rem) { .pie-l { order: 0; width: auto; } }
/* Selector de idioma (SiteLocaleSelect): 44 px, sin borde, texto secundario, hover accent; el panel abre hacia arriba como el Select de la web en el pie */
.loc { display: inline-flex; align-items: center; gap: var(--s2); height: 2.75rem; padding: 0 var(--s3); border-radius: var(--radius-control); font-size: 0.875rem; line-height: 1.45; color: var(--muted-foreground); transition: background-color var(--uf-dur-micro) var(--uf-ease-out), color var(--uf-dur-micro) var(--uf-ease-out); }
.loc:hover { background: var(--accent); color: var(--foreground); }
.loc-c { opacity: 0.5; }
.pop-lang { top: auto; bottom: calc(100% + 0.25rem); width: auto; min-width: 11rem; padding: var(--s1); }
.loc-o { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 2rem; padding: var(--s-c) var(--s2); border-radius: var(--radius-md); font-size: 0.875rem; }
.loc-off { opacity: 0.5; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

/* Línea de tiempo: el punto no hereda el color del impacto; la última actualización en negro, las anteriores atenuadas, la resolución en verde */
.upd:not([data-st])::before { background: var(--input); }
.upd:not([data-st]):first-child::before { background: var(--foreground); }

/* Calendario: el porcentaje nunca se parte; en tablet el título del mes baja un paso para caber en su columna; la celda lleva solo el número */
.mcal-h > p { white-space: nowrap; }
@media (46.5rem <= width < 64rem) { .mcal-h > .t-h3 { font-size: 1rem; line-height: 1.4; } }
.cal-d .ic-c { display: none; }

/* Controles con la anatomía de shadcn-vue, nunca los nativos del navegador */
/* Select: lista flotante con relleno 4, opciones de 36 px y marca en la elegida */
.pop-f .pop-p.pop-sel { width: max-content; min-width: 100%; max-width: calc(100vw - 2rem); padding: var(--s1); top: calc(100% + 0.5rem); }
.selector .ctl { width: 12rem; justify-content: space-between; }
a.loc-o { text-decoration: none; color: inherit; }
a.loc-o:hover, a.loc-o:focus-visible { background: var(--accent); }
/* Checkbox: 16 px, radio 4, borde --input; marcado = fondo --primary con la marca en --primary-foreground */
.chk-l input { appearance: none; -webkit-appearance: none; width: 1rem; height: 1rem; border: 1px solid var(--input); border-radius: 4px; background: var(--background); display: grid; place-content: center; cursor: pointer; transition: background-color var(--uf-dur-micro) var(--uf-ease-out), border-color var(--uf-dur-micro) var(--uf-ease-out); }
.chk-l input::before { content: ''; width: 0.625rem; height: 0.625rem; background: var(--primary-foreground); clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 10%, 37% 72%); scale: 0; }
.chk-l input:checked { background: var(--primary); border-color: var(--primary); }
.chk-l input:checked::before { scale: 1; }
.chk-l input:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
@media (width < 40rem) { .selector .ctl { width: 100%; } .pop-f .pop-p.pop-sel { width: 100%; } }
.pop-sel .loc-o { min-height: 2.75rem; padding-inline: var(--s3); font-weight: 500; }
details.selector { display: block; }
.pop-sel .loc-o { white-space: nowrap; }
@media (width < 40rem) { .pop-f .pop-p.pop-sel { left: 0; right: 0; width: auto; min-width: 0; max-width: none; } }
