/* =========================
   VARIABLES
========================= */

:root{

    --black:#000000;
    --dark:#2C2C2C;
    --purple:#6A1B9A;
    --violet:#9C27B0;
    --white:#FFFFFF;

}

/* =========================
   BASE
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:var(--white);
    color:var(--black);
}

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

/* =========================
   RADIO LIVE BAR
========================= */

.radio-live{

    background:linear-gradient(135deg,var(--black),var(--dark));
    color:var(--white);

    position:sticky;
    top:0;
    z-index:1000;

    padding:12px 0;

    box-shadow:0 6px 20px rgba(0,0,0,.35);
    border-bottom:2px solid var(--purple);
}

.radio-box{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.live-badge{
    background:var(--purple);
    padding:5px 10px;
    border-radius:20px;
    font-size:11px;
    font-weight:700;
    box-shadow:0 0 10px rgba(156,39,176,.5);
}

.radio-info h3{
    font-size:1rem;
    margin-top:5px;
}

.radio-info p{
    font-size:.8rem;
    opacity:.7;
}

.play-btn,
.pause-btn{

    border:none;
    padding:8px 14px;
    border-radius:8px;
    cursor:pointer;
    font-weight:600;
    transition:.3s;

}

.play-btn{
    background:var(--violet);
    color:var(--white);
}

.pause-btn{
    background:var(--white);
    color:var(--black);
}

/* =========================
   HEADER
========================= */

.main-header{
    background:var(--black);
    color:var(--white);
    padding:15px 0;
    position:sticky;
    top:55px;
    z-index:900;
    border-bottom:1px solid var(--purple);
}

.header-inner{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo{
    font-size:1.3rem;
    font-weight:700;
    letter-spacing:1px;
}

.logo span{
    color:var(--violet);
}

nav a{
    margin-left:20px;
    text-decoration:none;
    color:var(--white);
    font-weight:500;
    transition:.3s;
}

nav a:hover{
    color:var(--violet);
}

/* =========================
   HERO
========================= */

.hero{
    position:relative;
    height:72vh;
    overflow:hidden;
    border-radius:18px;
    margin:20px auto;
    box-shadow:0 15px 40px rgba(0,0,0,.2);
}

.hero img{
    width:100%;
    height:100%;
    object-fit:cover;
    filter:contrast(1.1) brightness(.85);
}

.hero-overlay{

    position:absolute;
    inset:0;

    background:linear-gradient(
        to top,
        rgba(0,0,0,.95),
        rgba(106,27,154,.25)
    );

    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    padding:40px;
    color:var(--white);

}

.hero .badge{
    background:var(--purple);
    width:max-content;
    padding:6px 12px;
    border-radius:20px;
    font-size:12px;
    font-weight:700;
}

.hero h1{
    font-size:2.6rem;
    margin-top:10px;
}

.hero p{
    opacity:.85;
    max-width:600px;
}

.btn-primary{
    margin-top:15px;
    background:var(--violet);
    color:var(--white);
    padding:10px 18px;
    border-radius:8px;
    text-decoration:none;
    display:inline-block;
    font-weight:600;
}

/* =========================
   PUBLICIDAD GENERAL
========================= */

.ads{
    margin:25px auto;
    display:flex;
    flex-wrap:wrap;
    gap:15px;
    justify-content:center;
}

.ads a{
    display:block;
    width:100%;
}

/* =========================
   TOP (BANNER)
========================= */

.ads-top a{
    max-height:120px;
    overflow:hidden;
    border-radius:12px;
}

.ads-top img{
    width:100%;
    height:120px;
    object-fit:cover;
    display:block;
}

/* =========================
   MIDDLE (FLYER GRID)
========================= */

.ads-middle{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:15px;
}

.ads-middle a{
    height:280px;
    overflow:hidden;
    border-radius:12px;
}

.ads-middle img{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* =========================
   BOTTOM (BANNER MEDIO)
========================= */

.ads-bottom a{
    max-height:140px;
    overflow:hidden;
    border-radius:12px;
}

.ads-bottom img{
    width:100%;
    height:140px;
    object-fit:cover;
}

/* =========================
   SIDEBAR ADS
========================= */

.sidebar{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.sidebar a{
    display:block;
}

.ad-sidebar img{
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:12px;
}

/* =========================
   SECCIONES
========================= */

.section-title{
    display:flex;
    align-items:center;
    gap:10px;
    margin:30px 0 20px;
}

.section-title h2{
    font-size:1.4rem;
}

.section-title span{
    flex:1;
    height:2px;
    background:linear-gradient(90deg,var(--purple),var(--violet));
}

/* =========================
   NEWS GRID
========================= */

.news-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:20px;
}

.news-card{
    background:var(--white);
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,.1);
    transition:.3s;
    border:1px solid #eee;
}

.news-card:hover{
    transform:translateY(-6px);
}

.news-image img{
    width:100%;
    height:200px;
    object-fit:cover;
}

.news-content{
    padding:15px;
}

/* =========================
   LAYOUT
========================= */

.layout{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:30px;
    margin-top:30px;
}

/* =========================
   FOOTER
========================= */

.footer{
    margin-top:40px;
    padding:25px 0;
    text-align:center;
    background:var(--black);
    color:var(--white);
    border-top:2px solid var(--purple);
}

/* =========================
   BOTÓN ARRIBA
========================= */

#backToTop{
    position:fixed;
    bottom:20px;
    right:20px;
    width:45px;
    height:45px;
    border:none;
    border-radius:50%;
    background:var(--violet);
    color:var(--white);
    font-size:18px;
    cursor:pointer;
    display:none;
    box-shadow:0 10px 25px rgba(0,0,0,.3);
}

#backToTop.visible{
    display:block;
}

/* =========================
   ANIMACIONES
========================= */

.animate-on-scroll{
    opacity:0;
    transform:translateY(25px);
    transition:.7s ease;
}

.animate-on-scroll.show{
    opacity:1;
    transform:translateY(0);
}