/* ===================================================
   WifiNerd — Televisión española & Entretenimiento
   Design: Charcoal Dark + Electric Orange + Sky Blue
   Font: Space Grotesk
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

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

:root {
  --orange:       #f97316;
  --orange-dark:  #ea6c0a;
  --orange-light: #fdba74;
  --blue:         #38bdf8;
  --blue-dark:    #0284c7;
  --bg:           #0c0e14;
  --bg2:          #13161e;
  --card:         #181c26;
  --card-hover:   #1f2433;
  --border:       rgba(255,255,255,0.07);
  --text:         #e8eaf0;
  --muted:        #8892a4;
  --dim:          #545e6e;
  --white:        #ffffff;
  --radius:       10px;
  --radius-lg:    16px;
  --shadow:       0 4px 20px rgba(0,0,0,0.5);
  --shadow-hover: 0 8px 36px rgba(249,115,22,0.18);
  --transition:   all 0.22s ease;
  --container:    1200px;
}

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

a { color: var(--orange-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--white); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== TABOOLA DISCLOSURE BAR ===== */
.disclosure-bar {
  background: #1a1f2e;
  border-bottom: 1px solid var(--border);
  padding: 7px 0;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.disclosure-bar a { color: var(--muted); font-size: 11px; text-decoration: underline; }
.disclosure-bar a:hover { color: var(--orange-light); }

/* ===== HEADER ===== */
.site-header {
  background: rgba(12,14,20,0.97);
  border-bottom: 2px solid var(--orange);
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(12px);
}
.header-top {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--dim);
}
.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-top-left { display: flex; gap: 16px; align-items: center; }
.header-date { font-family: 'Space Mono', monospace; font-size: 11px; }
.header-edition {
  background: var(--orange);
  color: var(--bg);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.header-links { display: flex; gap: 16px; }
.header-links a { font-size: 11px; color: var(--dim); }
.header-links a:hover { color: var(--orange-light); }

.header-brand {
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-mark {
  background: var(--orange);
  color: var(--bg);
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: .75rem;
  padding: 5px 9px;
  border-radius: 6px;
  letter-spacing: -.02em;
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.03em;
}
.logo-tagline {
  font-size: .65rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.main-nav { display: flex; gap: 4px; align-items: center; }
.main-nav a {
  padding: 6px 12px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: 6px;
  transition: var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--white); background: rgba(255,255,255,.06); }
.nav-highlight {
  background: var(--orange) !important;
  color: var(--bg) !important;
  font-weight: 700 !important;
}

.burger-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .burger-btn { display: block; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  background: url('../img/wifinerd-hero.jpg') center/cover no-repeat;
}
.hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(12,14,20,1) 0%,
    rgba(12,14,20,.75) 40%,
    rgba(12,14,20,.2) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 48px 0;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: var(--bg);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.hero-label::before { content: '●'; font-size: .5rem; }
.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--white);
  max-width: 680px;
  margin-bottom: .75rem;
}
.hero-meta {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-meta-dot { width: 3px; height: 3px; background: var(--orange); border-radius: 50%; }
.hero-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: var(--bg);
  font-weight: 700;
  font-size: .88rem;
  padding: 10px 22px;
  border-radius: 7px;
  transition: var(--transition);
  text-decoration: none;
}
.hero-read-btn:hover { background: var(--orange-dark); transform: translateY(-1px); color: var(--bg); }

/* ===== MAIN LAYOUT ===== */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 40px 0 60px;
}
@media (max-width: 900px) { .main-layout { grid-template-columns: 1fr; } }

/* ===== SECTION HEADER ===== */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.section-head h2 {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-head h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--orange);
  border-radius: 2px;
}
.section-head a { font-size: .78rem; color: var(--muted); font-weight: 600; }
.section-head a:hover { color: var(--orange-light); }

