/*
 * assets/css/main.css
 * CDNews Periodismo - Estilos principales del tema
 * Descripcion: Variables CSS, layout, componentes, animaciones y media queries completos.
 */

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-ui);
    background: #e8e8e8;
    color: #2c2c2c;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--cdnews-primary); outline-offset: 2px; border-radius: 2px; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ============================================================
   VARIABLES CSS
============================================================ */
:root {
    --cdnews-primary:      #C0392B;
    --cdnews-accent:       #E8A020;
    --cdnews-nav-bg:       #1A1A1A;
    --cdnews-footer-bg:    #111111;
    --cdnews-footer-text:  #CCCCCC;
    --cdnews-loader:       #C0392B;
    --cdnews-btn:          #E8A020;
    --cdnews-btn-text:     #1A1A1A;
    --cdnews-tag:          #C0392B;
    --font-heading:        'Playfair Display', Georgia, serif;
    --font-body:           'Merriweather', Georgia, serif;
    --font-ui:             'Inter', Arial, sans-serif;
    --cdnews-border:       #e0e0e0;
    --cdnews-bg:           #f5f5f5;
    --cdnews-surface:      #ffffff;
    --cdnews-text:         #2c2c2c;
    --cdnews-text-muted:   #666666;
    --cdnews-radius:       6px;
    --cdnews-shadow:       0 2px 12px rgba(0,0,0,.08);
    --cdnews-shadow-hover: 0 6px 24px rgba(0,0,0,.14);
    --cdnews-transition:   0.25s ease;
    --cdnews-max-w:        1240px;
    --cdnews-sidebar-w:    310px;
    --cdnews-gap:          24px;
}

