:root {
    --primary-color: #6927ff;
    --secondary-color: #e20b50;
    --dark-color: #1e1e1e;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --medium-gray: #777;
    --white: #fff;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Arial Black', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img {
    max-height: 70px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--dark-color);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.hero::before {
    width: 420px;
    height: 420px;
    background: rgba(255, 255, 255, 0.18);
    top: -180px;
    left: -120px;
    animation: hero-drift 14s ease-in-out infinite;
}

.hero::after {
    width: 320px;
    height: 320px;
    background: rgba(255, 255, 255, 0.12);
    bottom: -160px;
    right: -100px;
    animation: hero-drift 14s ease-in-out infinite reverse;
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}



@keyframes hero-drift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 20px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Contenedor de 3 columnas: Publicidad | Reproductor | Publicidad */
.player-ads-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 30px auto;
}

/* Estilos para los contenedores de publicidad lateral */
.ad-side {
    width: 300px;
    min-width: 250px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ad-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-left {
    order: 1;
}

.player-container {
    order: 2;
    flex-shrink: 0;
}

.ad-right {
    order: 3;
}

/* Publicidad debajo del reproductor (responsive) */
.ad-bottom {
    max-width: 728px;
    margin: 20px auto 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Player Container */
.player-container {
    position: relative;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 450px;
    padding: 25px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.player-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    justify-content: space-between;
}

.player-title {
    display: flex;
    align-items: center;
}

.player-title h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
}

.status {
    background: rgba(109, 40, 217, 0.2);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #a78bfa;
}

.track-info {
    text-align: center;
    margin-bottom: 25px;
}

.track-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #e2e8f0;
}

.track-artist {
    font-size: 0.9rem;
    color: #94a3b8;
}

.album-art {
    width: 180px;
    height: 180px;
    border-radius: 15px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #6d28d9, #a78bfa);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 8px 20px rgba(109, 40, 217, 0.3);
    transition: box-shadow 0.4s ease, transform 0.3s ease;
    padding: 28px;
}

.album-art:hover {
    transform: scale(1.03);
}

.track-info:has(.equalizer.playing) .album-art {
    animation: album-glow 2s ease-in-out infinite;
}

@keyframes album-glow {
    0%, 100% { box-shadow: 0 8px 20px rgba(109, 40, 217, 0.3), 0 0 0 0 rgba(167, 139, 250, 0.4); }
    50% { box-shadow: 0 8px 26px rgba(109, 40, 217, 0.45), 0 0 0 10px rgba(167, 139, 250, 0.08); }
}

.equalizer {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 60px;
    margin: 20px 0;
    gap: 4px;
}

.bar {
    width: 6px;
    background: linear-gradient(to top, #6d28d9, #a78bfa);
    border-radius: 3px 3px 0 0;
    animation: equalize 1.5s infinite ease-in-out;
}

.bar:nth-child(1) { animation-delay: 0.1s; height: 20px; }
.bar:nth-child(2) { animation-delay: 0.2s; height: 35px; }
.bar:nth-child(3) { animation-delay: 0.3s; height: 50px; }
.bar:nth-child(4) { animation-delay: 0.4s; height: 40px; }
.bar:nth-child(5) { animation-delay: 0.5s; height: 30px; }
.bar:nth-child(6) { animation-delay: 0.6s; height: 45px; }
.bar:nth-child(7) { animation-delay: 0.7s; height: 25px; }
.bar:nth-child(8) { animation-delay: 0.8s; height: 35px; }

@keyframes equalize {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.5); }
}

.playing .bar {
    animation-play-state: running;
}

.paused .bar {
    animation-play-state: paused;
}

.progress-container {
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    margin-bottom: 5px;
}

.progress {
    height: 100%;
    background: linear-gradient(to right, #6d28d9, #a78bfa);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #94a3b8;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.control-btn {
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.control-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.play-pause {
    background: linear-gradient(135deg, #6d28d9, #a78bfa);
    color: white;
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(109, 40, 217, 0.4);
}

.play-pause:hover {
    transform: scale(1.05);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.volume-icon {
    font-size: 1rem;
}

.volume-slider {
    flex: 1;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    outline: none;
    transition: background 0.2s ease;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #a78bfa;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.5);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(167, 139, 250, 0.2);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 50%;
    background: #a78bfa;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(167, 139, 250, 0.2);
}

.volume-slider::-moz-range-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.playlist {
    margin-top: 20px;
    max-height: 220px;
    overflow-y: auto;
}

.playlist-title {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #94a3b8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.playlist-item {
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    font-size: 0.85rem;
    border-left: 3px solid transparent;
}

.playlist-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.playlist-item.active {
    background-color: rgba(109, 40, 217, 0.2);
    color: #a78bfa;
    border-left-color: #a78bfa;
}

.playlist-item.active span:first-child::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a78bfa;
    margin-right: 6px;
    animation: playlist-pulse 1.2s ease-in-out infinite;
}

@keyframes playlist-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.4); }
}

