/* Tokens de marca — WORDPRESS.md, no se tocan */
:root {
  --primario: #4D1880;
  --tinta: #2C0E4A;
  --acento: #C9A227;
  --papel: #FFFFFF;
  --texto: #16150F;
  --texto-suave: #6E6A5E;

  --fuente-display: 'Inter', sans-serif;
  --fuente-texto: 'Source Sans 3', sans-serif;

  /* Roles de superficie — tema oscuro permanente, sin toggle */
  --superficie: var(--tinta);
  --superficie-alterna: #3a1466;
  --en-superficie: var(--papel);
  --en-superficie-suave: rgba(255, 255, 255, 0.65);
  --borde-suave: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--superficie);
  color: var(--en-superficie);
  font-family: var(--fuente-texto);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1, h2, h3 {
  font-family: var(--fuente-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.contenido-principal {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.chip-categoria {
  display: inline-block;
  background: var(--acento);
  color: var(--texto);
  font-family: var(--fuente-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
}

/* ---- Header ---- */
.cabecera-sitio {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--superficie);
  border-bottom: 1px solid var(--borde-suave);
}

.cabecera-sitio__fila {
  max-width: 1200px;
  margin-inline: auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cabecera-sitio__marca img {
  height: 48px;
  width: auto;
}

.cabecera-sitio__nav {
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.cabecera-sitio__nav::-webkit-scrollbar {
  display: none;
}

.cabecera-sitio__menu {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.cabecera-sitio__menu a {
  font-family: var(--fuente-display);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--en-superficie);
}
.cabecera-sitio__menu a:hover {
  color: var(--acento);
}

.cabecera-sitio__acciones {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cabecera-sitio__boton-icono {
  background: transparent;
  border: none;
  color: var(--en-superficie);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.cabecera-sitio__boton-icono:hover {
  color: var(--acento);
}
.cabecera-sitio__boton-icono svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.cabecera-sitio__buscador-panel {
  max-width: 1200px;
  margin-inline: auto;
  padding: 0 1rem 0.75rem;
}

.cabecera-sitio__form-busqueda {
  display: flex;
  gap: 0.5rem;
}

.cabecera-sitio__input-busqueda {
  flex: 1;
  background: var(--superficie-alterna);
  border: 1px solid var(--borde-suave);
  color: var(--en-superficie);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-family: var(--fuente-texto);
}

.cabecera-sitio__submit-busqueda {
  background: var(--acento);
  border: none;
  color: var(--texto);
  width: 40px;
  border-radius: 4px;
  cursor: pointer;
}
.cabecera-sitio__submit-busqueda svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ---- Rieles horizontales ---- */
.seccion-riel {
  margin: 2.5rem auto;
  max-width: 1200px;
  padding-inline: 1rem;
}

.seccion-riel__encabezado {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.seccion-riel__titulo {
  font-size: 1.1rem;
  margin: 0;
}

.riel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}
.riel::-webkit-scrollbar {
  display: none;
}
.riel > * {
  flex: 0 0 260px;
  scroll-snap-align: start;
}

/* ---- Tarjeta de nota ---- */
.tarjeta-nota {
  display: block;
}

.tarjeta-nota__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px;
  background: var(--superficie-alterna);
}

.tarjeta-nota__imagen-link {
  display: block;
  width: 100%;
  height: 100%;
}

.tarjeta-nota__imagen {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tarjeta-nota__media .chip-categoria {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
}

.tarjeta-nota__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 0.75rem 0.6rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
}

.tarjeta-nota__titular {
  color: var(--papel);
  font-family: var(--fuente-display);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.25;
  margin: 0;
}

/* ---- Tarjeta de Facebook (riel "Desde Facebook", front-page.php) ---- */
.tarjeta-facebook {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--borde-suave);
  border-radius: 4px;
  overflow: hidden;
  background: var(--superficie-alterna);
}

.tarjeta-facebook__imagen-link {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--superficie-alterna);
}

.tarjeta-facebook__imagen {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tarjeta-facebook__cuerpo {
  padding: 0.85rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tarjeta-facebook__texto {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--en-superficie-suave);
  margin: 0;
}

.tarjeta-facebook__enlace {
  font-family: var(--fuente-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--acento);
  text-decoration: none;
  margin-top: auto;
}

.tarjeta-facebook__enlace:hover {
  text-decoration: underline;
}

/* ---- Grid (archive/search) ---- */
.grilla-archivo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 1.5rem auto;
}

/* ---- Bloque cotización del dólar ---- */
.bloque-cotizacion {
  border: 2px solid var(--acento);
  padding: 2rem;
  text-align: center;
  margin: 2.5rem auto;
  max-width: 1200px;
}

.bloque-cotizacion__cifra {
  font-family: var(--fuente-display);
  font-weight: 900;
  font-size: clamp(3rem, 10vw, 5.5rem);
  color: var(--papel);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin: 0;
}

.bloque-cotizacion__caption {
  font-family: var(--fuente-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acento);
  margin-top: 0.75rem;
}

/* ---- Hero (front-page) ---- */
.nota-principal {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding-inline: 1rem;
}

.nota-principal__media {
  position: relative;
  aspect-ratio: 16 / 8;
  border-radius: 4px;
  overflow: hidden;
  background: var(--superficie-alterna);
}

.nota-principal__imagen {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nota-principal__media .chip-categoria {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
}

.nota-principal__eyebrow {
  font-family: var(--fuente-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acento);
  margin-top: 1.5rem;
}

.nota-principal__titular {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
}

.nota-principal__bajada {
  color: var(--en-superficie-suave);
  max-width: 60ch;
}

/* ---- Single ---- */
.nota-single {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding-inline: 1rem;
}

.nota-single__imagen {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.nota-single__meta {
  color: var(--en-superficie-suave);
  font-size: 0.85rem;
  margin: 0.5rem 0 1.5rem;
}

.nota-single__acciones {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.nota-single__acciones a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--borde-suave);
  border-radius: 999px;
  color: var(--en-superficie);
}
.nota-single__acciones a:hover {
  border-color: var(--acento);
  color: var(--acento);
}
.nota-single__acciones svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.nota-single__cuerpo {
  max-width: 70ch;
  font-size: 1.05rem;
}
.nota-single__cuerpo p {
  margin-bottom: 1.25rem;
}

/* ---- Archive header ---- */
.titulo-categoria {
  margin-top: 1.5rem;
}

/* ---- Footer ---- */
.pie-sitio {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: 2rem 1rem;
  border-top: 1px solid var(--borde-suave);
  display: grid;
  gap: 1.5rem;
}

.pie-sitio__logo {
  height: 42px;
}

.pie-sitio__columnas {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.pie-sitio__columnas a {
  display: block;
  color: var(--en-superficie-suave);
  padding: 0.15rem 0;
}
.pie-sitio__columnas a:hover {
  color: var(--acento);
}

.pie-sitio__redes {
  display: flex;
  gap: 0.75rem;
}
.pie-sitio__redes svg {
  width: 20px;
  height: 20px;
  fill: var(--en-superficie-suave);
}
.pie-sitio__redes a:hover svg {
  fill: var(--acento);
}

.pie-sitio__credito a {
  color: var(--acento);
  font-weight: 700;
}

.pie-sitio__copyright {
  color: var(--en-superficie-suave);
  font-size: 0.85rem;
}

/* ---- Mobile ---- */
@media (max-width: 720px) {
  .grilla-archivo {
    grid-template-columns: 1fr;
  }
  .bloque-cotizacion {
    padding: 1.5rem 1rem;
  }
  .riel > * {
    flex-basis: 220px;
  }
}
