/* ==========================================================================
   Chistemanía · capa de estilo sobre la plantilla ViralFeed
   Paleta del logo (azul #1F77B7) + colores de categorías, estilo "cómic":
   bordes de 2px en tinta y sombras desplazadas.
   ========================================================================== */
/* Fuentes variables (Google Fonts, licencia OFL) alojadas en la propia web: no se pide nada a Google. */
@font-face {
  font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url('../fonts/Texto/bricolage-v9-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url('../fonts/Texto/bricolage-v9-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/Texto/figtree-v9-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/Texto/figtree-v9-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --azul: #1F77B7;
  --azul-oscuro: #1A639A;
  --azul-profundo: #1D577F;
  --marino: #163247;
  --naranja: #FF9F43;
  --amarillo: #FFD23F;
  --rosa: #FF7AA2;
  --verde: #3DD68C;
  --cielo: #7CC8F8;
  --lila: #B69CFF;
  --tinta: #16161D;
  --fondo: #EAF4FD;
  --papel: #FFFFFF;
  --texto-suave: #4A5563;
  --borde: 2px solid var(--tinta);
  --sombra: 4px 4px 0 var(--tinta);
  --sombra-s: 3px 3px 0 var(--tinta);
  --radio: 14px;
  --titulos: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --cuerpo: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--fondo);
  color: var(--tinta);
  font-family: var(--cuerpo);
  font-size: 16px;
  line-height: 1.55;
}
h1, h2, h3, h4, h5, h6, .widget-title, .cs-site-brand { font-family: var(--titulos); }
a { color: var(--azul); }
a:hover { color: var(--azul-oscuro); }
::selection { background: var(--amarillo); color: var(--tinta); }
:focus-visible { outline: 3px solid var(--naranja); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Logo ---------- */
.logo { font-family: var(--titulos); font-weight: 800; letter-spacing: -1px; text-transform: none; }
.logo .l1 { color: var(--tinta); }
.logo .l2 { color: var(--azul); }
.logo .l3 { color: var(--amarillo); }

/* ---------- Header ---------- */
#cs-header { background: transparent; margin-bottom: 30px; }
#cs-header .cs-header-menu { background: var(--papel); border-bottom: var(--borde); }
#cs-header .cs-header-menu-sticky.active { box-shadow: 0 4px 0 var(--tinta); }
#cs-header.sticky-style-2 .cs-header-menu-fill .cs-site-brand h2 { font-size: 28px; }
#cs-header.sticky-style-2 .cs-header-menu-fill .cs-site-brand h2 a { color: var(--tinta); }

.cs-posts-filter a {
  border: var(--borde); border-radius: 50%; background: var(--fondo);
  width: 38px; height: 38px; margin-right: 6px; color: var(--tinta) !important;
  display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
}
.cs-posts-filter a:hover { background: var(--amarillo); }
.cs-posts-filter a img { width: 100%; }
.cs-posts-filter a:after { font-family: var(--cuerpo); border-radius: 6px; }

.cs-primary-nav > nav > ul > li > a {
  font-family: var(--titulos); font-weight: 600; text-transform: none; font-size: 16px; color: var(--tinta);
}
.cs-primary-nav > nav > ul > li > a:hover,
.cs-primary-nav > nav > ul > li.current > a { color: var(--azul); }
.cs-primary-nav ul.sub-menu {
  border: var(--borde); border-radius: 12px; box-shadow: var(--sombra); background: var(--papel);
}

/* Temas: mega menú con los grupos en columnas. El mismo marcado se clona en el menú lateral
   del móvil (.cs-offcanvas-nav), donde sigue funcionando como acordeón. */
.cs-header-menu .cs-container { position: relative; }
.cs-primary-nav > nav > ul > li.mega { position: static; }
.cs-primary-nav li.mega > ul.sub-menu {
  left: 50%; transform: translateX(-50%); margin-left: 0;
  width: min(1100px, calc(100vw - 32px));
  columns: 160px 6; column-gap: 24px; padding: 20px 24px 6px;
}
.cs-primary-nav li.mega > ul.sub-menu > li { border-top: 0; padding-bottom: 12px; }
.cs-primary-nav li.mega ul.sub-menu ul.sub-menu li { break-inside: avoid; }
.cs-primary-nav li.mega > ul.sub-menu > li > a {
  font-family: var(--titulos); font-weight: 700; font-size: 15px; color: var(--tinta);
  border-left: 4px solid var(--c); padding: 2px 0 2px 9px; margin-bottom: 4px; break-after: avoid;
}
.cs-primary-nav li.mega > ul.sub-menu > li > a:after { display: none; }
.cs-primary-nav li.mega ul.sub-menu ul.sub-menu {
  display: block; position: static; margin: 0; padding: 0 0 0 13px; min-width: 0;
  border: 0; border-radius: 0; box-shadow: none; background: none;
}
.cs-primary-nav li.mega ul.sub-menu ul.sub-menu li { border-top: 0; }
.cs-primary-nav li.mega ul.sub-menu ul.sub-menu li a { font-size: 14px; line-height: 1.3; padding: 2px 0; }
.cs-primary-nav ul.sub-menu li a { font-size: 15px; text-transform: none; }
.cs-primary-nav ul.sub-menu li a .n { color: #8a94a3; font-size: 12px; margin-left: 4px; }

.cs-toggle-search { color: var(--tinta); }

#cs-header.cs-header-style-1 .cs-header-main {
  background: var(--azul);
  background-image:
    radial-gradient(circle at 12% 30%, rgba(255,255,255,.14) 0 60px, transparent 61px),
    radial-gradient(circle at 92% 80%, rgba(255,210,63,.22) 0 90px, transparent 91px);
  border-bottom: var(--borde);
}
#cs-header.cs-header-style-1 .cs-site-brand h2 { font-size: 52px; letter-spacing: -2px; }
#cs-header.cs-header-style-1 .cs-header-main .logo .l1 { color: #fff; }
#cs-header.cs-header-style-1 .cs-header-main .logo .l2 { color: var(--amarillo); }
#cs-header.cs-header-style-1 .cs-site-brand h3 { color: #DCEEFC; font-family: var(--cuerpo); font-size: 15px; margin-top: 6px; text-transform: none; }
.cs-site-reactions ul li a img {
  background: #fff; border: var(--borde); border-radius: 50%; padding: 3px; box-shadow: var(--sombra-s);
}
#cs-header.cs-header-style-1 .cs-site-reactions ul li a span { font-family: var(--titulos); font-weight: 600; text-transform: none; font-size: 13px; }
.cs-toggle-nav { color: #fff; font-size: 26px; }

/* ---------- Tarjetas ---------- */
.cs-type-post .cs-post-image img,
.cs-grid-block-layout .cs-type-post,
.cs-post-single-media img {
  border: var(--borde); border-radius: var(--radio);
}
.cs-type-post .cs-post-image img { aspect-ratio: 3 / 2; object-fit: cover; background: var(--cielo); display: block; }
.cs-type-post .cs-post-image a:hover img { opacity: 1; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--tinta); }
.cs-type-post .cs-post-image img { box-shadow: var(--sombra); }
.cs-type-post .cs-post-image .cs-post-icons { top: -12px; left: 12px; }
.cs-type-post .cs-post-image .cs-post-icons a img {
  aspect-ratio: 1; width: 38px; background: #fff; border: var(--borde); border-radius: 50%; padding: 2px; box-shadow: var(--sombra-s);
}
.cs-type-post .cs-post-image .cs-post-views {
  background: var(--tinta); border-radius: 999px; font-size: 11px; font-weight: 700; padding: 6px 10px; bottom: 12px; left: 12px;
}
.cs-post-categories a, .cs-type-post.sticky .cs-post-categories a {
  font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 4px 10px; border: var(--borde);
  border-radius: 999px; background: var(--c, var(--amarillo)); color: var(--tinta);
}
.cs-post-categories a:hover { background: var(--tinta); color: #fff; }
.cs-type-post .cs-post-body h3 { font-weight: 800; letter-spacing: -.3px; line-height: 1.2; }
.cs-type-post .cs-post-body h3 a { color: var(--tinta); }
.cs-type-post .cs-post-body h3 a:hover { color: var(--azul); }
.cs-type-post .cs-post-body p { color: var(--texto-suave); }
.cs-post-meta .cs-post-avatar span, .globo-pie .cs-post-avatar span {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--c, var(--cielo)); border: var(--borde); font-weight: 800; font-size: 13px; color: var(--tinta);
}
.cs-type-post.sticky { background: var(--papel); border: var(--borde); border-radius: var(--radio); box-shadow: var(--sombra); padding: 14px; }

/* Bloque de portada con imagen de fondo */
.cs-grid-block-layout .cs-type-post { box-shadow: var(--sombra); overflow: hidden; background-size: cover; background-position: center; }
.cs-grid-block-layout .cs-type-post .cs-post-body { background: linear-gradient(transparent, rgba(22,22,29,.85)); }

/* Carrusel */
.cs-posts-carousel .swiper-button-prev,
.cs-posts-carousel .swiper-button-next {
  background-color: var(--amarillo); border: var(--borde); border-radius: 50%; box-shadow: var(--sombra-s); color: var(--tinta);
}

/* Portada: título y presentación */
.intro-portada { margin: 0 0 28px; }
.intro-portada h1 { font-size: 34px; font-weight: 800; letter-spacing: -1px; line-height: 1.15; margin: 0 0 8px; }
.intro-portada p { margin: 0; font-size: 17px; }

/* Chiste del día */
.chiste-dia {
  background: var(--amarillo); border: var(--borde); border-radius: 22px; box-shadow: 6px 6px 0 var(--tinta);
  padding: 26px 28px; margin: 0 0 50px; position: relative;
}
/* Rabito del bocadillo */
.chiste-dia:after {
  content: ''; position: absolute; left: 44px; bottom: -12px; width: 20px; height: 20px; background: var(--amarillo);
  border-right: var(--borde); border-bottom: var(--borde); transform: rotate(45deg);
}
.chiste-dia .etiqueta {
  display: inline-block; background: var(--tinta); color: #fff; font-weight: 800; font-size: 12px;
  letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}
.chiste-dia blockquote { margin: 0; padding: 0; border: 0; quotes: none; font-family: var(--titulos); font-size: 22px; line-height: 1.4; font-weight: 600; white-space: pre-line; position: relative; z-index: 1; }
.chiste-dia .pie { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; position: relative; z-index: 1; }

/* Botones */
.boton, .cs-main-content .boton {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--titulos); font-weight: 700; font-size: 15px;
  padding: 10px 18px; border: var(--borde); border-radius: 999px; background: var(--papel); color: var(--tinta);
  box-shadow: var(--sombra-s); cursor: pointer; text-decoration: none; transition: transform .1s, box-shadow .1s;
}
.boton:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--tinta); color: var(--tinta); }
.boton:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--tinta); }
.boton.azul { background: var(--azul); color: #fff; }
.boton.amarillo { background: var(--amarillo); }
.boton.naranja { background: var(--naranja); }

/* ---------- Títulos de sección y widgets ---------- */
.widget-title, h4.cs-style-title { text-align: left; }
.widget-title span, h4.cs-style-title span {
  font-family: var(--titulos); font-weight: 800; font-size: 17px; text-transform: none; letter-spacing: 0;
  background: var(--amarillo); border: var(--borde); border-radius: 999px; box-shadow: var(--sombra-s); padding: 6px 14px;
}
.widget-title span:after, .widget-title:before, .widget-title:after, h4.cs-style-title span:after { display: none !important; }
.titulo-seccion {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 24px;
}
.titulo-seccion h2 { font-size: 26px; font-weight: 800; margin: 0; letter-spacing: -.5px; }
.titulo-seccion h2 i { color: var(--azul); }
.titulo-seccion a { font-weight: 700; }

.widget {
  background: var(--papel); border: var(--borde); border-radius: var(--radio); box-shadow: var(--sombra);
  padding: 22px 20px; margin-bottom: 36px;
}
.widget .widget-title { margin-top: -38px; margin-bottom: 18px; }
.widget_post_list .cs-type-post { margin-bottom: 18px; }
.widget_post_list .cs-type-post:last-child { margin-bottom: 0; }
.widget_email_subscribe input[type=email] {
  width: 100%; border: var(--borde); border-radius: 10px; padding: 10px 12px; font: inherit; margin-bottom: 10px;
}
.widget_email_subscribe .boton { width: 100%; justify-content: center; }
.widget_banner_300x250 .hueco-anuncio,
.hueco-anuncio {
  display: grid; place-items: center; min-height: 250px; border: 2px dashed #9fb4c7; border-radius: 10px;
  color: #6b7c8c; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; background: #f5f9fd;
}
.hueco-anuncio.horizontal { min-height: 100px; margin: 0 0 40px; }

.lista-temas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lista-temas a, .tagcloud a {
  display: inline-block; border: var(--borde); border-radius: 999px; padding: 5px 12px; font-size: 14px !important;
  font-weight: 600; background: var(--c, var(--papel)); color: var(--tinta); margin: 0 !important; text-transform: none;
}
.lista-temas a:hover, .tagcloud a:hover { background: var(--tinta); color: #fff; }
.tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Página de chiste ---------- */
.cs-post-single {
  background: var(--papel); border: var(--borde); border-radius: 22px; box-shadow: 6px 6px 0 var(--tinta); padding: 30px;
}
.cs-post-single-header h1 { font-weight: 800; letter-spacing: -1px; line-height: 1.15; }
.cs-post-single-content.texto-chiste {
  font-family: var(--titulos); font-size: 22px; line-height: 1.55; font-weight: 600; white-space: pre-line;
  background: var(--fondo); border: var(--borde); border-radius: 16px; padding: 24px 26px; margin: 24px 0;
}
.cs-post-single-content.globo-grande {
  position: relative; background: var(--amarillo); border-radius: 22px; box-shadow: 5px 5px 0 var(--tinta);
  font-size: 25px; line-height: 1.4; letter-spacing: -.01em; padding: 28px 30px; margin: 26px 0 38px;
}
.cs-post-single-content.globo-grande:after {
  content: ''; position: absolute; left: 44px; bottom: -12px; width: 20px; height: 20px; background: var(--amarillo);
  border-right: var(--borde); border-bottom: var(--borde); transform: rotate(45deg);
}

/* ---------- Chistes en bocadillo (tarjetas) ---------- */
.chiste-globo { display: flex; flex-direction: column; }
.chiste-globo .globo {
  position: relative; display: block; flex: 1; background: var(--papel); color: var(--tinta); text-decoration: none;
  border: var(--borde); border-radius: 20px; box-shadow: 5px 5px 0 var(--c, var(--cielo)); padding: 20px 22px 18px;
  transition: transform .1s, box-shadow .1s;
}
.chiste-globo .globo:after {
  content: ''; position: absolute; left: 30px; bottom: -11px; width: 18px; height: 18px; background: var(--papel);
  border-right: var(--borde); border-bottom: var(--borde); transform: rotate(45deg);
}
.chiste-globo .globo:hover, .chiste-globo .globo:focus-visible { color: var(--tinta); transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--c, var(--cielo)); }
.chiste-globo .globo p {
  margin: 0; font-size: 17px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 9; line-clamp: 9; overflow: hidden;
}
.chiste-globo .globo .seguir { display: inline-block; margin-top: 8px; font-weight: 700; font-size: 14px; color: var(--azul-oscuro); }
.chiste-globo .globo-pie { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 18px; padding-left: 14px; }
.chiste-globo .globo-pie .cs-post-avatar { margin: 0; flex: none; line-height: 0; }
.chiste-globo .globo-pie .cs-post-avatar span { width: 34px; height: 34px; font-size: 14px; line-height: 1; }
.chiste-globo .globo-pie .quien { display: flex; flex-direction: column; line-height: 1.2; font-size: 14px; min-width: 0; margin-right: auto; }
.chiste-globo .globo-pie .quien span { color: var(--texto-suave); font-size: 12.5px; }
.chiste-globo .globo-pie .cs-post-categories { margin: 0; }
.chiste-globo .globo-pie .votos { font-weight: 700; font-size: 14px; }
.cs-post-single-share a {
  border: var(--borde); border-radius: 999px; box-shadow: var(--sombra-s); font-weight: 700;
}
.cs-post-single-share a.whatsapp { background: #25D366; color: #fff; }
.cs-post-single-tags a { border: var(--borde); border-radius: 999px; padding: 3px 10px; background: var(--c, var(--amarillo)); color: var(--tinta); font-weight: 700; }
.cs-post-single-controls a { font-family: var(--titulos); font-weight: 700; }
.cs-reaction-to-post ul li {
  border: var(--borde); border-radius: 14px; background: var(--papel); box-shadow: var(--sombra-s); cursor: pointer;
  transition: transform .1s;
}
.cs-reaction-to-post ul li:hover { transform: translateY(-3px); }
.cs-reaction-to-post ul li.active { background: var(--amarillo); }
.cs-reaction-to-post ul li span { font-weight: 700; text-transform: none; }
.aviso-adultos {
  background: var(--marino); color: #fff; border: var(--borde); border-radius: 14px; padding: 14px 18px; margin-bottom: 30px;
}
.aviso-adultos a { color: var(--amarillo); }

/* ---------- Fotos ---------- */
.foto-single img { width: 100%; height: auto; border: var(--borde); border-radius: 16px; box-shadow: var(--sombra); background: #fff; }
.cs-type-post.es-foto .cs-post-image img { aspect-ratio: 4 / 3; object-position: center top; }
.cs-type-post.es-foto .cs-post-image:before {
  content: '\f030'; font-family: FontAwesome; position: absolute; right: 12px; bottom: 12px; z-index: 1;
  width: 34px; height: 34px; display: grid; place-items: center; background: var(--rosa); border: var(--borde);
  border-radius: 50%; font-size: 14px; color: var(--tinta);
}
.rejilla { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 30px; }
.rejilla.dos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rejilla .cs-type-post { margin-bottom: 44px; }

/* ---------- Paginación ---------- */
ul.page-numbers { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
ul.page-numbers li span, ul.page-numbers li a {
  display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px;
  border: var(--borde); border-radius: 12px; background: var(--papel); font-weight: 700; color: var(--tinta); box-shadow: var(--sombra-s);
}
ul.page-numbers li span.current { background: var(--azul); color: #fff; }

/* ---------- Formularios ---------- */
.formulario label { display: block; font-weight: 700; margin: 14px 0 6px; }
.formulario input, .formulario textarea, .formulario select, .buscador input {
  width: 100%; border: var(--borde); border-radius: 12px; padding: 12px 14px; font: inherit; background: #fff;
}
.formulario textarea { min-height: 180px; resize: vertical; }
.formulario .nota { font-size: 14px; color: var(--texto-suave); }
.mensaje { border: var(--borde); border-radius: 12px; padding: 12px 16px; margin: 16px 0; font-weight: 600; }
.mensaje.ok { background: #d9f7e8; }
.mensaje.error { background: #ffe1e8; }
.buscador { display: flex; gap: 10px; }
.buscador .boton { flex: none; }
#cs-search-popup .cs-search-form input { border-bottom-color: var(--azul); font-family: var(--titulos); }

/* Cabecera de categoría / página */
.cabecera-pagina {
  background: var(--c, var(--azul)); border: var(--borde); border-radius: 22px; box-shadow: 6px 6px 0 var(--tinta);
  padding: 26px 30px; margin-bottom: 40px; color: var(--tinta);
}
.cabecera-pagina.oscura { color: #fff; }
.cabecera-pagina h1 { margin: 0 0 6px; font-size: 38px; font-weight: 800; letter-spacing: -1px; color: inherit; }
.cabecera-pagina p { margin: 0; font-size: 17px; opacity: .9; }
.migas { font-size: 14px; margin-bottom: 8px; }
.migas a { color: inherit; text-decoration: underline; }

.texto-legal { background: var(--papel); border: var(--borde); border-radius: 18px; padding: 28px; }

/* Grupos en /categorias/ */
.grupo-temas { margin-bottom: 34px; }
.grupo-temas h2 { font-size: 21px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.grupo-temas h2:before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: var(--borde); background: var(--c); }

/* ---------- Offcanvas ---------- */
.cs-offcanvas-wrap { background: var(--marino); }
.cs-offcanvas-wrap a, .cs-offcanvas-wrap .close { color: #fff; }
.cs-offcanvas-nav ul li a { font-family: var(--titulos); font-weight: 600; text-transform: none; }
/* style.css pinta en negro los nombres de los temas destacados (pensado para fondo blanco) */
.cs-offcanvas-reactions ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 8px; margin: 20px 16px; }
.cs-offcanvas-reactions ul li { margin: 0; }
.cs-offcanvas-reactions ul li a { color: #fff; padding: 6px 2px; border-radius: 12px; }
.cs-offcanvas-reactions ul li a:hover, .cs-offcanvas-reactions ul li a:focus-visible { background: rgba(255, 255, 255, .1); }
.cs-offcanvas-reactions ul li a img { margin-bottom: 7px; }
.cs-offcanvas-reactions ul li a span { font-size: 10.5px; font-weight: 600; line-height: 1.25; hyphens: auto; }
.cs-offcanvas-nav nav ul li { border-top-color: rgba(255, 255, 255, .18); }
.cs-offcanvas-nav .sub-menu a .n { color: #9FC3DE; font-size: 12px; font-weight: 500; margin-left: 8px; }
.cs-offcanvas-nav nav ul li.menu-item-has-children i { color: #fff; width: 44px; height: 44px; line-height: 44px; top: -6px; }

/* ---------- Footer ---------- */
#cs-footer { background: var(--marino); color: #CFE3F2; margin-top: 30px; position: relative; }
#cs-footer:before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 8px;
  background: linear-gradient(90deg, var(--rosa) 0 16.66%, var(--naranja) 0 33.33%, var(--amarillo) 0 50%, var(--verde) 0 66.66%, var(--cielo) 0 83.33%, var(--lila) 0);
}
#cs-footer .widget { background: transparent; border: 0; box-shadow: none; padding: 0; }
#cs-footer .widget .widget-title { margin-top: 0; }
#cs-footer .widget-title span { box-shadow: none; }
#cs-footer a { color: #fff; }
#cs-footer .tagcloud a { color: var(--tinta); }
#cs-footer .logo .l1 { color: #fff; }
#cs-footer .logo .l2 { color: var(--amarillo); }
.cs-coypright-area { border-top: 1px solid rgba(255,255,255,.15); color: #9DB9CF; font-size: 14px; }
.cs-coypright-area a { color: #fff; }

/* ---------- Barra inferior móvil ---------- */
.nav-movil { display: none; }
@media (max-width: 799px) {
  body { padding-bottom: 74px; }
  .nav-movil {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 50;
    background: var(--papel); border: var(--borde); border-radius: 18px; box-shadow: var(--sombra);
  }
  .nav-movil a {
    display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; color: var(--tinta);
    font-size: 12px; font-weight: 700; text-decoration: none;
  }
  .nav-movil a i { font-size: 19px; }
  .nav-movil a.activo { color: var(--azul); }
  #cs-header.cs-header-style-1 .cs-site-brand h2 { font-size: 36px; }
  .cs-container { padding-left: 16px; padding-right: 16px; }
  .rejilla, .rejilla.dos { grid-template-columns: minmax(0, 1fr); }
  .chiste-dia { padding: 20px; }
  .intro-portada h1 { font-size: 26px; }
  .chiste-dia blockquote, .cs-post-single-content.texto-chiste { font-size: 19px; }
  .cs-post-single-content.globo-grande { font-size: 21px; padding: 22px; }
  .cs-post-single { padding: 20px; }
  .cabecera-pagina { padding: 20px; }
  .cabecera-pagina h1 { font-size: 28px; }
  .titulo-seccion h2 { font-size: 22px; }
}
@media (min-width: 800px) and (max-width: 1039px) {
  .rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { transition: none !important; animation: none !important; }
}
@media (max-height: 760px) {
  .cs-primary-nav li.mega ul.sub-menu ul.sub-menu li a { font-size: 13px; padding: 1px 0; }
  .cs-primary-nav li.mega > ul.sub-menu > li { padding-bottom: 8px; }
}

/* ---------- Aviso de cookies (components/Cookies.astro) ----------
   Aceptar y Rechazar con el mismo peso visual, como pide la guía de la AEPD. */
.cookies-aviso {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 760px; margin: 0 auto;
  background: var(--papel); border: var(--borde); border-radius: 18px; box-shadow: var(--sombra);
  padding: 18px 20px; color: var(--tinta); font-size: 15px; line-height: 1.5;
}
.cookies-aviso[hidden] { display: none; }
.cookies-aviso p { margin: 0 0 12px; }
.cookies-aviso a { color: var(--azul); font-weight: 700; }
.cookies-titulo { font-family: var(--titulos); font-weight: 800; font-size: 19px; }
.cookies-botones { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cookies-botones .boton { justify-content: center; min-width: 120px; }
.enlace-cookies {
  background: none; border: 0; padding: 8px 6px; font: inherit; font-weight: 700; color: var(--azul);
  text-decoration: underline; cursor: pointer;
}
.cookies-config {
  width: calc(100% - 32px); max-width: 580px; max-height: calc(100vh - 32px); overflow: auto;
  border: var(--borde); border-radius: 18px; box-shadow: var(--sombra); padding: 26px 24px 22px;
  background: var(--papel); color: var(--tinta); font-size: 15px; line-height: 1.5;
}
.cookies-config::backdrop { background: rgba(22, 22, 29, .55); }
.cookies-config h2 { font-family: var(--titulos); font-size: 24px; font-weight: 800; margin: 0 36px 8px 0; }
.cookies-config > p { margin: 0 0 4px; }
.cookies-cerrar {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: var(--borde); border-radius: 50%;
  background: var(--papel); color: var(--tinta); font-size: 16px; cursor: pointer;
}
.cookies-categoria { border: var(--borde); border-radius: var(--radio); padding: 12px 14px; margin: 12px 0; }
.cookies-categoria label { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; cursor: pointer; }
.cookies-categoria input { width: 20px; height: 20px; margin: 0; accent-color: var(--azul); cursor: pointer; }
.cookies-categoria input:disabled { cursor: default; }
.cookies-categoria .siempre { margin-left: auto; font-size: 13px; color: var(--texto-suave); }
.cookies-categoria p { margin: 6px 0 0; font-size: 14px; color: var(--texto-suave); }
.cookies-config .cookies-botones { margin-top: 16px; }
.cookies-config .cookies-botones .boton { flex: 1 1 150px; }
.tabla-cookies { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0 18px; }
.tabla-cookies th, .tabla-cookies td { border: 1px solid #c9d6e2; padding: 8px 10px; text-align: left; vertical-align: top; }
.tabla-cookies th { background: var(--fondo); }
.texto-legal .boton { margin: 4px 0 12px; }
@media (max-width: 799px) {
  .cookies-aviso { left: 10px; right: 10px; bottom: 84px; padding: 16px; font-size: 14px; }
  .cookies-aviso .cookies-botones .boton { flex: 1 1 40%; min-width: 0; }
  .tabla-cookies { display: block; overflow-x: auto; }
}
