/* ==========================================================================
   LA PERSPECTIVA — Diseño del sistema
   Identidad: breaking news + televisión + periódico digital + tecnología
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    --red: #e2231a;
    --red-dark: #b81b13;
    --red-deep: #7a0c08;
    --ink: #0e0f13;
    --ink-2: #16171d;
    --ink-3: #1f2129;
    --paper: #ffffff;
    --paper-2: #f4f5f7;
    --paper-3: #eceef1;
    --line: #e4e6ea;
    --muted: #6b7280;
    --muted-2: #9aa0a8;
    --amber: #ffb020;

    --font-ui: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-head: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-body: Georgia, "Times New Roman", "Charter", serif;

    --container: 1280px;
    --radius: 6px;
    --shadow-sm: 0 1px 2px rgba(14, 15, 19, .08);
    --shadow-md: 0 6px 18px rgba(14, 15, 19, .12);
    --shadow-lg: 0 16px 40px rgba(14, 15, 19, .18);
    --nav-h: 46px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--red);
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    line-height: 1.18;
    margin: 0 0 .5em;
    font-weight: 800;
    letter-spacing: -.01em;
}

button {
    font-family: inherit;
    cursor: pointer;
}

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--red);
    color: #fff;
    padding: 10px 16px;
    z-index: 300;
    font-weight: 700;
    border-radius: 0 0 6px 0;
}

.skip-link:focus {
    left: 0;
}

:focus-visible {
    outline: 3px solid rgba(226, 35, 26, .55);
    outline-offset: 2px;
}

/* ---------- Utilidades ---------- */
.meta-sep {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--muted-2);
    margin: 0 8px;
    vertical-align: middle;
}

.meta-cat {
    color: var(--red);
    font-weight: 700;
    text-transform: uppercase;
    font-size: .78rem;
    letter-spacing: .03em;
}

.chip {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    transition: background .18s ease;
}

.chip:hover {
    background: var(--red-dark);
    color: #fff;
}

.chip-sm {
    font-size: .66rem;
    padding: 3px 8px;
}

.chip-light {
    background: #fff;
    color: var(--red);
}

.chip-light:hover {
    background: var(--red);
    color: #fff;
}

.chip-breaking {
    background: var(--ink);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.chip-breaking:hover {
    background: var(--red);
    color: #fff;
}

.chip-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
    animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .35; transform: scale(.75); }
}

.btn {
    display: inline-block;
    font-weight: 800;
    font-size: .9rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 12px 22px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    transition: all .18s ease;
}

.btn-primary {
    background: var(--red);
    color: #fff;
}

.btn-primary:hover {
    background: var(--red-dark);
    color: #fff;
}

.btn-ghost {
    border-color: var(--line);
    color: var(--ink);
}

.btn-ghost:hover {
    border-color: var(--red);
    color: var(--red);
}

/* ---------- Logo ---------- */
.logo {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
    letter-spacing: .02em;
}

.logo-top {
    color: var(--red);
    font-weight: 900;
    font-size: .52em;
    letter-spacing: .42em;
    margin-bottom: .22em;
}

.logo-main {
    color: var(--ink);
    font-weight: 900;
    letter-spacing: .06em;
}

.logo-rule {
    height: 4px;
    background: var(--red);
    border-radius: 2px;
    margin-top: .3em;
    width: 100%;
}

.logo-lg .logo-main {
    font-size: 1.9rem;
}

.logo-lg .logo-top {
    font-size: .62rem;
}

.logo-md .logo-main {
    font-size: 1.35rem;
}

.logo-md .logo-top {
    font-size: .5rem;
}

.logo-inverse .logo-main {
    color: #fff;
}

.logo-inverse .logo-top {
    color: var(--red);
}