/* ===== ARTICLE CARDS ===== */
.card-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 32px;
}
@media (max-width: 600px) { .card-featured { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover { background: var(--card-hover); box-shadow: var(--shadow-hover); border-color: rgba(249,115,22,0.3); }

.card-img-wrap { position: relative; overflow: hidden; }
.card-img-wrap img { width: 100%; height: 180px; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-img-wrap img { transform: scale(1.04); }
.card-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--orange);
  color: var(--bg);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
}
.card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.card-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 8px;
  transition: var(--transition);
}
.card:hover .card-title { color: var(--orange-light); }
.card-excerpt { font-size: .8rem; color: var(--muted); line-height: 1.6; flex: 1; margin-bottom: 12px; }
.card-meta { font-size: .72rem; color: var(--dim); display: flex; align-items: center; gap: 8px; }
.card-meta-dot { width: 2px; height: 2px; background: var(--dim); border-radius: 50%; }

.cards-list { display: flex; flex-direction: column; gap: 16px; }
.card-list-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.card-list-item:hover { background: var(--card-hover); border-color: rgba(249,115,22,0.25); }
.card-list-item img { width: 100px; height: 80px; object-fit: cover; }
.card-list-body { padding: 10px 14px 10px 0; }
.card-list-cat { font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin-bottom: 4px; }
.card-list-title { font-size: .85rem; font-weight: 700; color: var(--white); line-height: 1.3; margin-bottom: 4px; transition: var(--transition); }
.card-list-item:hover .card-list-title { color: var(--orange-light); }
.card-list-meta { font-size: .7rem; color: var(--dim); }

