/* CSS Variables for Theme */
:root {
    /* Colors */
    --primary-green: #11a63b;
    --primary-dark: #0c7a2b;
    --primary-light: #e6f6eb;
    --accent-yellow: #fcd320;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Poppins', sans-serif;

    /* Spacing & Misc */
    --border-radius: 12px;
    --box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px -10px rgba(16, 185, 129, 0.2);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;  /* Aquí sí es seguro: no rompe position:fixed */
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    /* overflow-x:hidden NO va aquí: rompe position:fixed en Chrome/Safari */
    visibility: hidden;
    transition: visibility 0s 0.35s, opacity 0.35s ease-in;
    opacity: 0;
}

body.loaded {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.35s ease-in;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

section {
    scroll-margin-top: 100px;
}

.section-spacing {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.align-center {
    text-align: center;
}

.highlight {
    color: var(--primary-green);
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-green);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
    background-color: var(--primary-green);
    color: var(--white);
    border-radius: 20px;
    transition: var(--transition);
}

.btn-sm:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
    padding: 20px 0;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.header.scrolled * {
    color: var(--bg-dark);
}

.header.scrolled .btn-sm,
.header.scrolled .btn-sm * {
    color: var(--white);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    transition: var(--transition);
}

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

.logo i {
    font-size: 2rem;
    color: var(--primary-green);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a:not(.btn-sm) {
    font-weight: 500;
    color: var(--white);
    position: relative;
    transition: var(--transition);
}

.nav-links a:not(.btn-sm)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-green);
    transition: var(--transition);
}

.nav-links a:not(.btn-sm):hover::after {
    width: 100%;
}

.header.scrolled .nav-links a:not(.btn-sm) {
    color: var(--text-main);
}

.header.scrolled .nav-links a:not(.btn-sm):hover {
    color: var(--primary-green);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

.header.scrolled .mobile-menu-btn {
    color: var(--text-main);
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--white);
    z-index: 1001;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    transition: 0.4s ease;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
}

.mobile-nav.open {
    left: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
}

.mobile-nav-links a {
    padding: 20px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 1px solid var(--bg-light);
    color: var(--text-main);
    transition: var(--transition);
}

.mobile-nav-links a:hover {
    background-color: var(--primary-light);
    color: var(--primary-green);
    padding-left: 40px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    overflow: hidden;
    background-color: var(--bg-dark);
}

.hero-bg-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(17, 166, 59, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(252, 211, 32, 0.15) 0%, transparent 50%);
    z-index: 1;
}

/* Simple CSS Waves Animation for Background */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 120%;
    height: 300px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="%23ffffff" fill-opacity="0.05" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') repeat-x;
    background-size: cover;
    animation: wave 20s linear infinite;
    z-index: 2;
}

.hero::after {
    bottom: -15%;
    opacity: 0.5;
    animation-direction: reverse;
    animation-duration: 25s;
}

@keyframes wave {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-10%);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(17, 166, 59, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(17, 166, 59, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(17, 166, 59, 0);
    }
}

/* Live Player */
.player-section {
    margin-top: -80px;
    position: relative;
    z-index: 20;
    padding-top: 0;
}

.player-container {
    padding: 0;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-top: 4px solid var(--primary-green);
    overflow: hidden;
}

.player-main {
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.now-playing-anim {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 30px;
}

.now-playing-anim .bar {
    width: 6px;
    background-color: var(--primary-green);
    border-radius: 3px;
    animation: sound 0ms -800ms linear infinite alternate;
}

.now-playing-anim .bar:nth-child(1) {
    height: 10px;
    animation-duration: 474ms;
}

.now-playing-anim .bar:nth-child(2) {
    height: 20px;
    animation-duration: 433ms;
}

.now-playing-anim .bar:nth-child(3) {
    height: 30px;
    animation-duration: 407ms;
}

.now-playing-anim .bar:nth-child(4) {
    height: 15px;
    animation-duration: 458ms;
}

.now-playing-anim.active .bar {
    animation: none;
}

@keyframes sound {
    0% {
        height: 4px;
        opacity: 0.5;
    }

    100% {
        height: 30px;
        opacity: 1;
    }
}

.live-badge {
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.player-listeners-badge {
    background: rgba(16, 185, 129, 0.12);
    color: var(--primary-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.player-listeners-badge i {
    font-size: 0.85rem;
}

.text-info h2 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.text-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 30px;
}

.control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    flex-shrink: 0;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(17, 166, 59, 0.3);
}

.control-btn:hover {
    transform: scale(1.1);
    background-color: var(--primary-dark);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.player-container {
    padding: 0;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-top: 4px solid var(--primary-green);
    overflow: hidden;
}

/* About Section */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.mv-card {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-green);
}

.mv-card i {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.mv-card h3 {
    margin-bottom: 10px;
}

.about-images {
    position: relative;
    height: 400px;
}

.image-wrapper {
    position: absolute;
    border-radius: var(--border-radius);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-hover);
}

.img-1 {
    width: 70%;
    height: 80%;
    top: 0;
    left: 0;
    z-index: 2;
}

.img-2 {
    width: 60%;
    height: 70%;
    bottom: 0;
    right: 0;
    z-index: 1;
    border: 5px solid var(--white);
}

/* Programming Section */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.program-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.time-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--primary-green);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.host {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    color: var(--primary-dark);
}

/* Ads Section */
.ads-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-green));
    color: var(--white);
    position: relative;
}

.ads-container {
    display: flex;
    justify-content: center;
    text-align: center;
}

.ads-content {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.2);
    padding: 50px;
    max-width: 800px;
}

.ads-content .highlight {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: #10b981;
}

.ads-desc {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.ads-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.ads-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 500;
}