/* ---------- Topbar ---------- */
.topbar {
    background: var(--ink);
    color: #c9cdd4;
    font-size: .8rem;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar-date {
    letter-spacing: .02em;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    font-weight: 800;
    font-size: .74rem;
    letter-spacing: .1em;
}

.live-badge:hover {
    color: var(--red);
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 0 rgba(226, 35, 26, .6);
    animation: live 1.6s infinite;
}

@keyframes live {
    0% { box-shadow: 0 0 0 0 rgba(226, 35, 26, .55); }
    70% { box-shadow: 0 0 0 9px rgba(226, 35, 26, 0); }
    100% { box-shadow: 0 0 0 0 rgba(226, 35, 26, 0); }
}

.socials {
    display: inline-flex;
    gap: 4px;
}

.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    color: #c9cdd4;
    transition: all .18s ease;
}

.socials a:hover {
    background: var(--red);
    color: #fff;
}

.socials-inverse a {
    color: var(--muted-2);
}

.socials-inverse a:hover {
    background: var(--red);
    color: #fff;
}

/* ---------- Masthead ---------- */
.masthead {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.masthead-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    color: var(--ink);
    padding: 6px;
    margin-left: -6px;
}

.masthead-search {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.search-form {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 420px;
}

.search-input {
    flex: 1;
    border: 2px solid var(--line);
    border-right: 0;
    border-radius: var(--radius) 0 0 var(--radius);
    padding: 10px 14px;
    font-size: .92rem;
    font-family: inherit;
    background: var(--paper-2);
    color: var(--ink);
    transition: border-color .18s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--red);
    background: #fff;
}

.search-btn {
    border: 0;
    background: var(--ink);
    color: #fff;
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    transition: background .18s ease;
}

.search-btn:hover {
    background: var(--red);
}

.suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 120;
    overflow: hidden;
}

.suggest-item {
    display: flex;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--paper-3);
    align-items: center;
    font-size: .88rem;
}

.suggest-item:last-child {
    border-bottom: 0;
}

.suggest-item:hover {
    background: var(--paper-2);
}

.suggest-img {
    width: 64px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.suggest-title {
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.suggest-cat {
    color: var(--red);
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.suggest-empty {
    padding: 14px;
    color: var(--muted);
    font-size: .88rem;
}

/* ---------- Nav principal ---------- */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--red);
    box-shadow: 0 2px 8px rgba(14, 15, 19, .18);
}

.main-nav-inner {
    display: flex;
    align-items: center;
    min-height: var(--nav-h);
    overflow-x: auto;
    scrollbar-width: none;
}

.main-nav-inner::-webkit-scrollbar {
    display: none;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-weight: 800;
    font-size: .8rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 0 15px;
    height: var(--nav-h);
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: background .18s ease, border-color .18s ease;
}

.nav-link:hover,
.nav-link.active {
    background: var(--red-dark);
    color: #fff;
    border-bottom-color: #fff;
}

.nav-spacer {
    flex: 1;
}

.nav-search {
    padding: 0 12px;
}

/* ---------- Ticker / Última hora ---------- */
.ticker {
    display: flex;
    align-items: stretch;
    background: var(--ink);
    border-bottom: 3px solid var(--red);
    overflow: hidden;
}

.ticker-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red);
    color: #fff;
    font-weight: 900;
    font-size: .76rem;
    letter-spacing: .08em;
    padding: 0 16px;
    white-space: nowrap;
    z-index: 2;
}

.ticker-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    animation: pulse 1.1s ease-in-out infinite;
}

.ticker-viewport {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ticker-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker 42s linear infinite;
    will-change: transform;
}

.ticker:hover .ticker-track {
    animation-play-state: paused;
}

@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    color: #f2f3f5;
    font-size: .86rem;
    font-weight: 600;
    padding: 0 26px;
}

.ticker-item:hover {
    color: var(--red);
}

.ticker-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--red);
    margin-right: 12px;
    flex-shrink: 0;
}

/* ---------- Secciones generales ---------- */
.section {
    padding: 34px 0;
}

.section-tinted {
    background: var(--paper-2);
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    border-bottom: 3px solid var(--ink);
    padding-bottom: 10px;
}

.section-title {
    margin: 0;
    font-size: 1.28rem;
    font-weight: 900;
    letter-spacing: .03em;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.section-title::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    background: var(--red);
    border-radius: 2px;
    margin-right: 10px;
    vertical-align: 2px;
}