/* ===== TRENDING (top 5 list) ===== */
.trending-list { display: flex; flex-direction: column; gap: 0; }
.trending-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.trending-item:last-child { border: none; }
.trending-num {
  font-family: 'Space Mono', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--orange);
  flex-shrink: 0;
  width: 28px;
  line-height: 1;
}
.trending-title { font-size: .88rem; font-weight: 600; color: var(--white); line-height: 1.35; margin-bottom: 3px; }
.trending-title a { color: inherit; }
.trending-title a:hover { color: var(--orange-light); }
.trending-meta { font-size: .7rem; color: var(--dim); }
.trending-comments { color: var(--orange-light); font-weight: 600; }

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.sidebar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.sidebar-title {
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.sidebar-cta {
  background: linear-gradient(135deg, var(--orange-dark), #c2410c);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}
.sidebar-cta h3 { font-size: .95rem; font-weight: 800; color: var(--white); margin-bottom: .5rem; line-height: 1.3; }
.sidebar-cta p { font-size: .78rem; color: rgba(255,255,255,.75); margin-bottom: 14px; }
.sidebar-cta input[type=email] {
  width: 100%;
  padding: 9px 12px;
  border-radius: 6px;
  border: none;
  background: rgba(0,0,0,.3);
  color: #fff;
  font-family: inherit;
  font-size: .82rem;
  margin-bottom: 8px;
  outline: none;
}
.sidebar-cta input::placeholder { color: rgba(255,255,255,.45); }
.sidebar-cta button {
  width: 100%;
  background: var(--bg);
  color: var(--orange-light);
  font-family: inherit;
  font-weight: 700;
  font-size: .82rem;
  padding: 9px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.sidebar-cta-note { font-size: .65rem; color: rgba(255,255,255,.4); margin-top: 8px; line-height: 1.5; }

.streaming-grid { display: flex; flex-direction: column; gap: 10px; }
.streaming-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 10px 12px;
  transition: var(--transition);
}
.streaming-item:hover { border-color: rgba(249,115,22,.3); background: rgba(255,255,255,.07); }
.streaming-name { font-size: .82rem; font-weight: 700; color: var(--white); }
.streaming-price { font-size: .72rem; color: var(--muted); }
.streaming-badge {
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(249,115,22,.15);
  color: var(--orange-light);
}
.streaming-badge.free { background: rgba(34,197,94,.15); color: #86efac; }
.streaming-note { font-size: .65rem; color: var(--dim); text-align: center; margin-top: 8px; line-height: 1.5; }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  max-width: 520px;
  width: calc(100% - 40px);
  box-shadow: 0 8px 40px rgba(0,0,0,.7);
  z-index: 9999;
  display: none;
}
.cookie-banner.show { display: flex; flex-direction: column; gap: 12px; }
.cookie-banner p { font-size: .82rem; color: var(--muted); line-height: 1.55; }
.cookie-banner p a { color: var(--orange-light); text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; }
.cookie-reject {
  flex: 1;
  padding: 9px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--muted);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.cookie-reject:hover { border-color: var(--orange); color: var(--text); }
.cookie-accept {
  flex: 2;
  padding: 9px;
  background: var(--orange);
  border: none;
  border-radius: 7px;
  color: var(--bg);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.cookie-accept:hover { background: var(--orange-dark); }

/* ===== FOOTER ===== */
.site-footer {
  background: #080a0f;
  border-top: 1px solid var(--border);
  padding: 40px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-size: 1.1rem; font-weight: 800; color: var(--white); margin-bottom: 10px; }
.footer-desc { font-size: .78rem; color: var(--dim); line-height: 1.65; margin-bottom: 12px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 32px; height: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem;
  color: var(--muted);
  transition: var(--transition);
}
.footer-social a:hover { background: var(--orange); color: var(--bg); border-color: var(--orange); }
.footer-col h4 { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul a { font-size: .8rem; color: var(--dim); transition: var(--transition); }
.footer-col ul a:hover { color: var(--orange-light); }
.footer-affiliate {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: .72rem;
  color: var(--dim);
  line-height: 1.6;
}
.footer-affiliate a { color: var(--dim); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .72rem;
  color: var(--dim);
}
.footer-bottom-links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-bottom-links a { color: var(--dim); }
.footer-bottom-links a:hover { color: var(--orange-light); }

/* ===== ARTICLE PAGE ===== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 36px 0 64px;
}
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } .article-sidebar { display: none; } }
.breadcrumb { font-size: .75rem; color: var(--dim); padding: 14px 0; }
.breadcrumb a { color: var(--dim); } .breadcrumb a:hover { color: var(--orange-light); }
.breadcrumb span { margin: 0 6px; }
.article-body { min-width: 0; }
.article-cat { display: inline-flex; align-items: center; gap: 6px; background: rgba(249,115,22,.12); color: var(--orange-light); font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 10px; border-radius: 4px; margin-bottom: 12px; }
.article-h1 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--white); line-height: 1.2; letter-spacing: -.02em; margin-bottom: .75rem; }
.article-meta { font-size: .78rem; color: var(--dim); margin-bottom: 1rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.article-author { display: flex; align-items: center; gap: 8px; margin-bottom: 1.25rem; }
.author-avatar { width: 36px; height: 36px; background: var(--orange); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; color: var(--bg); flex-shrink: 0; }
.author-info { font-size: .78rem; }
.author-name { font-weight: 700; color: var(--white); }
.author-role { color: var(--dim); }
.article-hero-img { width: 100%; height: 320px; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.5rem; }
.article-body p { margin-bottom: 1.1rem; color: #c8d0dc; font-size: .97rem; line-height: 1.75; }
.article-body h2 { font-size: 1.2rem; font-weight: 800; color: var(--white); margin: 2rem 0 .75rem; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.article-body h2 .num { background: var(--orange); color: var(--bg); font-family: 'Space Mono', monospace; font-size: .9rem; font-weight: 700; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 6px; flex-shrink: 0; }
.article-body strong { color: var(--white); }
.article-quote {
  border-left: 3px solid var(--orange);
  padding: 14px 20px;
  background: rgba(249,115,22,.06);
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--orange-light);
  font-size: .92rem;
  line-height: 1.65;
}
.article-ad-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 1.25rem 0;
  font-size: .8rem;
}
.article-ad-label { font-size: .6rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 5px; }
.article-ad-box strong { color: var(--white); }
.article-ad-box a { color: var(--orange-light); }
.article-where {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin: 2rem 0;
}
.article-where h3 { font-size: .85rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.where-list { display: flex; flex-direction: column; gap: 8px; }
.where-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; background: rgba(255,255,255,.04); border-radius: 6px; font-size: .8rem; }
.where-name { font-weight: 700; color: var(--white); }
.where-price { color: var(--muted); }
.where-link { color: var(--orange-light); font-weight: 700; font-size: .75rem; }
.where-note { font-size: .65rem; color: var(--dim); margin-top: 8px; line-height: 1.5; }
.article-disclaimer { background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; margin-top: 2rem; font-size: .75rem; color: var(--dim); line-height: 1.65; }

@media (max-width: 600px) {
  .hero { min-height: 360px; }
  .card-featured { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