.ads-benefits i {
    color: #fff;
    font-size: 1.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-methods {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.method {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.method i {
    font-size: 1.8rem;
    color: var(--primary-green);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.w-100 {
    width: 100%;
    justify-content: center;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 15px;
}

.footer-brand p {
    color: #94a3b8;
}

.footer-social h3 {
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--primary-green);
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 250px;
}

.footer-brand.footer-col {
    align-items: flex-start;
    text-align: left;
}

.social-icons-row {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icon-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--white);
    transition: var(--transition);
}

.social-icon-btn:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

.footer-app-social {
    max-width: 250px;
}

.footer-app-social h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--white);
}

.app-button {
    display: inline-block;
    transition: var(--transition);
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.app-button:hover {
    transform: translateY(-3px) scale(1.05);
    filter: drop-shadow(0 8px 20px rgba(16, 185, 129, 0.3));
}

.footer-bottom {
    background-color: #020617;
    padding: 20px 0;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
/* ==========================================================================
   RESPONSIVE DESIGN — MEGA MOBILE OPTIMIZATION
   Breakpoints:
     992px  → Tablets landscape / small desktops
     768px  → Tablets portrait / large phones (landscape)
     576px  → Phones
     480px  → Small phones (iPhone SE, etc.)
   ========================================================================== */

/* ── 992px ──────────────────────────────────────────────────────────────── */
@media (max-width: 992px) {

    /* Layout grids */
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Live Player */
    .player-main {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .player-controls {
        width: 100%;
        justify-content: center;
        gap: 15px;
    }

    /* EQ Drawer */
    .eq-drawer-content {
        display: flex;
        flex-direction: column;
        gap: 25px;
        padding: 30px 20px;
    }

    .eq-slider-group input[type="range"] {
        height: 8px;
    }
}

/* ── 768px ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    /* ── Navigation ── */
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        font-size: 1.8rem;
    }

    /* ── Hero Section ── */
    .hero {
        min-height: 100svh; /* Use small viewport height for phones with browser chrome */
        padding: 0 16px;
    }

    .hero-content {
        max-width: 100% !important;
        padding: 0 8px;
        text-align: center;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 14px;
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 28px;
        padding: 0 8px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* Logo row in hero */
    .hero-logo-row {
        flex-direction: column;
        gap: 12px !important;
        margin-bottom: 16px;
    }

    .hero-logo-main {
        order: 1;
        max-height: 160px;
    }

    /* Side ads: hidden on mobile — they would overlap content */
    .hero-side-ad {
        display: none !important;
    }

    /* ── Live Player ── */
    .player-section {
        margin-top: -40px;
    }

    .player-main {
        padding: 20px 16px;
        gap: 16px;
        flex-direction: column;
        text-align: center;
    }

    .player-info {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .text-info h2 {
        font-size: 1.2rem;
    }

    .text-info p {
        font-size: 0.85rem;
    }

    .player-controls {
        gap: 20px;
        justify-content: center;
        width: 100%;
    }

    .control-btn {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }

    .volume-control {
        gap: 8px;
        font-size: 1rem;
    }

    .volume-control input[type="range"] {
        width: 90px;
    }

    /* Player banner ad */
    .player-ad-banner {
        margin: 20px auto 0 auto !important;
    }

    .player-ad-banner .ad-container-body {
        height: auto;
        min-height: 60px;
        max-width: 100%;
    }

    /* ── Section Titles ── */
    .section-title {
        font-size: 1.9rem;
    }

    .section-spacing {
        padding: 55px 0;
    }

    /* ── About Section ── */
    .mission-vision {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 20px;
    }

    .about-images {
        height: 260px;
        margin-top: 20px;
    }

    /* ── Programs Section ── */
    .program-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .program-card:hover {
        transform: none; /* Disable hover lift on touch */
    }

    .card-img {
        height: 180px;
    }

    /* ── Ads CTA Section ── */
    .ads-content {
        padding: 30px 20px;
    }

    .ads-benefits {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* ── Contact Section ── */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 24px 16px;
    }

    /* ── Social Cards ── */
    .social-card {
        flex-direction: column;
        text-align: center;
    }

    .social-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* ── Footer ── */
    .footer {
        padding: 40px 0 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
    }

    .footer-col {
        min-width: unset;
        width: 100%;
        align-items: flex-start;
        text-align: left;
    }

    .footer-brand.footer-col {
        max-width: 100%;
    }

    .footer-app-social {
        max-width: 100%;
    }

    /* ── Admin Toolbar ── */
    .admin-toolbar {
        width: 94%;
        gap: 8px;
        padding: 10px 12px;
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 20px;
        bottom: 10px;
    }

    .admin-toolbar .btn {
        padding: 7px 14px;
        font-size: 0.8rem;
    }

    /* ── Mini Player in Header ── */
    .mini-player-text {
        display: none !important;
    }

    .mini-volume {
        display: none !important;
    }

    .mini-player.visible {
        padding: 5px 12px !important;
        gap: 8px !important;
    }

    /* ── Popup Ad ── */
    .ad-modal-content {
        max-width: 90%;
        max-height: 85vh;
    }

    .ad-modal-close {
        top: -10px;
        right: -10px;
        width: 34px;
        height: 34px;
    }

    .ad-modal-close i {
        font-size: 1.15rem;
    }

    .ad-modal-body img {
        max-height: 52vh;
    }

    .ad-promo-btn {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
        margin-top: 10px !important;
    }
}

/* ── 576px ──────────────────────────────────────────────────────────────── */
@media (max-width: 576px) {

    /* Base */
    .container {
        padding: 0 14px;
    }

    /* Hero */
    .hero-title {
        font-size: clamp(1.8rem, 9vw, 2.4rem);
    }

    .hero-subtitle {
        font-size: 0.92rem;
    }

    /* Player */
    .player-main {
        padding: 16px 12px;
    }

    .control-btn {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }

    /* Section titles */
    .section-title {
        font-size: 1.6rem;
    }

    .section-spacing {
        padding: 44px 0;
    }

    /* Buttons */
    .btn {
        padding: 10px 22px;
        font-size: 0.95rem;
    }

    /* About images */
    .about-images {
        height: 220px;
    }

    /* Contact form */
    .contact-form-wrapper {
        padding: 20px 12px;
        border-radius: 12px;
    }

    /* Footer brand */
    .footer-brand p {
        font-size: 0.9rem;
    }

    /* Ads CTA */
    .ads-content {
        padding: 24px 14px;
    }

    .ads-content .section-title {
        font-size: 1.5rem;
    }

    /* Popup ad */
    .ad-modal-content {
        max-width: 95%;
        max-height: 82vh;
    }

    .ad-modal-body img {
        max-height: 48vh;
    }

    /* Program cards */
    .card-content {
        padding: 18px;
    }

    .card-content h3 {
        font-size: 1.1rem;
    }

    /* Social icons row in footer */
    .social-icons-row {
        gap: 10px;
    }

    .social-icon-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
}

/* ── 480px — Small phones ───────────────────────────────────────────────── */
@media (max-width: 480px) {

    /* Navigation */
    .logo {
        font-size: 1.25rem;
    }

    .logo i {
        font-size: 1.6rem;
    }

    /* Hero */
    .hero-title {
        font-size: clamp(1.6rem, 10vw, 2.2rem);
    }

    .hero-cta .btn {
        max-width: 100%;
        width: 100%;
    }

    /* Player */
    .text-info h2 {
        font-size: 1.1rem;
    }

    .control-btn {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }

    .volume-control input[type="range"] {
        width: 70px;
    }

    /* Admin toolbar — two rows on very small screens */
    .admin-toolbar {
        width: 98%;
        padding: 8px;
        gap: 6px;
        bottom: 6px;
    }

    .admin-toolbar strong {
        width: 100%;
        text-align: center;
    }

    /* Section spacing */
    .section-spacing {
        padding: 36px 0;
    }

    .section-title {
        font-size: 1.45rem;
    }

    /* About images: hide overlapping decorative image on very small screens */
    .img-2 {
        display: none;
    }

    .img-1 {
        width: 100%;
        height: 100%;
    }

    /* Contact */
    .method {
        font-size: 0.95rem;
    }

    .method i {
        font-size: 1.5rem;
    }

    /* Footer */
    .footer-bottom {
        font-size: 0.8rem;
        padding: 16px 0;
    }
}

/* ── Tablet ads (medium screens) ────────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1100px) {
    .hero-side-ad {
        width: 140px;
        height: 330px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .mission-vision {
        grid-template-columns: 1fr;
    }

    .about-images {
        height: 300px;
        margin-top: 30px;
    }
}

/* Social Media Section Enhancement */
.social-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.social-card {
    display: flex;
    padding: 30px;
    gap: 20px;
    align-items: center;
    transition: var(--transition);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    z-index: 1;
    text-decoration: none;
    color: inherit;
}

.social-card.instagram::before {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-card.facebook::before {
    background: linear-gradient(45deg, #1877f2 0%, #3b5998 100%);
}

.social-card.tiktok::before {
    background: linear-gradient(45deg, #000000 0%, #25F4EE 50%, #FE2C55 100%);
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.social-card:hover {
    transform: scale(1.05);
    background: transparent;
    border-color: transparent;
    color: var(--white);
}

.social-card:hover::before {
    opacity: 1;
}

.social-card:hover .social-card-content p,
.social-card:hover .social-action {
    color: rgba(255, 255, 255, 0.9);
}

.social-icon-wrapper {
    font-size: 3.5rem;
    background: var(--primary-light);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    transition: var(--transition);
}

.instagram .social-icon-wrapper {
    color: #bc1888;
}

.facebook .social-icon-wrapper {
    color: #1877f2;
}

.tiktok .social-icon-wrapper {
    color: #010101;
}

.social-card:hover .social-icon-wrapper {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.social-card-content h3 {
    margin-bottom: 5px;
    font-size: 1.4rem;
}

.social-card-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.social-action {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: var(--primary-green);
    font-size: 0.9rem;
}

/* Admin Panel Styles */
#admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

#admin-modal .modal-content {
    width: 90%;
    max-width: 400px;
    padding: 40px;
}

#admin-modal h3 {
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

[contenteditable="true"] {
    outline: 2px dashed var(--primary-green);
    outline-offset: 4px;
    background: rgba(16, 185, 129, 0.05);
}

[contenteditable="true"]:focus {
    background: rgba(16, 185, 129, 0.1);
    outline: 2px solid var(--primary-green);
}

/* Admin Mode Styles */
.admin-img-overlay {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.admin-edit-img-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-green);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0;
    transition: var(--transition);
    z-index: 10;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.admin-img-overlay:hover .admin-edit-img-btn {
    opacity: 1;
}

.admin-edit-img-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #0d9668;
}

.admin-img-overlay.drag-over {
    outline: 4px solid var(--primary-green);
    outline-offset: -4px;
    background: rgba(16, 185, 129, 0.2);
}

.admin-img-overlay.drag-over img,
.admin-img-overlay.drag-over video {
    filter: brightness(0.4);
}

.admin-img-overlay:hover img,
.admin-img-overlay:hover video {
    filter: brightness(0.6);
}

.admin-toolbar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark);
    padding: 15px 30px;
    border-radius: 50px;
    display: none;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-toolbar strong {
    color: var(--primary-green);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-toolbar .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Equalizer Styles */
.eq-control {
    position: relative;
}

.eq-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 25px;
    background: var(--bg-light);
    border: 1px solid #e2e8f0;
    color: var(--text-main);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.eq-btn:hover,
.eq-btn.active {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

.eq-drawer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.eq-drawer.show {
    max-height: 600px;
}

.eq-drawer-content {
    padding: 25px 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.eq-slider-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eq-slider-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eq-slider-group input[type="range"] {
    width: 100%;
}

.eq-value {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-green);
}

/* Premium Sliders Styling */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #e2e8f0;
    border-radius: 5px;
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-green);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

/* Integrated Mini Player */
.mini-player {
    display: flex;
    opacity: 0;
    max-width: 0;
    pointer-events: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0.8);
    transform-origin: left center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 50px;
    padding: 0;
}

.mini-player.visible {
    opacity: 1;
    pointer-events: auto;
    max-width: 500px;
    transform: scale(1);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 6px 18px;
}

.mini-player-text {
    color: var(--white);
    transition: color 0.3s ease;
}

.header.scrolled .mini-player-text {
    color: var(--text-dark);
}

.mini-wave {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 15px;
}

#header-mini-player .ph-speaker-high,
#header-mini-player .ph-speaker-low,
#header-mini-player .ph-speaker-x {
    color: var(--primary-green) !important;
}

#floating-play-pause i {
    color: white !important;
}

.mini-wave .wave-bar {
    width: 3px;
    background-color: var(--primary-green) !important;
    border-radius: 2px;
    animation: wave-bounce 1s ease-in-out infinite;
    height: 3px;
}

.mini-wave.playing .wave-bar:nth-child(1) { animation-delay: 0.0s; height: 10px; }
.mini-wave.playing .wave-bar:nth-child(2) { animation-delay: 0.2s; height: 15px; }
.mini-wave.playing .wave-bar:nth-child(3) { animation-delay: 0.4s; height: 8px; }
.mini-wave.playing .wave-bar:nth-child(4) { animation-delay: 0.6s; height: 12px; }

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

/* Admin Card Controls */
.admin-card-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    background: rgba(0,0,0,0.7);
    padding: 5px;
    border-radius: 8px;
    z-index: 10;
}

.admin-card-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.admin-card-btn:hover {
    color: var(--primary-green);
    background: rgba(255,255,255,0.1);
    transform: scale(1.1);
}

.admin-card-btn.delete:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* ==========================================================================
   VENTANA EMERGENTE DE PUBLICIDAD ANIMADA (PROMO AD POPUP)
   ========================================================================== */
.ad-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.75);
    z-index: 25000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.ad-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: adOverlayFadeIn 0.5s forwards cubic-bezier(0.25, 1, 0.5, 1);
}

