/*
Theme Name: Activavida Theme
Theme URI: https://activavida.net
Author: Tu Nombre / Diseñador Web
Description: Tema personalizado One Page para Activavida - Radio Cristiana Contemporánea
Version: 1.0.0
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: 
        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;
}

.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;
    display: block !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;
    font-size: 25px;
    cursor: pointer;
    color: white;
}

/* =====================================================
   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-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.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;
}

/* RESPONSIVE */
@media(max-width: 900px) {
    .nav-menu {
        position: fixed;
        top: 82px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 82px);
        background: #0b0d12;
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        transition: .4s;
    }
    .nav-menu.active { left: 0; }
    .mobile-menu { display: block; }
    .radio-grid, .schedule-grid, .news-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; gap: 10px; padding: 10px; }
    .player-info { min-width: 100px; flex: 1; }
    .player-info h4 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
    .volume, .player-live, .equalizer { display: none; }
    .footer-grid { flex-direction: column; text-align: center; }
}