.section-more {
    color: var(--red);
    font-weight: 800;
    font-size: .8rem;
    letter-spacing: .06em;
    white-space: nowrap;
}

.section-more:hover {
    color: var(--red-dark);
}

/* ---------- Hero ---------- */
.hero-section {
    padding: 26px 0 10px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 24px;
}

.hero-lead {
    position: relative;
    min-width: 0;
}

.hero-media {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--paper-3);
}

.hero-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform .5s ease;
}

.hero-media:hover .hero-img {
    transform: scale(1.03);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 11, 15, .92) 0%, rgba(10, 11, 15, .42) 42%, rgba(10, 11, 15, 0) 72%);
}

.hero-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.hero-title {
    margin: 2px 0 0;
    font-size: clamp(1.45rem, 3.1vw, 2.35rem);
    color: #fff;
    max-width: 20em;
}

.hero-title a:hover {
    color: #ffd7d4;
}

.hero-deck {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, .85);
    font-size: .98rem;
    max-width: 46em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-meta {
    color: rgba(255, 255, 255, .75);
    font-size: .82rem;
    margin-top: 2px;
}

.hero-meta strong {
    color: #fff;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

/* ---------- Cards ---------- */
.card {
    min-width: 0;
}

.card-media {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--paper-3);
    margin-bottom: 12px;
}

.card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform .45s ease;
}

.card:hover .card-img {
    transform: scale(1.05);
}

.card-body {
    min-width: 0;
}

.card-title {
    margin: 8px 0 6px;
    font-size: 1.06rem;
    font-weight: 800;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title a:hover {
    color: var(--red);
}

.card-large .card-title {
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    -webkit-line-clamp: 2;
}

.card-deck {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: .92rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    margin-top: 8px;
    color: var(--muted);
    font-size: .8rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
}

.card-meta a:hover {
    color: var(--red);
}

/* Compact */
.card-compact {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    min-width: 0;
}

.card-compact-media {
    flex-shrink: 0;
    width: 128px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--paper-3);
}

.card-compact-img {
    width: 128px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .4s ease;
}

.card-compact:hover .card-compact-img {
    transform: scale(1.06);
}

.card-compact-body {
    min-width: 0;
}

.card-compact-title {
    margin: 0 0 6px;
    font-size: .96rem;
    font-weight: 800;
    line-height: 1.28;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-compact-title a:hover {
    color: var(--red);
}

/* Row */
.card-row {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    min-width: 0;
}

.card-row:last-child {
    border-bottom: 0;
}

.card-row-media {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--paper-3);
}

.card-row-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .4s ease;
}

.card-row:hover .card-row-img {
    transform: scale(1.05);
}

.card-row-body {
    min-width: 0;
}

.card-row-title {
    margin: 8px 0 4px;
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.28;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-row-title a:hover {
    color: var(--red);
}

.card-row-deck {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: .9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Grillas ---------- */
.grid-featured {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.latest-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px;
}

.section-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 26px;
}

.section-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-left: 1px solid var(--line);
    padding-left: 26px;
}

