/* Actualidad Hoy — hoja de estilos */
:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --text: #16181d;
  --muted: #5b6270;
  --border: #e6e7eb;
  --accent: #c1121f;
  --accent-dark: #8f0d17;
  --radius: 10px;
  --max-width: 1180px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body { line-height: 1.55; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.site-header { background: var(--surface); border-bottom: 3px solid var(--accent); position: sticky; top: 0; z-index: 20; }
.site-header__inner { max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; gap: 1.5rem; padding: .9rem 1.25rem; }
.logo { font-weight: 800; font-size: 1.4rem; color: var(--text); letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.nav-toggle { margin-left: auto; display: none; background: none; border: 1px solid var(--border); border-radius: 8px; font-size: 1.2rem; padding: .3rem .6rem; cursor: pointer; }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.main-nav a { color: var(--text); font-weight: 600; font-size: .95rem; }

main { max-width: var(--max-width); margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }

.section-title { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; border-left: 4px solid var(--accent); padding-left: .6rem; margin: 2rem 0 1rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card__thumb { display: block; height: 140px; color: #fff; font-weight: 700; display: flex; align-items: flex-end; padding: .7rem; }
.card__thumb span { background: rgba(0,0,0,.35); padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.card__body { padding: 1rem; display: flex; flex-direction: column; gap: .35rem; }
.card__cat { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-dark); }
.card__title a { color: var(--text); font-size: 1.05rem; }
.card__dek { color: var(--muted); font-size: .92rem; margin-bottom: .2rem; }
.card__date { color: var(--muted); font-size: .8rem; }

.hero { margin-bottom: 1rem; }
.card--lead { flex-direction: row; }
.card--lead .card__thumb { width: 45%; height: auto; min-height: 260px; }
.card--lead .card__body { padding: 1.5rem; justify-content: center; }
.card--lead .card__title a { font-size: 1.7rem; }
@media (max-width: 720px) {
  .card--lead { flex-direction: column; }
  .card--lead .card__thumb { width: 100%; min-height: 160px; }
}

.categories-strip__list { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill { display: inline-block; padding: .5rem 1rem; border-radius: 999px; border: 1px solid; font-weight: 700; font-size: .85rem; }
.pill:hover { text-decoration: none; filter: brightness(0.95); }
.pill--deportes { background: #1d6f4222; color: #1d6f42; border-color: #1d6f4255; }
.pill--television { background: #a3268b22; color: #a3268b; border-color: #a3268b55; }
.pill--realeza { background: #8a6d1f22; color: #8a6d1f; border-color: #8a6d1f55; }
.pill--musica { background: #c2410c22; color: #c2410c; border-color: #c2410c55; }
.pill--videojuegos { background: #5b21b622; color: #5b21b6; border-color: #5b21b655; }
.pill--economia { background: #0f5b8c22; color: #0f5b8c; border-color: #0f5b8c55; }
.pill--mundo { background: #0e749022; color: #0e7490; border-color: #0e749055; }
.pill--politica { background: #7f1d1d22; color: #7f1d1d; border-color: #7f1d1d55; }

.article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; max-width: 760px; margin: 0 auto; }
.article__cat { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-dark); }
.article__title { font-size: 2rem; margin-top: .4rem; }
.article__dek { color: var(--muted); font-size: 1.1rem; }
.article__date { display: block; color: var(--muted); font-size: .85rem; margin-bottom: 1rem; }
.article__thumb { height: 220px; border-radius: var(--radius); color: #fff; font-weight: 700; display: flex; align-items: flex-end; padding: 1rem; margin-bottom: 1.25rem; }
.article__thumb span { background: rgba(0,0,0,.35); padding: .25rem .7rem; border-radius: 999px; font-size: .8rem; text-transform: uppercase; }
.article__body p { font-size: 1.08rem; }
.article__tags { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 1rem; }
.article__body h2 { font-size: 1.4rem; margin-top: 2rem; }
.article__body h3 { font-size: 1.1rem; margin-top: 1.4rem; }

.article__figure { margin: 0 0 1.5rem; }
.article__figure img { border-radius: var(--radius); width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.article__figure figcaption { font-size: .78rem; color: var(--muted); margin-top: .4rem; }
.article__figure figcaption a { color: var(--muted); text-decoration: underline; }
.article__figure--lead img { aspect-ratio: 16 / 9; }

.table-wrap { overflow-x: auto; margin: 1.25rem 0 1.75rem; border: 1px solid var(--border); border-radius: var(--radius); }
.compare-table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: .92rem; }
.compare-table caption { text-align: left; font-weight: 700; padding: .75rem 1rem; background: #fafafa; border-bottom: 1px solid var(--border); caption-side: top; }
.compare-table th, .compare-table td { text-align: left; padding: .6rem .9rem; border-bottom: 1px solid var(--border); }
.compare-table thead th { background: #f2f2f4; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:nth-child(even) { background: #fafafa; }

.faq { max-width: 760px; margin: 2.5rem auto 0; }
.faq-item { border-top: 1px solid var(--border); padding: 1rem 0; }
.faq-item h3 { font-size: 1.02rem; margin: 0 0 .4rem; }
.faq-item p { margin: 0; color: var(--muted); }

.related { max-width: 760px; margin: 2rem auto 0; }

.category-header { color: #fff; border-radius: var(--radius); padding: 2.5rem 1.5rem; margin-bottom: 1rem; }
.category-header h1 { font-size: 2rem; }
.category-header p { opacity: .9; margin: 0; }

.card__thumb--deportes, .article__thumb--deportes, .category-header--deportes { background: linear-gradient(135deg, #1d6f42, #111827); }
.card__thumb--television, .article__thumb--television, .category-header--television { background: linear-gradient(135deg, #a3268b, #111827); }
.card__thumb--realeza, .article__thumb--realeza, .category-header--realeza { background: linear-gradient(135deg, #8a6d1f, #111827); }
.card__thumb--musica, .article__thumb--musica, .category-header--musica { background: linear-gradient(135deg, #c2410c, #111827); }
.card__thumb--videojuegos, .article__thumb--videojuegos, .category-header--videojuegos { background: linear-gradient(135deg, #5b21b6, #111827); }
.card__thumb--economia, .article__thumb--economia, .category-header--economia { background: linear-gradient(135deg, #0f5b8c, #111827); }
.card__thumb--mundo, .article__thumb--mundo, .category-header--mundo { background: linear-gradient(135deg, #0e7490, #111827); }
.card__thumb--politica, .article__thumb--politica, .category-header--politica { background: linear-gradient(135deg, #7f1d1d, #111827); }

.static-page { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; max-width: 760px; margin: 0 auto; }
.static-page h1 { font-size: 1.8rem; }
.static-page h2 { font-size: 1.2rem; margin-top: 1.5rem; }
.contact-list li { margin-bottom: .4rem; }

.ad-slot { background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); padding: .75rem; margin: 1.5rem 0; text-align: center; min-height: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; }
.ad-slot__label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ad-slot--in-article { max-width: 100%; }

.site-footer { background: #111318; color: #cfd2d8; margin-top: 3rem; }
.site-footer__inner { max-width: var(--max-width); margin: 0 auto; padding: 2.5rem 1.25rem 1.5rem; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-footer a { color: #cfd2d8; }
.site-footer h3 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .75rem; }
.site-footer li { margin-bottom: .4rem; }
.logo--footer { color: #fff; font-size: 1.3rem; }
.site-footer__legal { text-align: center; font-size: .8rem; padding: 1rem 1.25rem 1.5rem; opacity: .7; margin: 0; }

.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 720px; margin: 0 auto; background: #16181d; color: #fff; border-radius: var(--radius); padding: 1.1rem 1.3rem; box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 50; }
.cookie-banner p { margin: 0 0 .8rem; font-size: .9rem; }
.cookie-banner a { color: #ffd1d1; }
.cookie-banner__actions { display: flex; gap: .6rem; justify-content: flex-end; }
.btn { border: none; border-radius: 8px; padding: .55rem 1.1rem; font-weight: 700; cursor: pointer; font-size: .85rem; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border: 1px solid #ffffff55; }

@media (max-width: 780px) {
  .nav-toggle { display: inline-block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: .25rem; padding: .75rem 0; }
  .site-header__inner { flex-wrap: wrap; }
  .site-footer__inner { grid-template-columns: 1fr; }
}
