/* ===== RESET & BASE ===== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --primary:#1a1a2e;
  --primary-light:#16213e;
  --accent:#e94560;
  --accent-hover:#c73650;
  --text:#e0e0e0;
  --text-muted:#a0a0a0;
  --bg:#0f0f23;
  --bg-card:#1a1a2e;
  --bg-card-hover:#222240;
  --border:#2a2a4a;
  --success:#00d4aa;
  --warning:#ffa726;
  --font-sans:'Segoe UI',system-ui,-apple-system,sans-serif;
  --font-serif:Georgia,'Times New Roman',serif;
  --max-width:1200px;
  --radius:8px;
  --shadow:0 2px 12px rgba(0,0,0,.3);
}
html{scroll-behavior:smooth;font-size:16px}
body{font-family:var(--font-sans);background:var(--bg);color:var(--text);line-height:1.7;min-height:100vh}
a{color:var(--accent);text-decoration:none;transition:color .2s}
a:hover{color:var(--accent-hover)}
img{max-width:100%;height:auto;display:block}
ul{list-style:none}
.container{max-width:var(--max-width);margin:0 auto;padding:0 16px}

/* ===== HEADER ===== */
.site-header{background:var(--primary);border-bottom:2px solid var(--accent);position:sticky;top:0;z-index:100}
.header-top{display:flex;align-items:center;justify-content:space-between;padding:12px 0}
.logo{display:flex;flex-direction:column;color:var(--text)}
.logo:hover{color:var(--accent)}
.logo h1{font-size:1.6rem;font-weight:800;letter-spacing:-0.5px}
.tagline{font-size:.75rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:2px}
.header-actions{display:flex;align-items:center;gap:12px}
.search-box{display:flex;background:var(--bg);border-radius:var(--radius);overflow:hidden;border:1px solid var(--border)}
.search-box input{background:transparent;border:none;color:var(--text);padding:8px 12px;width:200px;font-size:.9rem;outline:none}
.search-box button{background:var(--accent);border:none;color:#fff;padding:8px 12px;cursor:pointer;font-size:1rem}
.search-box button:hover{background:var(--accent-hover)}
.menu-toggle{display:none;background:none;border:1px solid var(--border);color:var(--text);font-size:1.5rem;padding:4px 10px;border-radius:var(--radius);cursor:pointer}
.main-nav ul{display:flex;gap:4px;padding:8px 0}
.main-nav a{color:var(--text-muted);padding:6px 14px;border-radius:var(--radius);font-size:.9rem;font-weight:500;transition:all .2s}
.main-nav a:hover,.main-nav a.active{color:#fff;background:var(--accent)}

/* ===== BREAKING NEWS ===== */
.breaking-news{background:var(--accent);color:#fff;padding:8px 0;overflow:hidden;display:flex;align-items:center}
.breaking-news.hidden{display:none}
.breaking-label{background:rgba(0,0,0,.3);padding:4px 12px;font-weight:700;font-size:.8rem;white-space:nowrap;margin-right:12px;text-transform:uppercase;letter-spacing:1px}
.ticker-wrap{overflow:hidden;flex:1}
.ticker{display:flex;gap:40px;animation:ticker 30s linear infinite;white-space:nowrap}
.ticker a{color:#fff;font-size:.85rem;font-weight:500;padding-right:40px;border-right:1px solid rgba(255,255,255,.3)}
.ticker a:hover{text-decoration:underline}
.ticker a:last-child{border-right:none}
@keyframes ticker{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}

/* ===== MAIN CONTENT ===== */
.main-content{padding:24px 16px}

/* Featured */
.featured-section{margin-bottom:32px}
.featured-card{position:relative;border-radius:var(--radius);overflow:hidden;background:linear-gradient(135deg,var(--primary-light),var(--primary));box-shadow:var(--shadow);display:block;min-height:400px}
.featured-card .featured-img{width:100%;height:400px;object-fit:cover}
.featured-card .card-placeholder{width:100%;height:400px;display:flex;align-items:center;justify-content:center;font-size:5rem;color:var(--accent);background:linear-gradient(135deg,var(--primary-light),var(--primary))}
.featured-card .featured-overlay{position:absolute;bottom:0;left:0;right:0;padding:32px;background:linear-gradient(transparent,rgba(0,0,0,.95))}
.featured-card .featured-category{display:inline-block;background:var(--accent);color:#fff;padding:4px 12px;border-radius:4px;font-size:.75rem;font-weight:700;text-transform:uppercase;margin-bottom:8px}
.featured-card .featured-title{font-size:1.8rem;font-weight:800;color:#fff;line-height:1.3;margin-bottom:8px}
.featured-card .featured-excerpt{color:rgba(255,255,255,.8);font-size:.95rem;line-height:1.5}
.featured-card .featured-date{color:rgba(255,255,255,.6);font-size:.8rem;margin-top:8px}

/* News Grid */
.section-title{font-size:1.4rem;font-weight:700;color:var(--text);margin-bottom:20px;padding-bottom:8px;border-bottom:2px solid var(--accent);display:inline-block}
.news-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px;margin-bottom:24px}
.news-card{background:var(--bg-card);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:transform .2s,box-shadow .2s;display:flex;flex-direction:column;border:1px solid var(--border)}
.news-card:hover{transform:translateY(-4px);box-shadow:0 8px 24px rgba(0,0,0,.4);border-color:var(--accent)}
.news-card a{color:inherit;display:flex;flex-direction:column;height:100%}
.news-card .card-img{width:100%;height:200px;object-fit:cover;background:var(--primary-light)}
.news-card .card-body{padding:16px;flex:1;display:flex;flex-direction:column}
.news-card .card-category{font-size:.7rem;font-weight:700;color:var(--accent);text-transform:uppercase;letter-spacing:1px;margin-bottom:8px}
.news-card .card-title{font-size:1.05rem;font-weight:700;color:var(--text);line-height:1.4;margin-bottom:8px}
.news-card .card-excerpt{font-size:.85rem;color:var(--text-muted);line-height:1.5;flex:1}
.news-card .card-meta{display:flex;justify-content:space-between;align-items:center;margin-top:12px;padding-top:12px;border-top:1px solid var(--border);font-size:.75rem;color:var(--text-muted)}
.card-placeholder{width:100%;height:200px;background:linear-gradient(135deg,var(--primary-light),var(--primary));display:flex;align-items:center;justify-content:center;font-size:3rem;color:var(--accent)}

/* Load More */
.load-more-wrap{text-align:center;margin:24px 0}
.btn-load-more{background:var(--accent);color:#fff;border:none;padding:12px 32px;border-radius:var(--radius);font-size:.95rem;font-weight:600;cursor:pointer;transition:background .2s}
.btn-load-more:hover{background:var(--accent-hover)}
.btn-load-more:disabled{opacity:.5;cursor:not-allowed}

/* Category Columns */
.categories-section{margin-top:32px}
.category-columns{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px}
.category-block h3{font-size:1.1rem;font-weight:700;color:var(--accent);margin-bottom:12px;padding-bottom:6px;border-bottom:2px solid var(--border)}
.category-block .cat-item{padding:10px 0;border-bottom:1px solid var(--border)}
.category-block .cat-item:last-child{border-bottom:none}
.category-block .cat-item a{color:var(--text);font-size:.9rem;font-weight:500}
.category-block .cat-item a:hover{color:var(--accent)}
.category-block .cat-item .cat-date{font-size:.75rem;color:var(--text-muted);display:block;margin-top:2px}

/* ===== AD CONTAINERS ===== */
.ad-container{margin:24px 0;text-align:center;min-height:90px;background:var(--bg-card);border:1px dashed var(--border);border-radius:var(--radius);display:flex;align-items:center;justify-content:center;overflow:hidden}
.ad-container ins{width:100%}

/* ===== ARTICLE PAGE ===== */
.article-layout{display:grid;grid-template-columns:1fr 320px;gap:32px;padding:24px 0}
.article-header{margin-bottom:24px}
.article-category{display:inline-block;background:var(--accent);color:#fff;padding:4px 14px;border-radius:4px;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:1px;margin-bottom:12px}
.article-title{font-size:2rem;font-weight:800;line-height:1.3;color:var(--text);margin-bottom:12px}
.article-meta{display:flex;gap:16px;color:var(--text-muted);font-size:.85rem;flex-wrap:wrap}
.article-author{font-weight:600;color:var(--accent)}
.article-author::before{content:"Por "}
.article-meta time::before{content:"📅 "}
.article-source::before{content:"📰 "}
.article-read-time::before{content:"⏱ "}

/* Article Body */
.article-body{font-family:var(--font-serif);font-size:1.05rem;line-height:1.9;color:var(--text)}
.article-body h2{font-family:var(--font-sans);font-size:1.5rem;font-weight:700;color:var(--text);margin:28px 0 12px;padding-bottom:6px;border-bottom:1px solid var(--border)}
.article-body h3{font-family:var(--font-sans);font-size:1.2rem;font-weight:600;color:var(--text);margin:20px 0 8px}
.article-body p{margin-bottom:16px}
.article-body ul,.article-body ol{margin:12px 0 16px 24px}
.article-body li{margin-bottom:6px}
.article-body blockquote{border-left:4px solid var(--accent);padding:12px 20px;margin:16px 0;background:var(--bg-card);border-radius:0 var(--radius) var(--radius) 0;font-style:italic;color:var(--text-muted)}
.article-body img{border-radius:var(--radius);margin:16px 0}
.article-body a{color:var(--accent);text-decoration:underline}
.article-body strong{color:#fff}
.article-body figure{margin:0 0 20px;border-radius:var(--radius);overflow:hidden;background:var(--primary-light)}
.article-body figure img{width:100%;height:auto;display:block;margin:0}
.article-body figcaption{padding:8px 12px;font-size:.75rem;color:var(--text-muted);font-style:italic;border-top:1px solid var(--border)}
.article-attribution{margin-top:24px;padding:12px 16px;background:var(--primary-light);border-left:3px solid var(--accent);border-radius:0 var(--radius) var(--radius) 0;font-size:.85rem;color:var(--text-muted)}
.news-card .card-img-wrap{position:relative;width:100%;height:200px;overflow:hidden;background:var(--primary-light)}
.news-card .card-img-wrap img{width:100%;height:100%;object-fit:cover}
.news-card .card-img-credit{position:absolute;bottom:0;right:0;background:rgba(0,0,0,.7);color:#fff;font-size:.6rem;padding:2px 6px}

/* Article Tags */
.article-tags{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0}
.article-tags .tag{background:var(--primary-light);color:var(--text-muted);padding:4px 12px;border-radius:20px;font-size:.8rem;border:1px solid var(--border)}
.article-tags .tag:hover{border-color:var(--accent);color:var(--accent)}

/* Source Link */
.article-source-link{margin:16px 0;padding:12px;background:var(--bg-card);border-radius:var(--radius);border:1px solid var(--border)}
.article-source-link a{font-weight:600}

/* Share Buttons */
.share-buttons{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:24px 0;padding:16px;background:var(--bg-card);border-radius:var(--radius);border:1px solid var(--border)}
.share-buttons span{font-weight:600;font-size:.9rem}
.share-btn{padding:8px 16px;border-radius:var(--radius);font-size:.8rem;font-weight:600;color:#fff;text-align:center;cursor:pointer;border:none;transition:opacity .2s}
.share-btn:hover{opacity:.8;color:#fff}
.share-btn.whatsapp{background:#25d366}
.share-btn.facebook{background:#1877f2}
.share-btn.twitter{background:#000}
.share-btn.telegram{background:#0088cc}
.share-btn.copy{background:var(--primary-light);border:1px solid var(--border);color:var(--text)}

/* Sidebar */
.article-sidebar{display:flex;flex-direction:column;gap:24px}
.sidebar-widget{background:var(--bg-card);border-radius:var(--radius);padding:16px;border:1px solid var(--border)}
.sidebar-widget h3{font-size:1rem;font-weight:700;margin-bottom:12px;padding-bottom:8px;border-bottom:2px solid var(--accent)}
.related-list .related-item{padding:10px 0;border-bottom:1px solid var(--border)}
.related-list .related-item:last-child{border-bottom:none}
.related-item a{color:var(--text);font-size:.9rem;font-weight:500;line-height:1.4;display:block}
.related-item a:hover{color:var(--accent)}
.related-item .related-date{font-size:.75rem;color:var(--text-muted);margin-top:2px}

/* Breadcrumb */
.breadcrumb{background:var(--primary-light);padding:10px 0;font-size:.85rem;border-bottom:1px solid var(--border)}
.breadcrumb ol{display:flex;gap:8px;align-items:center}
.breadcrumb li::after{content:"›";margin-left:8px;color:var(--text-muted)}
.breadcrumb li:last-child::after{content:""}
.breadcrumb a{color:var(--text-muted)}
.breadcrumb a:hover{color:var(--accent)}
.breadcrumb li:last-child span{color:var(--text)}

/* ===== CATEGORY PAGE ===== */
.category-header{margin-bottom:24px}
.category-header h2{font-size:1.8rem;font-weight:800}
.category-header p{color:var(--text-muted);margin-top:4px}

/* ===== FOOTER ===== */
.site-footer{background:var(--primary);border-top:2px solid var(--accent);margin-top:48px;padding:40px 0 0}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:32px}
.footer-col h3{font-size:1rem;font-weight:700;margin-bottom:12px;color:var(--accent)}
.footer-col p{font-size:.85rem;color:var(--text-muted);line-height:1.6}
.footer-col ul li{margin-bottom:6px}
.footer-col a{color:var(--text-muted);font-size:.85rem}
.footer-col a:hover{color:var(--accent)}
.footer-bottom{text-align:center;padding:20px 0;margin-top:32px;border-top:1px solid var(--border);font-size:.8rem;color:var(--text-muted)}

/* ===== COOKIE BANNER ===== */
.cookie-banner{position:fixed;bottom:0;left:0;right:0;background:var(--primary);border-top:2px solid var(--accent);padding:16px;z-index:999;display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;font-size:.85rem}
.cookie-banner.hidden{display:none}
.cookie-banner button{background:var(--accent);color:#fff;border:none;padding:8px 20px;border-radius:var(--radius);cursor:pointer;font-weight:600}

/* ===== LOADING ===== */
.skeleton{background:linear-gradient(90deg,var(--bg-card) 25%,var(--bg-card-hover) 50%,var(--bg-card) 75%);background-size:200% 100%;animation:shimmer 1.5s infinite;border-radius:var(--radius)}
@keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
.loading-spinner{text-align:center;padding:40px;color:var(--text-muted);font-size:.9rem}

/* ===== 404 / ERROR ===== */
.error-page{text-align:center;padding:80px 16px}
.error-page h2{font-size:3rem;color:var(--accent);margin-bottom:12px}
.error-page p{color:var(--text-muted);margin-bottom:24px}

/* ===== RESPONSIVE ===== */
@media(max-width:968px){
  .article-layout{grid-template-columns:1fr}
  .article-sidebar{order:2}
}
@media(max-width:768px){
  .search-box input{width:140px}
  .menu-toggle{display:block}
  .main-nav{max-height:0;overflow:hidden;transition:max-height .3s}
  .main-nav.open{max-height:400px}
  .main-nav ul{flex-direction:column;gap:0}
  .main-nav a{display:block;padding:10px 14px;border-bottom:1px solid var(--border)}
  .featured-card{min-height:280px}
  .featured-card .featured-img{height:280px}
  .featured-card .featured-title{font-size:1.3rem}
  .news-grid{grid-template-columns:1fr}
  .article-title{font-size:1.5rem}
  .footer-grid{grid-template-columns:1fr 1fr}
  .share-buttons{flex-direction:column;align-items:flex-start}
}
@media(max-width:480px){
  .header-top{flex-wrap:wrap;gap:8px}
  .search-box{order:3;width:100%}
  .search-box input{width:100%;flex:1}
  .footer-grid{grid-template-columns:1fr}
  .category-columns{grid-template-columns:1fr}
}

/* ===== PRINT ===== */
@media print{
  .site-header,.breaking-news,.ad-container,.share-buttons,.article-sidebar,.site-footer,.cookie-banner{display:none!important}
  body{background:#fff;color:#000}
  .article-body{font-size:12pt}
}
