/*
Theme Name: Activavida
Theme URI: https://activavida.net
Author: Waly / wpvstudio - Bittobox
Description: Tema personalizado One Page para Activavida - Radio Cristiana Contemporánea
Version: 1.1.20
License: GNU General Public License v2 or later
Text Domain: activavida
*/

/* =====================================================
   RESET & BASICS
===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: 
        linear-gradient(to top, #090b11 0 115px, transparent 115px),
        radial-gradient(circle at top right, rgba(243, 112, 35, 0.12), transparent 30%),
        radial-gradient(circle at bottom left, rgba(216, 56, 30, 0.10), transparent 25%),
        #0b0d12;
    color: #ffffff;
    font-family: "Roboto", sans-serif;
    overflow-x: hidden;
    padding-bottom: 115px;
}

h1, h2, h3, h4, h5 {
    font-family: "Montserrat", sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

/* =====================================================
   VARIABLES - PALETA ACTIVAVIDA
===================================================== */
:root {
    --orange-primary: #f37023;
    --orange-dark: #d8381e;
    --yellow-accent: #ffb81c;
    --dark-bg: #0b0d12;
    --dark-card: #141721;
    --dark-header: rgba(11, 13, 18, 0.95);
    --white: #ffffff;
    --gray: #9ca9b8;
    --border: rgba(255, 255, 255, 0.08);
}

/* =====================================================
   UTILIDADES Y ESTRUCTURA
===================================================== */
.container {
    width: min(1200px, 92%);
    margin: auto;
}

.section {
    padding: 100px 0;
}

/* Espaciado equilibrado en portada: secciones Nosotros y Publicaciones. */
#nosotros.section { padding-top: 40px; padding-bottom: 20px; }
#contenido.section { padding-top: 26px; padding-bottom: 42px; }
@media (max-width: 650px) {
    #nosotros.section { padding-top: 30px; padding-bottom: 16px; }
    #contenido.section { padding-top: 22px; padding-bottom: 32px; }
}

.section-title {
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 15px;
}

.section-title span {
    color: var(--orange-primary);
}

.section-description {
    color: var(--gray);
    max-width: 700px;
    line-height: 1.7;
    margin-bottom: 50px;
}

.live-dot {
    width: 9px;
    height: 9px;
    background: var(--orange-primary);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 12px var(--orange-primary);
    animation: pulse 1.4s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.4; }
    100% { transform: scale(1); opacity: 1; }
}

/* =====================================================
   HEADER
===================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: var(--dark-header);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transition: .3s;
}

.navbar {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* =====================================================
   LOGO (CORRECCIÓN DEFINITIVA A 70PX MÁXIMO)
===================================================== */
header .logo,
header .navbar a.logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 70px !important;
    max-height: 70px !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

header .logo:hover,
header .navbar a.logo:hover {
    transform: translateY(-2px);
}

header .logo img, 
header .logo .custom-logo,
header .logo .custom-logo-img,
header .navbar a.logo img,
header .navbar a.logo .custom-logo {
    height: 70px !important;
    max-height: 70px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
}

/* =====================================================
   MENU
===================================================== */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu a {
    font-family: Montserrat, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #dbe7f5;
    transition: .3s;
}

.nav-menu a:hover {
    color: var(--orange-primary);
}

.live-button {
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-dark));
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 12px !important;
    color: white !important;
    box-shadow: 0 8px 25px rgba(243, 112, 35, 0.35);
}

.live-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.mobile-menu {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
}
.mobile-menu .av-menu-symbol::before { content: "\2630"; }
.mobile-menu.is-open .av-menu-symbol::before { content: "\00d7"; }
body.av-light .mobile-menu { color: #172b3a; }
.mobile-menu:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* =====================================================
   HERO
===================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: 
        linear-gradient(
            90deg,
            rgba(11, 13, 18, 0.96) 0%,
            rgba(20, 23, 33, 0.85) 45%,
            rgba(0,0,0,0.4) 100%
        ),
        url("https://images.unsplash.com/photo-1590602847861-f357a9332bbc?auto=format&fit=crop&w=2000&q=85");
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--orange-primary);
    filter: blur(180px);
    opacity: 0.2;
    top: -100px;
    right: -100px;
}

.hero::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--yellow-accent);
    filter: blur(150px);
    opacity: 0.1;
    bottom: -100px;
    left: -100px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding-top: 80px;
}