.ad-modal-overlay.closing {
    pointer-events: none;
    animation: adOverlayFadeOut 0.5s forwards cubic-bezier(0.25, 1, 0.5, 1);
}

.ad-modal-content {
    position: relative;
    background: transparent;
    max-width: 520px;
    width: 100%;
    max-height: 88vh;
    border-radius: 16px;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.6);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ad-modal-overlay.active .ad-modal-content {
    transform: scale(1) translateY(0);
    animation: adFadeInScale 0.6s forwards cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ad-modal-overlay.closing .ad-modal-content {
    animation: adFadeOutScale 0.5s forwards cubic-bezier(0.25, 1, 0.5, 1);
}

.ad-modal-body {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.15);
    background: rgba(15, 23, 42, 0.4);
    box-shadow: 0 0 35px rgba(17, 166, 59, 0.3);
}

.ad-modal-body img,
.ad-modal-body video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    border-radius: 13px;
    transition: transform 0.3s ease;
}

.ad-modal-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 38px;
    height: 38px;
    background-color: var(--accent-yellow);
    color: var(--bg-dark);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 25001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ad-modal-close i {
    font-size: 1.4rem;
    font-weight: bold;
}

.ad-modal-close:hover {
    background-color: var(--primary-green);
    color: var(--white);
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 6px 20px rgba(17, 166, 59, 0.5);
}

