/* ============================================================
   GoofKids — Kids' TV guide · Funny moments & streaming
   Palette: Electric purple + Sunny yellow + Sky cyan
   Fonts: Nunito (headers) + Inter (body)
   ============================================================ */

@import url('https://fonts.bunny.net/css?family=nunito:400,600,700,800,900&family=inter:400,500,600,700&display=swap');

:root {
  --purple:    #7C3AED;
  --purple-dk: #5B21B6;
  --purple-lt: #EDE9FE;
  --yellow:    #F59E0B;
  --yellow-lt: #FEF3C7;
  --cyan:      #06B6D4;
  --cyan-lt:   #CFFAFE;
  --green:     #10B981;
  --green-lt:  #D1FAE5;
  --pink:      #EC4899;
  --pink-lt:   #FCE7F3;
  --bg:        #FAFAFA;
  --bg-card:   #FFFFFF;
  --bg-soft:   #F5F3FF;
  --text:      #1E1B4B;
  --slate:     #4B5563;
  --muted:     #9CA3AF;
  --border:    #E5E7EB;
  --border-lt: #F3F4F6;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 4px rgba(124,58,237,.08);
  --shadow:    0 6px 24px rgba(124,58,237,.12);
  --shadow-lg: 0 12px 40px rgba(124,58,237,.18);
  --max-w:     1240px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1,h2,h3,h4 { font-family: 'Nunito', sans-serif; line-height: 1.2; color: var(--text); }

/* ── TOP BAR ── */
.barra-top {
  background: var(--purple-dk);
  color: rgba(255,255,255,.65);
  font-size: 11.5px;
  font-family: 'Inter', sans-serif;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.barra-top-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 7px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.barra-top-fecha { font-weight: 600; letter-spacing: .01em; color: rgba(255,255,255,.8); }
.barra-top-links { display: flex; align-items: center; gap: 10px; }
.barra-top-links a { color: rgba(255,255,255,.55); transition: color .15s; }
.barra-top-links a:hover { color: var(--yellow); }
.barra-top-links span { color: rgba(255,255,255,.18); }

/* ── SITE HEADER ── */
.site-header {
  background: var(--purple);
  box-shadow: 0 2px 16px rgba(124,58,237,.4);
}
.cabecera-marca {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 70px;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--yellow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}
.logo-text {
  font-family: 'Nunito', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.02em;
}
.logo-text em { color: var(--yellow); font-style: normal; }

/* ── NAV ── */
.nav-principal { display: flex; align-items: center; gap: 4px; }
.nav-principal a {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  padding: 7px 14px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.nav-principal a:hover,
.nav-principal a.activo {
  background: rgba(255,255,255,.15);
  color: #fff;
}
.nav-buscar { display: flex; align-items: center; gap: 10px; }
.btn-buscar {
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: background .15s;
}
.btn-buscar:hover { background: rgba(255,255,255,.25); }

/* ── CATEGORY NAV ── */
.nav-categorias {
  background: #fff;
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.nav-cats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-cats-inner::-webkit-scrollbar { display: none; }
.nav-cat-link {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  padding: 12px 16px;
  color: var(--slate);
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-cat-link:hover { color: var(--purple); border-bottom-color: var(--purple); }
.nav-cat-link.activo { color: var(--purple); border-bottom-color: var(--purple); }

/* ── WRAPPER ── */
.contenido-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HERO SECTION ── */
.hero-section {
  background: linear-gradient(135deg, var(--purple-dk) 0%, var(--purple) 50%, var(--cyan) 100%);
  padding: 60px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,158,11,.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(16,185,129,.2) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--yellow);
  color: var(--purple-dk);
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.hero-h1 {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 14px;
}
.hero-h1 em { color: var(--yellow); font-style: normal; }
.hero-meta {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.hero-meta .sep { color: rgba(255,255,255,.3); }
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--purple-dk);
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 50px;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 16px rgba(245,158,11,.4);
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(245,158,11,.5); }
.hero-img-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: var(--purple-dk);
}
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── CARDS GRID ── */
.section-titulo {
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.section-titulo::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Nunito', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.label-purple { background: var(--purple-lt); color: var(--purple); }
.label-yellow { background: var(--yellow-lt); color: #B45309; }
.label-cyan   { background: var(--cyan-lt); color: #0E7490; }
.label-green  { background: var(--green-lt); color: #065F46; }
.label-pink   { background: var(--pink-lt); color: #9D174D; }

.grid-articulos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tarjeta {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
}
.tarjeta:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--purple-lt);
}
.tarjeta-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--purple-lt);
}
.tarjeta-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.tarjeta:hover .tarjeta-img img { transform: scale(1.05); }
.tarjeta-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tarjeta-titulo {
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 8px;
  transition: color .15s;
}
.tarjeta:hover .tarjeta-titulo { color: var(--purple); }
.tarjeta-extracto {
  font-size: 13.5px;
  color: var(--slate);
  line-height: 1.55;
  margin-bottom: 14px;
  flex: 1;
}
.tarjeta-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border-lt);
  padding-top: 12px;
  margin-top: auto;
}
.tarjeta-footer .coments { color: var(--purple); font-weight: 700; font-size: 11px; }

/* ── SIDEBAR ── */
.layout-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.sidebar-box {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
}
.sidebar-box-head {
  background: var(--purple);
  padding: 10px 16px;
}
.sidebar-box-head span {
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
}
.sidebar-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-lt);
  text-decoration: none;
  transition: background .15s;
}
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item:hover { background: var(--bg-soft); }
.sidebar-num {
  font-family: 'Nunito', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  flex-shrink: 0;
  width: 26px;
  text-align: center;
}
.sidebar-titulo {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}
.sidebar-titulo:hover { color: var(--purple); }
.sidebar-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 3px;
}
.sidebar-coments {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}