/* ============================================================
   LOADER
============================================================ */
.cdnews-loader {
    position: fixed;
    inset: 0;
    background: var(--cdnews-surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity .4s ease, visibility .4s ease;
}
.cdnews-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.cdnews-loader__ring { position: relative; width: 52px; height: 52px; }
.cdnews-loader__ring div {
    position: absolute; inset: 0;
    border: 4px solid transparent;
    border-top-color: var(--cdnews-loader);
    border-radius: 50%;
    animation: cdnews-spin .8s linear infinite;
}
.cdnews-loader__ring div:nth-child(2) { animation-delay: -.2s; opacity: .7; }
.cdnews-loader__ring div:nth-child(3) { animation-delay: -.4s; opacity: .4; }
.cdnews-loader__ring div:nth-child(4) { animation-delay: -.6s; opacity: .2; }
.cdnews-loader__text { margin-top: 16px; font-size: .85rem; color: var(--cdnews-text-muted); letter-spacing: .04em; }
@keyframes cdnews-spin { to { transform: rotate(360deg); } }

/* ============================================================
   WRAPPER (sombra lateral elegante)
============================================================ */
.cdnews-site-wrap {
    max-width: var(--cdnews-max-w);
    margin: 0 auto;
    background: var(--cdnews-surface);
    box-shadow: 0 0 60px rgba(0,0,0,.13);
    min-height: 100vh;
}

/* ============================================================
   ANIMACIONES DE ENTRADA
============================================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .55s cubic-bezier(.4,0,.2,1), transform .55s cubic-bezier(.4,0,.2,1);
}
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.animate-on-scroll:nth-child(2) { transition-delay: .07s; }
.animate-on-scroll:nth-child(3) { transition-delay: .14s; }
.animate-on-scroll:nth-child(4) { transition-delay: .21s; }
.animate-on-scroll:nth-child(5) { transition-delay: .28s; }

/* ============================================================
   ZONAS DE PUBLICIDAD
============================================================ */
.cdnews-ad {
    display: flex; flex-direction: column; align-items: center;
    width: 100%; padding: 8px 0;
    background: #fafafa;
    border: 1px dashed var(--cdnews-border);
    border-radius: var(--cdnews-radius);
    overflow: hidden; margin: 16px 0;
}
.cdnews-ad__label {
    font-size: .65rem; color: #999; letter-spacing: .08em;
    text-transform: uppercase; margin-bottom: 6px;
}
.cdnews-ad--banner_top, .cdnews-ad--banner_bottom { margin: 0; border-radius: 0; border-left: none; border-right: none; }
.cdnews-ad--inline { margin: 24px 0; }

/* ============================================================
   HEADER
============================================================ */
.cdnews-header { background: var(--cdnews-nav-bg); color: #fff; }
.cdnews-header__inner {
    padding: 12px 24px;
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.cdnews-header__datetime { font-size: .78rem; color: rgba(255,255,255,.7); margin-right: auto; }
.cdnews-header__logo img { max-height: 70px; width: auto; }
.cdnews-header__logo-text {
    font-family: var(--font-heading); font-size: 1.8rem; font-weight: 900;
    color: #fff; line-height: 1.1; letter-spacing: -.02em;
}
.cdnews-header__logo-text small {
    display: block; font-size: .75rem; font-weight: 300;
    letter-spacing: .06em; color: rgba(255,255,255,.7); font-style: italic;
}
.cdnews-social-links { display: flex; gap: 10px; align-items: center; }
.cdnews-social {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,.1); color: #fff;
    transition: background var(--cdnews-transition), transform var(--cdnews-transition);
}
.cdnews-social svg { width: 15px; height: 15px; }
.cdnews-social:hover { background: var(--cdnews-primary); transform: translateY(-2px); }

/* ============================================================
   NAVEGACION
============================================================ */
.cdnews-nav {
    background: var(--cdnews-nav-bg);
    border-top: 1px solid rgba(255,255,255,.08);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.cdnews-nav__inner { display: flex; align-items: stretch; position: relative; padding: 0 16px; }
.cdnews-nav__menu-wrap { flex: 1; }
.cdnews-nav__menu { display: flex; list-style: none; margin: 0; padding: 0; }
.cdnews-nav-item > a {
    display: flex; align-items: center; gap: 4px; padding: 14px;
    font-size: .88rem; font-weight: 500; color: rgba(255,255,255,.88);
    letter-spacing: .02em; white-space: nowrap; position: relative;
    transition: color var(--cdnews-transition);
}
.cdnews-nav-item > a::after {
    content: ''; position: absolute; bottom: 0; left: 14px; right: 14px;
    height: 2px; background: var(--cdnews-accent);
    transform: scaleX(0); transform-origin: left;
    transition: transform var(--cdnews-transition);
}
.cdnews-nav-item > a:hover, .cdnews-nav-item--active > a { color: #fff; }
.cdnews-nav-item > a:hover::after, .cdnews-nav-item--active > a::after { transform: scaleX(1); }
.cdnews-nav-arrow {
    display: inline-block; width: 8px; height: 8px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform var(--cdnews-transition);
}
.cdnews-nav-item--has-children:hover .cdnews-nav-arrow { transform: rotate(-135deg) translateY(-2px); }
.cdnews-submenu {
    position: absolute; top: 100%; left: 0; background: var(--cdnews-nav-bg);
    min-width: 200px; box-shadow: 0 8px 24px rgba(0,0,0,.3);
    border-top: 2px solid var(--cdnews-primary);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: all var(--cdnews-transition); z-index: 200;
}
.cdnews-nav-item--has-children { position: relative; }
.cdnews-nav-item--has-children:hover > .cdnews-submenu,
.cdnews-nav-item--has-children:focus-within > .cdnews-submenu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.cdnews-submenu .cdnews-nav-item > a { padding: 10px 18px; font-size: .84rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.cdnews-nav__search-btn {
    display: flex; align-items: center; justify-content: center;
    padding: 10px 14px; color: rgba(255,255,255,.8);
    transition: color var(--cdnews-transition);
}
.cdnews-nav__search-btn svg { width: 18px; height: 18px; }
.cdnews-nav__search-btn:hover { color: #fff; }
.cdnews-nav__search-panel { max-height: 0; overflow: hidden; background: #252525; transition: max-height .3s ease; }
.cdnews-nav__search-panel.is-open { max-height: 80px; }
.cdnews-search-form { display: flex; align-items: stretch; padding: 12px 24px; }
.cdnews-search-form input[type=search] {
    flex: 1; padding: 10px 16px; font-size: .9rem;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--cdnews-radius) 0 0 var(--cdnews-radius);
    color: #fff; font-family: var(--font-ui); outline: none;
}
.cdnews-search-form input[type=search]::placeholder { color: rgba(255,255,255,.45); }
.cdnews-search-form button {
    padding: 10px 18px; background: var(--cdnews-primary); color: #fff;
    border-radius: 0 var(--cdnews-radius) var(--cdnews-radius) 0;
    font-size: .88rem; font-weight: 500; transition: background var(--cdnews-transition);
}
.cdnews-search-form button:hover { background: #a93226; }
.cdnews-search-form--large { max-width: 500px; margin: 16px auto 0; }
.cdnews-search-form--large input[type=search] { background: var(--cdnews-bg); color: var(--cdnews-text); border-color: var(--cdnews-border); }
.cdnews-nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 14px 12px; align-items: center; justify-content: center; }
.cdnews-nav__toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s ease; }

/* ============================================================
   TICKER
============================================================ */
.cdnews-ticker {
    background: var(--cdnews-surface); border-bottom: 1px solid var(--cdnews-border);
    display: flex; align-items: stretch; overflow: hidden; height: 38px;
}
.cdnews-ticker__label {
    background: var(--cdnews-primary); color: #fff; padding: 0 16px;
    display: flex; align-items: center; font-size: .75rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; flex-shrink: 0;
}
.cdnews-ticker__track-wrap { flex: 1; overflow: hidden; display: flex; align-items: center; }
.cdnews-ticker__track {
    display: flex; white-space: nowrap;
    animation: cdnews-ticker 40s linear infinite;
    will-change: transform;
}
.cdnews-ticker.is-paused .cdnews-ticker__track { animation-play-state: paused; }
.cdnews-ticker__item {
    font-size: .82rem; color: var(--cdnews-text); padding: 0 20px;
    display: inline-flex; align-items: center;
    transition: color var(--cdnews-transition);
}
.cdnews-ticker__item:hover { color: var(--cdnews-primary); }
.cdnews-ticker__sep { color: var(--cdnews-text-muted); font-size: .75rem; }
.cdnews-ticker__controls { display: flex; align-items: center; padding: 0 10px; flex-shrink: 0; }
.cdnews-ticker__pause {
    width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
    color: var(--cdnews-text-muted); border-radius: 50%;
    transition: color var(--cdnews-transition), background var(--cdnews-transition);
}
.cdnews-ticker__pause:hover { color: var(--cdnews-primary); background: var(--cdnews-bg); }
.cdnews-ticker__pause svg { width: 12px; height: 12px; }
@keyframes cdnews-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   LAYOUT
============================================================ */
.cdnews-content-wrap { padding: 0; }
.cdnews-layout {
    display: grid; grid-template-columns: 1fr var(--cdnews-sidebar-w);
    gap: 0; padding: 20px 20px 30px; align-items: start;
}
.cdnews-layout--404 { grid-template-columns: 1fr; }
.cdnews-main { min-width: 0; }

/* ============================================================
   HERO ROW
============================================================ */
.cdnews-hero-row { display: grid; grid-template-columns: 1fr 260px; gap: 16px; margin-bottom: 20px; }
.cdnews-hero-row__aside {
    display: flex; flex-direction: column;
    border: 1px solid var(--cdnews-border); border-radius: var(--cdnews-radius); overflow: hidden;
}

/* ============================================================
   SLIDER HERO
============================================================ */
.cdnews-slider {
    position: relative; overflow: hidden; border-radius: var(--cdnews-radius);
    background: #1a1a1a; aspect-ratio: 16/9; max-height: 420px;
}
.cdnews-slider__track { position: relative; width: 100%; height: 100%; }
.cdnews-slider__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s cubic-bezier(.4,0,.2,1); }
.cdnews-slider__slide.is-active { opacity: 1; }
.cdnews-slider__bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transform: scale(1); transition: transform 6s ease;
}
.cdnews-slider__slide.is-active .cdnews-slider__bg { transform: scale(1.04); }
.cdnews-slider__bg--empty { background: linear-gradient(135deg, #2a2a2a, #1a1a1a); }
.cdnews-slider__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
}
.cdnews-slider__content { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px 22px 36px; }
.cdnews-slider__title {
    font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700;
    color: #fff; line-height: 1.3; margin: 8px 0 10px; text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.cdnews-slider__title a:hover { color: var(--cdnews-accent); }
.cdnews-slider__meta { display: flex; gap: 12px; font-size: .78rem; color: rgba(255,255,255,.75); }
.cdnews-slider__arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; background: rgba(0,0,0,.5); color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    transition: background var(--cdnews-transition); z-index: 10; backdrop-filter: blur(4px);
}
.cdnews-slider__arrow:hover { background: var(--cdnews-primary); }
.cdnews-slider__arrow svg { width: 18px; height: 18px; }
.cdnews-slider__arrow--prev { left: 12px; }
.cdnews-slider__arrow--next { right: 12px; }
.cdnews-slider__dots {
    position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 6px; z-index: 10;
}
.cdnews-slider__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,.4); transition: background var(--cdnews-transition), width .3s ease; padding: 0;
}
.cdnews-slider__dot.is-active { background: var(--cdnews-accent); width: 22px; border-radius: 4px; }
.cdnews-slider__progress { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,.15); }
.cdnews-slider__progress-bar { height: 100%; background: var(--cdnews-accent); width: 0%; transition: width linear; }

/* ============================================================
   ASIDE (Lo mas visto / En tendencia)
============================================================ */
.cdnews-aside-section { flex: 1; overflow: hidden; }
.cdnews-aside-section + .cdnews-aside-section { border-top: 1px solid var(--cdnews-border); }
.cdnews-aside-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; background: var(--cdnews-bg); border-bottom: 1px solid var(--cdnews-border);
}
.cdnews-aside-header h3 { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.cdnews-aside-header__arrows { display: flex; gap: 4px; }
.cdnews-aside-header__arrows button,
.cdnews-aside-header__arrows span {
    width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; border-radius: 3px; color: var(--cdnews-text-muted);
    background: var(--cdnews-surface); border: 1px solid var(--cdnews-border);
    transition: all var(--cdnews-transition);
}
.cdnews-aside-header__arrows button:hover { color: var(--cdnews-primary); border-color: var(--cdnews-primary); }
.cdnews-card-side {
    display: grid; grid-template-columns: 80px 1fr; gap: 10px;
    padding: 10px 14px; border-bottom: 1px solid var(--cdnews-border);
    transition: background var(--cdnews-transition);
}
.cdnews-card-side:hover { background: var(--cdnews-bg); }
.cdnews-card-side__thumb { display: block; width: 80px; height: 60px; overflow: hidden; border-radius: 4px; }
.cdnews-card-side__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cdnews-card-side__cat { font-size: .65rem; font-weight: 700; letter-spacing: .06em; color: var(--cdnews-primary); text-transform: uppercase; display: block; margin-bottom: 3px; }
.cdnews-card-side__title { font-size: .8rem; font-weight: 600; line-height: 1.35; color: var(--cdnews-text); }
.cdnews-card-side__title a:hover { color: var(--cdnews-primary); }
.cdnews-card-side__time { font-size: .7rem; color: var(--cdnews-text-muted); margin-top: 3px; display: block; }

/* ============================================================
   CABECERAS DE SECCION
============================================================ */
.cdnews-section { margin-bottom: 28px; }
.cdnews-section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px; padding-bottom: 10px;
    border-bottom: 2px solid var(--cdnews-border); position: relative;
}
.cdnews-section-header::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 48px; height: 2px; background: var(--cdnews-primary);
}
.cdnews-section-header__title { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.cdnews-section-header__more {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: .78rem; font-weight: 600; color: var(--cdnews-primary);
    text-transform: uppercase; letter-spacing: .04em; transition: gap var(--cdnews-transition);
}
.cdnews-section-header__more:hover { gap: 8px; }
.cdnews-section-header__more svg { width: 14px; height: 14px; }

/* ============================================================
   GRIDS
============================================================ */
.cdnews-grid { display: grid; gap: var(--cdnews-gap); }
.cdnews-grid--3col { grid-template-columns: repeat(3, 1fr); }
.cdnews-grid--2col { grid-template-columns: repeat(2, 1fr); }
.cdnews-grid--mini { gap: 12px; }

/* ============================================================
   TARJETA ESTANDAR
============================================================ */
.cdnews-card {
    background: var(--cdnews-surface); border: 1px solid var(--cdnews-border);
    border-radius: var(--cdnews-radius); overflow: hidden;
    transition: box-shadow var(--cdnews-transition), transform var(--cdnews-transition);
    display: flex; flex-direction: column;
}
.cdnews-card:hover { box-shadow: var(--cdnews-shadow-hover); transform: translateY(-3px); }
.cdnews-card--ad { border: 1px dashed var(--cdnews-border); background: #fafafa; align-items: center; justify-content: center; padding: 16px; min-height: 180px; }
.cdnews-card__img-wrap { display: block; position: relative; overflow: hidden; aspect-ratio: 16/10; background: #e8e8e8; }
.cdnews-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.4,0,.2,1); }
.cdnews-card:hover .cdnews-card__img-wrap img { transform: scale(1.04); }
.cdnews-card__img-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #e8e8e8, #d0d0d0); }
.cdnews-cat-badge {
    position: absolute; bottom: 8px; left: 8px;
    background: var(--cdnews-tag); color: #fff;
    font-size: .62rem; font-weight: 700; letter-spacing: .07em;
    padding: 3px 8px; border-radius: 3px; text-transform: uppercase;
}
.cdnews-cat-badge--single { position: static; display: inline-block; margin-right: 6px; margin-bottom: 8px; }
.cdnews-cat-badge--slider { position: static; display: inline-block; margin-bottom: 8px; }
.cdnews-card__body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.cdnews-card__cat { font-size: .67rem; font-weight: 700; letter-spacing: .06em; color: var(--cdnews-primary); text-transform: uppercase; margin-bottom: 6px; display: block; }
.cdnews-card__title { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; line-height: 1.35; color: var(--cdnews-text); margin-bottom: 8px; flex: 1; }
.cdnews-card__title a:hover { color: var(--cdnews-primary); }
.cdnews-card__excerpt { font-size: .82rem; color: var(--cdnews-text-muted); line-height: 1.55; margin-bottom: 10px; }
.cdnews-card__meta { display: flex; gap: 10px; font-size: .72rem; color: var(--cdnews-text-muted); margin-top: auto; padding-top: 10px; border-top: 1px solid var(--cdnews-border); }

/* ============================================================
   TARJETA MINI
============================================================ */
.cdnews-card-mini {
    display: grid; grid-template-columns: 100px 1fr; gap: 12px;
    padding: 12px; border: 1px solid var(--cdnews-border);
    border-radius: var(--cdnews-radius); background: var(--cdnews-surface);
    transition: box-shadow var(--cdnews-transition);
}
.cdnews-card-mini:hover { box-shadow: var(--cdnews-shadow); }
.cdnews-card-mini__thumb { display: block; width: 100px; height: 72px; overflow: hidden; border-radius: 4px; background: #e8e8e8; }
.cdnews-card-mini__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.cdnews-card-mini:hover .cdnews-card-mini__thumb img { transform: scale(1.05); }
.cdnews-card-mini__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #e8e8e8, #d0d0d0); }
.cdnews-card-mini__body { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.cdnews-card-mini__title { font-size: .88rem; font-weight: 600; line-height: 1.35; color: var(--cdnews-text); margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cdnews-card-mini__title a:hover { color: var(--cdnews-primary); }
.cdnews-card-mini__time { font-size: .72rem; color: var(--cdnews-text-muted); }

/* ============================================================
   BOTONES
============================================================ */
.cdnews-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px;
    background: var(--cdnews-btn); color: var(--cdnews-btn-text);
    font-size: .85rem; font-weight: 600; border-radius: var(--cdnews-radius);
    transition: background var(--cdnews-transition), transform var(--cdnews-transition);
}
.cdnews-btn:hover { background: #d49018; transform: translateY(-1px); }
.cdnews-btn--primary { background: var(--cdnews-primary); color: #fff; }
.cdnews-btn--primary:hover { background: #a93226; }
.cdnews-btn--load-more {
    display: block; width: 100%; max-width: 280px; margin: 16px auto 0;
    text-align: center; border: 2px solid var(--cdnews-border);
    background: var(--cdnews-surface); color: var(--cdnews-text);
    padding: 12px 24px; border-radius: 50px; font-size: .85rem; font-weight: 600;
    transition: all var(--cdnews-transition);
}
.cdnews-btn--load-more:hover { border-color: var(--cdnews-primary); color: var(--cdnews-primary); }
.cdnews-btn--load-more.is-loading { opacity: .6; pointer-events: none; }

/* ============================================================
   NOTA INDIVIDUAL
============================================================ */
.cdnews-breadcrumb { font-size: .78rem; color: var(--cdnews-text-muted); margin-bottom: 14px; }
.cdnews-breadcrumb a:hover { color: var(--cdnews-primary); }
.cdnews-breadcrumb span { margin: 0 6px; }
.cdnews-single__cats { margin-bottom: 10px; }
.cdnews-single__title { font-family: var(--font-heading); font-size: clamp(1.4rem,3vw,2rem); font-weight: 700; line-height: 1.25; margin-bottom: 14px; letter-spacing: -.02em; }
.cdnews-single__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .8rem; color: var(--cdnews-text-muted); margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--cdnews-border); }
.cdnews-single__meta svg { width: 14px; height: 14px; flex-shrink: 0; }
.cdnews-single__author { font-weight: 600; color: var(--cdnews-text); }
.cdnews-single__sep { color: var(--cdnews-border); }
.cdnews-single__hero-img { margin: 0 0 24px; border-radius: var(--cdnews-radius); overflow: hidden; }
.cdnews-single__img { width: 100%; height: auto; }
.cdnews-single__hero-img figcaption { font-size: .75rem; color: var(--cdnews-text-muted); padding: 8px 12px; background: var(--cdnews-bg); font-style: italic; border-radius: 0 0 var(--cdnews-radius) var(--cdnews-radius); }

/* Contenido */
.cdnews-single__content { font-family: var(--font-body); font-size: 1rem; line-height: 1.85; color: #333; margin-bottom: 24px; }
.cdnews-single__content p { margin-bottom: 1.4em; }
.cdnews-single__content h2 { font-family: var(--font-heading); font-size: 1.45rem; font-weight: 700; margin: 1.6em 0 .6em; }
.cdnews-single__content h3 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; margin: 1.4em 0 .5em; }
.cdnews-single__content a { color: var(--cdnews-primary); text-decoration: underline; }
.cdnews-single__content blockquote { border-left: 4px solid var(--cdnews-primary); padding: 14px 20px; margin: 1.6em 0; background: #fdf7f7; border-radius: 0 var(--cdnews-radius) var(--cdnews-radius) 0; font-style: italic; color: #555; }
.cdnews-single__content img { max-width: 100%; border-radius: 4px; margin: 1em 0; }
.cdnews-single__content ul, .cdnews-single__content ol { padding-left: 1.8em; margin-bottom: 1.2em; }
.cdnews-single__content ul li { list-style: disc; margin-bottom: .4em; }
.cdnews-single__content ol li { list-style: decimal; margin-bottom: .4em; }

/* Tags */
.cdnews-single__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; padding-top: 16px; border-top: 1px solid var(--cdnews-border); }
.cdnews-tag { padding: 5px 12px; border: 1px solid var(--cdnews-border); border-radius: 50px; font-size: .78rem; color: var(--cdnews-text-muted); transition: all var(--cdnews-transition); }
.cdnews-tag:hover { border-color: var(--cdnews-primary); color: var(--cdnews-primary); background: #fff8f8; }

/* Compartir */
.cdnews-share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 16px 0; padding: 14px 16px; background: var(--cdnews-bg); border-radius: var(--cdnews-radius); border: 1px solid var(--cdnews-border); }
.cdnews-share__label { font-size: .8rem; font-weight: 600; color: var(--cdnews-text-muted); }
.cdnews-share__btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 50px; font-size: .78rem; font-weight: 600; transition: all var(--cdnews-transition); cursor: pointer; border: 1px solid transparent; color: #fff; }
.cdnews-share__btn svg { width: 14px; height: 14px; }
.cdnews-share__btn--facebook { background: #1877F2; }
.cdnews-share__btn--facebook:hover { background: #1469D0; }
.cdnews-share__btn--twitter { background: #000; }
.cdnews-share__btn--twitter:hover { background: #333; }
.cdnews-share__btn--whatsapp { background: #25D366; }
.cdnews-share__btn--whatsapp:hover { background: #1EBF5B; }
.cdnews-share__btn--copy { background: var(--cdnews-bg); color: var(--cdnews-text); border-color: var(--cdnews-border); }
.cdnews-share__btn--copy:hover { border-color: var(--cdnews-primary); color: var(--cdnews-primary); }
.cdnews-share__btn--copy.is-copied { background: #d4edda; color: #155724; border-color: #c3e6cb; }

/* Relacionadas */
.cdnews-related { margin: 28px 0 0; }
.cdnews-related__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }

/* ============================================================
   CARRUSEL
============================================================ */
.cdnews-carousel { overflow: hidden; }
.cdnews-carousel__track { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 16px; }
.cdnews-carousel__item { border: 1px solid var(--cdnews-border); border-radius: var(--cdnews-radius); overflow: hidden; background: var(--cdnews-surface); transition: box-shadow var(--cdnews-transition), transform var(--cdnews-transition); }
.cdnews-carousel__item:hover { box-shadow: var(--cdnews-shadow-hover); transform: translateY(-3px); }
.cdnews-carousel__img-wrap { display: block; overflow: hidden; aspect-ratio: 3/2; position: relative; background: #e8e8e8; }
.cdnews-carousel__img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cdnews-carousel__item:hover .cdnews-carousel__img-wrap img { transform: scale(1.05); }
.cdnews-carousel__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg,#e8e8e8,#d0d0d0); }
.cdnews-carousel__body { padding: 12px; }
.cdnews-carousel__title { font-size: .82rem; font-weight: 600; line-height: 1.35; color: var(--cdnews-text); margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cdnews-carousel__title a:hover { color: var(--cdnews-primary); }
.cdnews-carousel__meta { font-size: .7rem; color: var(--cdnews-text-muted); display: flex; gap: 8px; }

/* ============================================================
   SIDEBAR
============================================================ */
.cdnews-sidebar { padding-left: 20px; display: flex; flex-direction: column; }
.cdnews-sidebar .cdnews-ad { margin: 0 0 16px; }

/* ============================================================
   FOOTER
============================================================ */
.cdnews-footer { background: var(--cdnews-footer-bg); color: var(--cdnews-footer-text); padding: 24px 24px 16px; }
.cdnews-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.cdnews-footer__social .cdnews-social { background: rgba(255,255,255,.08); }
.cdnews-footer__social .cdnews-social:hover { background: var(--cdnews-primary); }
.cdnews-footer__nav nav, .cdnews-footer__menu { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: center; }
.cdnews-footer__menu li a { font-size: .8rem; color: var(--cdnews-footer-text); opacity: .8; transition: opacity var(--cdnews-transition); }
.cdnews-footer__menu li a:hover { opacity: 1; }
.cdnews-footer__links { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: center; }
.cdnews-footer__links a { font-size: .78rem; color: var(--cdnews-footer-text); opacity: .75; transition: opacity var(--cdnews-transition); }
.cdnews-footer__links a:hover { opacity: 1; }
.cdnews-footer__copy { font-size: .75rem; opacity: .6; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.1); width: 100%; }
.cdnews-footer__credit { opacity: .8; }
.cdnews-footer__credit a { color: var(--cdnews-accent); }

/* ============================================================
   PAGINACION
============================================================ */
.cdnews-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 24px 0 8px; }
.cdnews-pagination a, .cdnews-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--cdnews-border); border-radius: var(--cdnews-radius); font-size: .85rem; color: var(--cdnews-text); background: var(--cdnews-surface); transition: all var(--cdnews-transition); }
.cdnews-pagination a:hover { border-color: var(--cdnews-primary); color: var(--cdnews-primary); }
.cdnews-pagination .current { background: var(--cdnews-primary); border-color: var(--cdnews-primary); color: #fff; }

/* ============================================================
   ARCHIVO / PAGINA / 404
============================================================ */
.cdnews-archive-header { padding: 20px 0 16px; margin-bottom: 20px; border-bottom: 2px solid var(--cdnews-border); }
.cdnews-archive-header__badge { display: inline-block; padding: 3px 10px; border-radius: 3px; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; background: var(--cdnews-primary); color: #fff; margin-bottom: 8px; }
.cdnews-archive-header h1 { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; }
.cdnews-archive-header__desc { font-size: .88rem; color: var(--cdnews-text-muted); margin-top: 6px; }
.cdnews-page__title { font-family: var(--font-heading); font-size: 1.9rem; font-weight: 700; margin-bottom: 20px; }
.cdnews-page__hero { margin-bottom: 24px; border-radius: var(--cdnews-radius); overflow: hidden; }
.cdnews-no-results { text-align: center; padding: 48px 20px; }
.cdnews-no-results p { color: var(--cdnews-text-muted); margin-bottom: 12px; }
.cdnews-404 { display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.cdnews-404__content { text-align: center; padding: 40px 20px; max-width: 480px; }
.cdnews-404__code { display: block; font-family: var(--font-heading); font-size: clamp(6rem,18vw,10rem); font-weight: 900; color: var(--cdnews-border); line-height: 1; margin-bottom: 12px; }
.cdnews-404__title { font-family: var(--font-heading); font-size: 1.8rem; margin-bottom: 12px; }
.cdnews-404__desc { color: var(--cdnews-text-muted); margin-bottom: 24px; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width:1080px) {
    :root { --cdnews-sidebar-w: 280px; --cdnews-gap: 18px; }
    .cdnews-grid--3col { grid-template-columns: repeat(2,1fr); }
    .cdnews-related__grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width:900px) {
    .cdnews-layout { grid-template-columns: 1fr; padding: 14px 14px 24px; }
    .cdnews-sidebar { padding-left: 0; margin-top: 20px; }
    .cdnews-hero-row { grid-template-columns: 1fr; }
    .cdnews-hero-row__aside { display: grid; grid-template-columns: 1fr 1fr; }
    .cdnews-aside-section + .cdnews-aside-section { border-top: none; border-left: 1px solid var(--cdnews-border); }
}
@media (max-width:760px) {
    .cdnews-nav__toggle { display: flex; }
    .cdnews-nav__menu-wrap { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cdnews-nav-bg); border-top: 1px solid rgba(255,255,255,.1); box-shadow: 0 8px 24px rgba(0,0,0,.3); z-index: 150; padding: 8px 0; }
    .cdnews-nav__menu-wrap.is-open { display: block; }
    .cdnews-nav__menu { flex-direction: column; }
    .cdnews-nav-item > a { padding: 12px 20px; }
    .cdnews-nav-item > a::after { display: none; }
    .cdnews-submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: none; border-left: 3px solid var(--cdnews-primary); margin-left: 20px; }
    .cdnews-grid--3col { grid-template-columns: 1fr; }
    .cdnews-grid--2col { grid-template-columns: 1fr; }
    .cdnews-related__grid { grid-template-columns: 1fr 1fr; }
    .cdnews-header__inner { padding: 10px 14px; }
    .cdnews-header__datetime { display: none; }
    .cdnews-carousel__track { grid-template-columns: repeat(2,1fr); }
}
@media (max-width:520px) {
    .cdnews-hero-row__aside { grid-template-columns: 1fr; }
    .cdnews-aside-section + .cdnews-aside-section { border-left: none; border-top: 1px solid var(--cdnews-border); }
    .cdnews-slider__title { font-size: 1.05rem; }
    .cdnews-related__grid { grid-template-columns: 1fr; }
    .cdnews-single__title { font-size: 1.3rem; }
    .cdnews-share { flex-direction: column; align-items: flex-start; gap: 6px; }
    .cdnews-layout { padding: 10px 10px 20px; }
    .cdnews-footer { padding: 20px 14px 14px; }
    .cdnews-carousel__track { grid-template-columns: 1fr 1fr; }
}
@media (max-width:380px) {
    .cdnews-card-mini { grid-template-columns: 80px 1fr; }
    .cdnews-carousel__track { grid-template-columns: 1fr; }
}

/* Utilidades */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
.cdnews-load-more-wrap { text-align: center; padding: 8px 0 4px; }

/* ============================================================
   EN TENDENCIA - AUTO-SCROLL VERTICAL
============================================================ */
.cdnews-tend-viewport {
    overflow: hidden;
    position: relative;
    /* Altura = altura de aprox 4 tarjetas */
    height: 320px;
}

/* Mascara de degradado arriba y abajo para entrada/salida suave */
.cdnews-tend-viewport::before,
.cdnews-tend-viewport::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 28px;
    z-index: 2;
    pointer-events: none;
}
.cdnews-tend-viewport::before {
    top: 0;
    background: linear-gradient(to bottom, var(--cdnews-surface) 0%, transparent 100%);
}
.cdnews-tend-viewport::after {
    bottom: 0;
    background: linear-gradient(to top, var(--cdnews-surface) 0%, transparent 100%);
}

.cdnews-tend-track {
    display: flex;
    flex-direction: column;
    animation: cdnews-tend-scroll 18s linear infinite;
    will-change: transform;
}

.cdnews-aside-section--tendencia:hover .cdnews-tend-track,
.cdnews-aside-section--tendencia.is-paused .cdnews-tend-track {
    animation-play-state: paused;
}

@keyframes cdnews-tend-scroll {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* Boton de pausa en tendencia */
.cdnews-tend-pause {
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    color: var(--cdnews-text-muted);
    background: var(--cdnews-surface);
    border: 1px solid var(--cdnews-border);
    border-radius: 3px;
    transition: all var(--cdnews-transition);
    cursor: pointer;
}
.cdnews-tend-pause:hover { color: var(--cdnews-primary); border-color: var(--cdnews-primary); }
.cdnews-tend-pause[aria-pressed="true"] { background: var(--cdnews-primary); color: #fff; border-color: var(--cdnews-primary); }

/* ============================================================
   HOVER ELEGANTE EN TARJETAS
   Sutil, sofisticado — sin exagerar
============================================================ */

/* --- Tarjeta estandar --- */
.cdnews-card {
    transition:
        box-shadow   0.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform    0.3s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s ease;
}
.cdnews-card:hover {
    transform:    translateY(-4px);
    box-shadow:   0 12px 32px rgba(0,0,0,.11), 0 2px 8px rgba(0,0,0,.06);
    border-color: rgba(0,0,0,.12);
}
/* Linea de acento sutil en la parte superior al hover */
.cdnews-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--cdnews-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--cdnews-radius) var(--cdnews-radius) 0 0;
}
.cdnews-card { position: relative; }
.cdnews-card:hover::before { opacity: 1; }

/* Imagen con zoom muy sutil */
.cdnews-card__img-wrap {
    overflow: hidden;
}
.cdnews-card__img-wrap img {
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
}
.cdnews-card:hover .cdnews-card__img-wrap img {
    transform: scale(1.05);
}

/* Titulo con transicion de color fluida */
.cdnews-card__title a {
    transition: color 0.25s ease;
    background-image: linear-gradient(var(--cdnews-primary), var(--cdnews-primary));
    background-size: 0% 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: color 0.25s ease, background-size 0.35s ease;
}
.cdnews-card:hover .cdnews-card__title a {
    color: var(--cdnews-primary);
    background-size: 100% 1px;
}

/* --- Tarjeta mini (ultimas noticias) --- */
.cdnews-card-mini {
    transition:
        box-shadow   0.28s cubic-bezier(0.4, 0, 0.2, 1),
        transform    0.28s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.28s ease,
        background   0.28s ease;
    position: relative;
}
.cdnews-card-mini:hover {
    transform:    translateX(3px);
    box-shadow:   -3px 0 0 0 var(--cdnews-primary), 0 4px 18px rgba(0,0,0,.08);
    border-color: rgba(0,0,0,.1);
    background:   #fdfafa;
}
.cdnews-card-mini__title a {
    transition: color 0.22s ease;
}
.cdnews-card-mini:hover .cdnews-card-mini__title a {
    color: var(--cdnews-primary);
}

/* --- Tarjeta lateral (aside — lo mas visto, tendencia) --- */
.cdnews-card-side {
    transition:
        background   0.22s ease,
        transform    0.22s ease,
        box-shadow   0.22s ease;
    position: relative;
}
.cdnews-card-side:hover {
    background: #fdf9f9;
    transform: translateX(2px);
    box-shadow: -2px 0 0 0 var(--cdnews-primary);
}
.cdnews-card-side__title a {
    transition: color 0.2s ease;
}
.cdnews-card-side:hover .cdnews-card-side__title a {
    color: var(--cdnews-primary);
}
.cdnews-card-side__thumb img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cdnews-card-side:hover .cdnews-card-side__thumb img {
    transform: scale(1.06);
}

/* --- Carousel (Te pueden interesar) --- */
.cdnews-carousel__item {
    transition:
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform  0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.cdnews-carousel__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0,0,0,.12);
}
.cdnews-carousel__item::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--cdnews-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.cdnews-carousel__item:hover::after { opacity: 1; }

/* --- Slider: overlay ligeramente mas visible al hover sobre slide --- */
.cdnews-slider__slide .cdnews-slider__overlay {
    transition: opacity 0.4s ease;
}
.cdnews-slider__slide.is-active:hover .cdnews-slider__overlay {
    opacity: 0.9;
}

/* ============================================================
   PATCH 1.0.2 — HEADER FULL-WIDTH BANNER + HERO 3 COLUMNAS
============================================================ */

/* -- HEADER: Barra topbar (fecha + redes) -- */
.cdnews-header { background: var(--cdnews-nav-bg); color: #fff; }

.cdnews-header__topbar {
    background: rgba(0,0,0,.35);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.cdnews-header__topbar-inner {
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 20px;
}
.cdnews-header__datetime {
    font-size: .78rem;
    color: rgba(255,255,255,.75);
    font-family: var(--font-ui);
}

/* -- HEADER: Banner principal full-width -- */
.cdnews-header__banner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 120px;
    padding: 20px 24px;
    background:
        linear-gradient(
            to right,
            rgba(15,15,15,.82) 0%,
            rgba(20,20,20,.70) 40%,
            rgba(20,20,20,.70) 60%,
            rgba(15,15,15,.82) 100%
        ),
        /* Patron de cuadros sutiles para textura cuando no hay imagen */
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,.015) 0px,
            rgba(255,255,255,.015) 1px,
            transparent 1px,
            transparent 12px
        );
    background-color: #1a1a1a;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Lineas decorativas izquierda y derecha */
.cdnews-header__banner::before,
.cdnews-header__banner::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 4px;
    background: var(--cdnews-primary);
}
.cdnews-header__banner::before { left: 0; }
.cdnews-header__banner::after  { right: 0; }

/* Si tiene logo personalizado */
.cdnews-header__logo { display: flex; align-items: center; justify-content: center; }
.cdnews-header__logo img { max-height: 90px; width: auto; filter: drop-shadow(0 2px 12px rgba(0,0,0,.5)); }

/* Logo de texto cuando no hay imagen */
.cdnews-header__logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}
.cdnews-header__logo-name {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -.03em;
    line-height: 1;
    text-shadow: 0 2px 20px rgba(0,0,0,.6);
    /* Linea de acento roja debajo */
    border-bottom: 3px solid var(--cdnews-primary);
    padding-bottom: 6px;
}
.cdnews-header__logo-tagline {
    font-family: var(--font-ui);
    font-size: clamp(.8rem, 1.5vw, 1rem);
    font-weight: 300;
    color: rgba(255,255,255,.7);
    letter-spacing: .18em;
    text-transform: uppercase;
    font-style: italic;
}

/* Sobreescribir el viejo .cdnews-header__inner que ya no existe */
.cdnews-header__inner { display: none; }

/* -- HERO ROW: 3 COLUMNAS INDEPENDIENTES -- */

/* Resetear reglas viejas que usaban __main y __aside */
.cdnews-hero-row__main,
.cdnews-hero-row__aside { all: unset; }

/* Nueva grilla de 3 columnas */
.cdnews-hero-row {
    display: grid;
    grid-template-columns: 1fr 280px 220px;
    grid-template-rows: auto;
    gap: 16px;
    margin-bottom: 20px;
    align-items: start;
}

/* Columna 1: Slider */
.cdnews-hero-row__slider { min-width: 0; }

/* Columna 2: Lo mas visto */
.cdnews-hero-row__visto {
    border: 1px solid var(--cdnews-border);
    border-radius: var(--cdnews-radius);
    overflow: hidden;
    background: var(--cdnews-surface);
}

/* Columna 3: En tendencia */
.cdnews-hero-row__tendencia {
    border: 1px solid var(--cdnews-border);
    border-radius: var(--cdnews-radius);
    overflow: hidden;
    background: var(--cdnews-surface);
}

/* Ajuste de altura del viewport de tendencia para 3 columnas */
.cdnews-hero-row__tendencia .cdnews-tend-viewport {
    height: 360px;
}

/* Lo mas visto en la columna 2: lista completa sin limite de altura */
.cdnews-hero-row__visto .cdnews-aside-list {
    max-height: 400px;
    overflow-y: auto;
}

/* Alineacion del slider con las columnas laterales */
.cdnews-hero-row__slider .cdnews-slider {
    height: 100%;
    max-height: 420px;
    aspect-ratio: unset;
}

/* -- RESPONSIVE 3 COLUMNAS -- */
@media (max-width: 1100px) {
    .cdnews-hero-row {
        grid-template-columns: 1fr 240px 200px;
        gap: 12px;
    }
}

@media (max-width: 900px) {
    /* En tablet: slider arriba, visto y tendencia abajo en 2 col */
    .cdnews-hero-row {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    .cdnews-hero-row__slider {
        grid-column: 1 / -1; /* ocupa todo el ancho */
    }
    .cdnews-hero-row__visto,
    .cdnews-hero-row__tendencia { }
    .cdnews-hero-row__slider .cdnews-slider {
        aspect-ratio: 16/9;
        max-height: 340px;
    }
}

@media (max-width: 600px) {
    /* Mobile: stack completo */
    .cdnews-hero-row {
        grid-template-columns: 1fr;
    }
    .cdnews-hero-row__slider { grid-column: 1; }
    .cdnews-header__banner { min-height: 90px; padding: 16px 14px; }
    .cdnews-header__topbar-inner { padding: 5px 14px; }
}

/* ============================================================
   LO MAS VISTO — Tarjeta con numero de ranking
============================================================ */
.cdnews-visto-list { display: flex; flex-direction: column; }

.cdnews-visto-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--cdnews-border);
    transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
    cursor: pointer;
}
.cdnews-visto-item:last-child { border-bottom: none; }
.cdnews-visto-item:hover {
    background: #fdf9f9;
    transform: translateX(2px);
    box-shadow: -2px 0 0 0 var(--cdnews-primary);
}

/* Miniatura con numero encima */
.cdnews-visto-item__thumb {
    display: block;
    position: relative;
    width: 90px;
    height: 64px;
    overflow: hidden;
    border-radius: 4px;
    background: #e8e8e8;
    flex-shrink: 0;
}
.cdnews-visto-item__thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.cdnews-visto-item:hover .cdnews-visto-item__thumb img { transform: scale(1.07); }
.cdnews-visto-item__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg,#e8e8e8,#d0d0d0); }

/* Numero de ranking */
.cdnews-visto-item__num {
    position: absolute;
    top: 4px; left: 4px;
    background: var(--cdnews-primary);
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
    font-family: var(--font-ui);
    width: 18px; height: 18px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 3px;
    line-height: 1;
    z-index: 2;
}
/* El primero en dorado/acento */
.cdnews-visto-item:first-child .cdnews-visto-item__num {
    background: var(--cdnews-accent);
    color: #1a1a1a;
    width: 20px; height: 20px;
    font-size: .72rem;
}

/* Badge de categoria en la miniatura (sobrescribir posicion absoluta) */
.cdnews-visto-item__thumb .cdnews-cat-badge {
    bottom: 4px; left: 4px;
    font-size: .55rem;
    padding: 2px 5px;
}

/* Cuerpo del item */
.cdnews-visto-item__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.cdnews-visto-item__title {
    font-family: var(--font-ui);
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.32;
    color: var(--cdnews-text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 5px;
}
.cdnews-visto-item__title a { transition: color 0.2s ease; }
.cdnews-visto-item:hover .cdnews-visto-item__title a { color: var(--cdnews-primary); }
.cdnews-visto-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: .7rem;
    color: var(--cdnews-text-muted);
    font-family: var(--font-ui);
}

/* ============================================================
   PATCH 1.0.3 — HERO FULL-WIDTH + SLIDER ALTURA + HEADER LOGO
============================================================ */

/* -- Hero wrap: sale del flujo del layout para ser full-width -- */
.cdnews-hero-wrap {
    width: 100%;
    padding: 16px 20px 0;
    background: var(--cdnews-surface);
}

/* -- Hero row: 3 columnas reales, ancho completo del content-wrap -- */
.cdnews-hero-row {
    display: grid !important;
    grid-template-columns: 1fr 290px 230px !important;
    gap: 14px !important;
    margin-bottom: 0 !important;
    align-items: stretch !important;
    width: 100%;
}

/* Cada columna estirada a la misma altura */
.cdnews-hero-row__slider,
.cdnews-hero-row__visto,
.cdnews-hero-row__tendencia {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* -- Slider: altura fija para que no colapse -- */
.cdnews-hero-row__slider { flex: 1; }
.cdnews-hero-row__slider .cdnews-slider {
    width: 100%;
    height: 400px !important;
    max-height: 420px;
    aspect-ratio: unset !important;
    border-radius: var(--cdnews-radius);
    overflow: hidden;
}

/* -- Lo mas visto y En tendencia: mismas proporciones -- */
.cdnews-hero-row__visto,
.cdnews-hero-row__tendencia {
    border: 1px solid var(--cdnews-border);
    border-radius: var(--cdnews-radius);
    overflow: hidden;
    background: var(--cdnews-surface);
    height: 400px;
}

.cdnews-hero-row__visto .cdnews-aside-section,
.cdnews-hero-row__tendencia .cdnews-aside-section {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Viewport de tendencia = altura disponible dentro de la caja */
.cdnews-hero-row__tendencia .cdnews-tend-viewport {
    flex: 1;
    height: auto !important;
}

/* Lo mas visto: scroll interno */
.cdnews-hero-row__visto .cdnews-visto-list {
    flex: 1;
    overflow-y: auto;
    max-height: none;
}
.cdnews-hero-row__visto .cdnews-aside-section { overflow: hidden; }

/* -- HEADER LOGO: imagen llena todo el ancho -- */

/* Resetear el centrado del banner para imagen full-width */
.cdnews-header__banner {
    padding: 0 !important;
    min-height: 110px;
    position: relative;
    overflow: hidden;
    display: block !important; /* cambia de flex a block para imagen */
}

/* Lineas decorativas se mantienen */
.cdnews-header__banner::before,
.cdnews-header__banner::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 4px;
    background: var(--cdnews-primary);
    z-index: 2;
}
.cdnews-header__banner::before { left: 0; }
.cdnews-header__banner::after  { right: 0; }

/* Logo como imagen: ocupa todo el ancho sin distorsionar */
.cdnews-header__logo {
    display: block;
    width: 100%;
    line-height: 0;
}
.cdnews-header__logo img,
.cdnews-header__logo .custom-logo {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-height: 130px;
    object-fit: cover;        /* llena el ancho, recorta verticalmente si es necesario */
    object-position: center;  /* centra el contenido visible */
    min-height: 100px;
}

/* Logo de texto (cuando no hay imagen): vuelve a centrado flex */
.cdnews-header__logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-height: 110px;
    padding: 16px 20px;
}
.cdnews-header__logo-name {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -.03em;
    line-height: 1;
    text-shadow: 0 2px 20px rgba(0,0,0,.6);
    border-bottom: 3px solid var(--cdnews-primary);
    padding-bottom: 6px;
    text-align: center;
}
.cdnews-header__logo-tagline {
    font-family: var(--font-ui);
    font-size: clamp(.8rem, 1.5vw, 1rem);
    font-weight: 300;
    color: rgba(255,255,255,.7);
    letter-spacing: .18em;
    text-transform: uppercase;
    font-style: italic;
    text-align: center;
}

/* -- RESPONSIVE hero 3 col -- */
@media (max-width: 1100px) {
    .cdnews-hero-row {
        grid-template-columns: 1fr 260px 210px !important;
    }
    .cdnews-hero-row__slider .cdnews-slider { height: 360px !important; }
    .cdnews-hero-row__visto,
    .cdnews-hero-row__tendencia { height: 360px; }
}

@media (max-width: 900px) {
    .cdnews-hero-wrap { padding: 12px 14px 0; }
    .cdnews-hero-row {
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto auto !important;
    }
    .cdnews-hero-row__slider {
        grid-column: 1 / -1 !important;
    }
    .cdnews-hero-row__slider .cdnews-slider {
        height: 300px !important;
        aspect-ratio: unset !important;
    }
    .cdnews-hero-row__visto,
    .cdnews-hero-row__tendencia { height: 340px; }
}

@media (max-width: 600px) {
    .cdnews-hero-row {
        grid-template-columns: 1fr !important;
    }
    .cdnews-hero-row__slider .cdnews-slider { height: 240px !important; }
    .cdnews-hero-row__visto,
    .cdnews-hero-row__tendencia { height: 320px; }
    .cdnews-header__banner { min-height: 80px; }
    .cdnews-header__logo img,
    .cdnews-header__logo .custom-logo { max-height: 90px; min-height: 70px; }
}

/* ============================================================
   PATCH 1.0.4 — LO MAS VISTO OVERLAY + EN TENDENCIA REDISEÑO + HEADER ALTURA
============================================================ */

/* -------------------------------------------------------
   HEADER: mas alto y con mejor respiracion
------------------------------------------------------- */
.cdnews-header__banner {
    min-height: 160px !important;
}
.cdnews-header__logo img,
.cdnews-header__logo .custom-logo {
    max-height: 160px !important;
    min-height: 130px !important;
}
.cdnews-header__logo-text {
    min-height: 160px !important;
}
.cdnews-header__logo-name {
    font-size: clamp(2.2rem, 5.5vw, 3.8rem) !important;
}

/* -------------------------------------------------------
   LO MAS VISTO — 2 tarjetas overlay apiladas
------------------------------------------------------- */
.cdnews-visto-col {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
.cdnews-visto-header {
    flex-shrink: 0;
}

/* Stack de 2 tarjetas que llenan el espacio disponible */
.cdnews-visto-stack {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 3px;
    overflow: hidden;
}

/* Tarjeta overlay individual */
.cdnews-visto-overlay {
    position: relative;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}
.cdnews-visto-overlay__link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 155px;
}

/* Imagen de fondo */
.cdnews-visto-overlay__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
}
.cdnews-visto-overlay__bg--empty {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
}
.cdnews-visto-overlay:hover .cdnews-visto-overlay__bg {
    transform: scale(1.04);
}

/* Gradiente oscuro en la parte inferior */
.cdnews-visto-overlay__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.88) 0%,
        rgba(0,0,0,.45) 50%,
        rgba(0,0,0,.08) 100%
    );
    transition: opacity 0.3s ease;
}
.cdnews-visto-overlay:hover .cdnews-visto-overlay__gradient {
    opacity: 0.95;
}