.playlist-item-duration {
    font-size: 0.75rem;
    color: #64748b;
    flex-shrink: 0;
}

.playlist::-webkit-scrollbar {
    width: 5px;
}

.playlist::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.playlist::-webkit-scrollbar-thumb {
    background: rgba(109, 40, 217, 0.5);
    border-radius: 3px;
}

.youtube-info {
    text-align: center;
    margin-top: 15px;
    font-size: 0.7rem;
    color: #64748b;
}

.loading {
    display: none;
    text-align: center;
    color: #a78bfa;
    margin: 10px 0;
    font-size: 0.9rem;
}

.error-message {
    display: none;
    text-align: center;
    color: #ef4444;
    margin: 10px 0;
    font-size: 0.9rem;
    padding: 10px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* About Section */
.about-section {
    padding: 60px 0;
    background-color: var(--white);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 50px;
}

.about-text h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: var(--font-heading);
    text-align: center;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--text-color);
}

.about-features {
    margin-top: 30px;
}

.about-features h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    font-family: var(--font-heading);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: var(--light-gray);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.feature-text {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.9rem;
}

/* Programming Section */
.programming-section {
    margin: 40px 0;
    padding: 40px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.programming-section h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--dark-color);
    font-family: var(--font-heading);
}

.programming-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.programming-item {
    text-align: center;
    padding: 24px 10px;
    background-color: var(--light-gray);
    border-radius: 12px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.programming-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.programming-item i {
    width: 52px;
    height: 52px;
    margin: 0 auto 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Un color distinto por genero musical, con onda peruana */
.programming-item:nth-child(1) i { background: linear-gradient(135deg, #f4a300, #e63946); } /* Chicha */
.programming-item:nth-child(1) { border-bottom-color: #f4a300; }

.programming-item:nth-child(2) i { background: linear-gradient(135deg, #06b6d4, #6927ff); } /* Cumbia */
.programming-item:nth-child(2) { border-bottom-color: #06b6d4; }

.programming-item:nth-child(3) i { background: linear-gradient(135deg, #e20b50, #ff6b6b); } /* Salsa */
.programming-item:nth-child(3) { border-bottom-color: #e20b50; }

.programming-item:nth-child(4) i { background: linear-gradient(135deg, #10b981, #06b6d4); } /* Reggaeton */
.programming-item:nth-child(4) { border-bottom-color: #10b981; }

.programming-item:nth-child(5) i { background: linear-gradient(135deg, #a16207, #f4a300); } /* Huayno */
.programming-item:nth-child(5) { border-bottom-color: #a16207; }

.programming-name {
    font-weight: 600;
    color: var(--dark-color);
}

/* Social Section */
.social-section {
    text-align: center;
    padding: 40px 0;
}

.social-section h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    font-family: var(--font-heading);
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(105, 39, 255, 0.3);
}

/* Tech Section */
.tech-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.tech-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-family: var(--font-heading);
    color: var(--dark-color);
    font-size: 2rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.tech-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.tech-icon {
    width: 80px;
    height: 80px;
    margin: 30px auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(105, 39, 255, 0.3);
}

.tech-content {
    padding: 0 30px 30px;
    text-align: center;
}

.tech-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    font-family: var(--font-heading);
}

.tech-content p {
    color: var(--medium-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.tech-features {
    list-style: none;
    text-align: left;
    margin-bottom: 25px;
}

.tech-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    color: var(--text-color);
}

.tech-features li:last-child {
    border-bottom: none;
}

.tech-features i {
    color: var(--primary-color);
    margin-right: 10px;
}

.tech-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.tech-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(105, 39, 255, 0.3);
}

.tech-highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-top: 60px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.tech-highlight-content {
    position: relative;
    z-index: 2;
}

.tech-highlight h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.tech-highlight p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Sidebar */
.sidebar {
    background-color: var(--light-gray);
    border-radius: 8px;
    padding: 25px;
    margin: 40px auto;
}

.sidebar-title {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    color: var(--dark-color);
    font-size: 1.3rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-list a {
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.sidebar-list a:hover {
    color: var(--secondary-color);
}

.sidebar-list i {
    margin-right: 8px;
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* ========== FOOTER ========== */
footer {
    position: relative;
    background: linear-gradient(180deg, #0d0d0f 0%, #161616 100%);
    color: #bfbfbf;
    padding: 64px 0 0;
    margin-top: 70px;
    font-size: 14px;
}

footer::before {
    content: '';
    display: block;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 30px 40px;
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr 1fr 0.9fr;
    gap: 35px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-widget:not(:first-child) {
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    padding-left: 40px;
}

/* Titulos de cada columna */
.footer-widget h4 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* Segundo titulo dentro del mismo widget (ej. "Categoria Distraccion") */
.footer-widget h4 ~ h4 {
    margin-top: 28px;
}

.footer-widget p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-widget p i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--secondary-color);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.footer-widget a {
    position: relative;
    display: block;
    color: #bfbfbf;
    text-decoration: none;
    margin-bottom: 12px;
    padding-left: 0;
    transition: color 0.25s ease, padding-left 0.25s ease;
}

.footer-widget a::before {
    content: '\2039';
    position: absolute;
    left: -14px;
    opacity: 0;
    color: var(--secondary-color);
    font-weight: 700;
    transition: opacity 0.25s ease, left 0.25s ease;
}

.footer-widget a:hover {
    color: #fff;
    padding-left: 14px;
}

.footer-widget a:hover::before {
    opacity: 1;
    left: 0;
}

/* Footer bottom (copyright) */
.footer-bottom {
    padding: 22px 0;
    background: rgba(0, 0, 0, 0.35);
}

.footer-bottom-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: #888;
}

.footer-credits a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.footer-credits a:hover {
    text-decoration: underline;
}

/* Logo en el footer */
.footer-logo-img {
    width: 190px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

/* Descripcion del footer */
.footer-description {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #999;
    margin-bottom: 22px;
    max-width: 340px;
}

/* Informacion de contacto */
.footer-contact p {
    margin-bottom: 12px;
    font-size: 0.9rem;
}

/* Redes sociales en footer */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(226, 11, 80, 0.35);
}

/* Ajuste para el t�tulo del reproductor */
.player-title h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-left: 10px;
    color: white;
}

/* Responsive */
@media (max-width: 1200px) {
    .player-ads-container {
        flex-direction: column;
    }
    
    .ad-side {
        width: 100%;
        max-width: 728px;
        order: 1;
    }
    
    .player-container {
        order: 2;
    }
    
    .ad-left, .ad-right {
        order: 1;
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }

    .footer-widget:nth-child(odd) {
        border-left: none;
        padding-left: 0;
    }
}

@media (max-width: 992px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .nav-menu {
        order: 3;
        width: 100%;
        margin-top: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .nav-menu li {
        margin: 5px 10px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .programming-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 10px 0;
    }
    
    .hero {
        padding: 40px 20px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .programming-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-highlight h2 {
        font-size: 2rem;
    }
    
    .tech-highlight p {
        font-size: 1rem;
    }
    
    .social-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .ad-bottom {
        display: block;
    }
    
    /* Footer responsive */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 36px;
        padding: 40px 20px;
    }

    .footer-widget {
        border-left: none !important;
        padding-left: 0 !important;
        padding-bottom: 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .footer-widget:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .footer-widget h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-widget p {
        justify-content: center;
    }

    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }

    .footer-widget a:hover {
        padding-left: 0;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-contact p {
        justify-content: center;
    }

    .footer-description {
        text-align: center;
        margin: 0 auto 22px;
    }

    .footer-logo-img {
        display: block;
        margin: 0 auto 18px;
        width: 150px;
    }
}

@media (max-width: 576px) {
    .header-container {
        padding: 10px 15px;
    }
    
    .logo img {
        max-height: 50px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
    }
    
    .programming-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-text {
        font-size: 0.85rem;
    }
    
    .player-container {
        padding: 15px;
        max-width: 95%;
    }
    
    .album-art {
        width: 140px;
        height: 140px;
    }
    
    /* Ajuste responsive para el logo en m�viles */
    .player-title h2 {
        font-size: 1rem;
    }
    
    .footer-logo-img {
        width: 140px;
    }
}

/* ==================== Mejoras agregadas: badge en vivo, whatsapp flotante, boton volver arriba ==================== */

.hero-title {
    font-size: 2.4rem;
    font-family: var(--font-heading);
    color: #ffffff;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e63946;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 10px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
    100% { opacity: 1; transform: scale(1); }
}

.album-art-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 999;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 90px;
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    transform: translateY(-4px);
}

@media (max-width: 600px) {
    .whatsapp-float {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
        bottom: 16px;
        right: 16px;
    }
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 16px;
        right: 74px;
    }
}

/* Respeta la preferencia de menos movimiento */
@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .hero::after,
    .track-info:has(.equalizer.playing) .album-art,
    .bar {
        animation: none !important;
    }
    .player-bg-video {
        display: none;
    }
}

/* Sección del mapa (fuera del footer, justo antes) - a todo el ancho de la pantalla */
.map-section {
    width: 100%;
}

.footer-map-full {
    width: 100%;
    height: 400px;
}

.footer-map-full iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .footer-map-full {
        height: 280px;
    }
}

/* Cuando el footer viene justo despues del mapa a todo el ancho, sin espacio entre ambos */
.map-section + footer {
    margin-top: 0;
}

/* Mini reproductor flotante (aparece al hacer scroll) */
.mini-player {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 100px);
    width: min(420px, calc(100% - 32px));
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.mini-player.show {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

.mini-player-art {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6d28d9, #a78bfa);
    flex-shrink: 0;
    object-fit: cover;
}

.mini-player-info {
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.mini-player-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-player-artist {
    font-size: 0.72rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-player-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.mini-player-btn {
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 1rem;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mini-player-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.mini-player-btn.mini-play-pause {
    background: linear-gradient(135deg, #6d28d9, #a78bfa);
    color: white;
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
}

@media (max-width: 600px) {
    .mini-player {
        bottom: 76px;
        border-radius: 40px;
        padding: 8px 10px;
    }
}



/* ===== Header Radio Caleta mejorado ===== */
header {
    box-shadow: 0 2px 12px rgba(105, 39, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
}
.header-container {
    padding: 12px 5%;
    max-width: 1400px;
    gap: 16px;
}
.logo a {
    display: inline-flex;
    align-items: center;
}
.logo img {
    max-height: 72px !important;
    width: auto !important;
    height: auto !important;
    max-width: 240px;
    object-fit: contain;
}
.nav-menu a {
    font-weight: 600;
    color: #2a2a2a;
    padding: 6px 4px;
    position: relative;
}
.nav-menu a:hover {
    color: #6927ff;
}
.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6927ff, #e20b50);
    transition: width 0.25s ease;
}
.nav-menu a:hover::after {
    width: 100%;
}

/* Iconos redes – colores Radio Caleta */
.social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}
.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem !important;
    color: #fff !important;
    background: linear-gradient(135deg, #6927ff, #e20b50);
    box-shadow: 0 4px 12px rgba(105, 39, 255, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.social-icons a:hover {
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 6px 16px rgba(226, 11, 80, 0.35);
    color: #fff !important;
    filter: brightness(1.05);
}
.social-icons a .fa-facebook,
.social-icons a .fa-youtube {
    color: #fff !important;
}

@media (max-width: 992px) {
    .logo img {
        max-height: 60px !important;
        max-width: 200px;
    }
    .social-icons a {
        width: 36px;
        height: 36px;
        font-size: 1.05rem !important;
    }
}
@media (max-width: 576px) {
    .logo img {
        max-height: 52px !important;
        max-width: 170px;
    }
}



/* ===== Menú a la derecha, antes de redes ===== */
.header-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 20px;
}
.logo {
    flex: 0 0 auto;
    margin-right: auto; /* empuja el resto a la derecha */
}
.nav-menu {
    display: flex !important;
    align-items: center;
    margin-left: auto; /* acerca el menú al bloque derecho */
    margin-right: 8px;
    gap: 4px;
}
.nav-menu li {
    margin: 0 10px !important;
}
.social-icons {
    flex: 0 0 auto;
    margin-left: 4px;
}

/* Desktop: menú + redes juntos a la derecha */
@media (min-width: 993px) {
    .header-container {
        flex-wrap: nowrap !important;
    }
    .nav-menu {
        order: 2;
        width: auto !important;
        margin-top: 0 !important;
        position: static !important;
        box-shadow: none !important;
        background: transparent !important;
        padding: 0 !important;
        flex-direction: row !important;
    }
    .social-icons {
        order: 3;
    }
    .mobile-menu-btn {
        display: none !important;
    }
}


/* ===== Publicidad solo laterales (SUBPÁGINAS, no index) ===== */
.page-with-ads {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) 160px;
    gap: 20px;
    max-width: 1480px;
    margin: 0 auto;
    padding: 8px 16px 40px;
    align-items: start;
    box-sizing: border-box;
}
.page-main-col {
    min-width: 0;
    width: 100%;
}
.page-main-col .page-content {
    max-width: 100% !important;
    margin: 0 auto;
}
.page-main-col .page-banner {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}
.ad-sidebar {
    position: sticky;
    top: 90px;
    width: 160px;
    flex-shrink: 0;
}
.ad-sidebar-inner {
    width: 160px;
}
.ad-sidebar .adsbygoogle {
    display: block;
    width: 160px;
    min-height: 600px;
}
@media (max-width: 1100px) {
    .page-with-ads {
        grid-template-columns: 1fr;
        max-width: 1100px;
        padding: 8px 4% 40px;
    }
    .ad-sidebar { display: none !important; }
}