/* ── ARTICLE ── */
.layout-articulo {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
  padding: 32px 0 64px;
}
.articulo-principal { min-width: 0; }
.articulo-h1 {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 14px;
}
.articulo-firma {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.articulo-firma img { border-radius: 50%; }
.articulo-firma .sep { color: var(--border); }
.articulo-foto-hero {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.articulo-principal p {
  font-size: 16px;
  color: var(--slate);
  line-height: 1.8;
  margin-bottom: 20px;
}
.articulo-h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  margin: 36px 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.num-seccion {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--purple);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 900;
  border-radius: 50%;
  flex-shrink: 0;
}
blockquote {
  border-left: 4px solid var(--yellow);
  background: var(--yellow-lt);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--slate);
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.65;
}

/* ── SHOW CARD (in article) ── */
.tarjeta-show {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--bg-soft);
  border: 1.5px solid var(--purple-lt);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin: 16px 0;
}
.ts-num {
  width: 44px;
  height: 44px;
  background: var(--purple);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 20px;
  font-weight: 900;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ts-titulo {
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}
.ts-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── WHERE TO WATCH BOX ── */
.watch-box {
  background: var(--bg-card);
  border-left: 4px solid var(--cyan);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 16px 20px;
  margin: 22px 0;
  font-size: 14px;
  color: var(--slate);
  box-shadow: var(--shadow-sm);
}
.watch-box .pub-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 6px;
  margin-bottom: 6px;
}
.watch-box strong {
  color: var(--text);
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--cyan);
}
.watch-box a { color: var(--purple); font-weight: 700; }
.watch-box a:hover { text-decoration: underline; }

/* ── STREAMING FINAL BOX ── */
.streaming-final {
  margin: 32px 0 24px;
  padding: 24px;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--purple-lt);
}
.streaming-final h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--purple);
  margin: 0 0 14px;
}
.streaming-final ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.streaming-final li { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.streaming-final li span { color: var(--slate); font-size: 13px; }
.streaming-final li a { color: var(--purple); font-weight: 700; text-decoration: none; white-space: nowrap; }
.streaming-final li a:hover { text-decoration: underline; }
.streaming-final .nota { font-size: 11px; color: var(--muted); margin-top: 10px; }

/* ── BREADCRUMB ── */
.migas {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  padding: 14px 0;
  font-family: 'Inter', sans-serif;
}
.migas a { color: var(--purple); }
.migas a:hover { text-decoration: underline; }
.migas span { color: var(--muted); }

/* ── NEWSLETTER ── */
.newsletter-box {
  background: linear-gradient(135deg, var(--purple-dk), var(--purple));
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  margin: 48px 0 0;
  position: relative;
  overflow: hidden;
}
.newsletter-box::before {
  content: '✦';
  position: absolute;
  top: -10px; right: 20px;
  font-size: 80px;
  opacity: .1;
  line-height: 1;
}
.newsletter-box h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
}
.newsletter-box p { font-size: 14px; color: rgba(255,255,255,.7); margin-bottom: 20px; }
.newsletter-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  padding: 12px 18px;
  border-radius: 50px;
  border: none;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  width: 260px;
  outline: none;
}
.newsletter-form button {
  background: var(--yellow);
  color: var(--purple-dk);
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s;
}
.newsletter-form button:hover { transform: scale(1.04); }
.newsletter-nota { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 10px; }
.nl-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  cursor: pointer;
  font-size: 12px;
  color: rgba(255,255,255,.6);
  line-height: 1.55;
  text-align: left;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.nl-consent-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  accent-color: var(--yellow);
  cursor: pointer;
}
.nl-consent-label a { color: var(--yellow); text-decoration: underline; }
.nl-consent-error {
  font-size: 12px;
  color: #fca5a5;
  margin-top: 6px;
  text-align: center;
}