.hero-live {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 9px 15px;
    border-radius: 30px;
    font-size: 12px;
    font-family: Montserrat, sans-serif;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: clamp(48px, 7vw, 85px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 25px;
}

.hero h1 span {
    color: var(--yellow-accent);
}

.hero p {
    font-size: 19px;
    color: #c9d4df;
    max-width: 680px;
    line-height: 1.7;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 25px;
    border-radius: 10px;
    font-family: Montserrat, sans-serif;
    font-size: 13px;
    font-weight: 700;
    transition: .3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-dark));
    color: white;
    box-shadow: 0 15px 35px rgba(243, 112, 35, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(243, 112, 35, 0.4);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* =====================================================
   ESTADISTICAS
===================================================== */
.stats {
    position: relative;
    margin-top: -50px;
    z-index: 5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(20, 23, 33, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.stat {
    padding: 30px;
    text-align: center;
    border-right: 1px solid var(--border);
}

.stat:last-child {
    border: none;
}

.stat h3 {
    font-size: 28px;
    color: white;
}

.stat p {
    font-size: 13px;
    color: var(--gray);
    margin-top: 5px;
}

/* =====================================================
   SECCIÓN RADIO
===================================================== */
.radio-section {
    background: linear-gradient(180deg, transparent, rgba(243, 112, 35, 0.05));
}

.radio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.radio-image {
    position: relative;
}

.radio-image > img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
}

.radio-floating {
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 25px;
    background: rgba(11, 13, 18, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 20px;
}

.radio-floating h4 {
    margin-bottom: 7px;
}

.radio-floating p {
    color: var(--gray);
    font-size: 14px;
}

.features {
    display: grid;
    gap: 18px;
}

.feature {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: .3s;
}

.feature:hover {
    border-color: var(--orange-primary);
    transform: translateX(5px);
}

.feature i {
    color: var(--orange-primary);
    font-size: 22px;
}

.feature p {
    color: var(--gray);
    font-size: 14px;
    margin-top: 6px;
}

/* =====================================================
   MISIÓN Y RECURSOS
===================================================== */
.tv-section {
    background: #080a0e;
}

.schedule-grid, .news-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 60px) / 4);
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 8px 0 20px;
}
.news-grid::-webkit-scrollbar { display: none; }
#contenido .container { position: relative; }
.av-news-carousel { position: relative; }
.av-news-controls { position: absolute; top: 0; right: 0; display: flex; gap: 10px; margin: 0; }
.av-news-controls[hidden] { display: none; }
.av-news-controls button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 12px; background: rgba(20,23,33,.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.av-news-controls button:not(:disabled):hover { background: var(--orange-primary); border-color: var(--orange-primary); color: #fff; }
.av-news-controls button:focus-visible { outline: 2px solid var(--orange-primary); outline-offset: 3px; }
.av-news-controls button:disabled { opacity: .35; cursor: default; }
@media(max-width:600px) { #contenido .section-title { padding-right: 92px; } .av-news-controls { top: 0; } .av-news-controls button { width: 34px; height: 34px; } }
.av-news-carousel .news-card { min-width: 0; scroll-snap-align: start; }
.av-news-carousel .news-content { min-width: 0; overflow-wrap: anywhere; word-break: normal; }
@media (max-width: 1000px) { .news-grid { grid-auto-columns: calc((100% - 40px) / 3); } }
@media (max-width: 720px) { .news-grid { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 520px) {
    .news-grid { grid-auto-columns: 100%; }
    .av-news-carousel .news-grid { align-items: start; }
}

.schedule-card, .news-card {
    background: var(--dark-card);
    border: 1px solid rgba(243, 112, 35, 0.3);
    border-radius: 16px;
    padding: 25px;
    transition: .35s;
}

.news-card {
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
}

.news-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.news-content {
    padding: 22px;
}

.schedule-card:hover, .news-card:hover {
    transform: translateY(-8px);
    border-color: var(--orange-primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.schedule-time, .news-category {
    color: var(--yellow-accent);
    font-weight: 700;
    font-family: Montserrat, sans-serif;
    font-size: 13px;
}

.news-category {
    color: var(--orange-primary);
}

.schedule-card h3, .news-content h3 {
    font-size: 21px;
    margin: 13px 0 10px;
}

.schedule-card p, .news-content p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
}

/* =====================================================
   CONTACTO & FOOTER
===================================================== */
.contact {
    background: 
        radial-gradient(circle at center, rgba(243, 112, 35, 0.15), transparent 60%),
        #06070a;
}

.contact-box {
    text-align: center;
    max-width: 850px;
    margin: auto;
}

.contact-box h2 {
    font-size: clamp(35px, 5vw, 60px);
    margin-bottom: 20px;
}

.contact-box p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 30px;
}

footer {
    padding: 50px 0 130px;
    border-top: 1px solid var(--border);
    background: #06070a;
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-logo {
    background: transparent;
    padding: 0;
    display: inline-flex;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 48px;
    width: auto;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dark-card);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
}

.footer-social a:hover {
    background: var(--orange-primary);
    transform: translateY(-3px);
}

/* =====================================================
   STICKY AUDIO PLAYER
===================================================== */
.audio-player {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1180px, 94%);
    min-height: 82px;
    z-index: 9999;
    background: rgba(14, 17, 25, 0.88);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border-radius: 18px;
    display: flex;
    align-items: center;
    padding: 12px 18px;
    gap: 20px;
}

/* =====================================================
   AJUSTE DE LOGO / PORTADA EN EL REPRODUCTOR
===================================================== */
.player-cover {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    display: block;
}

.player-info {
    min-width: 180px;
}

.player-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.player-info p {
    color: var(--gray);
    font-size: 12px;
}

.player-button {
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-dark));
    color: white;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
    transition: .3s;
}

.player-button:hover {
    transform: scale(1.08);
}

.player-live {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-family: Montserrat, sans-serif;
    font-weight: bold;
    color: #ddd;
}

.equalizer {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 30px;
    transition: opacity .3s;
}

.equalizer span {
    width: 3px;
    background: var(--orange-primary);
    border-radius: 3px;
    animation: equalize 1s infinite alternate;
}

.equalizer span:nth-child(1) { height: 10px; }
.equalizer span:nth-child(2) { height: 25px; animation-delay: .2s; }
.equalizer span:nth-child(3) { height: 15px; animation-delay: .4s; }
.equalizer span:nth-child(4) { height: 28px; animation-delay: .6s; }
.equalizer span:nth-child(5) { height: 12px; animation-delay: .8s; }

@keyframes equalize {
    from { transform: scaleY(.4); }
    to { transform: scaleY(1.2); }
}

.volume {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray);
}

