/* realidades.mx — hoja de estilos del sitio público */

:root {
  --rojo: #e11d2a;
  --rojo-osc: #b8141f;
  --azul: #1e6fe8;
  --verde: #14a35a;
  --morado: #8b4ad6;
  --naranja: #f0821e;
  --fondo: #f3f4f6;
  --superficie: #ffffff;
  --superficie-2: #f7f7f8;
  --texto: #121417;
  --texto-2: #5b6470;
  --linea: #e4e6ea;
  --nav: #141518;
  --nav-texto: #ffffff;
  --sombra: 0 6px 24px rgba(0, 0, 0, 0.08);
  --radio: 10px;
  --ancho: 1200px;
  --fuente: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fuente-logo: "Barlow Condensed", "Barlow", Impact, sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --fondo: #0f1012;
  --superficie: #17181b;
  --superficie-2: #1f2024;
  --texto: #f2f3f5;
  --texto-2: #9aa3ad;
  --linea: #2a2c31;
  --nav: #0a0b0d;
  --sombra: 0 10px 30px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--fuente);
  font-size: 16px;
  line-height: 1.5;
  color: var(--texto);
  background: var(--fondo);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
button { font: inherit; }
.wrap { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 16px; }

/* ---------- barra superior ---------- */
.topbar { background: var(--nav); color: #cfd4da; font-size: 13px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; min-height: 34px; gap: 12px; }
.topbar-izq { display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; flex: 1 1 auto; min-width: 0; }
.topbar .sep { opacity: 0.4; }
.reloj { font-variant-numeric: tabular-nums; font-weight: 600; color: #fff; }
.clima b { color: #fff; font-weight: 600; }
.clima-ico { font-size: 15px; }
.en-linea { display: inline-flex; align-items: center; gap: 6px; }
.en-linea b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; transition: color 0.4s; }
.en-linea b.sube { color: #4ade80; }
.en-linea b.baja { color: #ff6b6b; }
.vivo-punto { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #ff2d3b; box-shadow: 0 0 6px #ff2d3b; flex: none; }
.vivo-punto::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #ff2d3b; animation: vivo 1.6s ease-out infinite; }
@keyframes vivo { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .vivo-punto::after { animation: none; } }
.topbar-der { display: flex; align-items: center; gap: 14px; }
.topbar-der a { display: inline-flex; align-items: center; gap: 4px; color: #cfd4da; font-weight: 600; }
.topbar-der a:hover { color: #fff; }

/* ---------- cabecera ---------- */
.header { background: var(--superficie); border-bottom: 1px solid var(--linea); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.marca { display: flex; align-items: center; gap: 18px; min-width: 0; }
.logo { display: block; position: relative; line-height: 0; }
.logo-img { position: relative; display: block; }
.logo-img img { height: 70px; width: auto; transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.35s; }
:root[data-theme="dark"] .logo-claro, :root:not([data-theme="dark"]) .logo-oscuro { display: none; }
/* Brillo que recorre las letras al pasar el cursor (solo sobre el logo, gracias a la máscara). */
.logo-img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.85) 50%, transparent 65%);
  background-size: 250% 100%; background-position: 120% 0;
  -webkit-mask: var(--logo-mask) left center / contain no-repeat; mask: var(--logo-mask) left center / contain no-repeat;
  mix-blend-mode: screen;
}
:root { --logo-mask: url("/assets/logo-claro.png"); }
:root[data-theme="dark"] { --logo-mask: url("/assets/logo-oscuro.png"); }
.logo:hover .logo-img img { transform: translateY(-2px) scale(1.03); filter: drop-shadow(0 8px 18px rgba(225, 29, 42, 0.35)); }
.logo:hover .logo-img::after { opacity: 1; animation: brillo 0.9s ease-out forwards; }
@keyframes brillo { from { background-position: 120% 0; } to { background-position: -40% 0; } }
/* Cabeza olmeca: lee el periódico (balanceo suave) y brinca contenta al pasar el cursor. */
.mascota { display: block; line-height: 0; flex-shrink: 0; }
.mascota img { height: 82px; width: auto; transform-origin: 50% 90%; animation: leer 4.2s ease-in-out infinite; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25)); transition: filter 0.3s; }
.mascota:hover img { animation: brinco 0.7s cubic-bezier(0.3, 1.6, 0.4, 1) 1, leer 4.2s ease-in-out 0.7s infinite; filter: drop-shadow(0 10px 18px rgba(225, 29, 42, 0.35)); }
@keyframes leer {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  25% { transform: rotate(0deg) translateY(-2px); }
  50% { transform: rotate(3deg) translateY(0); }
  75% { transform: rotate(0deg) translateY(-1px); }
}
@keyframes brinco {
  0% { transform: scale(1) translateY(0); }
  30% { transform: scale(1.12, 0.9) translateY(2px); }
  60% { transform: scale(0.95, 1.08) translateY(-12px) rotate(4deg); }
  100% { transform: scale(1) translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .mascota img, .logo:hover .logo-img::after { animation: none; } }

/* ---------- anuncios ---------- */
.ad { display: flex; align-items: center; justify-content: center; margin: 22px auto; }
.ad-vacio {
  flex-direction: column;
  gap: 2px;
  min-height: 90px;
  border: 1px dashed var(--linea);
  background: var(--superficie-2);
  color: var(--texto-2);
  border-radius: 6px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.ad-vacio small { letter-spacing: 0.04em; text-transform: none; opacity: 0.7; }
.ad-cabecera { margin: 0; width: 728px; max-width: 100%; min-height: 90px; }
.ad-portada_1, .ad-portada_2, .ad-portada_3, .ad-seccion { width: 970px; max-width: 100%; min-height: 120px; }
.ad-lateral_1 { width: 300px; min-height: 250px; margin-top: 0; }
.ad-lateral_2 { width: 300px; min-height: 600px; }
.ad-nota_medio { width: 336px; max-width: 100%; min-height: 280px; }
.ad-pie { width: 970px; max-width: 100%; min-height: 90px; }
.ad-real { border: 0; background: transparent; }

/* ---------- navegación ---------- */
.nav { background: var(--nav); color: var(--nav-texto); position: sticky; top: 0; z-index: 50; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25); }
.nav-in { display: flex; align-items: stretch; justify-content: space-between; min-height: 54px; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; }
.menu a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 18px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e9ecef;
  position: relative;
  transition: color 0.2s, background 0.2s;
}
.menu a::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; background: var(--rojo); transform: scaleX(0); transform-origin: left; transition: transform 0.25s; }
.menu a:hover::after, .menu a.activa::after { transform: scaleX(1); }
.menu a[data-cat="boca-del-rio"]::after { background: var(--azul); }
.menu a[data-cat="estado"]::after { background: var(--naranja); }
.menu a[data-cat="nacional"]::after { background: var(--verde); }
.menu a[data-cat="internacional"]::after { background: var(--morado); }
.menu a.inicio { background: var(--rojo); color: #fff; padding: 0 22px; }
.menu a.inicio::after { display: none; }
.menu a.inicio:hover { background: var(--rojo-osc); }
.nav-der { display: flex; align-items: center; gap: 8px; }
.buscar { display: flex; align-items: center; background: rgba(255, 255, 255, 0.1); border-radius: 999px; padding: 0 6px 0 14px; height: 36px; transition: background 0.2s; }
.buscar:focus-within { background: rgba(255, 255, 255, 0.18); }
.buscar input { background: transparent; border: 0; color: #fff; width: 170px; outline: none; font-size: 14px; }
.buscar input::placeholder { color: rgba(255, 255, 255, 0.6); }
.buscar button { background: transparent; border: 0; color: #fff; display: grid; place-items: center; width: 30px; height: 30px; cursor: pointer; border-radius: 50%; }
.buscar button:hover { background: rgba(255, 255, 255, 0.15); }
.tema { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.1); color: #fff; cursor: pointer; font-size: 17px; display: grid; place-items: center; transition: background 0.2s, transform 0.3s; }
.tema:hover { background: rgba(255, 255, 255, 0.2); transform: rotate(20deg); }
:root[data-theme="dark"] .tema-luna, :root:not([data-theme="dark"]) .tema-sol { display: none; }
.nav-burger { display: none; background: transparent; border: 0; color: #fff; font-size: 24px; padding: 0 8px; cursor: pointer; }

/* ---------- portada principal ---------- */
.main { padding-top: 26px; padding-bottom: 40px; }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-cuadros { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; }
.card-fondo { position: relative; display: block; overflow: hidden; border-radius: var(--radio); background: #1c1d21; box-shadow: var(--sombra); isolation: isolate; }
.card-fondo-img, .card-fondo-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-fondo-img img { transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.4s; }
.card-fondo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 30%, rgba(0, 0, 0, 0.55) 65%, rgba(0, 0, 0, 0.88) 100%); z-index: 1; transition: opacity 0.3s; }
.card-fondo:hover .card-fondo-img img { transform: scale(1.06); }
.card-fondo-texto { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px; color: #fff; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.card-fondo-texto h3 { font-size: 22px; font-weight: 700; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5); transition: color 0.2s; }
.card-fondo-texto p { font-size: 14px; color: rgba(255, 255, 255, 0.82); max-width: 60ch; }
.card-fondo:hover .card-fondo-texto h3 { color: #ffd4d7; }
.card-fondo .meta, .card-fondo .meta time { color: rgba(255, 255, 255, 0.85); }
.card-grande { min-height: 560px; }
.card-grande .card-fondo-texto { padding: 28px; }
.card-grande .card-fondo-texto h3 { font-size: 36px; line-height: 1.08; }
.card-cuadro { min-height: 273px; }
.card-cuadro .card-fondo-texto h3 { font-size: 19px; }
.card-cuadro .card-fondo-texto p { display: none; }
.card-alta { min-height: 620px; }
.card-alta .card-fondo-texto h3 { font-size: 32px; }
.card-ancha { min-height: 420px; margin-bottom: 8px; }
.card-ancha .card-fondo-texto h3 { font-size: 34px; }
.card-ancha .card-fondo-texto p { display: block; }
.sin-foto { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(120% 120% at 20% 0%, #2c2f36, #121317); color: rgba(255, 255, 255, 0.12); font-family: var(--fuente-logo); font-weight: 800; font-size: 54px; letter-spacing: -0.02em; }
.fila-mini-img .sin-foto, .card-grid-img .sin-foto, .destacado-img .sin-foto { font-size: 26px; }

/* etiqueta de sección */
.badge { display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; color: #fff; background: var(--rojo); line-height: 1.2; }
.badge-boca-del-rio { background: var(--azul); }
.badge-estado { background: var(--naranja); }
.badge-nacional { background: var(--verde); }
.badge-internacional { background: var(--morado); }
.badge-flot { position: absolute; left: 12px; top: 12px; z-index: 2; }

/* fecha y lugar */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--texto-2); }
.meta time::before { content: "◷"; margin-right: 5px; opacity: 0.8; }
.meta-lugar::before { content: "◉"; margin-right: 5px; color: var(--rojo); }
.meta-lg { font-size: 14px; }
.autor::before { content: "◍"; margin-right: 5px; opacity: 0.8; }

/* ---------- cabecera de sección ---------- */
.bloque { margin-top: 38px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; border-bottom: 1px solid var(--linea); margin-bottom: 20px; }
.sec-head h2 { font-size: 24px; font-weight: 700; padding-bottom: 10px; position: relative; color: var(--rojo); }
.sec-head h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 3px; background: var(--rojo); border-radius: 2px; }
.sec-head-boca-del-rio h2 { color: var(--azul); } .sec-head-boca-del-rio h2::after { background: var(--azul); }
.sec-head-estado h2 { color: var(--naranja); } .sec-head-estado h2::after { background: var(--naranja); }
.sec-head-nacional h2 { color: var(--verde); } .sec-head-nacional h2::after { background: var(--verde); }
.sec-head-internacional h2 { color: var(--morado); } .sec-head-internacional h2::after { background: var(--morado); }
.sec-head-ultimas h2 { color: var(--texto); } .sec-head-ultimas h2::after { background: var(--texto); }
.sec-mas, .sec-cuenta { font-size: 13px; font-weight: 600; color: var(--texto-2); padding-bottom: 12px; transition: color 0.2s; }
.sec-mas:hover { color: var(--texto); }
.sec-mas span { font-size: 16px; }

/* ---------- bloque destacado (estilo Sports) ---------- */
.bloque-destacado { background: var(--superficie); border-radius: var(--radio); padding: 22px 24px 24px; box-shadow: var(--sombra); }
.destacado { display: grid; grid-template-columns: 1.05fr 1fr; gap: 26px; align-items: start; }
.destacado-img { position: relative; display: block; overflow: hidden; border-radius: 8px; aspect-ratio: 16 / 10; background: #1c1d21; }
.destacado-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.destacado-img:hover img { transform: scale(1.05); }
.destacado-img .badge-flot { left: auto; right: 12px; top: auto; bottom: 12px; }
.destacado-texto { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.destacado-texto h3 { font-size: 30px; line-height: 1.12; }
.destacado-texto h3 a { transition: color 0.2s; }
.destacado-texto h3 a:hover { color: var(--rojo); }
.destacado-texto p { font-size: 16px; color: var(--texto-2); line-height: 1.6; }
.btn-leer { display: inline-block; align-self: flex-start; padding: 12px 26px; border-radius: 999px; background: var(--rojo); color: #fff; font-weight: 700; font-size: 15px; transition: background 0.2s, transform 0.2s, box-shadow 0.2s; }
.btn-leer:hover { background: var(--rojo-osc); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(225, 29, 42, 0.35); }
.grid-minis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; margin-top: 22px; }
.fila-mini { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: start; padding: 10px 0; }
.fila-mini-img { position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 3 / 2; background: #1c1d21; }
.fila-mini-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.fila-mini:hover .fila-mini-img img { transform: scale(1.08); }
.fila-mini-texto h4 { margin-top: 5px; font-size: 17px; line-height: 1.25; transition: color 0.2s; }
.fila-mini:hover h4 { color: var(--rojo); }

/* ---------- bloque portada (estilo Trending) ---------- */
.portada { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.lista-lateral { display: flex; flex-direction: column; }
.lista-lateral .fila-mini { grid-template-columns: 150px 1fr; padding: 12px 0; border-bottom: 1px solid var(--linea); }
.lista-lateral .fila-mini:last-child { border-bottom: 0; }
.lista-lateral .fila-mini-texto h4 { font-size: 19px; }

/* ---------- rejilla de tarjetas ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid { display: flex; flex-direction: column; background: var(--superficie); border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); transition: transform 0.25s, box-shadow 0.25s; }
.card-grid:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18); }
.card-grid-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #1c1d21; }
.card-grid-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card-grid:hover .card-grid-img img { transform: scale(1.06); }
.card-grid-texto { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.card-grid-texto h3 { font-size: 18px; line-height: 1.25; transition: color 0.2s; }
.card-grid:hover h3 { color: var(--rojo); }
.card-grid-texto p { font-size: 14px; color: var(--texto-2); }

.paginacion { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 30px; }
.paginacion a, .pag-actual { padding: 8px 14px; border-radius: 6px; background: var(--superficie); border: 1px solid var(--linea); font-weight: 600; font-size: 14px; }
.paginacion a:hover { border-color: var(--rojo); color: var(--rojo); }
.pag-actual { background: var(--rojo); color: #fff; border-color: var(--rojo); }

.vacio { text-align: center; padding: 60px 16px; }
.vacio h2 { font-size: 26px; margin-bottom: 10px; }
.vacio p { color: var(--texto-2); margin-bottom: 10px; }

/* ---------- página de nota ---------- */
.nota { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.nota-head { display: flex; flex-direction: column; gap: 14px; }
.nota-ruta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--texto-2); }
.nota h1 { font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; }
.nota-bajada { font-size: 20px; line-height: 1.5; color: var(--texto-2); font-weight: 500; }
.nota-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; color: var(--texto-2); padding: 12px 0; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.nota-meta time::before { content: "◷ "; }
.compartir { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--texto-2); }
.compartir > span { font-weight: 600; margin-right: 4px; }
.sh { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--linea); background: var(--superficie); color: var(--texto); font-weight: 600; font-size: 13px; cursor: pointer; transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s; }
.sh:hover { transform: translateY(-1px); color: #fff; }
.sh-fb:hover { background: #1877f2; border-color: #1877f2; }
.sh-wa:hover { background: #25d366; border-color: #25d366; }
.sh-x:hover { background: #000; border-color: #000; }
.sh-copiar:hover { background: var(--rojo); border-color: var(--rojo); }
.sh.copiado { background: var(--verde); border-color: var(--verde); color: #fff; }
.nota-figura { margin: 22px 0 0; border-radius: var(--radio); overflow: hidden; background: #1c1d21; box-shadow: var(--sombra); }
.nota-figura img { width: 100%; max-height: 620px; object-fit: cover; }
.nota-figura figcaption { padding: 8px 12px; font-size: 12px; color: var(--texto-2); background: var(--superficie); }
.nota-cuerpo { font-size: 18.5px; line-height: 1.75; display: flex; flex-direction: column; gap: 20px; margin-top: 6px; }
.nota-cuerpo p:first-child::first-letter { font-family: var(--fuente-logo); font-style: italic; font-weight: 800; font-size: 64px; float: left; line-height: 0.8; margin: 8px 10px 0 0; color: var(--rojo); }
.ad-en-texto { margin: 10px auto; }
.nota-cuidado { border-left: 4px solid var(--rojo); background: var(--superficie); padding: 12px 16px; font-size: 15px; border-radius: 0 8px 8px 0; color: var(--texto-2); }
.nota-fuentes { margin-top: 26px; padding: 12px 16px; background: var(--superficie); border-radius: 8px; font-size: 14px; color: var(--texto-2); border: 1px solid var(--linea); }
.nota-fuentes a { color: var(--texto); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.nota-col > .compartir { margin-top: 18px; }
.relacionadas { margin-top: 40px; }
.lateral { display: flex; flex-direction: column; gap: 26px; }
.lateral-bloque .fila-mini { grid-template-columns: 96px 1fr; border-bottom: 1px solid var(--linea); padding: 10px 0; }
.lateral-bloque .fila-mini:last-child { border-bottom: 0; }
.lateral-bloque .fila-mini-texto h4 { font-size: 15px; }
.lateral-fijo { position: sticky; top: 70px; }

/* ---------- buscador ---------- */
.buscador-form { display: flex; gap: 10px; margin-bottom: 20px; }
.buscador-form input { flex: 1; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--linea); background: var(--superficie); color: var(--texto); font-size: 17px; outline: none; }
.buscador-form input:focus { border-color: var(--rojo); }
.buscador-form button { padding: 0 26px; border-radius: 999px; border: 0; background: var(--rojo); color: #fff; font-weight: 700; cursor: pointer; }
.buscar-estado { color: var(--texto-2); margin-bottom: 16px; font-size: 14px; }
mark { background: rgba(225, 29, 42, 0.25); color: inherit; border-radius: 2px; padding: 0 2px; }

/* ---------- pie ---------- */
.footer { margin-top: 30px; background: var(--nav); color: #cfd4da; padding: 44px 0 24px; }
.footer-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; }
.footer-logo img { height: 64px; width: auto; }
.footer-marca p { margin: 12px 0 14px; max-width: 46ch; font-size: 14px; line-height: 1.6; }
.footer-redes { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-fb, .footer-ig { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; background: #1877f2; padding: 9px 14px; border-radius: 999px; font-size: 14px; transition: transform 0.2s, filter 0.2s; }
.footer-ig { background: linear-gradient(45deg, #f58529, #dd2a7b 55%, #8134af); }
.footer-fb:hover, .footer-ig:hover { transform: translateY(-1px); filter: brightness(1.08); }
.footer-col h4 { color: #fff; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer-col a:hover { color: #fff; }
.footer .ad-vacio { border-color: rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.04); color: #8b939c; }
.footer-legal { margin-top: 18px; font-size: 13px; color: #8b939c; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 18px; }

/* ---------- animación de entrada ---------- */
@media (prefers-reduced-motion: no-preference) {
  .card-fondo, .card-grid, .fila-mini, .destacado { animation: aparecer 0.5s ease both; }
  .hero-cuadros .card-fondo:nth-child(1) { animation-delay: 0.05s; }
  .hero-cuadros .card-fondo:nth-child(2) { animation-delay: 0.1s; }
  .hero-cuadros .card-fondo:nth-child(3) { animation-delay: 0.15s; }
  .hero-cuadros .card-fondo:nth-child(4) { animation-delay: 0.2s; }
}
@keyframes aparecer { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- pantallas medianas ---------- */
@media (max-width: 1024px) {
  .ad-cabecera { display: none; }
  .nota { grid-template-columns: 1fr; }
  .lateral { flex-direction: row; flex-wrap: wrap; }
  .lateral-fijo { position: static; }
  .grid-cards, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grande { min-height: 460px; }
  .card-cuadro { min-height: 223px; }
}

/* ---------- celular ---------- */
@media (max-width: 760px) {
  .topbar-der { display: none; }
  .topbar { font-size: 12px; }
  .clima-ciudad { display: none; }
  .topbar-izq { gap: 6px; }
  .logo-img img { height: 52px; }
  .mascota img { height: 60px; }
  .marca { gap: 12px; }
  .header-in { padding-top: 14px; padding-bottom: 14px; }
  .nav-in { flex-wrap: wrap; align-items: center; }
  .nav-burger { display: block; order: 1; }
  .nav-der { order: 2; margin-left: auto; }
  .buscar input { width: 110px; }
  .menu { order: 3; flex-basis: 100%; flex-direction: column; display: none; padding-bottom: 8px; }
  .menu.abierto { display: flex; }
  .menu a { height: 46px; padding: 0 12px; }
  .menu a.inicio { padding: 0 12px; }
  .main { padding-top: 16px; }
  .hero, .hero-cuadros, .destacado, .portada, .grid-minis, .footer-in { grid-template-columns: 1fr; }
  .card-grande { min-height: 380px; }
  .card-grande .card-fondo-texto h3 { font-size: 26px; }
  .card-cuadro { min-height: 230px; }
  .card-alta { min-height: 440px; }
  .card-ancha { min-height: 320px; }
  .card-ancha .card-fondo-texto h3, .card-alta .card-fondo-texto h3 { font-size: 24px; }
  .bloque-destacado { padding: 16px; }
  .destacado-texto h3 { font-size: 24px; }
  .grid-cards, .grid-4 { grid-template-columns: 1fr; }
  .nota h1 { font-size: 29px; }
  .nota-bajada { font-size: 17px; }
  .nota-cuerpo { font-size: 17px; }
  .sh b { display: none; }
  .sh { padding: 8px 10px; }
  .lateral { flex-direction: column; }
  .ad-lateral_2 { min-height: 250px; }
}

/* ---------- celular pequeño: la barra superior no cabe con la fecha ---------- */
@media (max-width: 480px) {
  .fecha-hoy, .fecha-hoy + .sep { display: none; }
  .logo-img img { height: 46px; }
  .mascota img { height: 54px; }
}

/* ---------- bloque «Síguenos» ---------- */
.sigue { display: grid; grid-template-columns: 1fr auto; gap: 18px 28px; align-items: center; margin-top: 38px; padding: 24px 28px; border-radius: var(--radio); background: linear-gradient(135deg, var(--superficie), var(--superficie-2)); border: 1px solid var(--linea); box-shadow: var(--sombra); }
.sigue-texto h2 { font-size: 24px; }
.sigue-texto p { margin-top: 4px; color: var(--texto-2); font-size: 15px; }
.sigue-botones { display: flex; flex-wrap: wrap; gap: 12px; }
.sigue-btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px 12px 16px; border-radius: 14px; color: #fff; min-width: 210px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25); transition: transform 0.2s, box-shadow 0.2s, filter 0.2s; }
.sigue-btn svg { width: 26px; height: 26px; flex-shrink: 0; }
.sigue-btn span { display: flex; flex-direction: column; line-height: 1.15; }
.sigue-btn b { font-size: 16px; font-weight: 700; }
.sigue-btn small { font-size: 12.5px; opacity: 0.88; }
.sigue-btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32); filter: brightness(1.06); }
.sigue-fb { background: linear-gradient(135deg, #1e8cff, #1456c9); }
.sigue-ig { background: linear-gradient(45deg, #f9a03f, #e1306c 50%, #8a3ab9 90%); }
.sigue-lateral { grid-template-columns: 1fr; margin-top: 0; padding: 20px; }
.sigue-lateral .sigue-texto h2 { font-size: 20px; }
.sigue-lateral .sigue-botones { flex-direction: column; }
.sigue-lateral .sigue-btn { min-width: 0; width: 100%; }
@media (max-width: 760px) {
  .sigue { grid-template-columns: 1fr; padding: 20px; }
  .sigue-btn { flex: 1; min-width: 0; }
}