@keyframes adFadeInScale {
    from { opacity: 0; transform: scale(0.85) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes adFadeOutScale {
    from { opacity: 1; transform: scale(1) translateY(0); }
    to { opacity: 0; transform: scale(0.85) translateY(30px); }
}

@keyframes adOverlayFadeIn {
    from { opacity: 0; background-color: rgba(15, 23, 42, 0); backdrop-filter: blur(0px); }
    to { opacity: 1; background-color: rgba(15, 23, 42, 0.75); backdrop-filter: blur(8px); }
}

@keyframes adOverlayFadeOut {
    from { opacity: 1; background-color: rgba(15, 23, 42, 0.75); backdrop-filter: blur(8px); }
    to { opacity: 0; background-color: rgba(15, 23, 42, 0); backdrop-filter: blur(0px); }
}

.ad-promo-btn {
    box-shadow: 0 4px 15px rgba(17, 166, 59, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 30px !important;
    padding: 12px 28px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ad-promo-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(17, 166, 59, 0.6);
}

/* ==========================================================================
   INTERRUPTOR PREMIUM (SWITCH ROUND SLIDER)
   ========================================================================== */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #475569;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background-color: var(--primary-green);
    box-shadow: 0 0 12px rgba(17, 166, 59, 0.5);
}

.switch input:checked + .slider:before {
    transform: translateX(24px);
}

/* ==========================================================================
   ESPACIOS DE PUBLICIDAD MULTI-FORMATO (IMÁGENES, GIF, SVG, VIDEO)
   ========================================================================== */

.hero-content {
    max-width: 1150px !important;
}

.hero-logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    width: 100%;
    position: relative;
}

.hero-logo-main {
    flex: 0 0 auto;
    max-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenedores de Anuncios Flotantes - fijos en pantalla */
.hero-side-ad {
    position: fixed !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 230px;
    height: 460px;
    z-index: 9999 !important;
    display: none !important;
    transition: opacity 0.3s ease;
    will-change: transform;
    margin: 0 !important;
    padding: 0 !important;
}

#hero-ad-left-container {
    left: 16px !important;
    right: auto !important;
}

#hero-ad-right-container {
    right: 16px !important;
    left: auto !important;
}

