/* Marco común de tuGerente: tokens, letra, base, botones, franja, encabezado y pie.
   Lo usan la web (antes de estilos.css) y las herramientas (copiado con su `scripts/marco.mjs`). Se edita solo aquí. */
@font-face { font-family: "Schibsted Grotesk"; font-weight: 400 900; font-display: swap; src: url("fuentes/schibsted-grotesk.woff2") format("woff2"); }

:root {
  --coral: #ee4e4d;
  --coral-hondo: #c8302f;  /* coral con contraste 4,9:1 con blanco, para botones y texto pequeño */
  --tinta: #28293d;
  --tinta-honda: #1d1e2e;
  --gris-texto: #555770;
  --niebla: #f4f4f6;
  --linea: #e3e3ea;
  --verde: #04794a;
  --verde-vivo: #05a660;
  --azul: #004fc5;
  --blanco: #ffffff;
  --letra: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ancho: 1180px;
  --radio: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font: 400 1.0625rem/1.6 var(--letra); color: var(--tinta); background: var(--blanco); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); font-weight: 850; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; letter-spacing: -0.028em; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }
.marco { max-width: var(--ancho); margin: 0 auto; padding: 0 1.25rem; }
.entrada { font-size: clamp(1.12rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--gris-texto); max-width: 36em; }
.nota { font-size: .92rem; color: var(--gris-texto); margin-top: 1rem; max-width: 60em; }
.saltar { position: absolute; left: -999px; top: .5rem; z-index: 100; background: var(--tinta); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.saltar:focus { left: .5rem; }

/* Botones: el rojo de marca lleva texto blanco solo en el tono hondo, para llegar a 4,5:1. */
.boton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.4rem; border-radius: var(--radio); background: var(--coral-hondo); color: #fff; font-weight: 700; font-size: 1.02rem; text-decoration: none; border: 2px solid var(--coral-hondo); transition: background-color .15s, border-color .15s; }
.boton:hover { background: #a92423; border-color: #a92423; }
.boton:active { transform: translateY(1px); }
/* Foco legible sobre fondo oscuro. */
.pie :focus-visible, .franja :focus-visible { outline-color: #fff; }
.boton-borde { background: transparent; color: var(--tinta); border-color: var(--tinta); }
.boton-borde:hover { background: var(--tinta); color: #fff; border-color: var(--tinta); }
.boton-chico { min-height: 40px; padding: .45rem 1.05rem; font-size: .95rem; }
.boton-ancho { width: 100%; }

/* Franja y encabezado */
.franja p { margin: 0; }
.franja { margin: 0; background: var(--tinta); color: #fff; text-align: center; font-size: .92rem; padding: .55rem 1rem; }
.franja a { color: #fff; font-weight: 700; margin-left: .35rem; }
.cabecera { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--linea); }
.cabecera-fila { display: flex; align-items: center; gap: 2rem; min-height: 68px; }
.logo img { width: 132px; height: auto; }
.nav { display: flex; gap: 1.6rem; margin-right: auto; }
.nav a, .enlace-ingresar { color: var(--tinta); text-decoration: none; font-weight: 550; font-size: .98rem; }
.nav a:hover, .enlace-ingresar:hover, .nav a[aria-current] { color: var(--coral-hondo); }
.acciones { display: flex; align-items: center; gap: 1.2rem; }
.menu-movil { display: none; }
@media (max-width: 900px) {
  .nav, .enlace-ingresar { display: none; }
  .cabecera-fila { gap: .75rem; }
  .logo { margin-right: auto; }
  .menu-movil { display: block; position: static; }
  .menu-movil summary { list-style: none; cursor: pointer; display: grid; gap: 5px; padding: 12px 6px; }
  .menu-movil summary::-webkit-details-marker { display: none; }
  .menu-movil summary span { display: block; width: 22px; height: 2px; background: var(--tinta); border-radius: 2px; }
  .menu-movil nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--linea); display: grid; padding: .5rem 1.25rem 1rem; box-shadow: 0 1px 2px rgba(40, 41, 61, .08); }
  .menu-movil nav a { padding: .8rem 0; color: var(--tinta); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--linea); }
  .cabecera-fila { position: relative; }
}

/* Pie */
.pie { background: var(--tinta-honda); color: #c9cad8; padding: 4rem 0 1.5rem; }
.pie-rejilla { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.pie-marca p { margin: 1rem 0 1.4rem; max-width: 22em; }
.logo-claro { width: 132px; height: auto; }
.pie nav { display: grid; align-content: start; gap: .55rem; }
.pie h2 { font-size: .95rem; color: #fff; letter-spacing: 0; margin-bottom: .3rem; }
.pie nav a { color: #c9cad8; text-decoration: none; }
.pie nav a:hover { color: #fff; text-decoration: underline; }
.pie-legal { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; }
@media (max-width: 860px) { .pie-rejilla { grid-template-columns: 1fr 1fr; } .pie-marca { grid-column: 1 / -1; } }
/* Pie: soporte, legales y cinco columnas (2026-11-29). */
.pie-soporte { margin-top: -.6rem; font-size: .92rem; }
.pie-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; }
.pie-legal p { margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.pie-legal a { color: inherit; }
.pie-rejilla { grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .pie-rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pie-marca { grid-column: 1 / -1; } }
/* Con Herramientas en el menú (2026-11-29): en pantallas medianas, menos aire para que quepa en una línea. */
.acciones .boton { white-space: nowrap; }
@media (max-width: 1100px) and (min-width: 901px) { .cabecera-fila { gap: 1.25rem; } .nav { gap: 1.05rem; } .acciones { gap: .9rem; } }

/* Estilos de las herramientas de tuGerente, con el look de la web nueva (decisión 40, 2026-11-29).
   Van después de marco.css (tokens, letra Schibsted Grotesk, base, botones, encabezado y pie), que se copia de
   tugerente-landing con scripts/marco.mjs y no se edita aquí. Este archivo solo tiene lo propio de las herramientas.
   Los nombres de variables de antes se mantienen y toman los valores del marco. */
:root {
  --rojo: var(--coral);           /* primario de marca: tintes y gráficos */
  --rojo-acento: var(--coral-hondo);
  --rojo-oscuro: #961217;
  --texto: var(--tinta);
  --texto-2: var(--gris-texto);
  --fondo: #ffffff;
  --fondo-2: var(--niebla);
  --borde: var(--linea);
  --borde-campo: #8a8ca3;
  --verde-texto: var(--verde);
  --naranja: #b35f00;
  --radio-boton: 999px;
  --radio-tarjeta: 18px;
  --sombra: 0 1px 0 var(--linea), 0 18px 40px -24px rgba(40, 41, 61, .28);
  --titulos: var(--letra);
  --cuerpo: var(--letra);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
/* Lo que solo funciona con JavaScript ocupa su lugar desde el inicio, invisible, para que al aparecer no mueva nada
   (CLS). El aviso sin JavaScript se apila en el mismo lugar que el filtro. */
[data-espera-js] { visibility: hidden; }
.filtro-lugar { display: grid; }
.filtro-lugar > * { grid-area: 1 / 1; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { font-variant-numeric: lining-nums; }
h1 { font-size: clamp(2rem, 6vw, 2.4rem); line-height: 1.08; font-weight: 850; letter-spacing: -0.03em; margin: .25rem 0 .75rem; }
h2 { font-size: 1.45rem; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 .75rem; }
h3 { font-size: 1.125rem; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 .5rem; }
p { margin: 0 0 .75rem; }
a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; height: auto; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.contenedor { max-width: var(--ancho); margin: 0 auto; padding: 0 1.25rem; }
img { display: inline-block; }
.cabecera details, .pie details { border: 0; }
/* Botones */
.boton-verde { background: #fff; color: var(--verde-texto); border-color: var(--verde-texto); }
.boton-verde:hover { background: var(--verde-texto); color: #fff; border-color: var(--verde-texto); }
.boton-borde { background: #fff; }
form .boton { width: 100%; margin-top: .5rem; }

/* Página */
main { padding: 1.25rem 0 3rem; }
.migas { font-size: .875rem; color: var(--texto-2); margin: 0; }
.migas a { display: inline-block; padding-block: .4rem; }
.bajada { font-size: 1.0625rem; color: var(--texto-2); max-width: 44rem; }
.portada { margin-bottom: 1.25rem; }
.tarjeta { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio-tarjeta); box-shadow: var(--sombra); padding: 1.25rem 1rem; margin-bottom: 1.25rem; }
.prosa { max-width: 46rem; margin: 2rem 0; }
.prosa li { margin-bottom: .4rem; }
.nota { font-size: .875rem; color: var(--texto-2); }
.etiqueta { display: inline-block; font: 600 .75rem/1 var(--titulos); letter-spacing: .04em; text-transform: uppercase; color: var(--texto-2); background: var(--fondo-2); border-radius: 999px; padding: .35rem .7rem; margin-bottom: .6rem; }
.sin-dato { color: var(--texto-2); font-style: italic; }
@media (min-width: 992px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.5rem; }
  .tarjeta { padding: 1.75rem; }
  .calculadora { display: grid; grid-template-columns: 23.5rem minmax(0, 1fr); gap: 0 1.5rem; align-items: start; }
  /* Sin `sticky`: el formulario mide más que una pantalla de 768 px y dejaba controles fuera de la vista. */
  .calculadora #formulario { grid-column: 1; grid-row: 1 / span 2; }
  .calculadora #resultado { grid-column: 2; grid-row: 1; }
  .calculadora #detalle { grid-column: 2; grid-row: 2; }
  .par { display: grid; grid-template-columns: 23.5rem minmax(0, 1fr); gap: 0 1.5rem; align-items: start; }
}

/* Formulario */
fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
legend, label { display: block; font-weight: 600; font-size: 1rem; margin-bottom: .4rem; padding: 0; }
.campo { margin-bottom: 1.25rem; }
.campo label + .con-prefijo + label { margin-top: .9rem; }
input[type="text"], input[type="date"] { width: 100%; font: 500 1.125rem/1.3 var(--cuerpo); color: var(--texto); padding: .7rem .75rem; border: 1px solid var(--borde-campo); border-radius: var(--radio); background: #fff; min-height: 48px; font-variant-numeric: lining-nums; }
input[aria-invalid="true"] { border-color: var(--rojo-oscuro); border-width: 2px; }
.con-prefijo { display: flex; align-items: stretch; }
.con-prefijo span { display: flex; align-items: center; padding: 0 .75rem; background: var(--fondo-2); border: 1px solid var(--borde-campo); border-right: 0; border-radius: var(--radio) 0 0 var(--radio); font-weight: 600; }
.con-prefijo input { border-radius: 0 var(--radio) var(--radio) 0; }
.ayuda { font-size: .875rem; color: var(--texto-2); margin: .35rem 0 0; }
.error { font-size: .9375rem; font-weight: 600; color: var(--rojo-oscuro); margin: .35rem 0 0; }
.error:empty { display: none; }
.opcion { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; font-family: var(--cuerpo); border: 1px solid var(--borde-campo); border-radius: var(--radio); padding: .7rem .75rem; margin-bottom: .5rem; cursor: pointer; }
.opcion:has(input:checked) { border-color: var(--texto); box-shadow: inset 0 0 0 1px var(--texto); background: var(--fondo-2); }
.opcion input { width: 1.25rem; height: 1.25rem; margin: .15rem 0 0; accent-color: var(--texto); flex: none; }
.opcion small { display: block; color: var(--texto-2); font-size: .875rem; }
.deslizador { display: flex; align-items: center; gap: .75rem; }
.deslizador input { flex: 1; accent-color: var(--texto); min-height: 44px; }
.deslizador output { font: 600 1.25rem/1 var(--titulos); min-width: 4.2rem; text-align: right; }

/* Resultado: la tarjeta que más pesa de la página. Fondo teñido con el color del veredicto, borde grueso y el
   precio sugerido en un recuadro propio. Los tintes salen de los colores del sitio mezclados con blanco. */
.tarjeta-resultado { --tono: var(--texto-2); border: 2px solid var(--tono); border-top-width: 8px; background: color-mix(in srgb, var(--tono) 7%, #fff); box-shadow: 0 12px 32px rgba(40, 41, 61, .16); }
.tarjeta-resultado:has(.resultado-subir) { --tono: var(--rojo); }
.tarjeta-resultado:has(.resultado-bajar) { --tono: var(--verde-vivo); }
.tarjeta-resultado:has(.resultado-error) { background: #fff; border-color: var(--borde-campo); box-shadow: var(--sombra); }
.tarjeta-resultado .etiqueta { background: var(--texto); color: #fff; }
.tarjeta-resultado .nota { color: var(--texto); }
.resultado h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 1rem; }
.precio-nuevo { background: #fff; border: 1px solid color-mix(in srgb, var(--tono) 45%, #fff); border-radius: var(--radio-tarjeta); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.precio-nuevo p { margin: 0; }
.precio-nuevo .rotulo { font: 600 .875rem/1.2 var(--titulos); color: var(--texto-2); text-transform: uppercase; letter-spacing: .04em; }
.resultado-cifra { font-family: var(--titulos); line-height: 1.1; margin: .2rem 0 .3rem; }
.resultado-cifra strong { font-size: clamp(2rem, 9vw, 2.75rem); font-weight: 700; overflow-wrap: anywhere; }
.precio-nuevo .antes { color: var(--texto-2); font-size: 1rem; }
.antes-de-subir { background: var(--fondo-2); border-radius: var(--radio); padding: 1rem; margin: 1rem 0; }
.antes-de-subir ol { margin: 0; padding-left: 1.25rem; }
.antes-de-subir li { margin-bottom: .35rem; }
.resultado-error { color: var(--texto); }
@media (min-width: 992px) { .resultado h2 { font-size: 2.25rem; } .resultado-cifra strong { font-size: clamp(2.5rem, 4.4vw, 3.5rem); } .precio-nuevo { padding: 1.25rem 1.5rem; } }

/* Gráfico y tablas */
.figura { margin: 1.25rem 0; }
.figura figcaption { font: 600 1rem/1.3 var(--titulos); margin-bottom: .5rem; }
.grafico { display: block; width: 100%; }
.g-guia { stroke: var(--borde); stroke-width: 1; }
.g-eje { font: 500 16px var(--cuerpo); fill: var(--texto-2); }
.g-linea { fill: none; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.g-linea.s-oficial, .llave.s-oficial { stroke: var(--texto); }
.g-linea.s-paralelo, .llave.s-paralelo { stroke: var(--rojo); }
.g-linea.s-paralelo { stroke-dasharray: 5 4; }
.g-punto.s-oficial { fill: var(--texto); }
.g-punto.s-paralelo { fill: var(--rojo); }
.g-marca { stroke: var(--texto-2); stroke-width: 1; stroke-dasharray: 2 3; }
.g-marca-texto { font-weight: 600; fill: var(--texto); }
.leyenda { font-size: .875rem; color: var(--texto-2); display: grid; gap: .3rem; margin-top: .5rem; }
.leyenda .serie { display: flex; gap: .5rem; align-items: center; }
.leyenda .llave { flex: none; }
.llave { display: inline-block; width: 1.5rem; height: 0; border-top: 3px solid var(--texto); }
.llave.s-paralelo { border-top: 3px dashed var(--rojo); }
.tabla-ancha { overflow-x: auto; }
.tabla { width: 100%; border-collapse: collapse; font-size: .9375rem; margin: 1rem 0; }
.tabla caption { text-align: left; font: 600 1rem/1.3 var(--titulos); margin-bottom: .4rem; }
.tabla th, .tabla td { text-align: left; padding: .5rem .6rem .5rem 0; border-bottom: 1px solid var(--borde); vertical-align: top; }
.tabla thead th { font-size: .8125rem; color: var(--texto-2); font-weight: 600; }
.tabla tbody th { font: 600 .9375rem var(--cuerpo); }
.tabla .num { text-align: right; white-space: nowrap; }
.sube { color: var(--rojo-oscuro); }
.baja { color: var(--verde-texto); }
@media (max-width: 599px) {
  .tabla-apilada thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tabla-apilada tr { display: block; padding: .5rem 0; border-bottom: 1px solid var(--borde); }
  .tabla-apilada th, .tabla-apilada td { display: block; border: 0; padding: .1rem 0; }
  .tabla-apilada td:nth-child(3), .tabla-apilada td:nth-child(4) { font-size: .8125rem; color: var(--texto-2); }
}

/* Preguntas frecuentes */
details { border-bottom: 1px solid var(--borde); }
.prosa summary { font-weight: 600; padding: .9rem 0; cursor: pointer; }
.prosa details p { margin: 0 0 1rem; }

/* Tipo de cambio */
.cifras { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 1.25rem; }
.cifra { margin: 0; }
.cifra h2 { font-size: 1rem; color: var(--texto-2); font-weight: 600; margin-bottom: .25rem; }
.cifra .valor { font: 700 clamp(2rem, 9vw, 2.5rem)/1.1 var(--titulos); margin: 0 0 .35rem; overflow-wrap: anywhere; }
.cifra .valor small { font-size: 1rem; font-weight: 500; color: var(--texto-2); }
.periodos { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .75rem; }
.periodos button { font: 600 .9375rem var(--titulos); background: #fff; color: var(--texto); border: 1px solid var(--borde-campo); border-radius: 999px; padding: .45rem 1rem; min-height: 44px; min-width: 52px; cursor: pointer; }
.periodos button[aria-pressed="true"] { background: var(--texto); color: #fff; border-color: var(--texto); }
.conversor { display: grid; gap: .75rem; }
.conversor .igual { font: 600 1.375rem/1.2 var(--titulos); }
@media (min-width: 700px) { .cifras { grid-template-columns: 1fr 1fr; } }

/* Índice */
.lista-herramientas { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.lista-herramientas a { display: block; text-decoration: none; color: var(--texto); }
.lista-herramientas a:hover h3 { text-decoration: underline; }
.lista-herramientas p { color: var(--texto-2); margin: 0; }
@media (min-width: 700px) { .lista-herramientas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Destacados (decisión 34): franja gris con tarjetas blancas compactas. El borde izquierdo y el motivo van en rojo si
   es recomendada y en el color del texto si es de temporada. */
.destacados { background: var(--fondo-2); border-radius: var(--radio-tarjeta); padding: 1.25rem 1rem 1.5rem; margin: 0 0 2.5rem; }
.destacados-cabeza { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin-bottom: 1rem; }
.destacados-cabeza h2 { margin: 0; }
.destacados-cabeza p { margin: 0; color: var(--texto-2); }
.lista-destacados { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .lista-destacados { grid-template-columns: repeat(2, minmax(0, 1fr)); } .destacados { padding: 1.75rem; } }
@media (min-width: 1000px) { .lista-destacados { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.destacada a { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; background: #fff; border: 1px solid var(--borde); border-left: 5px solid var(--rojo); border-radius: var(--radio-tarjeta); box-shadow: var(--sombra); padding: 1.1rem 1rem 1rem; color: var(--texto); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.destacada[data-motivo="temporada"] a { border-left-color: var(--texto); }
.destacada a:hover { box-shadow: 0 14px 32px rgba(40, 41, 61, .16); transform: translateY(-2px); }
.destacada a:hover h3 { text-decoration: underline; }
.destacada-icono { font-size: 1.75rem; line-height: 1; margin-bottom: .6rem; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.destacada-motivo { font: 700 .75rem/1.3 var(--titulos); letter-spacing: .04em; text-transform: uppercase; color: var(--rojo-oscuro); margin-bottom: .35rem; }
.destacada[data-motivo="temporada"] .destacada-motivo { color: var(--texto); }
.destacada h3 { font-size: 1.0625rem; line-height: 1.3; margin: 0 0 .4rem; }
.destacada p { font-size: .9375rem; color: var(--texto-2); margin: 0 0 .9rem; }
.destacada-pie { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.destacada .pais { font-size: .8125rem; padding: .2rem .6rem; }
.destacada-ir { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 999px; background: var(--rojo); color: #fff; font: 700 1.1rem/1 var(--titulos); }
@media (prefers-reduced-motion: reduce) { .destacada a, .destacada a:hover { transition: none; transform: none; } }

/* CTA y pie */
.cta { background: var(--fondo-2); border-radius: var(--radio-tarjeta); padding: 1.5rem 1rem; margin: 2rem 0; text-align: center; }
.cta p { color: var(--texto-2); max-width: 36rem; margin-left: auto; margin-right: auto; }
.cta .botones { display: flex; flex-direction: column; gap: .75rem; align-items: center; margin-top: 1rem; }
@media (min-width: 600px) { .cta .botones { flex-direction: row; justify-content: center; } .cta { padding: 2rem; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Glosario y resumen del gráfico */
dl { margin: 0; }
dt { margin-top: .9rem; font-family: var(--titulos); }
dd { margin: .2rem 0 0; }
.resumen-periodo { margin-top: .75rem; }
.tabla small { color: var(--texto-2); font-weight: 400; }

/* Guía de uso: tres pasos numerados, en fila en escritorio */
.guia { background: var(--fondo-2); border-radius: var(--radio-tarjeta); padding: 1rem; margin-bottom: 1.25rem; }
.guia h2 { font-size: 1.0625rem; margin-bottom: .75rem; }
.guia .nota { margin: .75rem 0 0; color: var(--texto); }
.pasos { list-style: none; counter-reset: paso; margin: 0; padding: 0; display: grid; gap: .75rem; }
.pasos li { counter-increment: paso; position: relative; padding-left: 2.6rem; min-height: 2rem; }
.pasos li::before { content: counter(paso); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--texto); color: #fff; font: 700 1rem/2rem var(--titulos); text-align: center; }
.pasos strong { display: block; font-family: var(--titulos); font-weight: 600; }
@media (min-width: 992px) { .guia { padding: 1.25rem 1.75rem; } .pasos { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

/* Acciones bajo el resultado, tarjeta de «siguiente paso» y marcador de los desplegables del menú */
.acciones-resultado { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1rem; }
.acciones-resultado .boton { font-size: 1rem; font-weight: 600; padding: .55rem 1.1rem; min-height: 44px; }
.acciones-resultado .boton-verde { background: #fff; }
.enlace-accion { display: inline-block; padding-block: .6rem; font-weight: 600; }
.siguiente { display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; background: var(--fondo-2); border-radius: var(--radio-tarjeta); padding: 1rem; margin-bottom: 1.25rem; }
.siguiente p { margin: 0; }
.siguiente .boton { font-size: 1rem; font-weight: 600; min-height: 44px; }
@media (min-width: 700px) { .siguiente { flex-direction: row; align-items: center; justify-content: space-between; padding: 1rem 1.75rem; } }

/* Etiqueta del país: en el catálogo y arriba de cada herramienta */
.pais { display: inline-flex; align-items: center; gap: .4rem; font: 600 .875rem/1.2 var(--titulos); color: var(--texto); background: var(--fondo-2); border: 1px solid var(--borde-campo); border-radius: 999px; padding: .3rem .75rem; }
.pais [aria-hidden] { font-size: 1.1rem; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.pais-explicita { margin: .35rem 0 .5rem; }
.lista-herramientas .pais { margin-bottom: .6rem; }

/* Lista desplegable (moneda) con el mismo aspecto que los campos de texto */
select { width: 100%; font: 500 1.125rem/1.3 var(--cuerpo); color: var(--texto); padding: .7rem .75rem; border: 1px solid var(--borde-campo); border-radius: var(--radio); background: #fff; min-height: 48px; }
.con-prefijo span[hidden] + input { border-radius: var(--radio); }
.opcion strong [aria-hidden] { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }

/* Gasolina hoy: semáforo por departamento. El color nunca va solo: cada estado lleva su texto y su signo. */
.s-verde { --tono: var(--verde-texto); }
.s-amarillo { --tono: var(--naranja); }
.s-rojo { --tono: var(--rojo-oscuro); }
.s-gris { --tono: var(--texto-2); }
.aviso-fuente { background: var(--fondo-2); border-left: 4px solid var(--texto); border-radius: var(--radio); padding: .75rem 1rem; }
.semaforos { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .semaforos { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .semaforos { grid-template-columns: repeat(3, 1fr); } }
.semaforo { display: grid; gap: .15rem; height: 100%; padding: .85rem 1rem; border: 1px solid var(--borde); border-left: 8px solid var(--tono); border-radius: var(--radio-tarjeta); background: #fff; color: var(--texto); text-decoration: none; box-shadow: var(--sombra); }
.semaforo:hover .semaforo-lugar { text-decoration: underline; }
.semaforo[aria-current="true"] { outline: 3px solid var(--tono); outline-offset: 1px; }
.semaforo-lugar { font: 600 1.125rem/1.2 var(--titulos); }
.semaforo-estado { font-weight: 700; color: var(--tono); }
.semaforo-cifra { font-size: .875rem; color: var(--texto-2); }
.dep { margin-bottom: 2.75rem; }
.dep .bloque { margin-bottom: 1rem; }
.dep .estado { border-top: 8px solid var(--tono); }
.dep .bloque h3 { font-size: 1.1875rem; margin: 0 0 .35rem; }
.bloque-que { color: var(--texto-2); margin: 0 0 1rem; max-width: 44rem; }
.dep .bloque .tabla { margin-top: 0; }
.cifras-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: .75rem; margin: 0 0 1rem; }
.cifras-mini div { background: var(--fondo-2); border-radius: var(--radio-tarjeta); padding: .75rem 1rem; }
.cifras-mini dt { font-size: .875rem; color: var(--texto-2); }
.cifras-mini dd { margin: 0; font: 700 1.5rem/1.2 var(--titulos); }
.plegado { border-bottom: 0; }
.plegado > summary { cursor: pointer; font-family: var(--titulos); font-weight: 600; min-height: 44px; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.historial .plegado > summary { color: var(--azul); }
.desplegable > summary { font-size: 1.1875rem; list-style: none; justify-content: space-between; }
.desplegable > summary::-webkit-details-marker { display: none; }
.desplegable > summary::after { content: ""; width: .6rem; height: .6rem; border-right: 2px solid var(--texto); border-bottom: 2px solid var(--texto); transform: rotate(45deg); margin: 0 .35rem .25rem auto; flex: none; }
.desplegable[open] > summary::after { transform: rotate(-135deg); margin-bottom: -.25rem; }
.desplegable[open] > summary { margin-bottom: .75rem; }
.plegado-cuenta { font: 500 .9375rem/1.3 var(--cuerpo); color: var(--texto-2); background: var(--fondo-2); border-radius: 999px; padding: .15rem .7rem; }
.dep-estado { font-size: 1.125rem; color: var(--tono); margin-bottom: .35rem; }
.punto { color: var(--tono); }
.recomendacion { background: var(--fondo-2); border-radius: var(--radio-tarjeta); padding: 1rem; margin: 1rem 0 0; }
.recomendacion h3 { margin-top: 0; }
.recomendacion ol { margin: 0; padding-left: 1.25rem; }
.recomendacion li { margin-bottom: .35rem; }
.agotado { color: var(--rojo-oscuro); }
.dep .tabla th small { display: block; font: 400 .8125rem/1.35 var(--cuerpo); color: var(--texto-2); }
.filtro-ciudad { margin-bottom: 1rem; }
.filtro-ciudad select { width: 100%; max-width: 28rem; min-height: 48px; padding: .5rem .75rem; font: 500 1rem/1.3 var(--cuerpo); color: var(--texto); background: #fff; border: 1px solid var(--borde-campo); border-radius: var(--radio); }
.dep h2 small { display: block; font: 400 .9375rem/1.4 var(--cuerpo); color: var(--texto-2); }
.promo-cola { display: grid; gap: .6rem; justify-items: start; border: 2px solid var(--rojo); border-radius: var(--radio-tarjeta); padding: 1.1rem 1rem; margin: 1.25rem 0; background: #fff; }
.promo-cola p { margin: 0; max-width: 44rem; }
.promo-cola .promo-titulo { font: 600 1.25rem/1.25 var(--titulos); color: var(--texto); }
.promo-cola .boton { min-height: 44px; }
@media (min-width: 992px) { .promo-cola { padding: 1.4rem 1.75rem; } }

/* Generador de cotizaciones: formulario largo por grupos, ítems, casilla, área de texto y vista del documento */
textarea { width: 100%; font: 500 1.0625rem/1.4 var(--cuerpo); color: var(--texto); padding: .7rem .75rem; border: 1px solid var(--borde-campo); border-radius: var(--radio); background: #fff; resize: vertical; }
input[type="file"] { width: 100%; font: 500 .9375rem/1.3 var(--cuerpo); color: var(--texto); padding: .6rem .5rem; border: 1px dashed var(--borde-campo); border-radius: var(--radio); background: #fff; min-height: 48px; }
form h3.grupo { font-size: 1.125rem; margin: 1.75rem 0 .9rem; padding-top: 1.1rem; border-top: 1px solid var(--borde); }
.opcional { font-weight: 400; font-family: var(--cuerpo); color: var(--texto-2); font-size: .875rem; }
.item { border: 1px solid var(--borde-campo); border-radius: var(--radio); padding: .75rem .75rem .5rem; margin-bottom: .75rem; }
.item legend { font-size: .875rem; color: var(--texto-2); padding: 0 .35rem; margin: 0; }
.item .campo { margin-bottom: .75rem; }
.item label { font-size: .9375rem; }
.item-cifras { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 0 .75rem; align-items: end; }
.ayuda-items { margin: 0 0 .75rem; }
.campo-separado { margin-top: 1.5rem; }
.con-sufijo { display: flex; align-items: stretch; max-width: 9rem; }
.con-sufijo input { border-radius: var(--radio) 0 0 var(--radio); }
.con-sufijo span { display: flex; align-items: center; padding: 0 .75rem; background: var(--fondo-2); border: 1px solid var(--borde-campo); border-left: 0; border-radius: 0 var(--radio) var(--radio) 0; font-weight: 600; }
.casilla { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; cursor: pointer; margin-bottom: 0; padding: .4rem 0; }
.casilla input { width: 1.35rem; height: 1.35rem; margin: .1rem 0 0; accent-color: var(--texto); flex: none; }
.ayuda-casilla { margin: 0 0 1.25rem; }
.boton-texto { background: none; border: 0; padding: .6rem 0; min-height: 44px; font: 600 .9375rem/1.3 var(--cuerpo); color: var(--azul); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
form .boton-borde { font-size: 1rem; font-weight: 600; min-height: 48px; }
.logo-vista { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; margin-top: .6rem; }
.logo-vista img { width: auto; max-width: 200px; height: auto; max-height: 72px; border: 1px solid var(--borde); border-radius: var(--radio); }
.estado { font-weight: 600; margin: .9rem 0 0; }
.estado:empty { display: none; }
.mis-datos { margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--borde); }
.aviso-fiscal { margin: 0; }
.aviso-portada { display: inline-block; background: var(--fondo-2); border-left: 4px solid var(--texto); border-radius: var(--radio); padding: .6rem .9rem; margin-top: .25rem; }
.equivalente { font-size: .9375rem; }
.cotizacion-vista h3 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .04em; color: var(--texto-2); margin-bottom: .2rem; }
.cotizacion-vista .de-para { display: grid; gap: 1rem; margin-bottom: 1rem; }
.cotizacion-vista .de-para p { margin: 0; overflow-wrap: anywhere; }
.cotizacion-vista .tabla tbody th { font-weight: 500; overflow-wrap: anywhere; min-width: 8rem; }
.cotizacion-vista tfoot th { text-align: right; font: 500 .9375rem var(--cuerpo); }
.cotizacion-vista tfoot .fila-total th, .cotizacion-vista tfoot .fila-total td { font: 700 1.0625rem var(--titulos); border-bottom: 0; }
.notas-vista p { overflow-wrap: anywhere; }
@media (min-width: 600px) { .cotizacion-vista .de-para { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .cotizador { grid-template-rows: auto 1fr; } } /* el formulario es largo: la vista queda pegada al resultado */

/* Estado del SIAT: banner con signo y texto (el color nunca va solo), dos cifras, barras de 24 horas y lista de caídas. */
.estado-siat { display: flex; gap: 1rem; align-items: flex-start; border: 2px solid var(--tono, var(--texto-2)); border-left-width: 8px; border-radius: var(--radio-tarjeta); background: color-mix(in srgb, var(--tono, var(--texto-2)) 8%, #fff); padding: 1.1rem 1rem; margin-bottom: 1.25rem; }
.estado-signo { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--tono, var(--texto-2)); color: #fff; font: 700 1.5rem/1 var(--titulos); }
.estado-siat h2 { font-size: 1.375rem; color: var(--texto); margin: 0 0 .25rem; }
.estado-siat p { margin: 0 0 .25rem; }
.estado-desde { font-weight: 600; }
.cifras-siat { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .75rem; grid-template-columns: minmax(0, 1fr); }
.cifras-siat li { background: var(--fondo-2); border-radius: var(--radio-tarjeta); padding: 1rem; }
.cifras-siat p { margin: 0; }
.cifra-valor { font: 700 2rem/1.15 var(--titulos); }
.cifra-rotulo { font-weight: 600; }
.bloque-siat { margin: 0 0 1.75rem; }
.barras-24h { display: block; width: 100%; height: 7.5rem; background: var(--fondo-2); border-radius: var(--radio); }
.barras-24h .b-verde, .muestra.b-verde { fill: var(--verde-vivo); background: var(--verde-vivo); }
.barras-24h .b-ambar, .muestra.b-ambar { fill: var(--naranja); background: var(--naranja); }
.barras-24h .b-rojo, .muestra.b-rojo { fill: var(--rojo); background: var(--rojo); }
.barras-24h .b-gris, .muestra.b-gris { fill: var(--borde-campo); background: var(--borde-campo); }
.barras-ejes { display: flex; justify-content: space-between; font-size: .875rem; color: var(--texto-2); margin-top: .25rem; }
.leyenda-estado { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: .5rem 0 0; padding: 0; font-size: .875rem; color: var(--texto-2); }
.muestra { display: inline-block; width: .8rem; height: .8rem; border-radius: 2px; margin-right: .4rem; vertical-align: -1px; }
.lista-caidas { list-style: none; margin: 0; padding: 0; }
.lista-caidas li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--borde); }
.caida-dura { color: var(--rojo-oscuro); white-space: nowrap; }
.falla-dura { color: var(--naranja); white-space: nowrap; }
.prosa .pasos-vertical { grid-template-columns: minmax(0, 1fr); margin-bottom: 1rem; }
.aviso-medicion { border-top: 1px solid var(--borde); padding-top: .75rem; margin-top: 1rem; }
.aviso-medicion .nota { margin-bottom: .25rem; }
@media (min-width: 600px) { .cifras-siat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .estado-siat { padding: 1.5rem 1.75rem; } .estado-siat h2 { font-size: 1.75rem; } .cifra-valor { font-size: 2.5rem; } }

/* Oferta de facturación bajo el estado del SIAT. Degradado entre dos rojos de marca (el claro, mezclado con el oscuro
   para que el texto blanco pase 4,5:1 en todo el fondo). */
.promo-factura { display: grid; gap: 1rem; align-items: center; margin: 1rem 0 1.25rem; padding: 1.2rem 1.1rem; border-radius: var(--radio-tarjeta); color: #fff;
  background: linear-gradient(120deg, var(--rojo-oscuro), color-mix(in srgb, var(--rojo-oscuro) 45%, var(--rojo))); box-shadow: var(--sombra); }
.promo-factura p { margin: 0; color: #fff; }
.promo-factura .promo-titulo { font: 700 1.25rem/1.25 var(--titulos); margin-bottom: .3rem; }
.promo-factura .promo-botones { display: flex; flex-wrap: wrap; gap: .6rem; }
.promo-factura .boton { min-height: 44px; }
.boton-blanco { background: #fff; color: var(--rojo-oscuro); border: 2px solid #fff; }
.boton-blanco:hover, .boton-blanco:focus-visible { background: var(--fondo-2); color: var(--rojo-oscuro); }
.boton-contorno-blanco { background: transparent; color: #fff; border: 2px solid #fff; }
.boton-contorno-blanco:hover, .boton-contorno-blanco:focus-visible { background: rgba(255, 255, 255, .15); color: #fff; }
.promo-factura a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (min-width: 768px) { .promo-factura { grid-template-columns: 1fr auto; padding: 1.4rem 1.75rem; } .promo-factura .promo-botones { justify-content: flex-end; } }
/* Comparador de créditos: una ficha por opción, con sus datos en dos columnas. */
.tipo { margin-top: 1.75rem; }
.tipo > h3 { margin-bottom: .25rem; }
.oferta { border: 1px solid var(--borde); border-radius: var(--radio); padding: .25rem 1rem; margin: .6rem 0; background: #fff; }
.oferta[open] { padding-bottom: 1rem; }
.oferta > summary { list-style: none; justify-content: space-between; flex-wrap: nowrap; gap: .75rem; padding: .6rem 0; }
.oferta > summary::-webkit-details-marker { display: none; }
.oferta > summary::after { content: ""; width: .6rem; height: .6rem; border-right: 2px solid var(--texto); border-bottom: 2px solid var(--texto); transform: rotate(45deg); margin: 0 .35rem .25rem 0; flex: none; }
.oferta[open] > summary::after { transform: rotate(-135deg); margin-bottom: -.25rem; }
.oferta-titulo { display: grid; gap: .15rem; min-width: 0; }
.oferta-clave { font: 600 1rem/1.3 var(--cuerpo); color: var(--texto); }
.oferta h4, .oferta-otras h4 { font: 600 1.0625rem/1.3 var(--titulos); margin: 0; }
.oferta-producto { display: block; font-weight: 500; color: var(--texto-2); }
.oferta-entidad { font-size: .875rem; color: var(--texto-2); margin: 0 0 .75rem; }
.oferta-datos { margin: 0; }
.oferta-datos > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: .1rem; padding: .5rem 0; border-top: 1px solid var(--borde); }
.oferta-datos dt { font-size: .875rem; color: var(--texto-2); }
.oferta-datos dd { margin: 0; }
.oferta-datos dd small { display: block; color: var(--texto-2); }
.oferta-datos ul { margin: 0; padding-left: 1.1rem; }
.oferta-fuente { font-size: .875rem; margin: .75rem 0 0; }
.oferta-otras { margin: 1rem 0; }
.oferta-otras ul, .lista-no-calzan { padding-left: 1.1rem; }
.oferta-otras li, .lista-no-calzan li { margin-bottom: .5rem; }
.sin-dato { color: var(--texto-2); }
.aviso-datos { border-left: 4px solid var(--borde-campo); padding: .25rem 0 .25rem .75rem; }
@media (min-width: 700px) { .oferta-datos > div { grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; } }