.sidebar {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

/* ---------- Most read ---------- */
.most-read-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.most-read-item {
    display: flex;
    gap: 14px;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.most-read-item:last-child {
    border-bottom: 0;
}

.most-read-rank {
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--red);
    line-height: 1;
    min-width: 30px;
}

.most-read-title {
    font-weight: 700;
    font-size: .92rem;
    line-height: 1.32;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.most-read-title:hover {
    color: var(--red);
}

/* ---------- Opinión ---------- */
.opinion-section {
    background: var(--ink);
}

.opinion-section .section-title {
    color: #fff;
}

.opinion-section .section-title::before {
    background: var(--red);
}

.opinion-section .section-more {
    color: var(--muted-2);
}

.opinion-section .section-more:hover {
    color: #fff;
}

.opinion-section .section-head {
    border-bottom-color: #2b2d35;
}

.opinion-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.opinion-card {
    background: var(--ink-2);
    border: 1px solid #2b2d35;
    border-radius: var(--radius);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color .2s ease, transform .2s ease;
}

.opinion-card:hover {
    border-color: var(--red);
    transform: translateY(-3px);
}

.opinion-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.05rem;
}

.opinion-title {
    margin: 0;
    font-size: .98rem;
    color: #fff;
    line-height: 1.3;
}

.opinion-title a:hover {
    color: #ff8f88;
}

.opinion-author {
    color: var(--muted-2);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

/* ---------- TV / Videos ---------- */
.tv-section {
    background: var(--ink-2);
}

.tv-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.tv-brand {
    display: block;
    color: var(--red);
    font-weight: 900;
    font-size: .8rem;
    letter-spacing: .3em;
}

.tv-title {
    margin: 0;
    color: #fff;
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: .02em;
}

.tv-more {
    color: var(--muted-2);
    font-weight: 800;
    font-size: .8rem;
    letter-spacing: .06em;
    white-space: nowrap;
}

.tv-more:hover {
    color: #fff;
}

.tv-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.tv-grid-wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tv-card {
    min-width: 0;
}

.tv-media {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
}

.tv-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .82;
    transition: transform .45s ease, opacity .3s ease;
}

.tv-card:hover .tv-img {
    transform: scale(1.05);
    opacity: .6;
}

.tv-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.tv-play svg {
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .5));
    transition: transform .25s ease;
}

.tv-card:hover .tv-play svg {
    transform: scale(1.2);
    color: var(--red);
}

.tv-card-title {
    margin: 12px 0 0;
    color: #fff;
    font-size: .98rem;
    line-height: 1.3;
}

.tv-card-title a:hover {
    color: #ff8f88;
}

.video-page .tv-card-title {
    color: var(--ink);
}

.video-page .tv-card-title a:hover {
    color: var(--red);
}

/* ---------- Newsletter ---------- */
.newsletter-band {
    background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 60%, var(--red-deep) 100%);
    padding: 0;
}

.newsletter-band .newsletter {
    background: transparent;
    color: #fff;
}

.newsletter {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
}

.newsletter-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.newsletter-compact {
    padding: 20px;
}

.newsletter-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: .02em;
}

.newsletter-band .newsletter-title {
    font-size: clamp(1.2rem, 2.4vw, 1.7rem);
    color: #fff;
}

.newsletter-sub {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: .9rem;
}