/* Contenido sobre la imagen */
.cdnews-visto-overlay__content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 12px 14px 14px;
}
.cdnews-visto-overlay__cat {
    display: inline-block;
    background: var(--cdnews-primary);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .07em;
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 6px;
    font-family: var(--font-ui);
    text-transform: uppercase;
}
.cdnews-visto-overlay__title {
    font-family: var(--font-heading);
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 0 0 7px;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}
.cdnews-visto-overlay:hover .cdnews-visto-overlay__title {
    color: var(--cdnews-accent);
}
.cdnews-visto-overlay__meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .72rem;
    color: rgba(255,255,255,.75);
    font-family: var(--font-ui);
}
.cdnews-visto-overlay__sep { opacity: .5; }

/* -------------------------------------------------------
   EN TENDENCIA — Lista numerada elegante con auto-scroll
------------------------------------------------------- */
.cdnews-tend-col {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
.cdnews-tend-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--cdnews-bg);
    border-bottom: 1px solid var(--cdnews-border);
}
.cdnews-tend-header h3 {
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Viewport: overflow hidden, sin scrollbar */
.cdnews-tend-viewport {
    flex: 1;
    height: auto !important;
    overflow: hidden;
    position: relative;
}

/* Fade arriba y abajo */
.cdnews-tend-viewport::before,
.cdnews-tend-viewport::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 32px;
    z-index: 3;
    pointer-events: none;
}
.cdnews-tend-viewport::before {
    top: 0;
    background: linear-gradient(to bottom, var(--cdnews-surface) 0%, transparent 100%);
}
.cdnews-tend-viewport::after {
    bottom: 0;
    background: linear-gradient(to top, var(--cdnews-surface) 0%, transparent 100%);
}

