/*
Theme Name: El Cambio VE
Description: Tema propio de elcambiove.com: tasas de cambio, noticias y guías de economía venezolana. Ligero, sin constructores visuales.
Version: 2.19
Requires PHP: 8.1
Text Domain: elcambiove
*/

/* Concepto: la pizarra de una casa de cambio arriba (las tasas son el producto),
   herramientas debajo y contenido editorial al final. */
:root {
  --bg: #f3f5f4;
  --surface: #ffffff;
  --ink: #0f1d1a;
  --muted: #56665f;
  --line: #dbe2df;
  --chip: #e6ece9;
  --board: #0f2a25;
  --board-ink: #eaf3ef;
  --board-muted: #a3bbb3;
  --board-line: rgba(255, 255, 255, .13);
  --bcv: #1f4fd1;
  --usdt: #c8761a;
  --sube: #12805a;
  --baja: #c2412d;
  --sube-pizarra: #4fd39e;
  --baja-pizarra: #ff8f78;
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --f-num: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --r: 10px;
  --ancho: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1513; --surface: #13201d; --ink: #e7efec; --muted: #97aaa3; --line: #24352f; --chip: #1c2c28;
    --board: #0a1f1b; --board-ink: #eaf3ef; --board-muted: #93ada5;
    --bcv: #8aa6ff; --usdt: #f0a54a; --sube: #3fc08c; --baja: #f07a63;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--f-body); }
img { max-width: 100%; height: auto; }
a { color: var(--bcv); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--bcv); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; text-wrap: balance; }
.contenedor { max-width: var(--ancho); margin: 0 auto; padding-inline: 16px; }
.visualmente-oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.saltar:focus { left: 16px; }

