/*
Theme Name:  pocopasa
Theme URI:   https://pocopasa.es
Author:      pocopasa.es
Description: Tema oficial de pocopasa.es — portal de noticias español. Paleta Obsidian Red, tipografía Sora + DM Sans.
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: pocopasa
*/

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

:root {
  --bg:        #080808;
  --surface:   #111111;
  --card:      #141414;
  --border:    #1e1e1e;
  --accent:    #CC0022;
  --accent-hi: #FF1A3A;
  --text:      #F2EDE5;
  --text-mid:  #7A7470;
  --text-dim:  #3A3835;
  --shadow:    rgba(0,0,0,.7);
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 15px; line-height: 1.5; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ── TICKER ── */
.ticker {
  position: sticky; top: 0; z-index: 200;
  background: var(--accent); height: 34px;
  display: flex; align-items: center; overflow: hidden;
}
.ticker-label {
  flex-shrink: 0; background: #000; height: 100%;
  padding: 0 16px; display: flex; align-items: center; gap: 7px;
  font-family: 'Sora', sans-serif; font-size: 10px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-hi); animation: blink 1.1s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.ticker-wrap { flex: 1; overflow: hidden; }
.ticker-track {
  display: flex; gap: 60px; white-space: nowrap;
  animation: slide 35s linear infinite;
  font-size: 12.5px; font-weight: 600;
}
@keyframes slide { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.ticker-item::before { content:'◆ '; font-size: 8px; opacity: .7; }

/* ── NAVBAR ── */
.navbar {
  position: sticky; top: 34px; z-index: 199;
  background: rgba(8,8,8,.96); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: 60px; display: flex; align-items: center;
  padding: 0 28px; gap: 0;
}
.logo {
  font-family: 'Sora', sans-serif; font-size: 23px; font-weight: 800;
  letter-spacing: -.03em; display: flex; align-items: center; gap: 5px;
  margin-right: 36px; flex-shrink: 0;
}
.logo em { color: var(--accent); font-style: normal; }
.nav-links { display: flex; gap: 4px; list-style: none; flex: 1; }
.nav-links a {
  font-size: 13px; font-weight: 600; color: var(--text-mid);
  padding: 6px 11px; border-radius: 6px; transition: all .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-links a.active,
.nav-links .current-menu-item > a,
.nav-links .current-cat-ancestor > a { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); opacity: .4; }
.search-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 12px 7px 32px;
  color: var(--text); font-family: 'DM Sans', sans-serif;
  font-size: 13px; width: 200px; outline: none; transition: border-color .2s, width .3s;
}
.search-box::placeholder { color: var(--text-dim); }
.search-box:focus { border-color: var(--accent); width: 240px; }
.btn-entrar {
  background: var(--accent); color: #fff; font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 600; padding: 8px 18px; border-radius: 8px;
  border: none; cursor: pointer; transition: background .2s, transform .1s;
}
.btn-entrar:hover { background: var(--accent-hi); transform: translateY(-1px); }
.btn-entrar:active { transform: translateY(0); }

/* ── LAYOUT ── */
.container { max-width: 1300px; margin: 0 auto; padding: 0 28px; }

/* ── HERO ── */
.hero { padding: 28px 0; display: grid; grid-template-columns: 1fr 360px; gap: 20px; }

.hero-main {
  display: block; border-radius: 14px; overflow: hidden;
  aspect-ratio: 16/9; cursor: pointer;
  position: relative; background: #111;
}
.hero-main img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
}
.hero-main:hover img { transform: scale(1.04); }