/* ── AFFILIATE CONTENT BLOCK ── */
.afiliado-block {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin: 32px 0;
}
.afiliado-block .af-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  display: block;
}
.afiliado-block h4 {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--cyan);
  margin-bottom: 12px;
}
.af-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.af-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.af-item strong { color: var(--text); }
.af-item span { font-size: 12.5px; color: var(--muted); }
.af-btn {
  background: var(--purple);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  transition: background .15s;
}
.af-btn:hover { background: var(--purple-dk); }
.af-note { font-size: 11px; color: var(--muted); margin-top: 10px; }

/* ── FOOTER ── */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,.55);
  margin-top: 72px;
}
.footer-top {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 52px 24px 36px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-logo-txt {
  font-family: 'Nunito', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}
.footer-logo-txt em { color: var(--yellow); font-style: normal; }
.footer-desc { font-size: 13.5px; line-height: 1.65; margin-bottom: 16px; }
.footer-h4 {
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 14px;
}
.footer-ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-ul a {
  font-size: 13.5px;
  color: rgba(255,255,255,.55);
  transition: color .15s;
}
.footer-ul a:hover { color: var(--yellow); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: flex-start;
  gap: 24px;
  justify-content: space-between;
  font-size: 11.5px;
  color: rgba(255,255,255,.3);
  flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: var(--yellow); }
.footer-bottom-links { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 860px;
  background: var(--text);
  border-radius: var(--radius-xl);
  border: 1.5px solid rgba(255,255,255,.1);
  padding: 18px 22px;
  z-index: 9000;
  display: none;
  gap: 16px;
  align-items: center;
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
  flex-wrap: wrap;
}
.cookie-banner.visible { display: flex; }
.cookie-txt { font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.5; flex: 1; min-width: 220px; }
.cookie-txt a { color: var(--yellow); }
.cookie-btns { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btn-accept {
  background: var(--yellow);
  color: var(--purple-dk);
  border: 2px solid var(--yellow);
  padding: 9px 18px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.cookie-btn-reject {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.6);
  padding: 9px 16px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.cookie-btn-reject:hover { border-color: #fff; }
.cookie-btn-manage {
  background: transparent;
  color: rgba(255,255,255,.65);
  border: none;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.cookie-btn-manage:hover { color: #fff; }

/* ── MODAL COOKIES ── */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 9100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cookie-modal-overlay.visible { display: flex; }
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-xl);
  max-width: 500px;
  width: 100%;
  padding: 32px;
  max-height: 80vh;
  overflow-y: auto;
}
.cookie-modal h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 8px;
}
.cookie-modal p { font-size: 13px; color: var(--slate); margin-bottom: 20px; }
.cookie-toggle-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-lt);
}
.cookie-toggle-row:last-of-type { border-bottom: none; }
.ct-label { font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.ct-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }
.toggle-wrap { flex-shrink: 0; padding-top: 3px; }
.toggle-wrap input[type="checkbox"] { display: none; }
.toggle-switch {
  display: inline-block;
  width: 40px;
  height: 22px;
  background: var(--border);
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  transition: background .2s;
}
.toggle-wrap input:checked + .toggle-switch { background: var(--purple); }
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.toggle-wrap input:checked + .toggle-switch::after { left: 21px; }
.cookie-modal-btns {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.btn-save-prefs {
  background: var(--purple);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.btn-accept-all-modal {
  background: var(--yellow);
  color: var(--purple-dk);
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

/* ── LEGAL PAGES ── */
.legal-body { max-width: 800px; margin: 0 auto; padding: 48px 0 80px; }
.legal-body h1 { font-family: 'Nunito', sans-serif; font-size: 28px; font-weight: 900; margin-bottom: 8px; }
.legal-body h2 { font-family: 'Nunito', sans-serif; font-size: 18px; font-weight: 800; margin: 32px 0 10px; color: var(--purple); }
.legal-body p, .legal-body li { font-size: 14.5px; color: var(--slate); line-height: 1.75; margin-bottom: 12px; }
.legal-body ul { padding-left: 20px; }
.legal-body a { color: var(--purple); }
.legal-date { font-size: 12.5px; color: var(--muted); margin-bottom: 32px; }

/* ── UTILITY ── */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Nunito', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.sep { color: var(--border); }
.mt-0 { margin-top: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-img-wrap { display: none; }
  .grid-articulos { grid-template-columns: repeat(2, 1fr); }
  .layout-sidebar { grid-template-columns: 1fr; }
  .layout-articulo { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .cabecera-marca { height: 60px; }
  .nav-principal { display: none; }
  .logo-text { font-size: 20px; }
  .grid-articulos { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; padding: 36px 24px 24px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .newsletter-box { padding: 28px 20px; }
  .afiliado-block { padding: 14px 16px; }
  .af-item { flex-wrap: wrap; }
  .barra-top { display: none; }
  .cookie-banner { bottom: 12px; left: 12px; right: 12px; width: auto; transform: none; }
}
