/* Pulso Gamer: estilos */

:root {
  --bg: #0a0c10;
  --superficie: #12161e;
  --superficie-2: #191e29;
  --linea: rgba(255, 255, 255, 0.08);
  --linea-fuerte: rgba(255, 255, 255, 0.16);
  --texto: #eef1f6;
  --suave: #a6aebd;
  --tenue: #6f7888;
  --acento: #c6ff3a;
  --acento-oscuro: #10140a;
  --caliente: #ff3d6e;

  --ps: #3d8bff;
  --xbox: #3ccf4e;
  --nintendo: #ff3b47;
  --pc: #b48cff;
  --movil: #ffb020;

  --radio: 14px;
  --f-titular: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-texto: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 8% -10%, rgba(198, 255, 58, 0.07), transparent 60%),
    radial-gradient(800px 600px at 100% 0%, rgba(124, 77, 255, 0.09), transparent 60%),
    var(--bg);
  color: var(--texto);
  font-family: var(--f-texto);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; border-radius: 6px; }

.sr {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.saltar {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--acento); color: var(--acento-oscuro);
  padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.saltar:focus { top: 12px; }

.contenedor {
  width: min(1240px, 100% - 2 * clamp(16px, 4vw, 40px));
  margin-inline: auto;
}

/* ------------------------------------------------------------ cabecera */

.cabecera { border-bottom: 1px solid var(--linea); }

.cabecera__fila {
  display: flex; align-items: center; gap: clamp(12px, 3vw, 32px);
  min-height: 68px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__pulso { width: 40px; height: 20px; }
.logo__pulso path {
  fill: none; stroke: var(--acento); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 90; stroke-dashoffset: 90;
  animation: latido 2.8s cubic-bezier(.6, 0, .3, 1) infinite;
}
@keyframes latido {
  0% { stroke-dashoffset: 90; }
  45%, 70% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -90; }
}
.logo__texto {
  font-family: var(--f-titular); font-weight: 800; font-stretch: 118%;
  font-size: 1.2rem; letter-spacing: -0.01em; text-transform: uppercase;
}
.logo__texto b { color: var(--acento); font-weight: 800; margin-left: 2px; }

.estado {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 14px;
  font-size: 0.82rem; color: var(--suave);
}
.estado__vivo {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  font-weight: 700; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--texto); padding: 5px 10px 5px 9px; border: 1px solid var(--linea-fuerte); border-radius: 99px;
}
.estado__punto {
  width: 8px; height: 8px; border-radius: 50%; background: var(--caliente);
  box-shadow: 0 0 0 0 rgba(255, 61, 110, 0.7);
  animation: pulso-punto 1.8s ease-out infinite;
}
@keyframes pulso-punto {
  0% { box-shadow: 0 0 0 0 rgba(255, 61, 110, 0.65); }
  80%, 100% { box-shadow: 0 0 0 9px rgba(255, 61, 110, 0); }
}
.estado__texto { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.estado__cuenta { white-space: nowrap; color: var(--tenue); font-variant-numeric: tabular-nums; }

.btn-refrescar {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  background: var(--superficie); border: 1px solid var(--linea-fuerte); border-radius: 99px;
  padding: 8px 16px 8px 12px; font-size: 0.85rem; font-weight: 600;
  transition: border-color .2s, background .2s, transform .15s;
}
.btn-refrescar:hover { border-color: var(--acento); background: var(--superficie-2); }
.btn-refrescar:active { transform: scale(.96); }
.btn-refrescar:disabled { cursor: progress; opacity: .75; }
.btn-refrescar svg { width: 17px; height: 17px; fill: none; stroke: var(--acento); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-refrescar.girando svg { animation: girar .9s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------- ticker */

.ticker {
  display: flex; align-items: stretch; height: 38px;
  border-top: 1px solid var(--linea); background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
.ticker__etiqueta {
  display: flex; align-items: center; flex-shrink: 0;
  padding: 0 16px 0 clamp(16px, 4vw, 40px);
  background: var(--caliente); color: #fff;
  font-family: var(--f-titular); font-weight: 800; font-stretch: 110%;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  padding-right: 26px;
}
.ticker__ventana {
  flex: 1; overflow: hidden; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 60px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 60px), transparent);
}
.ticker__pista {
  display: flex; gap: 44px; width: max-content; padding-left: 24px;
  animation: desplazar var(--duracion, 90s) linear infinite;
}
.ticker:hover .ticker__pista, .ticker:focus-within .ticker__pista { animation-play-state: paused; }
@keyframes desplazar { to { transform: translateX(-50%); } }
.ticker__item { white-space: nowrap; font-size: 0.85rem; color: var(--suave); transition: color .2s; }
.ticker__item strong { font-weight: 700; margin-right: 4px; color: var(--acento); }
a.ticker__item:hover { color: var(--texto); }

/* ---------------------------------------------------------------- intro */

.intro { padding: clamp(36px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); }
.intro__kicker {
  margin: 0 0 14px; color: var(--acento);
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.intro__titulo {
  margin: 0; max-width: 16ch;
  font-family: var(--f-titular); font-weight: 850; font-stretch: 112%;
  font-size: clamp(2.3rem, 6vw, 4.9rem); line-height: 0.95; letter-spacing: -0.025em;
  text-wrap: balance;
}
.intro__titulo em {
  font-style: normal; color: var(--acento);
  background: linear-gradient(transparent 82%, rgba(198, 255, 58, 0.22) 82%);
}
.intro__texto { margin: 22px 0 0; max-width: 64ch; color: var(--suave); font-size: clamp(0.95rem, 1.2vw, 1.05rem); }

/* --------------------------------------------------------- destacadas */

.destacadas {
  display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 28px); margin-bottom: clamp(28px, 4vw, 48px);
}
.destacadas__lado { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.destacadas__etiqueta {
  margin: 0 0 6px; padding-bottom: 10px; border-bottom: 1px solid var(--linea);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tenue);
}

/* -------------------------------------------------------------- tarjetas */

.tarjeta {
  --c: #8a93a6;
  position: relative; min-width: 0;
  background: var(--superficie);
  border: 1px solid var(--linea); border-radius: var(--radio);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), border-color .3s, box-shadow .3s, background .3s;
}
.tarjeta:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--c) 55%, transparent);
  box-shadow: 0 22px 48px -26px color-mix(in srgb, var(--c) 70%, transparent);
}
.tarjeta__enlace { display: flex; flex-direction: column; height: 100%; }

