/* Estilos de las herramientas de tuGerente.
   Tokens tomados de tugerente.com en vivo el 2026-11-26 (ver tokens-capturados.json). Si el sitio cambia, se vuelven a tomar.
   Dos ajustes por accesibilidad, con colores de la misma paleta del sitio:
   1. El blanco sobre el rojo de marca (#ee4e4d) da 3,6:1: solo cumple en texto grande, así que los botones rojos van en 19px/700.
   2. Los enlaces de texto usan el azul del sitio (#004fc5) porque el rojo sobre blanco no llega a 4,5:1. */
@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url("fuentes/poppins-500.woff2") format("woff2"); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url("fuentes/poppins-600.woff2") format("woff2"); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url("fuentes/poppins-700.woff2") format("woff2"); }
@font-face { font-family: Raleway; font-weight: 400 700; font-display: swap; src: url("fuentes/raleway.woff2") format("woff2"); }

:root {
  --rojo: #ee4e4d;        /* primario de marca */
  --rojo-acento: #e53535; /* hover del menú */
  --rojo-oscuro: #961217;
  --texto: #28293d;
  --texto-2: #555770;
  --fondo: #ffffff;
  --fondo-2: #f4f4f4;
  --borde: #ececec;
  --borde-campo: #8a8ca3;
  --verde: #05a660;
  --verde-texto: #04794a;
  --azul: #004fc5;
  --naranja: #b35f00;
  --radio: 5px;
  --radio-boton: 20px;
  --radio-tarjeta: 16px;
  --sombra: 0 8px 24px rgba(0, 0, 0, .06);
  --titulos: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  --cuerpo: Raleway, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ancho: 1100px;
}

*, *::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 { margin: 0; font: 400 1rem/1.55 var(--cuerpo); color: var(--texto); background: var(--fondo); font-variant-numeric: lining-nums tabular-nums; }
h1, h2, h3, legend, label, .boton, summary, th { font-family: var(--titulos); }
h1 { font-size: 1.75rem; line-height: 1.15; font-weight: 600; margin: .25rem 0 .75rem; }
h2 { font-size: 1.375rem; line-height: 1.2; font-weight: 600; margin: 0 0 .75rem; }
h3 { font-size: 1.0625rem; line-height: 1.3; font-weight: 600; margin: 0 0 .5rem; }
p { margin: 0 0 .75rem; }
a { color: var(--azul); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; border-radius: 3px; }
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 1rem; }
.saltar { position: absolute; left: -999px; top: 0; background: var(--texto); color: #fff; padding: .5rem 1rem; z-index: 100; }
.saltar:focus { left: 0; }

/* Encabezado: mismo orden y enlaces que tugerente.com */
.cabecera { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--borde); }
.cabecera .contenedor { display: flex; align-items: center; gap: 1rem; min-height: 57px; position: relative; }
.cabecera .logo { display: flex; align-items: center; margin-right: auto; }
.menu { display: none; }
.menu a, .menu summary, .menu-movil nav a, .menu-movil nav summary { display: block; padding: .7rem 0; color: var(--texto); text-decoration: none; font: 500 .9375rem/1.3 var(--titulos); cursor: pointer; }
.menu a:hover, .menu summary:hover, .menu-movil nav a:hover { color: var(--rojo-acento); }
.menu details, .menu-movil nav details { border: 0; }
.menu-movil { border: 0; }
.menu-movil nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--borde); box-shadow: var(--sombra); padding: .5rem 1rem 1rem; max-height: calc(100vh - 57px); overflow-y: auto; }
.menu-movil nav details div a { padding-left: 1rem; }
.menu-abrir { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--borde-campo); border-radius: var(--radio); color: var(--texto); cursor: pointer; list-style: none; }
.menu-abrir::-webkit-details-marker { display: none; }
.cabecera .acciones { display: none; }
@media (min-width: 992px) {
  .menu-movil { display: none; }
  .menu { display: flex; gap: 1.25rem; align-items: center; }
  .menu details { position: relative; }
  .menu details > div { position: absolute; top: 100%; left: -1rem; background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: var(--sombra); padding: .5rem 1rem; min-width: 16rem; }
  .cabecera .acciones { display: flex; gap: .75rem; align-items: center; }
}

/* Botones */
.boton { display: inline-block; background: var(--rojo); color: #fff; border: 2px solid var(--rojo); border-radius: var(--radio-boton); padding: .7rem 1.5rem; font-size: 1.1875rem; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer; transition: box-shadow .2s; min-height: 48px; }
.boton:hover { box-shadow: 2px 2px 20px -5px rgba(0, 0, 0, .35); }
.boton-borde { background: #fff; color: var(--texto); border: 1px solid var(--texto); font-size: .9375rem; font-weight: 500; padding: .55rem 1.25rem; min-height: 0; }
.boton-verde { background: #fff; color: var(--verde-texto); border: 1px solid var(--verde-texto); font-size: 1rem; font-weight: 600; }
.cabecera .boton { padding: .3rem 1rem; min-height: 0; white-space: nowrap; }
.menu a, .menu summary { white-space: nowrap; }
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 tabular-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); }
.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; } }
.pie { border-top: 1px solid var(--borde); margin-top: 2rem; }
.pie-arriba { display: flex; justify-content: space-between; align-items: center; padding-block: 1rem; }
.pie-arriba ul { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.pie-abajo { background: var(--fondo-2); font-size: .9375rem; }
.pie-abajo .contenedor { display: flex; flex-direction: column; gap: .5rem; align-items: center; padding-top: 1rem; padding-bottom: 1rem; }
.pie-abajo p { margin: 0; }
.pie-abajo nav { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: center; }
.pie-abajo a, .pie-arriba a { color: var(--texto); text-decoration: none; padding: .6rem 0; display: inline-block; }
.pie-abajo a:hover, .pie-arriba a:hover { text-decoration: underline; }
@media (min-width: 992px) { .pie-abajo .contenedor { flex-direction: row; justify-content: space-between; } }
@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; } }
.cabecera summary { display: flex; align-items: center; gap: .4rem; list-style: none; }
.cabecera summary::-webkit-details-marker { display: none; }
.cabecera nav summary::after { content: ""; width: .45rem; height: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.cabecera nav details[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.cabecera .menu-abrir { display: inline-flex; }
@media (min-width: 992px) { .cabecera .menu-movil, .cabecera .menu-abrir { display: none; } }

/* 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); background: var(--verde); }
.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; }
.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; } }