.player-ad-banner {
    transition: all 0.3s ease;
    width: 100%;
    margin: 35px auto 0 auto !important;
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
}

.hero-side-ad .ad-container-body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(15, 23, 42, 0.6);
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
    position: relative;
    transition: opacity 0.3s ease;
}

.player-ad-banner .ad-container-body {
    width: 100%;
    max-width: 970px;
    height: 120px;
    margin: 0 auto !important;
    overflow: hidden;
    border-radius: 12px;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(15, 23, 42, 0.6);
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
    position: relative;
    transition: opacity 0.3s ease;
}

/* Reglas unificadas para Imágenes, GIF, SVG y Video sin deformación */
.ad-container-body img,
.ad-container-body video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Reglas para Modo de Tamaño Automático (Adaptable a proporción natural) */
.hero-side-ad.ad-mode-auto {
    width: auto !important;
    height: auto !important;
    max-width: 320px !important;
    max-height: 80vh !important;
}

.hero-side-ad.ad-mode-auto .ad-container-body {
    width: auto !important;
    height: auto !important;
}

.hero-side-ad.ad-mode-auto img,
.hero-side-ad.ad-mode-auto video {
    width: auto !important;
    height: auto !important;
    max-width: 320px !important;
    max-height: 80vh !important;
    object-fit: contain !important;
}

.player-ad-banner.ad-mode-auto,
.player-ad-banner.ad-mode-auto .ad-container-body {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 250px !important;
}

.player-ad-banner.ad-mode-auto img,
.player-ad-banner.ad-mode-auto video {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 250px !important;
    object-fit: contain !important;
}

/* Estado visible y desactivado */
.hero-side-ad.ad-active {
    display: flex !important;
    opacity: 1;
}

.hero-side-ad.ad-deactivated,
.player-ad-banner.ad-deactivated {
    display: none !important;
}

body.admin-active .hero-side-ad.ad-deactivated {
    display: flex !important;
    opacity: 0.45;
    pointer-events: auto;
}

body.admin-active .player-ad-banner.ad-deactivated {
    display: block !important;
    opacity: 0.45;
    pointer-events: auto;
}

body.admin-active .hero-side-ad.ad-deactivated::after,
body.admin-active .player-ad-banner.ad-deactivated::after {
    content: "ANUNCIO APAGADO ❌";
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 15;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Barra flotante de vista previa */
#preview-mode-bar {
    animation: slideDownPreview 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    border: 2px solid #38bdf8 !important;
    backdrop-filter: blur(10px);
    background: rgba(15, 23, 42, 0.92) !important;
}

#admin-preview-exit-btn:hover {
    background: white !important;
    color: var(--bg-dark) !important;
    transform: scale(1.05);
}