.tarjeta__media {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 28%, var(--superficie-2)), var(--superficie-2));
}
.tarjeta__media img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.02);
  transition: opacity .5s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.tarjeta__media img.cargada { opacity: 1; transform: scale(1); }
.tarjeta:hover .tarjeta__media img.cargada { transform: scale(1.05); }

/* Noticias sin imagen: portadilla con el color del medio */
.marcador {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 18px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--c) 80%, transparent), transparent 62%),
    radial-gradient(70% 90% at 0% 100%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%),
    #0f1219;
}
.marcador::before {
  content: ""; width: 34px; height: 4px; border-radius: 2px; background: #fff; opacity: .9;
}
.marcador__nombre {
  font-family: var(--f-titular); font-weight: 900; font-stretch: 118%;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1; text-transform: uppercase; letter-spacing: -0.02em;
  color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}

.tarjeta__cuerpo { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }

.tarjeta__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  font-size: 0.74rem; color: var(--tenue);
}
.tarjeta__fuente {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--c); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.tarjeta__fuente::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--c); }
.tiempo { font-variant-numeric: tabular-nums; }

.etiqueta-nuevo {
  background: var(--caliente); color: #fff; border-radius: 4px;
  padding: 1px 6px; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
}

.tarjeta__titulo {
  margin: 0;
  font-family: var(--f-titular); font-weight: 700; font-stretch: 100%;
  font-size: 1.08rem; line-height: 1.25; letter-spacing: -0.005em;
  text-wrap: pretty;
}
.tarjeta__enlace:hover .tarjeta__titulo { color: #fff; }

.tarjeta__resumen {
  margin: 0; color: var(--suave); font-size: 0.89rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.tarjeta__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.tag {
  --t: var(--suave);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--t); border: 1px solid color-mix(in srgb, var(--t) 45%, transparent);
  background: color-mix(in srgb, var(--t) 10%, transparent);
  padding: 2px 8px; border-radius: 99px;
}
.tag--playstation { --t: var(--ps); }
.tag--xbox { --t: var(--xbox); }
.tag--nintendo { --t: var(--nintendo); }
.tag--pc { --t: var(--pc); }
.tag--movil { --t: var(--movil); }

/* Principal: imagen a sangre con el titular encima */
.tarjeta--principal { min-height: clamp(340px, 42vw, 540px); }
.tarjeta--principal .tarjeta__enlace { position: absolute; inset: 0; }
.tarjeta--principal .tarjeta__media { position: absolute; inset: 0; aspect-ratio: auto; }
.tarjeta--principal .tarjeta__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 16, 0) 25%, rgba(10, 12, 16, 0.55) 55%, rgba(10, 12, 16, 0.96) 100%);
}
.tarjeta--principal .tarjeta__cuerpo {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: clamp(20px, 3vw, 36px); gap: 12px;
}
.tarjeta--principal .tarjeta__titulo {
  font-weight: 800; font-stretch: 106%;
  font-size: clamp(1.5rem, 2.9vw, 2.45rem); line-height: 1.05; letter-spacing: -0.02em;
  text-wrap: balance; max-width: 26ch;
}
.tarjeta--principal .tarjeta__resumen { color: rgba(238, 241, 246, 0.82); -webkit-line-clamp: 2; max-width: 62ch; font-size: 0.95rem; }
.tarjeta--principal .tarjeta__meta { color: rgba(238, 241, 246, 0.7); }
.tarjeta--principal .tarjeta__tags { margin-top: 0; }
.tarjeta--principal:hover { transform: none; }
.tarjeta--principal .marcador__nombre { font-size: clamp(2.5rem, 6vw, 5rem); }
.tarjeta--principal .marcador { align-items: flex-start; }