.newsletter-band .newsletter-sub {
    color: rgba(255, 255, 255, .85);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.newsletter-input {
    flex: 1;
    min-width: 200px;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    padding: 11px 14px;
    font-size: .95rem;
    font-family: inherit;
    background: #fff;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--red);
}

.newsletter-band .newsletter-input {
    border-color: transparent;
    border-radius: var(--radius);
}

.newsletter-btn {
    background: var(--ink);
    color: #fff;
    border: 0;
    border-radius: var(--radius);
    font-weight: 800;
    font-size: .84rem;
    letter-spacing: .08em;
    padding: 12px 22px;
    transition: background .18s ease;
}

.newsletter-btn:hover {
    background: var(--red);
}

.newsletter-inverse .newsletter-btn {
    background: var(--red);
}

.newsletter-inverse .newsletter-btn:hover {
    background: var(--red-dark);
}

.newsletter-msg {
    margin: 0;
    font-size: .88rem;
    font-weight: 600;
    min-height: 1.2em;
}

.newsletter-msg.ok {
    color: #1b7f3c;
}

.newsletter-msg.err {
    color: var(--red);
}

.newsletter-band .newsletter-msg.ok {
    color: #d8ffdf;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

/* ---------- Publicidad ---------- */
.ad {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(45deg, var(--paper-2), var(--paper-2) 10px, var(--paper-3) 10px, var(--paper-3) 20px);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.ad-label {
    position: absolute;
    top: 6px;
    left: 8px;
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .14em;
    color: var(--muted-2);
}

.ad-leaderboard {
    width: 100%;
    min-height: 250px;
    margin: 26px 0 6px;
}

.ad-rectangle {
    width: 100%;
    min-height: 250px;
    max-width: 336px;
    margin: 0 auto;
}

.ad-mobile {
    min-height: 100px;
}

.ad-inarticle {
    min-height: 250px;
    margin: 26px 0;
}

@media (max-width: 720px) {
    .ad-leaderboard {
        min-height: 100px;
    }
}

/* ---------- Artículo ---------- */
.article-page {
    padding: 26px 0 10px;
}

.article-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
}

.article-main {
    min-width: 0;
    max-width: 860px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    margin-bottom: 14px;
}

.breadcrumbs a {
    color: var(--muted);
}

.breadcrumbs a:hover {
    color: var(--red);
}

.crumb-sep {
    color: var(--line);
}

.article-title {
    margin: 12px 0 0;
    font-size: clamp(1.7rem, 4.2vw, 2.7rem);
    font-weight: 900;
    letter-spacing: -.015em;
    line-height: 1.12;
}

.article-deck {
    margin: 14px 0 0;
    font-size: 1.12rem;
    line-height: 1.5;
    color: #3d4149;
    font-weight: 500;
    max-width: 44em;
}

.article-byline {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0 8px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}

.byline-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.byline-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: .86rem;
    color: var(--muted);
    min-width: 0;
}

.byline-author {
    font-size: .9rem;
    color: var(--ink);
}

.byline-author a:hover {
    color: var(--red);
}

.byline-updated {
    color: var(--muted-2);
    font-size: .8rem;
}

.article-byline .share {
    margin-left: auto;
}

.article-figure {
    margin: 22px 0 0;
}

.article-img {
    width: 100%;
    border-radius: var(--radius);
}

.article-figure figcaption {
    margin-top: 8px;
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.4;
}

/* Cuerpo del artículo */
.article-body {
    font-family: var(--font-body);
    font-size: 1.13rem;
    line-height: 1.78;
    color: #1c1e24;
    margin-top: 24px;
}

.article-body > p:first-of-type::first-letter {
    font-size: 3.1em;
    font-weight: 700;
    line-height: .9;
    color: var(--red);
    float: left;
    margin: .06em .12em 0 0;
}

.article-body p {
    margin: 0 0 1.25em;
}

.article-body h2 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    margin: 1.5em 0 .6em;
}

.article-body h3 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    margin: 1.4em 0 .5em;
}

.article-body a {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-body blockquote {
    margin: 1.6em 0;
    padding: 18px 22px;
    border-left: 5px solid var(--red);
    background: var(--paper-2);
    font-size: 1.08em;
    font-style: italic;
}

.article-body blockquote p {
    margin: 0;
}

.article-body ul,
.article-body ol {
    margin: 0 0 1.25em;
    padding-left: 1.4em;
}

.article-body li {
    margin-bottom: .4em;
}

.article-body img {
    border-radius: var(--radius);
    margin: 1.2em 0;
}

.article-body figure {
    margin: 1.6em 0;
}

.article-body figcaption {
    font-family: var(--font-ui);
    font-size: .8rem;
    color: var(--muted);
    margin-top: .5em;
}

.article-body iframe {
    max-width: 100%;
    border: 0;
    border-radius: var(--radius);
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
}

.article-body .wp-block-embed,
.article-body .wp-block-embed__wrapper {
    margin: 1.6em 0;
}

.article-body hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 2em 0;
}