@keyframes slideDownPreview {
    from { transform: translate(-50%, -100%); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

/* ==========================================================================
   RESPONSIVE DESIGN — MEGA MOBILE OPTIMIZATION
   Breakpoints:
     992px  → Tablets landscape / small desktops
     768px  → Tablets portrait / large phones (landscape)
     576px  → Phones
     480px  → Small phones (iPhone SE, etc.)
   ========================================================================== */

/* ── 992px ──────────────────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .player-main {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .player-controls {
        width: 100%;
        justify-content: center;
        gap: 15px;
    }

    .eq-drawer-content {
        display: flex;
        flex-direction: column;
        gap: 25px;
        padding: 30px 20px;
    }

    .eq-slider-group input[type="range"] {
        height: 8px;
    }
}

/* ── 768px ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        font-size: 1.8rem;
    }

    .hero {
        min-height: 100svh;
        padding: 0 16px;
    }

    .hero-content {
        max-width: 100% !important;
        padding: 0 8px;
        text-align: center;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 14px;
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 28px;
        padding: 0 8px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-logo-row {
        flex-direction: column;
        gap: 12px !important;
        margin-bottom: 16px;
    }

    .hero-logo-main {
        order: 1;
        max-height: 160px;
    }

    .hero-side-ad {
        display: none !important;
    }

    .player-section {
        margin-top: -40px;
    }

    .player-main {
        padding: 20px 16px;
        gap: 16px;
        flex-direction: column;
        text-align: center;
    }

    .player-info {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .text-info h2 {
        font-size: 1.2rem;
    }

    .text-info p {
        font-size: 0.85rem;
    }

    .player-controls {
        gap: 20px;
        justify-content: center;
        width: 100%;
    }

    .control-btn {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }

    .volume-control {
        gap: 8px;
        font-size: 1rem;
    }

    .volume-control input[type="range"] {
        width: 90px;
    }

    .player-ad-banner {
        margin: 20px auto 0 auto !important;
    }

    .player-ad-banner .ad-container-body {
        height: auto;
        min-height: 60px;
        max-width: 100%;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .section-spacing {
        padding: 55px 0;
    }

    .mission-vision {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 20px;
    }

    .about-images {
        height: 260px;
        margin-top: 20px;
    }

    .program-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .program-card:hover {
        transform: none;
    }

    .card-img {
        height: 180px;
    }

    .ads-content {
        padding: 30px 20px;
    }

    .ads-benefits {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 24px 16px;
    }

    .social-card {
        flex-direction: column;
        text-align: center;
    }

    .social-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer {
        padding: 40px 0 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
    }

    .footer-col {
        min-width: unset;
        width: 100%;
        align-items: flex-start;
        text-align: left;
    }

    .footer-brand.footer-col {
        max-width: 100%;
    }

    .footer-app-social {
        max-width: 100%;
    }

    .admin-toolbar {
        width: 94%;
        gap: 8px;
        padding: 10px 12px;
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 20px;
        bottom: 10px;
    }

    .admin-toolbar .btn {
        padding: 7px 14px;
        font-size: 0.8rem;
    }

    .mini-player-text {
        display: none !important;
    }

    .mini-volume {
        display: none !important;
    }

    .mini-player.visible {
        padding: 5px 12px !important;
        gap: 8px !important;
    }

    .ad-modal-content {
        max-width: 90%;
        max-height: 85vh;
    }

    .ad-modal-close {
        top: -10px;
        right: -10px;
        width: 34px;
        height: 34px;
    }

    .ad-modal-close i {
        font-size: 1.15rem;
    }

    .ad-modal-body img,
    .ad-modal-body video {
        max-height: 52vh;
    }

    .ad-promo-btn {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
        margin-top: 10px !important;
    }
}

/* ── 576px ──────────────────────────────────────────────────────────────── */
@media (max-width: 576px) {
    .container {
        padding: 0 14px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 9vw, 2.4rem);
    }

    .hero-subtitle {
        font-size: 0.92rem;
    }

    .player-main {
        padding: 16px 12px;
    }

    .control-btn {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-spacing {
        padding: 44px 0;
    }

    .btn {
        padding: 10px 22px;
        font-size: 0.95rem;
    }

    .about-images {
        height: 220px;
    }

    .contact-form-wrapper {
        padding: 20px 12px;
        border-radius: 12px;
    }

    .footer-brand p {
        font-size: 0.9rem;
    }

    .ads-content {
        padding: 24px 14px;
    }

    .ads-content .section-title {
        font-size: 1.5rem;
    }

    .ad-modal-content {
        max-width: 95%;
        max-height: 82vh;
    }

    .ad-modal-body img,
    .ad-modal-body video {
        max-height: 48vh;
    }

    .card-content {
        padding: 18px;
    }

    .card-content h3 {
        font-size: 1.1rem;
    }

    .social-icons-row {
        gap: 10px;
    }

    .social-icon-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
}

/* ── 480px — Small phones ───────────────────────────────────────────────── */
@media (max-width: 480px) {
    .logo {
        font-size: 1.25rem;
    }

    .logo i {
        font-size: 1.6rem;
    }

    .hero-title {
        font-size: clamp(1.6rem, 10vw, 2.2rem);
    }

    .hero-cta .btn {
        max-width: 100%;
        width: 100%;
    }

    .text-info h2 {
        font-size: 1.1rem;
    }

    .control-btn {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }

    .volume-control input[type="range"] {
        width: 70px;
    }

    .admin-toolbar {
        width: 98%;
        padding: 8px;
        gap: 6px;
        bottom: 6px;
    }

    .admin-toolbar strong {
        width: 100%;
        text-align: center;
    }

    .section-spacing {
        padding: 36px 0;
    }

    .section-title {
        font-size: 1.45rem;
    }

    .img-2 {
        display: none;
    }

    .img-1 {
        width: 100%;
        height: 100%;
    }

    .method {
        font-size: 0.95rem;
    }

    .method i {
        font-size: 1.5rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
        padding: 16px 0;
    }
}

/* ── Tablet ads (medium screens) ────────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1100px) {
    .hero-side-ad {
        width: 140px;
        height: 330px;
    }
}

.social-card {
    display: flex;
    padding: 30px;
    gap: 20px;
    align-items: center;
    transition: var(--transition);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    z-index: 1;
    text-decoration: none;
    color: inherit;
}

.social-card.instagram::before {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-card.facebook::before {
    background: linear-gradient(45deg, #1877f2 0%, #3b5998 100%);
}

.social-card.tiktok::before {
    background: linear-gradient(45deg, #000000 0%, #25F4EE 50%, #FE2C55 100%);
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.social-card:hover {
    transform: scale(1.05);
    background: transparent;
    border-color: transparent;
    color: var(--white);
}

.social-card:hover::before {
    opacity: 1;
}

.social-card:hover .social-card-content p,
.social-card:hover .social-action {
    color: rgba(255, 255, 255, 0.9);
}

.social-icon-wrapper {
    font-size: 3.5rem;
    background: var(--primary-light);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    transition: var(--transition);
}

.instagram .social-icon-wrapper {
    color: #bc1888;
}

.facebook .social-icon-wrapper {
    color: #1877f2;
}

.tiktok .social-icon-wrapper {
    color: #010101;
}

.social-card:hover .social-icon-wrapper {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.social-card-content h3 {
    margin-bottom: 5px;
    font-size: 1.4rem;
}

.social-card-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.social-action {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: var(--primary-green);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .social-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Admin Panel Styles */
#admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

#admin-modal .modal-content {
    width: 90%;
    max-width: 400px;
    padding: 40px;
}

#admin-modal h3 {
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

[contenteditable="true"] {
    outline: 2px dashed var(--primary-green);
    outline-offset: 4px;
    background: rgba(16, 185, 129, 0.05);
}

[contenteditable="true"]:focus {
    background: rgba(16, 185, 129, 0.1);
    outline: 2px solid var(--primary-green);
}

/* Admin Mode Styles */
.admin-img-overlay {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.admin-edit-img-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-green);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0;
    transition: var(--transition);
    z-index: 10;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.admin-img-overlay:hover .admin-edit-img-btn {
    opacity: 1;
}

.admin-edit-img-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #0d9668;
}