/* Track animado */
.cdnews-tend-track {
    display: flex;
    flex-direction: column;
    animation: cdnews-tend-scroll 22s linear infinite;
    will-change: transform;
}
.cdnews-aside-section--tendencia:hover .cdnews-tend-track,
.cdnews-tend-col:hover .cdnews-tend-track,
.cdnews-tend-col.is-paused .cdnews-tend-track {
    animation-play-state: paused;
}

/* Item de tendencia */
.cdnews-tend-item {
    border-bottom: 1px solid var(--cdnews-border);
}
.cdnews-tend-item__inner {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 10px;
    padding: 10px 12px;
    text-decoration: none;
    transition: background 0.22s ease;
    cursor: pointer;
}
.cdnews-tend-item__inner:hover {
    background: #fdf9f9;
}

/* Miniatura con numero */
.cdnews-tend-item__thumb {
    position: relative;
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e8e8e8;
}
.cdnews-tend-item__thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.cdnews-tend-item__inner:hover .cdnews-tend-item__thumb img {
    transform: scale(1.07);
}
.cdnews-tend-item__placeholder {
    display: block; width: 100%; height: 100%;
    background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
}

/* Numero de ranking sobre la imagen */
.cdnews-tend-item__num {
    position: absolute;
    top: 0; left: 0;
    background: var(--cdnews-primary);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    font-family: var(--font-ui);
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 0 0 4px 0;
    line-height: 1;
    z-index: 2;
    letter-spacing: -.01em;
}