/* Compacta: columna lateral */
.tarjeta--compacta {
  background: transparent; border: 0; border-radius: 10px;
  border-bottom: 1px solid var(--linea); border-radius: 0;
}
.tarjeta--compacta:last-child { border-bottom: 0; }
.tarjeta--compacta:hover { transform: none; box-shadow: none; background: rgba(255, 255, 255, 0.03); border-color: var(--linea); }
.tarjeta--compacta .tarjeta__enlace {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 6px;
}
.tarjeta--compacta .tarjeta__media { aspect-ratio: 4 / 3; border-radius: 9px; }
.tarjeta--compacta .tarjeta__cuerpo { padding: 0; gap: 6px; }
.tarjeta--compacta .tarjeta__titulo {
  font-size: 0.95rem; font-weight: 650; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tarjeta--compacta .marcador { padding: 9px; gap: 4px; background-size: 14px 14px, 14px 14px, auto, auto, auto; }
.tarjeta--compacta .marcador::before { width: 18px; height: 3px; }
.tarjeta--compacta .marcador__nombre { font-size: 0.72rem; font-stretch: 105%; }

/* Noticia recién llegada */
.tarjeta--recien { animation: recien 3.2s ease-out 1; }
@keyframes recien {
  0%, 30% { box-shadow: 0 0 0 2px var(--acento), 0 0 36px -6px rgba(198, 255, 58, 0.55); }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ------------------------------------------------- barra de filtros */

.barra {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 12, 16, 0.84);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
          backdrop-filter: blur(14px) saturate(1.2);
  border-block: 1px solid var(--linea);
}
.barra__fila { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 12px 0; flex-wrap: wrap; }

.chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: -4px; padding: 4px; /* espacio para el foco */
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  --p: var(--suave);
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  background: var(--superficie); border: 1px solid var(--linea-fuerte); border-radius: 99px;
  padding: 7px 14px; font-size: 0.85rem; font-weight: 600; color: var(--texto);
  transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--p); }