.volume input {
    accent-color: var(--orange-primary);
    width: 110px;
}

/* =====================================================
   TÍTULO DE LA CANCIÓN - BITTOCAST
===================================================== */
.sonic-title {
    flex: 0 1 220px !important;
    min-width: 0;
    margin-left: 2px;
    color: #fff;
    font-family: Montserrat, sans-serif;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sonic-title:empty {
    display: none;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media(max-width: 900px) {
    .nav-menu {
        position: fixed;
        top: 82px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 82px);
        background: #0b0d12;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 20px;
        padding: 36px 28px 28px;
        box-sizing: border-box;
        overflow-y: auto;
        transition: .4s;
    }

    .nav-menu.active { 
        left: 0; 
    }

    .nav-menu a {
        font-size: 17px;
        line-height: 1.45;
        text-align: left;
    }

    .mobile-menu { 
        display: flex; 
    }

    .radio-grid,
    .schedule-grid {
        grid-template-columns: 1fr; 
    }
}

@media(max-width: 650px) {
    .section { 
        padding: 70px 0; 
    }
    
    header .logo img, 
    header .logo .custom-logo,
    header .navbar a.logo img { 
        height: 48px !important; 
        max-height: 48px !important; 
    }
    
    .stats-grid { 
        grid-template-columns: 1fr; 
    }

    .stat { 
        border-right: none; 
        border-bottom: 1px solid var(--border); 
    }

    .audio-player {
        bottom: 10px;
        left: 10px;
        right: 10px;
        width: auto;
        transform: none;
        box-sizing: border-box;
        gap: 8px;
        padding: 8px;
    }

    .player-info { 
        min-width: 0; 
        flex: 1 1 auto; 
        overflow: hidden; 
    }

    .player-info h4 { 
        white-space: nowrap; 
        overflow: hidden; 
        text-overflow: ellipsis; 
        max-width: none; 
    }

    .player-info p { 
        white-space: nowrap; 
        overflow: hidden; 
        text-overflow: ellipsis; 
    }

    .volume, 
    .player-live, 
    .equalizer, 
    .sonic-title { 
        display: none; 
    }

    .player-button { 
        flex-shrink: 0; 
    }

    .footer-grid { 
        flex-direction: column; 
        text-align: center; 
    }
}

/* =====================================================
   CORRECCIÓN DEFINITIVA TÍTULO DE CANCIÓN
===================================================== */
body .audio-player .sonic-title {
    font-size: 13px !important;
}
/* Activavida 2.0: cabecera, ranking y modo claro */
html {scroll-padding-top:95px}
.av-country {color:#e4e8ef;font-size:14px;white-space:nowrap}
.av-theme-toggle {background:transparent;border:1px solid rgba(255,255,255,.22);border-radius:12px;padding:8px 11px;color:#F4D06F;cursor:pointer;font-size:18px}
body:not(.av-light) .av-theme-toggle .av-skin-sun,body.av-light .av-theme-toggle .av-skin-moon {display:none}
.av-top10 {scroll-margin-top:90px}
.av-top10-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin-top:28px}
.av-top10-item {display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--border,#34383e);border-radius:14px;background:rgba(255,255,255,.045)}
.av-top10-rank {font-size:22px;font-weight:800;color:var(--orange-primary,#f89b3c)}
.av-top10-cover {width:58px;height:58px;object-fit:cover;border-radius:9px;flex-shrink:0}
.av-top10-details {flex:1;min-width:0}.av-top10-details strong,.av-top10-details small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.av-top10-details small{opacity:.72}.av-top10-item a{color:var(--orange-primary,#f89b3c)}
body.av-light {background:#f7f8fa!important;color:#192a36!important;--dark-header:rgba(255,255,255,.97);--border:#dce2e8}
body.av-light header,body.av-light .nav-menu {background:#fff!important}
body.av-light .nav-menu a,body.av-light .av-country {color:#172b3a!important}
body.av-light .av-theme-toggle {color:#F5A623!important;border-color:var(--border)}
body.av-light .section:not(.contact),body.av-light .av-top10 {color:#192a36!important}
body.av-light .section-title,body.av-light .av-top10-details strong {color:#192a36!important}
body.av-light .section-description,body.av-light .av-top10-details small {color:#536170!important}
body.av-light .av-top10-item {background:#fff}
@media(max-width:900px){.av-country{padding:10px}.av-theme-toggle{margin:10px;display:inline-flex;align-items:center;justify-content:center;height:41px;box-sizing:border-box}}

/* ACTIVAVIDA 2.1 — elementos nuevos, sin tocar reglas del reproductor */
:root{--av-accent:#f39a37;--av-card:#172534}
.av-now-section{padding:24px 0 10px;background:transparent}
.av-now-card{display:flex;align-items:center;gap:24px;padding:26px!important;border-radius:22px;background:linear-gradient(120deg,#132f3b,#172536 68%,#26374a);border:1px solid rgba(255,255,255,.12);box-shadow:0 16px 48px rgba(0,0,0,.12)}
.av-now-art{width:110px;height:110px;flex:0 0 110px;border-radius:18px;background:linear-gradient(140deg,var(--av-accent),#a44834);display:flex;align-items:center;justify-content:center;color:#fff;font-size:48px}
.av-now-copy{flex:1;min-width:0}.av-now-copy h2{font-size:clamp(22px,3vw,34px);margin:7px 0;color:#fff;overflow-wrap:anywhere}.av-now-copy p{color:#bfcbd6;margin:0}.av-eyebrow{color:#a7eadb;font-size:12px;font-weight:800;letter-spacing:1px}
.av-now-link{color:#fff;text-decoration:none;font-weight:700;font-size:13px}.av-now-link:hover{color:var(--av-accent)}
.av-program-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;margin-top:28px}
.av-program-card{padding:22px;border:1px solid var(--border,#34404d);background:rgba(255,255,255,.045)}
.av-program-card h3{margin:10px 0 6px;font-size:21px}.av-program-card p{opacity:.8;margin:0}.av-program-time{font-weight:700;color:var(--av-accent);font-size:13px}
.av-top10-item{transition:transform .2s ease,border-color .2s ease}.av-top10-item:hover{transform:translateY(-3px);border-color:var(--av-accent)}
body.av-light .av-program-card{background:#fff}body.av-light .av-program-card h3{color:#182e3b}
@media(max-width:700px){.av-now-card{padding:18px!important;gap:13px;flex-wrap:wrap}.av-now-art{width:70px;height:70px;flex-basis:70px;font-size:30px}.av-now-link{width:100%;padding-left:83px}.av-now-copy h2{font-size:20px}}

/* ACTIVAVIDA 2.2 — Rediseño de portada sin alterar el reproductor */
.av22-hero{position:relative;padding:110px 0 70px;background:radial-gradient(ellipse at 85% 25%,rgba(243,112,35,.19),transparent 46%),linear-gradient(140deg,#10151e,#0b0d12 72%);overflow:hidden}
.av22-hero:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px);background-size:52px 52px;pointer-events:none}
.av22-hero-grid{position:relative;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(340px,.9fr);align-items:center;gap:clamp(35px,6vw,90px)}
.av22-pill,.av22-onair{display:inline-flex;align-items:center;gap:9px;border:1px solid rgba(243,112,35,.35);background:rgba(243,112,35,.09);border-radius:30px;padding:10px 16px;color:#ffac78;font-size:11px;font-weight:800;letter-spacing:1.1px}
.av22-intro h1{font-size:clamp(42px,5.3vw,76px);line-height:1.06;letter-spacing:-2px;max-width:720px;margin:25px 0;color:#fff}
.av22-intro p{font-size:clamp(16px,1.8vw,20px);line-height:1.7;color:#aeb8c6;max-width:530px}
.av22-actions{display:flex;flex-wrap:wrap;gap:14px;margin:32px 0}.av22-actions .btn{font-size:12px}
.av22-hero-facts{display:flex;flex-wrap:wrap;gap:18px;color:#b0b8c5;font-size:12px;margin-top:25px}
.av22-featured{border:1px solid rgba(255,255,255,.12);border-radius:28px;padding:26px;text-align:center;background:linear-gradient(155deg,#29232a,#171b25 60%,#11141b);box-shadow:0 35px 100px rgba(0,0,0,.45);position:relative;overflow:hidden}
.av22-featured:before{content:"";position:absolute;width:340px;height:340px;left:50%;top:20%;transform:translate(-50%,-50%);background:radial-gradient(circle,rgba(243,112,35,.16),transparent 70%);pointer-events:none}
.av22-featured-top{display:flex;justify-content:space-between;align-items:center;color:#f37023}.av22-featured-top .av22-onair{font-size:10px;padding:7px 11px}
.av22-record{width:min(220px,65%);aspect-ratio:1;margin:24px auto 22px;border-radius:24px;background:linear-gradient(145deg,#f37023,#9b2e1c);display:grid;place-items:center;box-shadow:0 22px 55px rgba(243,112,35,.2);padding:20px}
.av22-record img{width:100%;max-height:100%;object-fit:contain;filter:drop-shadow(0 6px 15px rgba(0,0,0,.25))}
.av22-featured-label{font-size:11px;letter-spacing:2px;color:#f8a36b;font-weight:800}.av22-featured h2{font-size:clamp(19px,2.2vw,27px);margin:10px 0 7px;overflow-wrap:anywhere}.av22-featured p{font-size:13px;color:#aeb8c6}
.av22-equalizer{height:37px;display:flex;justify-content:center;align-items:center;gap:5px;margin:18px 0}.av22-equalizer i{display:block;width:4px;height:14px;background:#f37023;border-radius:4px;animation:av22beat 1s ease-in-out infinite alternate}.av22-equalizer i:nth-child(3n){animation-delay:.35s;height:25px}.av22-equalizer i:nth-child(4n){animation-delay:.7s;height:10px}@keyframes av22beat{to{height:5px;opacity:.5}}
.av22-scroll-link{display:inline-block;font-size:12px;color:#ffac78;font-weight:700}.av22-scroll-link i{margin-left:8px}
.av22-highlights{padding:0 0 35px;background:#0b0d12}.av22-highlights-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.av22-highlights a{border:1px solid rgba(255,255,255,.08);background:#161a23;padding:24px;border-radius:18px;display:flex;align-items:center;gap:17px;transition:transform .2s,border-color .2s}.av22-highlights a:hover{transform:translateY(-4px);border-color:rgba(243,112,35,.5)}.av22-highlights a>i:first-child{font-size:25px;color:#f37023}.av22-highlights a>i:last-child{margin-left:auto;font-size:12px;color:#f37023}.av22-highlights span{display:flex;flex-direction:column;gap:5px}.av22-highlights strong{font-size:16px}.av22-highlights small{font-size:12px;color:#aeb8c6}
.av-top10-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:15px}.av-top10-item{background:#171b24!important;border:1px solid rgba(255,255,255,.1)!important;border-radius:18px!important;padding:16px!important;min-height:92px}.av-top10-rank{font-size:24px!important;color:#f37023!important;font-weight:900}.av-top10-cover{border-radius:12px;object-fit:cover}.av-program-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px}.av-program-card{background:#171b24;border:1px solid rgba(255,255,255,.1);border-radius:18px;padding:25px}
/* Light-only hero styles moved to assets/av-theme-light.css (3.9.27). */
@media(max-width:900px){.av22-hero{padding:65px 0 45px}.av22-hero-grid{grid-template-columns:1fr}.av22-featured{max-width:540px;width:100%;margin:auto}.av22-highlights-grid{grid-template-columns:1fr}.av22-intro h1{letter-spacing:-1px}}
@media(max-width:500px){.av22-hero{padding-top:42px}.av22-intro h1{font-size:43px}.av22-featured{padding:20px}.av22-record{width:175px}.av22-actions .btn{width:100%;text-align:center;justify-content:center}}
@media(prefers-reduced-motion:reduce){.av22-equalizer i{animation:none}}

/* Activavida 2.3: historial musical */
.av23-history-section{padding-top:45px;padding-bottom:55px}
.av23-heading{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:24px}
.av23-heading .section-title{margin:12px 0 0;text-align:left}
.av23-auto,.av23-listeners{font-size:13px;color:#abb8c8}
.av23-history{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x proximity;padding:4px 2px 16px;scrollbar-width:none}
.av23-track{flex:0 0 155px;min-width:0;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.11);border-radius:16px;padding:9px;scroll-snap-align:start}
.av23-track-cover{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:11px;background:#1c2531}
.av23-track-info{padding:9px 2px 4px;display:flex;flex-direction:column;gap:5px}
.av23-track-info strong{font-size:13px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.av23-track-info small{font-size:12px;color:#aeb9c7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.av22-record img{object-fit:cover;width:100%;height:100%}
.av-light .av23-track{background:#fff;border-color:#e2e5eb}
.av-light .av23-track-info small,.av-light .av23-auto,.av-light .av23-listeners{color:#596577}
@media(max-width:640px){.av23-heading{align-items:start;flex-direction:column}.av23-track{flex-basis:138px}}

/* Activavida 2.4: carátulas musicales cuadradas */
.av22-record{width:min(245px,75%);aspect-ratio:1;margin:15px auto 18px;overflow:hidden;border-radius:18px;background:#172634;padding:0!important;border:1px solid rgba(255,255,255,.1);box-shadow:none!important}
.av22-record img{display:block;width:100%;height:100%;object-fit:cover;border-radius:16px}
.player-cover{overflow:hidden;flex-shrink:0;border-radius:10px}
.player-cover img{display:block;width:100%;height:100%;object-fit:cover}
.av23-history{min-height:185px}

/* Activavida 2.5: historial inmediatamente después de la portada */
.av23-history-section{padding-top:34px;padding-bottom:28px}
.av23-history{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;overflow:visible;min-height:0;padding:4px 0 10px}
.av23-track{width:auto;min-width:0;flex:none;padding:8px}
.av23-track-info strong{font-size:12px}
.av23-track-info small{font-size:11px}
.av22-highlights{margin-top:20px;margin-bottom:58px}
.av22-highlights-grid{gap:14px}
@media(max-width:1050px){.av23-history{display:flex;overflow-x:auto;scroll-snap-type:x proximity}.av23-track{flex:0 0 148px}}
@media(max-width:640px){.av23-history{gap:10px}.av23-track{flex-basis:142px}.av23-history-section{padding-top:25px;padding-bottom:20px}.av22-highlights{margin-top:12px;margin-bottom:35px}}

/* Activavida 2.6: accesos de aplicaciones antes del historial */
.av26-apps-section{padding:30px 0 4px;background:#0b0d12}
.av26-apps-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.av26-app-card{appearance:none;display:flex;align-items:center;gap:15px;min-height:86px;width:100%;padding:16px 20px;background:#171b24;border:1px solid rgba(255,255,255,.13);border-radius:16px;color:#fff;text-decoration:none;text-align:left;cursor:pointer;font-family:inherit;transition:border-color .2s,transform .2s,box-shadow .2s}
.av26-app-card:hover{transform:translateY(-3px);border-color:#f37023;box-shadow:0 12px 24px rgba(0,0,0,.15)}
.av26-app-icon{display:grid;place-items:center;width:48px;height:48px;flex:0 0 48px;border-radius:13px;background:linear-gradient(135deg,#f37023,#a42d1b);color:#fff;font-size:22px}
.av26-app-copy{display:flex;flex-direction:column;gap:5px;min-width:0}.av26-app-copy small{font-size:10px;letter-spacing:.7px;color:#aeb9c7;font-weight:700}.av26-app-copy strong{font-size:16px;line-height:1.25;color:inherit}
.av26-app-arrow{margin-left:auto;font-size:12px;color:#f37023}
.av26-install-dialog{max-width:min(460px,calc(100vw - 30px));border:1px solid #343b47;border-radius:18px;background:#171b24;color:#fff;padding:28px;box-shadow:0 25px 80px rgba(0,0,0,.55)}
.av26-install-dialog::backdrop{background:rgba(0,0,0,.7)}.av26-install-dialog h3{font-size:22px;margin:0 0 14px}.av26-install-dialog p{font-size:14px;line-height:1.65;color:#cbd1da;margin:0 0 13px}
.av26-dialog-close{position:absolute;right:16px;top:12px;border:0;background:transparent;color:#fff;font-size:27px;cursor:pointer}.av26-dialog-ok{background:#f37023;color:#fff;border:0;border-radius:9px;padding:11px 20px;font-weight:700;cursor:pointer}
body.av-light .av26-app-card{background:#fff;color:#17212e;border-color:#e1e4eb}body.av-light .av26-app-copy small{color:#697485}
@media(max-width:850px){.av26-apps-grid{grid-template-columns:1fr}.av26-app-card{min-height:76px}.av26-apps-section{padding-top:20px}}

/* Activavida 2.7: social links, consistent with dark/orange design */
.av27-social-section{padding:14px 0 28px}
.av27-social-card{background:#151922;border:1px solid #2a2f3b;border-radius:18px;padding:24px;max-width:440px;margin-left:auto}
.av27-social-card h2{font-size:22px;margin:0 0 7px;color:#fff}
.av27-social-card p{font-size:13px;color:#aab3c2;margin:0 0 16px}
.av27-social-icons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.av27-social-link{display:flex;align-items:center;justify-content:center;gap:8px;min-height:55px;background:#202531;border:1px solid #323949;border-radius:12px;color:#fff;text-decoration:none;font-size:20px;transition:background .2s,transform .2s}
.av27-social-link:hover{background:#e95c24;color:#fff;transform:translateY(-2px)}
.av27-footer-social{display:flex;gap:9px;flex-wrap:wrap}
.av27-footer-social .av27-social-link{min-width:40px;min-height:40px;font-size:16px}
@media(max-width:760px){.av27-social-card{max-width:none}.av27-social-section{padding:10px 0 20px}}

/* Activavida 2.8 — Ranking con columna lateral */
.av28-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:32px;align-items:start}
.av28-main{min-width:0}
.av28-main .av-top10-grid{display:flex!important;flex-direction:column;gap:10px;margin-top:22px}
.av28-main .av-top10-item{width:100%;min-height:72px!important;padding:12px 16px!important;border-radius:13px!important}
.av28-main .av-top10-cover{width:48px;height:48px}
.av28-main .av-top10-rank{min-width:38px;font-size:20px!important}
.av28-main .av-top10-play{white-space:nowrap}
.av28-sidebar{display:flex;flex-direction:column;gap:16px}
.av28-side-card{border:1px solid #30323c;background:#18191f;border-radius:17px;padding:19px;color:#f8f8fb}
.av28-side-card h3{font-size:16px;margin:0 0 12px;color:#f6f6fa}
.av28-weather h3 i{color:#f9a33b}
.av28-weather-value{font-size:23px;font-weight:750;margin:6px 0;color:#fff}
.av28-weather-desc{color:#a8a9b5}
.av28-eyebrow{display:block;color:#a8a9b5;letter-spacing:.09em;font-size:11px;margin-bottom:12px}
.av28-ad img{display:block;width:100%;height:auto;border-radius:12px}
.av28-social .av27-social-icons{grid-template-columns:repeat(3,minmax(0,1fr))}
.av28-social .av27-social-link{min-height:70px;font-size:23px}
body.av-light .av28-side-card{background:#fff;color:#17202a;border-color:#dfe2e8}
body.av-light .av28-side-card h3,body.av-light .av28-weather-value{color:#17202a}
@media(max-width:850px){.av28-layout{grid-template-columns:1fr}.av28-sidebar{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}}
@media(max-width:520px){.av28-sidebar{display:flex}.av28-main .av-top10-item{gap:8px!important}.av28-main .av-top10-play{font-size:12px;padding:8px!important}}

/* 3.9.4: compactar el espacio entre historial, accesos y programación. */
.av23-history-section{padding-bottom:12px!important}
.av22-highlights{margin-top:0!important;margin-bottom:0!important;padding:8px 0 0!important}
.av-programming.section{padding-top:32px!important;padding-bottom:54px!important}
.av-programming .section-description{margin-bottom:16px!important}
.av-programming .av39-carousel{margin-top:18px!important}
@media(max-width:640px){.av23-history-section{padding-bottom:10px!important}.av22-highlights{padding-top:6px!important}.av-programming.section{padding-top:25px!important;padding-bottom:38px!important}}

/* Activavida 3.9.18: efecto vidrio esmerilado, SOLO reproductor flotante. */
.audio-player#activavida-player {
  background-color: rgba(14, 17, 25, .58) !important;
  -webkit-backdrop-filter: blur(18px) saturate(145%) !important;
  backdrop-filter: blur(18px) saturate(145%) !important;
  border-color: rgba(255,255,255,.19) !important;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .audio-player#activavida-player {background-color:rgba(14,17,25,.94)!important;}
}

/* 3.9.21 — Móvil: alinear portada directamente debajo del header fijo.
   Sin padding duplicado en body; solo reglas CSS de cabecera y portada. */
@media screen and (max-width: 650px) {
  body:has(.av22-hero) { padding-top: 0; }
  body:has(.av22-hero) .av22-hero {
    margin-top: 82px;
    padding-top: 18px;
  }
  body:has(.av22-hero) .av22-pill { max-width: 100%; line-height: 1.4; }
  body:has(.av22-hero) .av22-hero-grid { gap: 30px; }
}

/* 3.9.23 — Un único logo visible por ubicación y modo.
   Reglas específicas para cabecera y footer; sin afectar a otros elementos. */
header .navbar a.logo img.av125-logo-light,
.av36-footer .av36-footer-identity img.av125-logo-light { display: none !important; }
header .navbar a.logo img.av125-logo-dark,
.av36-footer .av36-footer-identity img.av125-logo-dark { display: block !important; }
body.av-light header .navbar a.logo img.av125-logo-dark,
body.av-light .av36-footer .av36-footer-identity img.av125-logo-dark { display: none !important; }
body.av-light header .navbar a.logo img.av125-logo-light,
body.av-light .av36-footer .av36-footer-identity img.av125-logo-light { display: block !important; }

/* Legibilidad de artículos: colores según el modo de apariencia. */
.post-body-content { color: #d1d9e2; }
body.av-light .post-body-content { color: #465568; }

/* Indicadores coherentes en los carruseles táctiles (historial y publicaciones). */
.av-carousel-dots { display:none; }
@media (max-width:1050px) {
  .av23-history { scrollbar-width:none; -ms-overflow-style:none; }
  .av23-history::-webkit-scrollbar { display:none; }
  .av-carousel-dots:not([hidden]) { display:flex; justify-content:center; align-items:center; gap:9px; margin:12px 0 8px; }
  .av-carousel-dot { appearance:none; border:0; background:#626474; width:8px; height:8px; border-radius:99px; padding:0; cursor:pointer; transition:width .22s ease,background-color .22s ease; }
  .av-carousel-dot.is-active { width:28px; background:#f26522; }
  .av-carousel-dot:focus-visible { outline:2px solid #f26522; outline-offset:4px; }
  body.av-light .av-carousel-dot:not(.is-active) { background:#a0a4ad; }
}