/* Item 1 = numero dorado */
.cdnews-tend-item:nth-child(1) .cdnews-tend-item__num,
.cdnews-tend-item:nth-child(9) .cdnews-tend-item__num {
    background: var(--cdnews-accent);
    color: #1a1a1a;
}

/* Cuerpo del item */
.cdnews-tend-item__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 3px;
}
.cdnews-tend-item__cat {
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--cdnews-accent);
    text-transform: uppercase;
    font-family: var(--font-ui);
    line-height: 1;
}
/* Cuando hay dos categorias separadas por espacio */
.cdnews-tend-item__cat span + span { margin-left: 4px; }

.cdnews-tend-item__title {
    font-family: var(--font-ui);
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.32;
    color: var(--cdnews-text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}
.cdnews-tend-item__inner:hover .cdnews-tend-item__title {
    color: var(--cdnews-primary);
}
.cdnews-tend-item__time {
    font-size: .68rem;
    color: var(--cdnews-text-muted);
    font-family: var(--font-ui);
}

/* Boton pausa en tendencia */
.cdnews-tend-pause {
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    gap: 0;
    background: var(--cdnews-surface);
    border: 1px solid var(--cdnews-border);
    border-radius: 50%;
    color: var(--cdnews-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.cdnews-tend-pause:hover {
    border-color: var(--cdnews-primary);
    color: var(--cdnews-primary);
    background: #fff8f8;
}
.cdnews-tend-pause[aria-pressed="true"] {
    background: var(--cdnews-primary);
    border-color: var(--cdnews-primary);
    color: #fff;
}

/* Quitar las barras de scroll nativas en todos lados */
.cdnews-visto-list,
.cdnews-tend-viewport,
.cdnews-hero-row__visto,
.cdnews-hero-row__tendencia {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.cdnews-visto-list::-webkit-scrollbar,
.cdnews-tend-viewport::-webkit-scrollbar { display: none; }

/* Responsive header */
@media (max-width: 600px) {
    .cdnews-header__banner { min-height: 110px !important; }
    .cdnews-header__logo img, .cdnews-header__logo .custom-logo { max-height: 110px !important; min-height: 90px !important; }
}

/* ============================================================
   PATCH 1.0.5 — HEADER BANNER MAYOR IMPACTO VISUAL
============================================================ */

/* Altura generosa para que el banner respire como el original */
.cdnews-header__banner {
    min-height: 200px !important;
    padding: 0 !important;
    display: block !important;
    /* Quitar el patron de cuadros — la imagen lo cubre todo */
    background-image: none !important;
    background-color: #111 !important;
}

/* La imagen del logo ocupa TODO el ancho sin recorte exagerado */
.cdnews-header__logo {
    display: block;
    width: 100%;
    line-height: 0;
}

/* custom-logo de WordPress puede estar envuelto en un <a> */
.cdnews-header__logo a {
    display: block;
    width: 100%;
    line-height: 0;
}

.cdnews-header__logo img,
.cdnews-header__logo .custom-logo {
    display: block !important;
    width: 100% !important;
    height: auto !important;          /* respeta proporciones originales del banner */
    max-height: none !important;      /* sin recorte vertical — muestra el banner completo */
    min-height: 0 !important;
    object-fit: unset !important;     /* quitar cover — mostrar imagen completa sin recorte */
    object-position: unset !important;
    /* Sombra sutil para profundidad */
    filter: drop-shadow(0 4px 24px rgba(0,0,0,.45));
}

/* Las lineas decorativas rojas se mantienen pero mas delgadas para no tapar el banner */
.cdnews-header__banner::before,
.cdnews-header__banner::after {
    width: 3px !important;
}

/* Logo de texto (sin imagen): altura igual de generosa */
.cdnews-header__logo-text {
    min-height: 200px !important;
    padding: 24px 32px !important;
}
.cdnews-header__logo-name {
    font-size: clamp(2.4rem, 6vw, 4.2rem) !important;
}
.cdnews-header__logo-tagline {
    font-size: clamp(.9rem, 1.6vw, 1.15rem) !important;
    letter-spacing: .22em !important;
}

/* Responsive: en mobile el banner se encoge naturalmente con la imagen */
@media (max-width: 760px) {
    .cdnews-header__banner { min-height: 80px !important; }
}
@media (max-width: 480px) {
    .cdnews-header__banner { min-height: 60px !important; }
}

/* ============================================================
   PATCH 1.0.6 — BOTON SCROLL TO TOP + HEADER ALTURA EXTRA
============================================================ */

/* -- Header aun mas alto -- */
.cdnews-header__banner        { min-height: 220px !important; }
.cdnews-header__logo-text     { min-height: 220px !important; }

/* -- Boton Scroll To Top -- */
.cdnews-scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: var(--cdnews-nav-bg);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 900;
    box-shadow: 0 4px 20px rgba(0,0,0,.22);
    /* Estado inicial: oculto */
    opacity: 0;
    transform: translateY(16px) scale(0.85);
    visibility: hidden;
    transition:
        opacity   0.35s cubic-bezier(0.4,0,0.2,1),
        transform 0.35s cubic-bezier(0.4,0,0.2,1),
        visibility 0s linear 0.35s,
        background 0.22s ease,
        box-shadow 0.22s ease;
    /* Linea de acento superior */
    border-top: 2px solid var(--cdnews-primary);
}

/* Visible al hacer scroll */
.cdnews-scroll-top.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    transition:
        opacity   0.35s cubic-bezier(0.4,0,0.2,1),
        transform 0.35s cubic-bezier(0.4,0,0.2,1),
        visibility 0s linear 0s,
        background 0.22s ease,
        box-shadow 0.22s ease;
}

/* Hover elegante */
.cdnews-scroll-top:hover {
    background: var(--cdnews-primary);
    box-shadow: 0 6px 28px rgba(192,57,43,.35);
    transform: translateY(-3px) scale(1.05);
}

/* Icono SVG dentro del boton */
.cdnews-scroll-top svg {
    width: 18px;
    height: 18px;
    transition: transform 0.22s ease;
}
.cdnews-scroll-top:hover svg {
    transform: translateY(-2px);
}

/* Animacion de pulso sutil cuando aparece por primera vez */
@keyframes cdnews-top-in {
    0%   { box-shadow: 0 0 0 0 rgba(192,57,43,.4); }
    70%  { box-shadow: 0 0 0 10px rgba(192,57,43,.0); }
    100% { box-shadow: 0 0 0 0 rgba(192,57,43,.0); }
}
.cdnews-scroll-top.is-visible.just-appeared {
    animation: cdnews-top-in 0.7s ease-out;
}

/* Texto sr-only (accesibilidad) */
.cdnews-scroll-top .sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* En mobile: mas cerca del borde */
@media (max-width: 520px) {
    .cdnews-scroll-top {
        bottom: 18px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
    .cdnews-scroll-top svg { width: 16px; height: 16px; }
}