.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.4) 50%, rgba(0,0,0,.1) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 32px;
}
.badge-live {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 5px; margin-bottom: 14px; width: fit-content;
}
.hero-title {
  font-family: 'Sora', sans-serif; font-size: 30px; font-weight: 800;
  line-height: 1.18; margin-bottom: 12px; text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.hero-meta { font-size: 13px; color: rgba(242,237,229,.65); display: flex; gap: 16px; align-items: center; }
.hero-meta span { display: flex; align-items: center; gap: 5px; }
.hero-actions { margin-top: 18px; display: flex; gap: 10px; }
.btn-read {
  background: var(--accent); color: #fff; border: none;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  padding: 10px 22px; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; gap: 7px; transition: background .2s;
}
.btn-read:hover { background: var(--accent-hi); }
.btn-share {
  background: rgba(255,255,255,.1); color: var(--text); border: 1px solid rgba(255,255,255,.15);
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  padding: 10px 18px; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; gap: 7px; backdrop-filter: blur(4px);
  transition: background .2s;
}
.btn-share:hover { background: rgba(255,255,255,.18); }

/* ── SIDEBAR BREAKING ── */
.hero-sidebar { display: flex; flex-direction: column; gap: 10px; }
.breaking-header {
  font-family: 'Sora', sans-serif; font-size: 10px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent-hi);
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 2px;
}
.breaking-card {
  display: flex; gap: 12px; padding: 12px;
  background: var(--card); border-radius: 10px; border: 1px solid var(--border);
  cursor: pointer; transition: border-color .25s, background .25s, transform .2s;
  position: relative; overflow: hidden;
}
.breaking-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent); opacity: 0; transition: opacity .25s;
}
.breaking-card:hover { border-color: rgba(204,0,34,.4); background: #1a1212; transform: translateX(3px); }
.breaking-card:hover::before { opacity: 1; }
.breaking-thumb {
  width: 82px; height: 62px; border-radius: 7px; overflow: hidden;
  flex-shrink: 0; background: #1a1a1a; position: relative;
}
.breaking-thumb img { transition: transform .3s; }
.breaking-card:hover .breaking-thumb img { transform: scale(1.08); }
.breaking-info { flex: 1; min-width: 0; }
.breaking-cat { font-size: 10px; font-weight: 600; color: var(--accent-hi); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 5px; }
.breaking-title { font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.breaking-time { font-size: 11px; color: var(--text-mid); }

/* ── SECTION HEADER ── */
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-title {
  font-family: 'Sora', sans-serif; font-size: 19px; font-weight: 800;
  display: flex; align-items: center; gap: 12px;
}
.section-title::before {
  content: ''; display: block; width: 4px; height: 22px;
  background: var(--accent); border-radius: 2px;
}
.section-more { font-size: 13px; font-weight: 600; color: var(--text-mid); transition: color .2s; }
.section-more:hover { color: var(--accent-hi); }

/* ── ROW ── */
.row { padding: 32px 0; border-top: 1px solid var(--border); }

.scroll-wrap {
  display: flex; gap: 16px; overflow-x: auto; padding-bottom: 14px;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.scroll-wrap::-webkit-scrollbar { height: 3px; }
.scroll-wrap::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ── NEWS CARD ── */
.news-card {
  flex-shrink: 0; width: 268px;
  scroll-snap-align: start;
  background: var(--card); border-radius: 11px; border: 1px solid var(--border);
  overflow: hidden; cursor: pointer;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  position: relative;
}
.news-card:hover {
  border-color: rgba(204,0,34,.5);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(204,0,34,.15);
}
.news-thumb {
  height: 152px; overflow: hidden; position: relative; background: #1a1a1a;
}
.news-thumb img { transition: transform .45s cubic-bezier(.25,.46,.45,.94); }
.news-card:hover .news-thumb img { transform: scale(1.08); }
.news-thumb-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s;
}
.news-card:hover .news-thumb-overlay { background: rgba(0,0,0,.35); }
.play-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.7); transition: opacity .25s, transform .25s;
}
.news-card:hover .play-icon { opacity: 1; transform: scale(1); }
.play-icon svg { margin-left: 3px; }
.news-cat-tag {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,.75); color: var(--accent-hi);
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 4px; backdrop-filter: blur(4px);
}
.news-body { padding: 15px; }
.news-title {
  font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 700;
  line-height: 1.35; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-foot {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11.5px; color: var(--text-mid); padding-top: 10px;
  border-top: 1px solid var(--border);
}
.news-foot-left { display: flex; align-items: center; gap: 5px; }
.news-views { display: flex; align-items: center; gap: 4px; }

/* ── COMUNIDADES ── */
.comunidades { padding: 32px 0; border-top: 1px solid var(--border); }
.comunidades-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.aut-card {
  background: var(--card); border-radius: 11px; border: 1px solid var(--border);
  overflow: hidden; cursor: pointer;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.aut-card:hover {
  border-color: rgba(204,0,34,.4); transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,.5);
}
.aut-thumb { height: 118px; position: relative; overflow: hidden; background: #1a1a1a; }
.aut-thumb img { transition: transform .4s; }
.aut-card:hover .aut-thumb img { transform: scale(1.07); }
.aut-cover {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 55%);
  display: flex; align-items: flex-end; padding: 10px 12px;
}
.aut-name { font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 800; }
.aut-body { padding: 11px 13px; }
.aut-headline {
  font-size: 12.5px; font-weight: 600; line-height: 1.35; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.aut-count { font-size: 11px; color: var(--text-mid); display: flex; align-items: center; gap: 5px; }
.aut-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ── VIRAL REELS ── */
.viral { padding: 32px 0; border-top: 1px solid var(--border); }
.reel-wrap { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
.reel-wrap::-webkit-scrollbar { display: none; }
.reel-card {
  flex-shrink: 0; width: 182px; aspect-ratio: 9/16;
  scroll-snap-align: start;
  border-radius: 12px; overflow: hidden; cursor: pointer;
  position: relative; background: #1a1a1a; border: 1px solid var(--border);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.reel-card:hover {
  border-color: rgba(204,0,34,.5); transform: translateY(-6px) scale(1.02);
  box-shadow: 0 24px 48px rgba(0,0,0,.6);
}
.reel-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.reel-card:hover img { transform: scale(1.06); }
.reel-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.2) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 14px;
}
.reel-platform {
  font-size: 10px; font-weight: 700; color: var(--accent-hi);
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px;
}
.reel-title { font-family: 'Sora', sans-serif; font-size: 12.5px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.reel-stats { font-size: 11px; color: rgba(242,237,229,.6); display: flex; gap: 10px; }
.reel-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(.7);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(204,0,34,.85); display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s, transform .25s;
}
.reel-play svg { margin-left: 3px; }
.reel-card:hover .reel-play { opacity: 1; transform: translate(-50%,-50%) scale(1); }

/* ── YOUTUBE MODAL ── */
.yt-modal {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.yt-modal[hidden] { display: none; }
.yt-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(8,8,8,.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.yt-modal-box {
  position: relative; z-index: 1;
  width: 100%; max-width: 900px;
  animation: ytIn .22s cubic-bezier(.22,1,.36,1);
}
@keyframes ytIn {
  from { opacity: 0; transform: scale(.94) translateY(20px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}
.yt-modal-close {
  position: absolute; top: -50px; right: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  color: var(--text); font-size: 24px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
}
.yt-modal-close:hover { background: var(--accent); border-color: var(--accent); }
.yt-modal-player {
  position: relative; padding-bottom: 56.25%;
  background: #000; border-radius: 12px; overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.8);
}
.yt-modal-player iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.yt-modal-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 14px 2px 0;
}
.yt-modal-src {
  font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent); background: rgba(204,0,34,.12);
  padding: 3px 8px; border-radius: 4px;
}
.yt-modal-title {
  flex: 1; font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 700;
  color: var(--text); line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.yt-modal-ytlink {
  font-size: 12px; color: var(--text-mid); text-decoration: none; white-space: nowrap;
  border: 1px solid var(--border); border-radius: 6px; padding: 5px 12px;
  transition: color .2s, border-color .2s;
}
.yt-modal-ytlink:hover { color: var(--text); border-color: var(--accent); }
@media (max-width: 600px) {
  .yt-modal { padding: 12px; }
  .yt-modal-close { top: -46px; right: 0; }
  .yt-modal-title { font-size: 13px; }
}

/* ── CINE ── */
.cine { padding: 32px 0; border-top: 1px solid var(--border); }
.cine-wrap { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
.cine-wrap::-webkit-scrollbar { display: none; }
.cine-card { flex-shrink: 0; width: 155px; cursor: pointer; scroll-snap-align: start; }
.cine-poster {
  border-radius: 10px; overflow: hidden; aspect-ratio: 2/3;
  border: 1px solid var(--border); position: relative; background: #1a1a1a;
  transition: border-color .25s, transform .3s, box-shadow .3s;
}
.cine-card:hover .cine-poster {
  border-color: rgba(204,0,34,.5); transform: translateY(-6px) scale(1.02);
  box-shadow: 0 24px 44px rgba(0,0,0,.65), 0 0 0 1px rgba(204,0,34,.2);
}
.cine-poster img { transition: transform .4s; }
.cine-card:hover .cine-poster img { transform: scale(1.05); }
.cine-hover-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 12px; transition: background .3s;
}
.cine-card:hover .cine-hover-overlay { background: rgba(0,0,0,.6); }
.cine-synopsis {
  font-size: 11px; line-height: 1.4; color: rgba(242,237,229,.85);
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
  display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.cine-card:hover .cine-synopsis { opacity: 1; transform: translateY(0); }
.cine-rating {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,.82); color: #FFD700;
  font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 5px;
  backdrop-filter: blur(4px);
}
.cine-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--accent); color: #fff;
  font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 4px;
}
.cine-info { padding: 10px 2px 0; }
.cine-title { font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 700; line-height: 1.3; margin-bottom: 4px; }
.cine-genre { font-size: 11px; color: var(--text-mid); }

/* ── FOOTER ── */
footer { margin-top: 32px; border-top: 1px solid var(--border); padding: 44px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-logo { margin-bottom: 14px; }
.footer-desc { font-size: 13px; color: var(--text-mid); line-height: 1.65; max-width: 270px; }
.footer-col h4 { font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; color: var(--text); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 13px; color: var(--text-mid); transition: color .2s; }
.footer-col a:hover { color: var(--accent-hi); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-dim); }
.rrss { display: flex; gap: 16px; }
.rrss a { font-size: 12px; font-weight: 600; color: var(--text-mid); transition: color .2s; }
.rrss a:hover { color: var(--accent-hi); }

/* ── UTILS ── */
.divider { height: 1px; background: var(--border); margin: 0; }

/* ── SINGLE ARTICLE ── */
.single-wrap { max-width: 860px; margin: 0 auto; padding: 40px 0 60px; }
.single-cat { font-size: 11px; font-weight: 700; color: var(--accent-hi); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px; }
.single-title { font-family: 'Sora', sans-serif; font-size: 34px; font-weight: 800; line-height: 1.15; margin-bottom: 18px; }
.single-meta { display: flex; gap: 20px; align-items: center; font-size: 13px; color: var(--text-mid); margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.single-meta span { display: flex; align-items: center; gap: 6px; }
.single-thumb { border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; margin-bottom: 32px; background: #1a1a1a; }

/* REGLA DE ORO — resumen + fuente */
.regla-de-oro {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px; padding: 22px 24px; margin-bottom: 32px;
}
.regla-de-oro__label {
  font-size: 10px; font-weight: 800; color: var(--accent-hi);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px;
}
.regla-de-oro__resumen { font-size: 15px; line-height: 1.65; color: var(--text); margin-bottom: 18px; }
.regla-de-oro__fuente {
  display: flex; align-items: center; gap: 10px;
  padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-mid);
}
.regla-de-oro__fuente a {
  color: var(--accent-hi); font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
  transition: color .2s;
}
.regla-de-oro__fuente a:hover { color: var(--text); }
.regla-de-oro__fuente-badge {
  font-size: 10px; font-weight: 700; color: var(--text-dim);
  background: var(--card); padding: 2px 8px; border-radius: 4px;
  border: 1px solid var(--border); text-transform: uppercase; letter-spacing: .05em;
}

/* AVISO: artículo incompleto (falta resumen/fuente) — visible solo en admin */
.pp-missing-data {
  background: #2a1010; border: 1px solid #5a2020;
  border-radius: 8px; padding: 12px 16px; font-size: 13px; color: #ff8080;
  margin-bottom: 20px; display: none;
}
body.logged-in .pp-missing-data { display: block; }

.single-content { font-size: 16px; line-height: 1.75; color: var(--text); }
.single-content p { margin-bottom: 1.4em; }
.single-content h2 { font-family: 'Sora', sans-serif; font-size: 22px; font-weight: 800; margin: 1.8em 0 .8em; }
.single-content h3 { font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 700; margin: 1.6em 0 .6em; }
.single-content a { color: var(--accent-hi); text-decoration: underline; }
.single-content blockquote { border-left: 3px solid var(--accent); padding-left: 18px; color: var(--text-mid); font-style: italic; margin: 1.4em 0; }

/* ── CATEGORY PAGE ── */
.cat-header { padding: 32px 0 24px; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.cat-header h1 { font-family: 'Sora', sans-serif; font-size: 30px; font-weight: 800; }
.cat-header p { font-size: 14px; color: var(--text-mid); margin-top: 8px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin-bottom: 40px; }

.cat-card {
  background: var(--card); border-radius: 11px; border: 1px solid var(--border);
  overflow: hidden; transition: border-color .25s, transform .25s, box-shadow .25s;
}
.cat-card:hover {
  border-color: rgba(204,0,34,.5); transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,.5);
}
.cat-card-thumb { height: 185px; overflow: hidden; background: #1a1a1a; position: relative; }
.cat-card-thumb img { transition: transform .4s; }
.cat-card:hover .cat-card-thumb img { transform: scale(1.06); }
.cat-card-tag {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,.75); color: var(--accent-hi);
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 4px; backdrop-filter: blur(4px);
}
.cat-card-body { padding: 18px; }
.cat-card-title {
  font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 700;
  line-height: 1.3; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.cat-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-mid); padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ── Tarjeta sin imagen ─────────────────────────────────────── */
.cat-card--text { opacity: .82; }
.cat-card--text .cat-card-thumb { display: none; }
.cat-card--text .cat-card-body {
  padding: 16px 18px 16px 20px;
  border-left: 3px solid var(--accent);
}
.cat-card--text .cat-card-title {
  font-size: 14px; -webkit-line-clamp: 2;
  color: var(--text-mid);
}
.cat-card--text:hover { transform: translateY(-2px); opacity: 1; }

/* pagination */
.pagination { display: flex; gap: 6px; justify-content: center; padding: 20px 0 40px; }
.pagination a, .pagination span {
  padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--border); color: var(--text-mid); transition: all .2s;
}
.pagination a:hover { border-color: var(--accent); color: var(--text); }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── COOKIE BANNER ── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: #0f0f0f; border-top: 1px solid var(--border);
  padding: 18px 28px; display: flex; align-items: center; gap: 20px;
  box-shadow: 0 -8px 32px rgba(0,0,0,.6);
  animation: slideUp .35s cubic-bezier(.25,.46,.45,.94);
}
@keyframes slideUp { from{transform:translateY(100%);opacity:0} to{transform:translateY(0);opacity:1} }
#cookie-banner.hidden { display: none; }
.cb-text { flex: 1; font-size: 13px; color: var(--text-mid); line-height: 1.55; }
.cb-text strong { color: var(--text); }
.cb-text a { color: var(--accent-hi); text-decoration: underline; }
.cb-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.cb-btn-accept {
  background: var(--accent); color: #fff; border: none;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  padding: 9px 20px; border-radius: 8px; cursor: pointer; white-space: nowrap;
  transition: background .2s;
}
.cb-btn-accept:hover { background: var(--accent-hi); }
.cb-btn-config {
  background: transparent; color: var(--text); border: 1px solid var(--border);
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  padding: 9px 20px; border-radius: 8px; cursor: pointer; white-space: nowrap;
  transition: border-color .2s, color .2s;
}
.cb-btn-config:hover { border-color: var(--text-mid); }
.cb-btn-reject {
  background: transparent; color: var(--text-dim); border: none;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 400;
  padding: 9px 14px; border-radius: 8px; cursor: pointer; white-space: nowrap;
  text-decoration: underline; transition: color .2s;
}
.cb-btn-reject:hover { color: var(--text-mid); }

/* ── COOKIE MODAL ── */
#cookie-modal {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.75); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
#cookie-modal.hidden { display: none; }
.cm-box {
  background: #111; border: 1px solid var(--border); border-radius: 16px;
  width: 100%; max-width: 520px; overflow: hidden;
  box-shadow: 0 32px 64px rgba(0,0,0,.7);
  animation: fadeScale .25s cubic-bezier(.25,.46,.45,.94);
}
@keyframes fadeScale { from{opacity:0;transform:scale(.95)} to{opacity:1;transform:scale(1)} }
.cm-header { padding: 24px 26px 0; }
.cm-header h3 { font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.cm-header p { font-size: 13px; color: var(--text-mid); line-height: 1.6; }
.cm-body { padding: 20px 26px; display: flex; flex-direction: column; gap: 12px; }
.cm-category {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; display: flex; align-items: center; gap: 14px;
}
.cm-cat-info { flex: 1; }
.cm-cat-info strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.cm-cat-info span { font-size: 12.5px; color: var(--text-mid); line-height: 1.45; }
.toggle { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute; inset: 0; border-radius: 24px;
  background: var(--border); cursor: pointer; transition: background .2s;
}
.toggle input:checked + .toggle-track { background: var(--accent); }
.toggle input:disabled + .toggle-track { background: #2a2a2a; cursor: not-allowed; }
.toggle-track::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  transition: transform .2s;
}
.toggle input:checked + .toggle-track::after { transform: translateX(18px); }
.required-badge { font-size: 10px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: .05em; }
.cm-footer { padding: 0 26px 24px; display: flex; gap: 10px; justify-content: flex-end; }
.cm-btn-save {
  background: var(--accent); color: #fff; border: none;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  padding: 10px 24px; border-radius: 8px; cursor: pointer; transition: background .2s;
}
.cm-btn-save:hover { background: var(--accent-hi); }
.cm-btn-cancel {
  background: transparent; color: var(--text-mid); border: 1px solid var(--border);
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  padding: 10px 18px; border-radius: 8px; cursor: pointer; transition: border-color .2s;
}
.cm-btn-cancel:hover { border-color: var(--text-mid); }

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 10px; margin-left: auto;
  background: none; border: none; flex-shrink: 0; min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── TABLET (≤768px) ── */
@media (max-width: 768px) {
  .navbar { flex-wrap: wrap; height: auto; padding: 0 16px; gap: 0; }
  .logo { padding: 14px 0; margin-right: auto; }
  .nav-hamburger { display: flex; }
  .nav-right { display: none; }
  .nav-links {
    display: none; flex-direction: column; width: 100%;
    padding: 8px 0 14px; gap: 2px;
    border-top: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 14px; padding: 10px 8px; min-height: 44px; display: flex; align-items: center; }

  .container { padding: 0 16px; }
  .hero { grid-template-columns: 1fr; padding: 16px 0; gap: 14px; }
  .hero-slide-title { font-size: 20px; }
  .hero-slide-meta { flex-wrap: wrap; gap: 8px; }
  .hero-arrow { display: none; }
  .hero-dots { bottom: 46px; }
  .news-card { width: 200px; }
  .news-thumb { height: 118px; }
  .comunidades-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .reel-card { width: 155px; }
  .cine-card { width: 132px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .rrss { justify-content: center; }
  .single-title { font-size: 26px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── MOBILE (≤480px) ── */
@media (max-width: 480px) {
  .ticker-label { padding: 0 10px; font-size: 9px; letter-spacing: .08em; }
  .ticker-track { font-size: 11px; }
  .logo { font-size: 20px; }
  .hero { padding: 12px 0; gap: 12px; }
  .hero-carousel { aspect-ratio: unset; min-height: 320px; }
  .hero-slide-overlay { padding: 18px; }
  .hero-slide-title { font-size: 17px; line-height: 1.3; margin-bottom: 8px; }
  .hero-slide-meta { display: none; }
  .hero-slide-actions { flex-direction: column; gap: 8px; margin-top: 4px; }
  .hero-slide-actions .btn-read,
  .hero-slide-actions .btn-share { width: 100%; justify-content: center; padding: 13px; min-height: 44px; }
  .breaking-thumb { width: 68px; height: 52px; }
  .breaking-title { font-size: 12px; }
  .section-head { margin-bottom: 14px; }
  .section-title { font-size: 16px; }
  .row { padding: 20px 0; }
  .news-card { width: 165px; }
  .news-thumb { height: 100px; }
  .news-title { font-size: 12.5px; }
  .comunidades { padding: 20px 0; }
  .comunidades-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .aut-thumb { height: 100px; }
  .viral { padding: 20px 0; }
  .reel-card { width: 140px; }
  .reel-title { font-size: 11.5px; }
  .cine { padding: 20px 0; }
  .cine-card { width: 115px; }
  .cine-title { font-size: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  footer { padding: 32px 0 24px; }
  #cookie-banner { flex-direction: column; gap: 12px; padding: 16px; }
  .cb-buttons { flex-direction: column; width: 100%; }
  .cb-btn-accept, .cb-btn-config { width: 100%; text-align: center; min-height: 44px; display: flex; align-items: center; justify-content: center; }
  #cookie-modal { align-items: flex-end; padding: 0; }
  .cm-box { border-radius: 16px 16px 0 0; }
  .single-title { font-size: 22px; }
  .cat-grid { grid-template-columns: 1fr; }
  .regla-de-oro { padding: 16px; }
}

/* ── VIDEO CARD — play icon siempre visible ── */
.news-card[data-ytid] .play-icon,
.breaking-card[data-ytid] .breaking-thumb::after {
  opacity: 1;
  transform: scale(1);
}
.news-card[data-ytid] .news-thumb-overlay {
  background: rgba(0,0,0,.18);
}
.breaking-card[data-ytid] {
  position: relative;
}
.breaking-card[data-ytid] .breaking-thumb::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(204,0,34,.88);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpolygon points='5 3 19 12 5 21 5 3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 55% 50%;
  background-size: 12px 12px;
}

/* ── HERO CAROUSEL ── */
.hero-carousel {
  position: relative; border-radius: 14px; overflow: hidden;
  aspect-ratio: 16/9; background: #0a0a0a; cursor: default;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
  transition: opacity .65s cubic-bezier(.4,0,.2,1);
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slide-bg {
  width: 100%; height: 100%;
  background-size: cover; background-position: center top;
}
.hero-slide-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.38) 50%, rgba(0,0,0,.08) 100%);
}
.hero-slide-overlay {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 32px;
}
.hero-slide-top {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap;
}
.hero-slide-cat {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text); background: rgba(255,255,255,.12);
  padding: 4px 10px; border-radius: 4px; backdrop-filter: blur(4px);
}
.hero-slide-title {
  font-family: 'Sora', sans-serif; font-size: 28px; font-weight: 800;
  line-height: 1.18; margin-bottom: 12px;
  text-shadow: 0 2px 14px rgba(0,0,0,.6);
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.hero-slide-meta {
  font-size: 13px; color: rgba(242,237,229,.65);
  display: flex; gap: 16px; align-items: center; margin-bottom: 18px;
}
.hero-slide-actions { display: flex; gap: 10px; }
/* Flechas */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.18);
  color: #fff; cursor: pointer; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s, opacity .2s;
  opacity: 0; /* ocultas por defecto */
}
.hero-carousel:hover .hero-arrow { opacity: .85; }
.hero-arrow:hover { background: var(--accent); border-color: var(--accent); opacity: 1; }
.hero-arr-prev { left: 14px; }
.hero-arr-next { right: 14px; }
/* Dots */
.hero-dots {
  position: absolute; bottom: 56px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px; z-index: 3;
}
.hero-dot {
  height: 6px; width: 6px; border-radius: 3px;
  background: rgba(255,255,255,.35); border: none; cursor: pointer; padding: 0;
  transition: background .25s, width .3s cubic-bezier(.4,0,.2,1);
}
.hero-dot.active { background: #fff; width: 22px; }
/* Barra de progreso */
.hero-progress {
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: rgba(255,255,255,.08); z-index: 3;
}
.hero-progress-bar { height: 100%; background: var(--accent); width: 0; }

/* ── NOTICIAS DESTACADAS ── */
.destacadas-row { padding: 32px 0; border-top: 1px solid var(--border); }
.dest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.dest-card {
  background: var(--card); border-radius: 11px; border: 1px solid var(--border);
  overflow: hidden; cursor: pointer;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.dest-card:hover {
  border-color: rgba(204,0,34,.5);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(204,0,34,.15);
}
.dest-thumb {
  height: 160px; overflow: hidden; position: relative; background: #1a1a1a;
}
.dest-thumb img { transition: transform .45s cubic-bezier(.25,.46,.45,.94); }
.dest-card:hover .dest-thumb img { transform: scale(1.07); }
.dest-badge-wrap { position: absolute; top: 10px; left: 10px; }
.dest-badge {
  background: var(--accent); color: #fff;
  font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 4px;
}
.dest-body { padding: 15px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.dest-title {
  font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 700; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.dest-resumen {
  font-size: 13px; color: var(--text-mid); line-height: 1.55; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.dest-foot {
  display: flex; align-items: center; gap: 5px;
  font-size: 11.5px; color: var(--text-mid);
  padding-top: 10px; border-top: 1px solid var(--border);
}

/* ── PUBLICIDAD ── */
.ads-block {
  display: flex; gap: 16px; flex-wrap: wrap;
  padding: 20px 0; border-top: 1px solid var(--border);
}
.ad-banner {
  flex: 1; min-width: 240px; position: relative;
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 5/1; background: #1a1a1a;
  transition: border-color .25s, opacity .2s;
  display: block;
}
.ad-banner:hover { border-color: rgba(204,0,34,.4); opacity: .92; }
.ad-banner img { width: 100%; height: 100%; object-fit: cover; }
.ad-label {
  position: absolute; bottom: 6px; right: 8px;
  font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(242,237,229,.5); background: rgba(0,0,0,.5);
  padding: 2px 7px; border-radius: 3px; backdrop-filter: blur(4px);
}

/* ── TRAILERS ── */
.trailers { padding: 32px 0; border-top: 1px solid var(--border); }
.trailer-tag { color: #FFD700 !important; }

/* ── RESPONSIVE: nuevas secciones ── */
@media (max-width: 768px) {
  .dest-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ad-banner { aspect-ratio: 4/1; min-width: 100%; }
}
@media (max-width: 480px) {
  .destacadas-row { padding: 20px 0; }
  .dest-grid { grid-template-columns: 1fr; }
  .dest-thumb { height: 130px; }
  .trailers { padding: 20px 0; }
  .ads-block { padding: 14px 0; }
}

/* ── SCROLL HINT ── */
.scroll-hint {
  display: none; flex-direction: column; align-items: center; gap: 5px;
  padding: 10px 0 4px; opacity: 1; transition: opacity .4s;
}
.scroll-hint.hidden { opacity: 0; pointer-events: none; }
.scroll-hint span { font-size: 11px; color: var(--text-dim); letter-spacing: .06em; text-transform: uppercase; }
.scroll-hint svg { animation: bounceDown .9s ease-in-out infinite; }
@keyframes bounceDown { 0%,100%{transform:translateY(0)} 50%{transform:translateY(5px)} }
@media (max-width: 768px) { .scroll-hint { display: flex; } }