.chip[data-plataforma="todas"]::before { display: none; }
.chip--playstation { --p: var(--ps); }
.chip--xbox { --p: var(--xbox); }
.chip--nintendo { --p: var(--nintendo); }
.chip--pc { --p: var(--pc); }
.chip--movil { --p: var(--movil); }
.chip:hover { border-color: var(--p); }
.chip[data-plataforma="todas"]:hover { border-color: var(--acento); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--acento); border-color: var(--acento); color: var(--acento-oscuro); }
.chip[aria-pressed="true"]::before { background: var(--acento-oscuro); }
.chip__n { font-size: 0.74rem; color: var(--tenue); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .chip__n { color: rgba(16, 20, 10, 0.6); }

.barra__controles { display: flex; gap: 10px; flex: 1 1 380px; justify-content: flex-end; }

.selector select {
  appearance: none; -webkit-appearance: none;
  background: var(--superficie) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a6aebd' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px;
  border: 1px solid var(--linea-fuerte); border-radius: 99px;
  padding: 8px 36px 8px 16px; font-size: 0.85rem; font-weight: 600; height: 38px; max-width: 220px;
}
.selector select:hover { border-color: var(--acento); }
.selector option { background: var(--superficie); color: var(--texto); }

.buscador {
  position: relative; flex: 0 1 320px; min-width: 0;
}
.buscador svg {
  position: absolute; left: 13px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%);
  fill: none; stroke: var(--tenue); stroke-width: 2.2; stroke-linecap: round; pointer-events: none;
}
.buscador input {
  width: 100%; height: 38px;
  background: var(--superficie); border: 1px solid var(--linea-fuerte); border-radius: 99px;
  padding: 0 16px 0 38px; font-size: 0.88rem;
  transition: border-color .2s, background .2s;
}
.buscador input::placeholder { color: var(--tenue); }
.buscador input:hover { border-color: var(--linea-fuerte); background: var(--superficie-2); }
.buscador input:focus { outline: none; border-color: var(--acento); background: var(--superficie-2); }

/* ---------------------------------------------------------- rejilla */

.lista { padding: clamp(28px, 4vw, 44px) 0 40px; }
.lista__cabecera { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.lista__cabecera h2 {
  margin: 0; font-family: var(--f-titular); font-weight: 800; font-stretch: 110%;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.02em;
}
.lista__contador { color: var(--tenue); font-size: 0.85rem; font-variant-numeric: tabular-nums; }

.rejilla {
  display: grid; gap: clamp(14px, 1.6vw, 22px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 285px), 1fr));
}

.mas { display: flex; justify-content: center; margin-top: 36px; }
.btn-mas {
  background: transparent; color: var(--texto);
  border: 1px solid var(--acento); border-radius: 99px;
  padding: 12px 26px; font-weight: 700; font-size: 0.92rem;
  transition: background .2s, color .2s, transform .15s;
}
.btn-mas:hover { background: var(--acento); color: var(--acento-oscuro); }
.btn-mas:active { transform: scale(.97); }

#centinela { height: 1px; }

.vacio, .aviso-error {
  grid-column: 1 / -1; text-align: center; padding: 56px 20px;
  border: 1px dashed var(--linea-fuerte); border-radius: var(--radio); color: var(--suave);
}
.vacio__titulo, .aviso-error__titulo {
  margin: 0 0 6px; color: var(--texto);
  font-family: var(--f-titular); font-weight: 800; font-size: 1.3rem;
}
.vacio .btn-mas, .aviso-error .btn-mas { margin-top: 16px; }

/* --------------------------------------------------------- esqueletos */

.esqueleto { pointer-events: none; }
.esqueleto .tarjeta__media, .esqueleto--linea, .esqueleto.tarjeta--principal {
  background: linear-gradient(100deg, var(--superficie) 20%, var(--superficie-2) 40%, var(--superficie) 60%) 0 0 / 300% 100%;
  animation: brillo 1.6s linear infinite;
}
.esqueleto.tarjeta--principal .tarjeta__media { display: none; }
.esqueleto--linea { height: 14px; border-radius: 6px; margin-bottom: 10px; }
.esqueleto--linea.corta { width: 60%; }
.destacadas__lado .esqueleto--linea { height: 76px; border-radius: 10px; margin: 0 0 10px; }
@keyframes brillo { to { background-position: -300% 0; } }