.admin-img-overlay.drag-over {
    outline: 4px solid var(--primary-green);
    outline-offset: -4px;
    background: rgba(16, 185, 129, 0.2);
}

.admin-img-overlay.drag-over img {
    filter: brightness(0.4);
}

.admin-img-overlay:hover img {
    filter: brightness(0.6);
}

.admin-toolbar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark);
    padding: 15px 30px;
    border-radius: 50px;
    display: none;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-toolbar strong {
    color: var(--primary-green);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-toolbar .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .admin-toolbar {
        width: 90%;
        gap: 10px;
        padding: 10px;
        flex-direction: column;
        border-radius: 20px;
        bottom: 10px;
    }
}

/* Equalizer Styles */
.eq-control {
    position: relative;
}

/* Equalizer Drawer Styles */
.eq-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 25px;
    background: var(--bg-light);
    border: 1px solid #e2e8f0;
    color: var(--text-main);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.eq-btn:hover,
.eq-btn.active {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

.eq-drawer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.eq-drawer.show {
    max-height: 600px;
}

.eq-drawer-content {
    padding: 25px 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.eq-slider-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eq-slider-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eq-slider-group input[type="range"] {
    width: 100%;
}

.eq-value {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-green);
}

@media (max-width: 992px) {
    .player-main {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .player-controls {
        width: 100%;
        justify-content: center;
        gap: 15px;
    }

    .eq-drawer-content {
        display: flex;
        flex-direction: column;
        gap: 25px;
        /* Increased gap for finger-friendly sliders */
        padding: 30px 20px;
    }

    .eq-slider-group input[type="range"] {
        height: 8px;
        /* Thicker track for mobile */
    }
}

/* Premium Sliders Styling */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #e2e8f0;
    border-radius: 5px;
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-green);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

/* Integrated Mini Player */
.mini-player {
    display: flex;
    opacity: 0;
    max-width: 0;
    pointer-events: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0.8);
    transform-origin: left center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 50px;
    padding: 0;
}

.mini-player.visible {
    opacity: 1;
    pointer-events: auto;
    max-width: 500px; /* Increased from 400px to prevent clipping */
    transform: scale(1);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 6px 18px;
}

@media (max-width: 768px) {
    .mini-player-text {
        display: none !important;
    }
    .mini-volume {
        display: none !important;
    }
    .mini-player.visible {
        padding: 5px 12px !important;
        gap: 8px !important;
    }
}

.mini-player-text {
    color: var(--white);
    transition: color 0.3s ease;
}

.header.scrolled .mini-player-text {
    color: var(--text-dark);
}

.mini-wave {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 15px;
}

#header-mini-player .ph-speaker-high,
#header-mini-player .ph-speaker-low,
#header-mini-player .ph-speaker-x {
    color: var(--primary-green) !important;
}

#floating-play-pause i {
    color: white !important;
}

.mini-wave .wave-bar {
    width: 3px;
    background-color: var(--primary-green) !important;
    border-radius: 2px;
    animation: wave-bounce 1s ease-in-out infinite;
    height: 3px;
}

.mini-wave.playing .wave-bar:nth-child(1) { animation-delay: 0.0s; height: 10px; }
.mini-wave.playing .wave-bar:nth-child(2) { animation-delay: 0.2s; height: 15px; }
.mini-wave.playing .wave-bar:nth-child(3) { animation-delay: 0.4s; height: 8px; }
.mini-wave.playing .wave-bar:nth-child(4) { animation-delay: 0.6s; height: 12px; }

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

/* Admin Card Controls */
.admin-card-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    background: rgba(0,0,0,0.7);
    padding: 5px;
    border-radius: 8px;
    z-index: 10;
}

.admin-card-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.admin-card-btn:hover {
    color: var(--primary-green);
    background: rgba(255,255,255,0.1);
    transform: scale(1.1);
}

.admin-card-btn.delete:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* ==========================================================================
   VENTANA EMERGENTE DE PUBLICIDAD ANIMADA (PROMO AD POPUP)
   ========================================================================== */
.ad-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.75);
    z-index: 25000; /* Asegura estar por encima del reproductor y administrador */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.ad-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: adOverlayFadeIn 0.5s forwards cubic-bezier(0.25, 1, 0.5, 1);
}

.ad-modal-overlay.closing {
    pointer-events: none;
    animation: adOverlayFadeOut 0.5s forwards cubic-bezier(0.25, 1, 0.5, 1);
}

.ad-modal-content {
    position: relative;
    background: transparent;
    max-width: 480px;
    width: 100%;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.6);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ad-modal-overlay.active .ad-modal-content {
    transform: scale(1) translateY(0);
    animation: adFadeInScale 0.6s forwards cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ad-modal-overlay.closing .ad-modal-content {
    animation: adFadeOutScale 0.5s forwards cubic-bezier(0.25, 1, 0.5, 1);
}

.ad-modal-body {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.15);
    background: rgba(15, 23, 42, 0.4);
    box-shadow: 0 0 35px rgba(17, 166, 59, 0.3); /* Resaltado verde Triple A */
}

.ad-modal-body img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    border-radius: 13px;
    transition: transform 0.3s ease;
}

/* Botón de cierre superior derecho 'X' */
.ad-modal-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 38px;
    height: 38px;
    background-color: var(--accent-yellow);
    color: var(--bg-dark);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 25001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ad-modal-close i {
    font-size: 1.4rem;
    font-weight: bold;
}

.ad-modal-close:hover {
    background-color: var(--primary-green);
    color: var(--white);
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 6px 20px rgba(17, 166, 59, 0.5);
}

/* Animaciones Keyframes */
@keyframes adFadeInScale {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes adFadeOutScale {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.85) translateY(30px);
    }
}