/* Compartir */
.share {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.share-label {
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .12em;
    color: var(--muted);
    margin-right: 4px;
}

.share-btn {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform .15s ease, opacity .15s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: .88;
}

.share-wa { background: #25d366; }
.share-fb { background: #1877f2; }
.share-x { background: #0f1419; }
.share-li { background: #0a66c2; }
.share-copy { background: var(--ink); }

.article-share-end {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.share-inline .share-btn {
    width: 42px;
    height: 42px;
}

/* Etiquetas */
.article-tags {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tags-label {
    font-size: .8rem;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.tag {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: .82rem;
    font-weight: 700;
    transition: all .18s ease;
}

.tag:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

/* Caja de autor */
.author-box {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 28px;
    padding: 20px;
    background: var(--paper-2);
    border-radius: var(--radius);
}

.author-box-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-box-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.author-box-role {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.author-box-name {
    font-size: 1.08rem;
    font-weight: 800;
}

.author-box-name:hover {
    color: var(--red);
}

.author-box-more {
    font-size: .84rem;
    font-weight: 700;
    color: var(--red);
}

.author-box-more:hover {
    color: var(--red-dark);
}

/* Relacionadas */
.related-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ---------- Categoría ---------- */
.category-page {
    padding: 30px 0 20px;
}

.category-header {
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 3px solid var(--ink);
}

.category-title {
    margin: 0 0 6px;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -.01em;
    text-transform: uppercase;
}

.category-desc {
    margin: 0;
    color: var(--muted);
    max-width: 42em;
}

.category-count {
    display: inline-block;
    margin-top: 10px;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .1em;
    color: #fff;
    background: var(--ink);
    padding: 4px 10px;
    border-radius: 3px;
}

.category-lead {
    margin-bottom: 30px;
}

/* ---------- Autor ---------- */
.author-page {
    padding: 30px 0 20px;
}

.author-header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 24px;
    background: var(--paper-2);
    border-radius: var(--radius);
    border-left: 5px solid var(--red);
}

.author-header-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-header-info {
    min-width: 0;
}

.author-header-name {
    margin: 0 0 6px;
    font-size: 1.6rem;
    font-weight: 900;
}

.author-header-bio {
    margin: 0 0 8px;
    color: var(--muted);
    max-width: 46em;
}

.author-header-count {
    font-size: .8rem;
    font-weight: 800;
    color: var(--red);
    letter-spacing: .04em;
}

/* ---------- Búsqueda ---------- */
.search-page {
    padding: 30px 0 20px;
}

.search-header {
    margin-bottom: 24px;
}

.search-title {
    margin: 0 0 16px;
    font-size: clamp(1.6rem, 3.4vw, 2.2rem);
    font-weight: 900;
}

.search-form-lg {
    max-width: 640px;
}

.search-form-lg .search-btn {
    padding: 0 24px;
    font-weight: 800;
    font-size: .84rem;
    letter-spacing: .06em;
}

.search-summary {
    color: var(--muted);
    font-size: .94rem;
    margin: 0 0 8px;
}

.search-summary strong {
    color: var(--ink);
}

/* ---------- Video page ---------- */
.video-page {
    padding: 30px 0 20px;
}

.video-header {
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 3px solid var(--ink);
}

.video-title {
    margin: 4px 0 6px;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
}

.video-sub {
    margin: 0;
    color: var(--muted);
}

/* ---------- Errores ---------- */
.error-page {
    padding: 70px 0 90px;
    text-align: center;
}

.error-inner {
    max-width: 620px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.error-code {
    font-size: clamp(4.5rem, 12vw, 7.5rem);
    font-weight: 900;
    line-height: 1;
    color: var(--red);
    letter-spacing: -.03em;
}

.error-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 900;
}

.error-text {
    color: var(--muted);
    margin: 0 0 8px;
}

.error-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ---------- Paginación ---------- */
.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 28px 0 10px;
    flex-wrap: wrap;
}

.page-link {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-weight: 800;
    font-size: .9rem;
    color: var(--ink);
    transition: all .15s ease;
}

.page-link:hover {
    border-color: var(--red);
    color: var(--red);
}

.page-link.current {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.page-ellipsis {
    color: var(--muted);
    padding: 0 4px;
}

/* ---------- Empty ---------- */
.empty-state {
    padding: 34px;
    text-align: center;
    color: var(--muted);
    background: var(--paper-2);
    border-radius: var(--radius);
    border: 1px dashed var(--line);
    margin: 12px 0 0;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink);
    color: #c9cdd4;
    margin-top: 46px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 34px;
    padding-top: 44px;
    padding-bottom: 34px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}

.footer-tagline {
    margin: 0;
    color: var(--muted-2);
    font-size: .9rem;
    max-width: 30em;
}

.footer-heading {
    color: #fff;
    font-size: .84rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #2b2d35;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-links a {
    color: #c9cdd4;
    font-size: .9rem;
}

.footer-links a:hover {
    color: var(--red);
}

.footer-bottom {
    border-top: 1px solid #2b2d35;
    padding: 16px 0;
    font-size: .8rem;
    color: var(--muted-2);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-bottom-links {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom-links a:hover {
    color: var(--red);
}

.footer-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--muted-2);
    display: inline-block;
}

/* ---------- Drawer móvil ---------- */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 11, 15, .6);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 190;
}

body.drawer-open .drawer-overlay {
    opacity: 1;
    pointer-events: auto;
}

.drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(330px, 86vw);
    background: var(--ink);
    z-index: 200;
    transform: translateX(-100%);
    transition: transform .28s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 18px 20px 30px;
}

body.drawer-open .drawer {
    transform: translateX(0);
}

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-close {
    background: none;
    border: 0;
    color: var(--muted-2);
    font-size: 2rem;
    line-height: 1;
    padding: 0 4px;
}

.drawer-close:hover {
    color: var(--red);
}

.drawer-nav {
    display: flex;
    flex-direction: column;
}

.drawer-link {
    color: #fff;
    font-weight: 800;
    font-size: .95rem;
    letter-spacing: .05em;
    padding: 13px 4px;
    border-bottom: 1px solid #26282f;
}

.drawer-link:hover,
.drawer-link.active {
    color: var(--red);
}

/* ---------- To top ---------- */
.to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: var(--ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all .25s ease;
    z-index: 150;
    box-shadow: var(--shadow-md);
}

.to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.to-top:hover {
    background: var(--red);
}

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translate(-50%, 20px);
    background: var(--ink);
    color: #fff;
    padding: 12px 22px;
    border-radius: var(--radius);
    font-size: .9rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: all .28s ease;
    z-index: 250;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .grid-featured {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .opinion-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tv-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tv-grid-wide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .latest-grid,
    .article-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .sidebar .ad-rectangle {
        max-width: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .section-grid {
        grid-template-columns: 1fr;
    }

    .section-list {
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid var(--line);
        padding-top: 18px;
    }
}

@media (max-width: 720px) {
    .topbar-date {
        display: none;
    }

    .masthead-inner {
        gap: 14px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .masthead-search {
        display: none;
    }

    .logo-lg .logo-main {
        font-size: 1.5rem;
    }

    .card-row {
        grid-template-columns: 132px minmax(0, 1fr);
        gap: 14px;
    }

    .hero-side {
        grid-template-columns: 1fr;
    }

    .hero-overlay {
        padding: 16px;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 26px;
        padding-top: 34px;
    }

    .article-body {
        font-size: 1.06rem;
    }

    .article-byline {
        gap: 10px;
    }

    .article-byline .share {
        margin-left: 0;
        width: 100%;
    }

    .author-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .grid-featured,
    .opinion-grid,
    .tv-grid,
    .tv-grid-wide {
        grid-template-columns: 1fr;
    }

    .card-row {
        grid-template-columns: 1fr;
    }

    .card-row-media {
        max-width: 240px;
    }

    .ticker-label {
        font-size: .68rem;
        padding: 0 10px;
    }

    .ticker-item {
        font-size: .8rem;
        padding: 0 16px;
    }

    .section {
        padding: 26px 0;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-input {
        min-width: 0;
    }

    .newsletter-btn {
        width: 100%;
    }

    .logo-lg .logo-main {
        font-size: 1.32rem;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (min-width: 1600px) {
    :root {
        --container: 1400px;
    }
}

/* ---------- Accesibilidad ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .ticker-track,
    .live-dot,
    .chip-pulse,
    .ticker-pulse {
        animation: none;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}

@media print {
    .topbar,
    .main-nav,
    .ticker,
    .site-footer,
    .sidebar,
    .newsletter,
    .ad,
    .share,
    .to-top {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }

    .article-body {
        font-size: 12pt;
    }
}