/* ---------- Cabecera ---------- */
.cabecera { background: var(--board); color: var(--board-ink); }
.cabecera .contenedor { display: flex; align-items: center; gap: 24px; padding-block: 14px; flex-wrap: wrap; }
/* Logo: la C de Cambio + «El Cambio» + «VE» como código de país (tipografía de las cifras) */
.logo { font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1; color: inherit; text-decoration: none; display: flex; align-items: center; gap: .3em; }
.logo-simbolo { width: 1.15em; height: 1.15em; flex: none; margin-right: .12em; }
.logo-ve { font-family: var(--f-num); font-weight: 600; font-size: .72em; letter-spacing: .05em; padding: .2em .36em .17em; border-radius: .28em; background: var(--sube-pizarra); color: var(--board); }
.menu-principal { flex: 1; min-width: 0; overflow-x: auto; }
.menu-principal ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu-principal a { display: block; padding: 6px 12px; border-radius: 6px; color: var(--board-muted); text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap; }
.menu-principal a:hover, .menu-principal .current-menu-item > a { color: var(--board-ink); background: rgba(255, 255, 255, .07); }
.boton-telegram { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; font-size: .9rem; padding: 8px 14px; border-radius: 6px; background: var(--board-ink); color: var(--board); text-decoration: none; white-space: nowrap; }
.icono-tg { width: 1.1em; height: 1.1em; flex: none; }
.boton-menu { display: none; }
@media (max-width: 860px) {
  .cabecera .contenedor { gap: 12px; padding-block: 10px; }
  .menu-principal { order: 3; flex-basis: 100%; }
  /* Móvil: menú plegado tras el botón ☰ para que las tasas se vean al entrar (sin JS queda la fila deslizable) */
  .con-js .logo { margin-right: auto; }
  .con-js .menu-principal { display: none; }
  .con-js.menu-abierto .menu-principal { display: block; padding-bottom: 6px; }
  .con-js .menu-principal ul { flex-direction: column; gap: 2px; }
  .con-js .menu-principal a { padding: 11px 12px; font-size: 1rem; }
  .boton-telegram { padding: 7px 12px; }
  .con-js .boton-menu { display: grid; place-items: center; width: 40px; height: 40px; margin-right: -6px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--board-ink); cursor: pointer; }
  .boton-menu:hover { background: rgba(255, 255, 255, .07); }
  .boton-menu-icono, .boton-menu-icono::before, .boton-menu-icono::after { display: block; width: 20px; height: 2px; border-radius: 1px; background: currentColor; transition: transform .2s, opacity .2s; }
  .boton-menu-icono { position: relative; }
  .boton-menu-icono::before, .boton-menu-icono::after { content: ""; position: absolute; left: 0; }
  .boton-menu-icono::before { top: -6px; }
  .boton-menu-icono::after { top: 6px; }
  .menu-abierto .boton-menu-icono { background: transparent; }
  .menu-abierto .boton-menu-icono::before { transform: translateY(6px) rotate(45deg); }
  .menu-abierto .boton-menu-icono::after { transform: translateY(-6px) rotate(-45deg); }
}
@media (max-width: 420px) { .solo-escritorio { display: none; } }
@media (max-width: 360px) {
  .cabecera .contenedor { gap: 8px; }
  .logo { font-size: 1.15rem; gap: 7px; }
  /* Teléfonos pequeños: el botón queda solo con el avión (el texto sigue para lectores de pantalla) */
  .boton-telegram { padding: 8px 10px; font-size: .95rem; }
  .boton-telegram-texto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Pizarra ---------- */
.zona-pizarra { background: var(--board); color: var(--board-ink); padding-block: 26px 40px; }
.zona-pizarra h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 20px; letter-spacing: -0.02em; }
.tasas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--board-line); border-radius: var(--r); overflow: hidden; }
.tasa { background: var(--board); padding: 20px 22px; display: grid; gap: 4px; align-content: start; }
.tasa p { margin: 0; }
.tasa-cab { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tasa-nombre { font-family: var(--f-body); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--board-muted); margin: 0; }
.tasa-tipo { font-family: var(--f-num); font-size: .75rem; padding: 2px 7px; border-radius: 4px; border: 1px solid var(--board-line); color: var(--board-muted); }
.tasa-valor { font-family: var(--f-num); font-weight: 600; font-size: clamp(2rem, 5vw, 2.7rem); letter-spacing: -0.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tasa-valor abbr { font-size: .4em; color: var(--board-muted); font-weight: 400; text-decoration: none; letter-spacing: 0; }
.tasa-cambio { font-family: var(--f-num); font-size: .85rem; min-height: 1.4em; }
.tasa-cambio .var-nota { color: var(--board-muted); font-family: var(--f-body); font-size: .8rem; }
.zona-pizarra .var.sube { color: var(--sube-pizarra); }
.zona-pizarra .var.baja { color: var(--baja-pizarra); }
.tasa-nota { font-size: .82rem; color: var(--board-muted); }
.tasa::after { content: ""; display: block; height: 3px; width: 36px; border-radius: 2px; margin-top: 8px; }
.tasa-bcv::after { background: #7c9bff; }
.tasa-usdt::after { background: #f0a54a; }
.pizarra-pie { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 14px 0 0; font-size: .9rem; color: var(--board-muted); }
.pizarra-pie div { display: flex; gap: 8px; align-items: baseline; }
.pizarra-pie dd { margin: 0; font-family: var(--f-num); color: var(--board-ink); font-variant-numeric: tabular-nums; }
.pizarra-vacia { color: var(--board-muted); }
@media (max-width: 760px) {
  .tasas { grid-template-columns: minmax(0, 1fr); }
  /* Móvil: tarjetas compactas (cifra y variación en la misma línea) para ver las tres sin desplazarse */
  .zona-pizarra { padding-block: 18px 32px; }
  .zona-pizarra h1 { margin-bottom: 14px; }
  .tasa { grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 2px; padding: 12px 16px; }
  .tasa-cab, .tasa-nota, .tasa-enlace { grid-column: 1 / -1; }
  .tasa-valor { font-size: 1.85rem; }
  .tasa-cambio { align-self: center; justify-self: end; text-align: right; min-height: 0; }
  .tasa .tasa-enlace { margin-top: 4px; }
  .tasa::after { display: none; }
}

/* ---------- Bloques de la portada ---------- */
.portada { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding-block: 40px 56px; }
.cab-seccion { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.cab-seccion h2 { font-size: 1.55rem; margin: 0; }
.ver-todo { font-size: .9rem; font-weight: 600; text-decoration: none; }
.herramientas { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; min-width: 0; }
.panel h2 { font-size: 1.4rem; margin: 0 0 14px; }
@media (max-width: 860px) { .herramientas { grid-template-columns: minmax(0, 1fr); } }

/* Calculadora */
.calc-etq { display: block; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.calc-entrada { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.calc input, .calc select { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; min-width: 0; }
.calc input { font-family: var(--f-num); font-size: 1.4rem; font-weight: 600; font-variant-numeric: tabular-nums; width: 100%; }
.calc select { font-weight: 600; }
.calc-res ul { list-style: none; margin: 16px 0 0; padding: 0; }
.calc-res li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 11px; border-top: 1px solid var(--line); }
.calc-res span { color: var(--muted); font-size: .92rem; }
.calc-res strong { font-family: var(--f-num); font-size: 1.12rem; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.calc-nota { font-size: .82rem; color: var(--muted); margin: 10px 0 0; }

/* Gráfico */
.grafico { margin: 0; position: relative; }
.grafico svg { width: 100%; height: auto; display: block; }
.g-red { stroke: var(--line); stroke-width: 1; }
.g-eje { font-family: var(--f-num); font-size: 11px; fill: var(--muted); }
polyline.g-usdt, polyline.g-bcv { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
polyline.g-usdt { stroke: var(--usdt); }
polyline.g-bcv { stroke: var(--bcv); }
circle.g-usdt { fill: var(--usdt); } circle.g-bcv { fill: var(--bcv); }
text.g-etq { font-family: var(--f-num); font-size: 12px; font-weight: 600; }
text.g-usdt { fill: var(--usdt); } text.g-bcv { fill: var(--bcv); }
.g-tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--bg); font-family: var(--f-num); font-size: .78rem; padding: 6px 9px; border-radius: 6px; white-space: nowrap; transform: translate(-50%, -115%); }
.graf-movil { display: none; }
@media (max-width: 560px) { .graf-ancho { display: none; } .graf-movil { display: block; } }
.grafico figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.leyenda { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.leyenda span { display: inline-flex; align-items: center; gap: 6px; }
.leyenda i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }

/* Publicidad (solo se muestra si hay anuncio) */
.anuncio { text-align: center; }
.anuncio-etq { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }

/* Noticias */
.noticias { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.tarjeta { display: grid; gap: 8px; align-content: start; }
.tarjeta a { color: inherit; text-decoration: none; }
.tarjeta a:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.tarjeta img { border-radius: 8px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.tarjeta-cat { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--bcv); }
.tarjeta-cat-analisis { color: var(--usdt); }
.tarjeta h3 { font-size: 1.15rem; margin: 0; }
.tarjeta:first-child h3 { font-size: 1.5rem; }
.tarjeta time { font-family: var(--f-num); font-size: .78rem; color: var(--muted); }
.vacio { color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); padding: 22px; margin: 0; }
@media (max-width: 860px) { .noticias { grid-template-columns: minmax(0, 1fr); } }

/* Telegram */
.canales { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: center; }
.canales h2 { margin: 0; font-size: 1.45rem; }
.canal-tg { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 8px; background: var(--bg); color: inherit; text-decoration: none; }
.canal-tg:hover { background: var(--chip); }
.canal-tg-icono { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--board); color: var(--board-ink); }
.canal-tg-icono .icono-tg { width: 22px; height: 22px; margin-left: -2px; }
.canal-tg-texto { display: grid; gap: 2px; flex: 1; min-width: 0; }
.canal-tg-texto b { font-weight: 600; }
.canal-tg-texto span { color: var(--muted); font-size: .9rem; }
.canal-tg-unirse { font-weight: 600; font-size: .92rem; white-space: nowrap; }
@media (max-width: 860px) { .canales { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Artículos y páginas ---------- */
.lectura { max-width: 72ch; margin: 0 auto; padding-block: 40px 56px; }
.lectura h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin: 8px 0 12px; letter-spacing: -0.02em; }
.meta { font-size: .88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.meta time { font-family: var(--f-num); }
.contenido { font-size: 1.08rem; }
.contenido h2 { font-size: 1.5rem; margin-top: 2em; }
.contenido h3 { font-size: 1.2rem; margin-top: 1.6em; }
.contenido img, .contenido figure { border-radius: 8px; }
.contenido figure { margin: 1.6em 0; }
.contenido figcaption { font-size: .85rem; color: var(--muted); }
.contenido .resumen { background: var(--chip); border-left: 3px solid var(--sube); border-radius: 8px; padding: 14px 18px; margin: 1.4em 0; }
.contenido .resumen > p:first-child { margin: 0 0 6px; font-family: var(--f-display); font-weight: 700; }
.contenido .resumen ul { margin: 0; padding-left: 1.2em; }
.contenido blockquote { margin: 1.6em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--line); color: var(--muted); }
.contenido table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.contenido .wp-block-table { overflow-x: auto; }
.contenido th, .contenido td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.contenido td { font-variant-numeric: tabular-nums; }
.imagen-destacada { margin: 20px 0 28px; }
.imagen-destacada img { border-radius: var(--r); width: 100%; }
.imagen-destacada figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
/* Índice de contenidos, invitación a Telegram y caja de la redacción (artículos) */
.indice { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; margin: 1.4em 0; font-size: .98rem; }
.indice > p { margin: 0 0 6px; font-family: var(--f-display); font-weight: 700; }
.indice ol { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; }
.indice a { text-decoration: none; }
.indice a:hover { text-decoration: underline; }
.contenido h2[id] { scroll-margin-top: 16px; }
.cta-telegram { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--board); color: var(--board-ink); border-radius: var(--r); padding: 14px 18px; margin: 1.8em 0; }
.cta-telegram p { margin: 0; flex: 1 1 220px; font-size: 1rem; }
.cta-telegram-icono { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.cta-telegram-icono .icono-tg { width: 20px; height: 20px; margin-left: -2px; }
.cta-telegram-boton { font-weight: 600; font-size: .95rem; padding: 9px 16px; border-radius: 6px; background: var(--board-ink); color: var(--board); text-decoration: none; white-space: nowrap; }
.caja-redaccion { display: flex; gap: 16px; align-items: flex-start; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 36px; }
.caja-redaccion-logo { width: 48px; height: 48px; flex: none; }
.caja-redaccion p { margin: 0 0 6px; font-size: .95rem; color: var(--muted); }
.caja-redaccion .caja-redaccion-nombre { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.caja-redaccion-enlaces { font-size: .9rem; }
.aviso { font-size: .88rem; color: var(--muted); background: var(--chip); border-radius: 8px; padding: 12px 14px; margin-top: 32px; }
.aviso-analisis { margin-top: 32px; border-left: 3px solid var(--usdt); }
.aviso-analisis + .aviso { margin-top: 10px; }
.semana-cifras { margin: 0 0 2em; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: grid; gap: 14px; font-size: 1rem; }
.semana-cifras h2 { font-size: 1.25rem; margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.semana-cifras h2 span { font-family: var(--f-body); font-size: .88rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.semana-cifras .tabla-desliza { border: 0; border-radius: 0; background: none; }
.semana-cifras .tabla-tasas th, .semana-cifras .tabla-tasas td { padding: 9px 8px; }
.semana-cifras .tabla-tasas tbody th { font-size: .9rem; text-transform: none; letter-spacing: 0; color: var(--ink); border-bottom: 1px solid var(--line); }
.semana-cifras .tabla-tasas tr:last-child th { border-bottom: 0; }
.semana-cifras .grafico { margin: 0; }
.semana-graficos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 560px) {
  .semana-cifras { padding: 16px; }
  .semana-graficos { grid-template-columns: minmax(0, 1fr); }
  /* Móvil: la tabla pasa a una ficha por tasa (nombre arriba y sus cuatro cifras debajo) */
  .semana-cifras thead { display: none; }
  .semana-cifras table, .semana-cifras tbody, .semana-cifras tr { display: block; }
  .semana-cifras tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .semana-cifras tr:last-child { border-bottom: 0; }
  .semana-cifras .tabla-tasas tbody th { grid-column: 1 / -1; padding: 0; border: 0; font-size: .95rem; }
  .semana-cifras .tabla-tasas td { display: flex; flex-direction: column; padding: 0; border: 0; }
  .semana-cifras td::before { content: attr(data-etq); font-family: var(--f-body); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
}
.semana-brecha { margin: 0; font-size: .95rem; color: var(--muted); }
.semana-brecha b { font-family: var(--f-num); color: var(--ink); }
.listado { padding-block: 40px 56px; }
.listado h1 { margin: 0 0 24px; }
.listado .rejilla { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.listado .tarjeta:first-child h3 { font-size: 1.15rem; }
@media (max-width: 860px) { .listado .rejilla { grid-template-columns: minmax(0, 1fr); } }
.paginacion { margin-top: 32px; display: flex; gap: 8px; flex-wrap: wrap; }
.paginacion .page-numbers { padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.paginacion .current { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Páginas de cada tasa ---------- */
.tasa-enlace { margin-top: 10px; font-size: .85rem; font-weight: 600; color: var(--board-ink); text-decoration: none; opacity: .85; }
.tasa-enlace:hover { opacity: 1; text-decoration: underline; }
.migas { font-size: .85rem; color: var(--board-muted); margin-bottom: 10px; }
.migas a { color: var(--board-muted); }
.zona-tasa h1 { margin-bottom: 14px; }
.h1-sub { display: block; margin-top: 6px; font-family: var(--f-body); font-size: clamp(.95rem, 2.2vw, 1.15rem); font-weight: 500; letter-spacing: 0; line-height: 1.35; color: var(--board-muted); }
.panel h3 { font-size: 1.1rem; margin: 0 0 12px; }
.panel .tabla-desliza { border: 0; border-radius: 0; background: none; }
.panel .tabla-tasas th, .panel .tabla-tasas td { padding-inline: 4px; }
.seccion-euro { display: grid; gap: 24px; scroll-margin-top: 16px; border-top: 1px solid var(--line); padding-top: 40px; }
.seccion-euro .titulo-bloque { font-size: 1.55rem; margin: 0; }
.titulo-bloque { font-size: 1.4rem; margin: 0 0 14px; }
.tabla-desliza { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.tabla-tasas { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tabla-tasas th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tabla-tasas td { padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tabla-tasas tr:last-child td { border-bottom: 0; }
.tabla-tasas td:not(:first-child) { font-family: var(--f-num); font-variant-numeric: tabular-nums; }
.tabla-tasas .sube { color: var(--sube); }
.tabla-tasas .baja { color: var(--baja); }
.tabla-tasas tr.mejor td { background: color-mix(in srgb, var(--sube) 7%, transparent); }
.chip { display: inline-block; font-size: .7rem; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: var(--chip); color: var(--sube); margin-left: 6px; vertical-align: middle; }
.nota-tabla { font-size: .88rem; color: var(--muted); margin: 10px 0 0; }
.texto-tasa { max-width: 72ch; }
.texto-tasa h2:first-child { margin-top: 0; }
.ejemplos { list-style: none; padding: 0; margin: 1em 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.ejemplos li { display: flex; justify-content: space-between; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-family: var(--f-num); font-size: .92rem; font-variant-numeric: tabular-nums; }
.ejemplos li span:first-child { color: var(--muted); }
.otras-tasas ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.otras-tasas a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: inherit; text-decoration: none; }
.otras-tasas a:hover { border-color: var(--muted); }
.otras-tasas b { font-family: var(--f-num); font-variant-numeric: tabular-nums; }

/* ---------- Páginas por fecha ---------- */
.tasa-valor.tasa-valor-rango { font-size: clamp(1.35rem, 3vw, 1.7rem); }
.fecha-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 600; }
.fecha-nav a { text-decoration: none; }
.fecha-nav a:hover { text-decoration: underline; }
.fecha-enlaces { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .95rem; }
.detalle-horas summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.detalle-horas .tabla-desliza { margin-top: 12px; }
.tabla-tasas td a { color: inherit; }
.fecha-sub { display: block; font-size: .8rem; color: var(--muted); }
.equivalencias .ejemplos { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.equivalencias .ejemplos span { white-space: nowrap; }

/* ---------- Buscador ---------- */
.search-form { display: flex; gap: 8px; max-width: 420px; }
.search-form label { flex: 1; min-width: 0; }
.search-field { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.search-submit { font: inherit; font-weight: 600; color: var(--bg); background: var(--ink); border: 0; border-radius: 8px; padding: 10px 16px; cursor: pointer; }

/* ---------- Pie ---------- */
.pie { border-top: 1px solid var(--line); padding-block: 28px; font-size: .88rem; color: var(--muted); }
.pie .contenedor { display: grid; gap: 10px; }
.pie ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pie a { color: inherit; }
.pie b { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