/* -------------------------------------------------- píldora "nuevas" */

.pildora {
  position: fixed; left: 50%; top: 78px; z-index: 40;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--acento); color: var(--acento-oscuro);
  border: 0; border-radius: 99px; padding: 10px 18px 10px 14px;
  font-weight: 800; font-size: 0.88rem;
  box-shadow: 0 12px 34px -8px rgba(198, 255, 58, 0.55), 0 2px 8px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -16px); opacity: 0;
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.3), opacity .25s;
}
.pildora.visible { transform: translate(-50%, 0); opacity: 1; }
.pildora svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- pie */

.pie { border-top: 1px solid var(--linea); margin-top: 40px; padding: 48px 0 28px; color: var(--suave); font-size: 0.9rem; }
.pie__rejilla { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
.pie__marca p { max-width: 46ch; margin: 16px 0 0; }
.pie__titulo {
  margin: 0 0 14px; color: var(--texto);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.pie__medios { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 20px; }
.pie__medios li { margin-bottom: 8px; break-inside: avoid; }
.pie__medios a { display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.pie__medios a::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--c, var(--tenue)); }
.pie__medios a:hover, .pie__enlaces a:hover { color: var(--texto); }
.pie__enlaces { list-style: none; margin: 0; padding: 0; }
.pie__enlaces a { text-decoration: underline; text-decoration-color: var(--linea-fuerte); text-underline-offset: 3px; }
.pie__nota { margin: 16px 0 0; font-size: 0.82rem; color: var(--tenue); }
.pie__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--linea); font-size: 0.8rem; color: var(--tenue); }

.noscript { text-align: center; padding: 20px; background: var(--caliente); color: #fff; margin: 0; }

/* ------------------------------------------------- páginas de texto */

.texto-legal { padding: clamp(36px, 6vw, 72px) 0 40px; max-width: 760px; }
.texto-legal h1 {
  font-family: var(--f-titular); font-weight: 850; font-stretch: 110%;
  font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1; letter-spacing: -0.02em; margin: 0 0 12px;
}
.texto-legal h2 { font-family: var(--f-titular); font-weight: 800; font-size: 1.3rem; margin: 36px 0 10px; }
.texto-legal p, .texto-legal li { color: var(--suave); }
.texto-legal a { color: var(--acento); text-decoration: underline; text-underline-offset: 3px; }
.texto-legal .actualizado { color: var(--tenue); font-size: 0.85rem; margin-bottom: 28px; }

/* ----------------------------------------------------------- responsive */

@media (max-width: 960px) {
  .destacadas { grid-template-columns: 1fr; }
  .pie__rejilla { grid-template-columns: 1fr 1fr; }
  .pie__marca { grid-column: 1 / -1; }
  .estado__cuenta { display: none; }
}

@media (max-width: 680px) {
  .cabecera__fila { min-height: 60px; gap: 10px; }
  .logo__texto { font-size: 1.02rem; }
  .logo__pulso { width: 32px; }
  .estado { justify-content: flex-end; }
  .estado__texto { display: none; }
  .btn-refrescar { padding: 8px; }
  .btn-refrescar span { display: none; }
  .ticker__etiqueta { padding-left: 16px; }

  .barra__fila { gap: 10px; }
  .chips { width: 100%; margin-inline: calc(-1 * clamp(16px, 4vw, 40px)); padding-inline: clamp(16px, 4vw, 40px); width: calc(100% + 2 * clamp(16px, 4vw, 40px)); }
  .barra__controles { flex-basis: 100%; }
  .selector { flex: 0 0 auto; }
  .selector select { max-width: 178px; padding: 8px 30px 8px 14px; background-position: right 10px center; }
  .buscador { flex: 1 1 auto; }

  .tarjeta--principal { min-height: 380px; }
  .tarjeta--principal .tarjeta__resumen { display: none; }
  .tarjeta--compacta .tarjeta__enlace { grid-template-columns: 92px minmax(0, 1fr); }
  .pie__rejilla { grid-template-columns: 1fr; }
}