@keyframes adOverlayFadeIn {
    from {
        opacity: 0;
        background-color: rgba(15, 23, 42, 0);
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        background-color: rgba(15, 23, 42, 0.75);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

@keyframes adOverlayFadeOut {
    from {
        opacity: 1;
        background-color: rgba(15, 23, 42, 0.75);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    to {
        opacity: 0;
        background-color: rgba(15, 23, 42, 0);
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
    }
}

.ad-promo-btn {
    box-shadow: 0 4px 15px rgba(17, 166, 59, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 30px !important;
    padding: 12px 28px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ad-promo-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(17, 166, 59, 0.6);
}

/* Soporte responsive para dispositivos móviles */
@media (max-width: 576px) {
    .ad-modal-content {
        max-width: 90%;
        max-height: 82vh;
    }
    .ad-modal-close {
        top: -10px;
        right: -10px;
        width: 34px;
        height: 34px;
    }
    .ad-modal-close i {
        font-size: 1.15rem;
    }
    .ad-modal-body {
        border-width: 2px;
    }
    .ad-modal-body img {
        max-height: 52vh; /* Reducido para dejar espacio al botón en celulares sin desbordar */
    }
    .ad-promo-btn {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
        margin-top: 10px !important;
    }
}

/* ==========================================================================
   INTERRUPTOR PREMIUM (SWITCH ROUND SLIDER)
   ========================================================================== */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #475569;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background-color: var(--primary-green);
    box-shadow: 0 0 12px rgba(17, 166, 59, 0.5);
}

.switch input:checked + .slider:before {
    transform: translateX(24px);
}

/* ==========================================================================
   NUEVOS ESPACIOS DE PUBLICIDAD Y MODO PREVISUALIZADOR
   ========================================================================== */

/* Ampliar contenedor de hero para que quepan anuncios y logo lado a lado en PC */
.hero-content {
    max-width: 1150px !important;
}

/* Fila de logos y anuncios */
.hero-logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    width: 100%;
    position: relative; /* Contexto para posición de los ads flotantes */
}

.hero-logo-main {
    flex: 0 0 auto;
    max-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenedores de Anuncios Flotantes - fijos en pantalla sin moverse al hacer scroll */
.hero-side-ad {
    position: fixed !important;   /* Fijo al viewport, no al contenido */
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 230px;
    height: 460px;
    z-index: 9999 !important;     /* Encima de absolutamente todo */
    display: none !important;     /* Oculto por defecto hasta que JS confirme estado */
    transition: opacity 0.3s ease;
    will-change: transform;       /* Garantiza compositing layer propio = no sigue el scroll */
    margin: 0 !important;        /* Sin margen que pueda desplazarlo */
    padding: 0 !important;
}

/* Anuncio izquierdo: separado 16px del borde izquierdo */
#hero-ad-left-container {
    left: 16px !important;
    right: auto !important;
}

/* Anuncio derecho: separado 16px del borde derecho */
#hero-ad-right-container {
    right: 16px !important;
    left: auto !important;
}

.player-ad-banner {
    transition: all 0.3s ease;
    width: 100%;
    margin: 35px auto 0 auto !important; /* Centrado automático */
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
}

.hero-side-ad .ad-container-body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    border: none;                 /* Sin borde discontinuo */
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(15, 23, 42, 0.6);
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
    position: relative;
    transition: opacity 0.3s ease;
}

.player-ad-banner .ad-container-body {
    width: 100%;
    max-width: 970px;
    height: 120px;
    margin: 0 auto !important; /* Asegurar centrado del cuerpo del banner */
    overflow: hidden;
    border-radius: 12px;
    border: none;                 /* Sin borde discontinuo */
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(15, 23, 42, 0.6);
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
    position: relative;
    transition: opacity 0.3s ease;
}



.ad-container-body img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Hace que la imagen llene el espacio sin deformarse */
    display: block;
}

/* Estado visible: cuando JS confirma que el anuncio está activo */
.hero-side-ad.ad-active {
    display: flex !important;
    opacity: 1;
}

/* Comportamiento Desactivado */
.hero-side-ad.ad-deactivated,
.player-ad-banner.ad-deactivated {
    display: none !important;
}

/* Mostrar anuncios desactivados de forma traslúcida sólo en el modo editor */
body.admin-active .hero-side-ad.ad-deactivated {
    display: flex !important;
    opacity: 0.45;
    pointer-events: auto;
}

body.admin-active .player-ad-banner.ad-deactivated {
    display: block !important;
    opacity: 0.45;
    pointer-events: auto;
}



body.admin-active .hero-side-ad.ad-deactivated::after,
body.admin-active .player-ad-banner.ad-deactivated::after {
    content: "ANUNCIO APAGADO ❌";
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 15;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Barra flotante de vista previa (Vista de Oyente) */
#preview-mode-bar {
    animation: slideDownPreview 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    border: 2px solid #38bdf8 !important;
    backdrop-filter: blur(10px);
    background: rgba(15, 23, 42, 0.92) !important;
}

#admin-preview-exit-btn:hover {
    background: white !important;
    color: var(--bg-dark) !important;
    transform: scale(1.05);
}

@keyframes slideDownPreview {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Soporte responsive en móviles para los anuncios del Hero */
@media (max-width: 768px) {
    .hero-logo-row {
        flex-direction: column;
        gap: 20px !important;
    }
    
    /* En móvil, los ads se ocultan para no tapar contenido */
    .hero-side-ad {
        display: none !important;
    }
    
    .hero-logo-main {
        order: 1;
    }
}

/* En tablets: ads más estrechos */
@media (min-width: 769px) and (max-width: 1100px) {
    .hero-side-ad {
        width: 140px;
        height: 330px;
    }
}