/* --- ULTIMATE CONFIGURACIÓN GLOBAL Y VARIABLES CSS --- */
:root {
    /* Colores mejorados con más profundidad */
    --color-fondo-oscuro: #000000;
    --color-fondo-seccion: #0a0a0a;
    --color-fondo-card: #111111;
    --color-fondo-card-hover: #1a1a1a;
    --color-borde: #2a2a2a;
    --color-borde-hover: #3a3a3a;
    --color-texto-principal: #ffffff;
    --color-texto-secundario: #b0b0b0;
    --color-texto-terciario: #808080;
    --color-texto-cuaternario: #606060;

    /* Colores de acento mejorados */
    --color-acento: #00AEEF;
    --color-acento-hover: #00c8ff;
    --color-acento-secundario: #ff4c65;
    --color-acento-secundario-hover: #ff6a80;
    --color-acento-terciario: #ffd700;
    --color-acento-terciario-hover: #ffdf33;

    /* Gradientes simplificados y profesionales */
    --color-gradient-1: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --color-gradient-2: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --color-gradient-3: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --color-gradient-4: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --color-gradient-5: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    --color-gradient-6: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);

    /* Fuentes mejoradas */
    --fuente-titulos: 'Oswald', sans-serif;
    --fuente-texto: 'Inter', sans-serif;
    --fuente-elegante: 'Playfair Display', serif;

    /* Sombras profesionales y sutiles */
    --sombra-suave: 0 4px 20px rgba(0,0,0,0.15);
    --sombra-media: 0 8px 30px rgba(0,0,0,0.25);
    --sombra-fuerte: 0 15px 50px rgba(0,0,0,0.4);
    --sombra-inner: inset 0 2px 4px rgba(0,0,0,0.1);
    --sombra-text: 2px 2px 4px rgba(0,0,0,0.5);
    --sombra-card: 0 10px 30px rgba(0,0,0,0.3), 0 1px 8px rgba(0,0,0,0.1);

    /* Transiciones mejoradas */
    --transition-rapida: 0.2s ease-out;
    --transition-media: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-lenta: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-muy-lenta: 1s cubic-bezier(0.4, 0, 0.2, 1);

    /* Border radius mejorados */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    --border-radius-xxl: 40px;

    /* Espaciado mejorado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;
    --spacing-xxxl: 8rem;
}

/* --- DARK MODE THEME --- */
[data-theme="dark"] {
    /* Colores oscuros para modo oscuro */
    --color-fondo-oscuro: #0a0a0a;
    --color-fondo-seccion: #111111;
    --color-fondo-card: #1a1a1a;
    --color-fondo-card-hover: #222222;
    --color-borde: #333333;
    --color-borde-hover: #444444;
    --color-texto-principal: #ffffff;
    --color-texto-secundario: #cccccc;
    --color-texto-terciario: #999999;
    --color-texto-cuaternario: #777777;

    /* Acentos más brillantes en modo oscuro */
    --color-acento: #00D4FF;
    --color-acento-hover: #33E0FF;
    --color-acento-secundario: #ff6b7d;
    --color-acento-secundario-hover: #ff8a9a;
    --color-acento-terciario: #ffed4e;
    --color-acento-terciario-hover: #fff176;

    /* Sombras más sutiles en modo oscuro */
    --sombra-suave: 0 4px 20px rgba(0,0,0,0.3);
    --sombra-media: 0 8px 30px rgba(0,0,0,0.4);
    --sombra-fuerte: 0 15px 50px rgba(0,0,0,0.6);
    --sombra-neon: 0 0 20px rgba(0, 212, 255, 0.4);
    --sombra-neon-hover: 0 0 30px rgba(0, 212, 255, 0.6);
}

/* --- LIGHT MODE THEME --- */
[data-theme="light"] {
    --color-fondo-oscuro: #f5f5f7;
    --color-fondo-seccion: #ffffff;
    --color-fondo-card: #ffffff;
    --color-fondo-card-hover: #f0f0f0;
    --color-borde: #dcdcdc;
    --color-borde-hover: #c0c0c0;
    --color-texto-principal: #1d1d1f;
    --color-texto-secundario: #515154;
    --color-texto-terciario: #86868b;
    --color-texto-cuaternario: #a1a1a6;

    --sombra-suave: 0 2px 10px rgba(0,0,0,0.08);
    --sombra-media: 0 5px 20px rgba(0,0,0,0.1);
    --sombra-fuerte: 0 10px 40px rgba(0,0,0,0.12);
    --sombra-card: 0 4px 15px rgba(0,0,0,0.08);
}

/* --- RESET Y ESTILOS GLOBALES MEJORADOS --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll globally */
}

body {
    font-family: var(--fuente-texto);
    background: var(--color-fondo-oscuro);
    color: var(--color-texto-principal);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    transition: background-color var(--transition-media), color var(--transition-media);
    width: 100%;
    max-width: 100vw;
}

/* Smooth theme transitions */
.theme-transitioning * {
    transition: background-color var(--transition-media), color var(--transition-media), border-color var(--transition-media), box-shadow var(--transition-media) !important;
}

/* --- ULTIMATE LOADING SCREEN --- */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #000000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.9);
}

.loader-container {
    text-align: center;
    max-width: 500px;
    width: 100%;
    padding: 4rem;
    transform: scale(1);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(10, 10, 10, 0.9);
    border-radius: var(--border-radius-xl);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--sombra-fuerte);
    position: relative;
    overflow: hidden;
}

.loader-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-gradient-3);
    opacity: 0.05;
    z-index: -1;
}

.loading-screen.fade-out .loader-container {
    transform: scale(0.7) rotate(10deg);
}

.audio-wave {
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 6px;
    height: 70px;
    margin-bottom: 45px;
}

.audio-wave span {
    width: 7px;
    background: var(--color-gradient-3);
    border-radius: 4px;
    animation: audioWave 1.4s ease-in-out infinite;
    transform-origin: bottom;
}

.audio-wave span:nth-child(1) { animation-delay: 0s; height: 25px; }
.audio-wave span:nth-child(2) { animation-delay: 0.1s; height: 40px; }
.audio-wave span:nth-child(3) { animation-delay: 0.2s; height: 55px; }
.audio-wave span:nth-child(4) { animation-delay: 0.3s; height: 40px; }
.audio-wave span:nth-child(5) { animation-delay: 0.4s; height: 25px; }

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

.loading-text {
    font-family: var(--fuente-titulos);
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-texto-principal);
    margin-bottom: 45px;
    letter-spacing: 4px;
    animation: textGlow 2.5s ease-in-out infinite alternate;
    text-shadow: 0 0 20px rgba(0, 174, 239, 0.8);
    background: var(--color-gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.loading-text::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--color-gradient-3);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.7);
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 10px rgba(255,255,255,0.4), 0 0 15px rgba(0, 174, 239, 0.4);
    }
    100% {
        text-shadow: 0 0 15px var(--color-acento), 0 0 20px var(--color-acento);
    }
}

.loading-progress {
    width: 100%;
    height: 5px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 35px;
    position: relative;
}

.loading-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(50%); }
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--color-gradient-3);
    border-radius: 3px;
    transition: width 0.4s ease;
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.6);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: progressWave 1.5s infinite;
}

@keyframes progressWave {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(50%); }
}

.start-button {
    background: var(--color-acento);
    color: #ffffff;
    font-family: var(--fuente-titulos);
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 1.4rem 3rem;
    border: none;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: all var(--transition-media);
    box-shadow: var(--sombra-media);
    position: relative;
    overflow: hidden;
    display: inline-block;
    margin-top: 25px;
    transform: translateY(0);
    border: 2px solid rgba(255, 255, 255, 0.15);
    z-index: 2;
}

.start-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.start-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-acento-hover);
    opacity: 0;
    transition: opacity var(--transition-media);
    z-index: -1;
}

.start-button:hover {
    transform: translateY(-8px) scale(1.08);
    box-shadow: var(--sombra-fuerte);
    background: var(--color-acento-hover);
}

.start-button:hover::before {
    left: 100%;
}

.start-button:hover::after {
    opacity: 1;
}

.start-button:active {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--sombra-neon);
}

/* --- PARTICLE CANVAS ULTIMATE --- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.8;
}

/* --- SCROLL PROGRESS INDICATOR --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 5px;
    background: var(--color-gradient-3);
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 0 12px rgba(79, 172, 254, 0.8);
    border-radius: 0 2px 2px 0;
}

/* --- ULTIMATE TIPOGRAFÍA MEJORADA --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--fuente-titulos);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    position: relative;
    transition: all var(--transition-media);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1 {
    font-size: clamp(4rem, 9vw, 8rem);
    background: var(--color-gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    line-height: 1.1;
    margin-bottom: 2.5rem;
    filter: drop-shadow(0 0 20px rgba(79, 172, 254, 0.3));
    position: relative;
}

h1::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--color-gradient-3);
    opacity: 0.05;
    border-radius: var(--border-radius-lg);
    z-index: -1;
    transition: opacity var(--transition-media);
}

.enhanced-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-bottom: 2rem;
}

.enhanced-title::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 4px;
    background: var(--color-gradient-3);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.8);
    transition: all var(--transition-media);
}

.title-line {
    display: block;
    animation: titleSlideIn 1.2s ease-out forwards;
    opacity: 0;
    transform: translateY(40px);
    position: relative;
    margin-bottom: 0.5rem;
}

.title-line:not(.accent-line) {
    color: var(--color-texto-principal);
    -webkit-text-fill-color: initial;
}

.title-line:first-child {
    animation-delay: 0.4s;
}

.title-line:nth-child(2) {
    animation-delay: 0.7s;
}

.accent-line {
    background: var(--color-acento);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation-delay: 1s;
    filter: drop-shadow(0 0 8px rgba(0, 174, 239, 0.4));
}

@keyframes titleSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    font-size: clamp(3rem, 7vw, 5rem);
    background: var(--color-acento);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    filter: drop-shadow(0 0 15px rgba(0, 174, 239, 0.3));
    transition: all var(--transition-media);
}

h2::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 3px;
    background: var(--color-gradient-3);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.7);
    transition: all var(--transition-media);
}

h3 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    background: var(--color-gradient-4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    text-align: center;
    filter: drop-shadow(0 0 10px rgba(67, 233, 123, 0.3));
    transition: all var(--transition-media);
}

h3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 2px;
    background: var(--color-gradient-3);
    border-radius: 1px;
    box-shadow: 0 0 12px rgba(79, 172, 254, 0.6);
    transition: all var(--transition-media);
}

h4 {
    font-size: clamp(1.7rem, 4vw, 2.3rem);
    color: var(--color-texto-principal);
    margin-bottom: 1.5rem;
    transition: all var(--transition-rapida);
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-texto-secundario);
    line-height: 1.8;
    font-size: 1.1rem;
    transition: all var(--transition-rapida);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* --- ULTIMATE HEADER --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1000;
    transition: all var(--transition-media);
    transform: translateY(0);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    border-radius: 0;
}

.main-header.header-hidden {
    transform: translateY(-120%);
}

.main-header.header-scrolled {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: var(--sombra-media);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 70px !important;
    transition: all var(--transition-rapida);
    filter: none !important; /* Removido el drop-shadow que creaba fondo negro */
    position: relative;
    background: transparent !important; /* Asegurar fondo transparente */
}

.logo::before {
    display: none; /* Ocultar el borde circular */
}

.logo:hover {
    transform: scale(1.1) rotate(5deg) !important;
    filter: none !important; /* Removido el drop-shadow del hover */
}


.logo:hover::before {
    opacity: 0.3;
}


.main-nav {
    display: flex;
    gap: 3rem;
}

.main-nav a {
    color: var(--color-texto-principal);
    text-decoration: none;
    font-family: var(--fuente-titulos);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem;
    transition: all var(--transition-rapida);
    position: relative;
    padding: 0.8rem 0;
    display: flex;
    align-items: center;
    /* Enhanced touch targets for mobile */
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--color-gradient-3);
    transition: width var(--transition-media);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a:hover {
    color: var(--color-acento);
    text-shadow: 0 0 12px rgba(0, 174, 239, 0.6);
    transform: translateY(-3px) scale(1.05);
}

.theme-toggle-container {
    display: flex;
    align-items: center;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-media);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    /* Enhanced touch target for mobile */
    min-width: 44px;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.theme-toggle:hover::before {
    left: 100%;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 0 20px rgba(0, 174, 239, 0.3), 0 8px 25px rgba(0, 0, 0, 0.3);
}

.theme-toggle:active {
    transform: scale(0.95) rotate(90deg);
    transition: all 0.1s ease;
    background: rgba(0, 174, 239, 0.3);
    border-color: rgba(0, 174, 239, 0.6);
}

.theme-toggle .theme-icon {
    font-size: 1.4rem;
    transition: all var(--transition-media);
    z-index: 1;
    text-shadow: 0 0 8px rgba(0, 174, 239, 0.8);
}

.theme-toggle.dark .theme-icon {
    transform: rotate(180deg);
}


/* --- CONTENIDO PRINCIPAL --- */
main {
    margin-top: 0;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* --- ULTIMATE SECCIONES HERO --- */
.section-hero {
    position: relative;
    height: 100vh;
    min-height: 850px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-attachment: fixed;
    perspective: 1000px;
}

/* --- TRANSICIONES DIFUMINADAS SUAVES ENTRE SECCIONES --- */
.section-hero::before,
.section-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 150px; /* Reduced height for subtle transitions */
    z-index: 5;
    pointer-events: none;
}

.section-hero::before {
    top: 0;
    background: linear-gradient(to bottom,
        var(--section-fade-color, var(--color-fondo-oscuro)) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        transparent 100%);
}

.section-hero::after {
    bottom: 0;
    background: linear-gradient(to top,
        var(--section-fade-color, var(--color-fondo-oscuro)) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        transparent 100%);
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.6s ease;
    filter: brightness(0.9) contrast(1.1);
}

.hero-video:hover {
    opacity: 1;
    filter: brightness(1) contrast(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.65) 50%, rgba(0,0,0,0.85) 100%);
    z-index: -1;
}

.hero-overlay.multimedia-overlay {
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.8) 100%);
}

.hero-overlay.momento-justo-overlay {
    background: linear-gradient(135deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.95) 100%);
}

.hero-overlay.ipm-overlay {
    background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.85) 100%);
}

.hero-overlay.fundacion-overlay {
    background: rgba(245,245,220,0.9) !important;
}

.parallax-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* --- ULTIMATE ELEMENTOS FLOTANTES --- */
.floating-note, .floating-icon, .floating-star, .floating-instrument, .floating-heart {
    position: absolute;
    opacity: 0.9;
    animation-duration: 12s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    text-shadow: 0 0 12px rgba(0, 174, 239, 0.8);
    z-index: -1;
    filter: drop-shadow(0 0 8px rgba(0, 174, 239, 0.9));
}

.floating-note {
    font-size: 3rem;
    color: var(--color-acento);
    filter: drop-shadow(0 0 8px rgba(0, 174, 239, 0.9));
}

.note-1 { top: 25%; left: 15%; animation: float 12s ease-in-out infinite; }
.note-2 { top: 65%; left: 85%; animation: float 10s ease-in-out infinite 1.2s; }
.note-3 { top: 45%; left: 95%; animation: float 11s ease-in-out infinite 2.4s; }

.floating-icon {
    font-size: 2.5rem;
    color: var(--color-acento-secundario);
    filter: drop-shadow(0 0 8px rgba(255, 76, 101, 0.9));
}

.icon-1 { top: 35%; left: 20%; animation: float 13s ease-in-out infinite; }
.icon-2 { top: 75%; left: 80%; animation: float 11s ease-in-out infinite 1.7s; }
.icon-3 { top: 55%; left: 90%; animation: float 12s ease-in-out infinite 2.7s; }

.floating-star {
    font-size: 2.8rem;
    color: var(--color-acento-terciario);
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.9));
}

.star-1 { top: 30%; left: 25%; animation: float 14s ease-in-out infinite; }
.star-2 { top: 70%; left: 75%; animation: float 12s ease-in-out infinite 1.4s; }
.star-3 { top: 50%; left: 95%; animation: float 13s ease-in-out infinite 2.6s; }

.floating-instrument {
    font-size: 3rem;
    background: var(--color-gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(79, 172, 254, 0.9));
}

.inst-1 { top: 40%; left: 30%; animation: float 15s ease-in-out infinite; }
.inst-2 { top: 80%; left: 70%; animation: float 13s ease-in-out infinite 1.5s; }
.inst-3 { top: 60%; left: 85%; animation: float 14s ease-in-out infinite 2.8s; }

.floating-heart {
    font-size: 2.5rem;
    color: var(--color-acento-secundario);
    filter: drop-shadow(0 0 8px rgba(255, 76, 101, 0.9));
}

.heart-1 { top: 35%; left: 35%; animation: float 13s ease-in-out infinite; }
.heart-2 { top: 75%; left: 65%; animation: float 11s ease-in-out infinite 1.6s; }
.heart-3 { top: 55%; left: 90%; animation: float 12s ease-in-out infinite 2.9s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    50% { transform: translate(0, -10px) rotate(0deg) scale(1.05); }
}

.hero-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 3rem;
    z-index: 2;
    position: relative;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: var(--color-gradient-3);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: -1;
}

.section-subtitle {
    font-size: 1.6rem;
    color: var(--color-texto-secundario);
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards 0.6s;
    text-shadow: 0 0 12px rgba(0,0,0,0.9);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards 0.9s;
}

/* --- ULTIMATE BOTONES DE LLAMADA A LA ACCIÓN --- */
.cta-button {
    display: inline-block;
    padding: 1.4rem 3rem;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-family: var(--fuente-titulos);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all var(--transition-media);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    text-align: center;
    box-shadow: var(--sombra-media);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-gradient-6);
    opacity: 0;
    transition: opacity var(--transition-media);
    z-index: -1;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover::after {
    opacity: 0.2;
}

.cta-button-primary {
    background: var(--color-acento); /* Blue */
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.cta-button-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-gradient-6);
    transition: left 0.6s ease;
    z-index: -1;
}

.cta-button-primary:hover::before {
    left: 0;
}

.cta-button-secondary {
    background: transparent;
    color: #333333; /* Darker text for readability */
    border: 2px solid #e67e22; /* Darker orange border */
}

.cta-button:hover {
    transform: translateY(-8px) scale(1.08);
    box-shadow: var(--sombra-fuerte);
}

.cta-button:active {
    transform: translateY(-3px) scale(1.05);
    transition: all 0.1s ease;
}

.cta-button-primary:hover {
    background: var(--color-acento-hover); /* Darker blue */
    box-shadow: 0 0 25px rgba(0, 174, 239, 0.7), 0 10px 30px rgba(0, 0, 0, 0.3); /* Blue glow */
}


.cta-button-secondary:hover {
    background: rgba(0, 174, 239, 0.2); /* Light transparent blue */
    box-shadow: 0 0 25px rgba(0, 174, 239, 0.5), 0 10px 30px rgba(0, 0, 0, 0.3); /* Blue glow */
    border-color: var(--color-acento); /* Blue border */
}

/* Specific styles for buttons in 'El Momento Justo' section */
#momento-justo .cta-button-primary,
#momento-justo .cta-button-secondary,
#momento-justo .cta-section .cta-button {
    padding: 0.7rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    min-width: 150px;
    box-shadow: var(--sombra-suave);
    transition: all var(--transition-rapida);
}

#momento-justo .cta-button-primary {
    background: var(--color-acento-terciario); /* Yellow/Gold */
    color: var(--color-fondo-oscuro); /* Dark text for contrast */
    border: 1px solid var(--color-acento-terciario-hover);
}

#momento-justo .cta-button-primary:hover {
    background: var(--color-acento-terciario-hover);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.2);
    transform: translateY(-5px) scale(1.05);
}

#momento-justo .cta-button-secondary {
    background: transparent;
    color: var(--color-acento-terciario); /* Yellow/Gold text */
    border: 1px solid var(--color-acento-terciario);
}

#momento-justo .cta-button-secondary:hover {
    background: rgba(255, 215, 0, 0.1); /* Light transparent yellow */
    color: var(--color-acento-terciario-hover);
    border-color: var(--color-acento-terciario-hover);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3), 0 0 40px rgba(255, 215, 0, 0.1);
    transform: translateY(-5px) scale(1.05);
}

#momento-justo .cta-section .cta-button {
    background: var(--color-acento-terciario);
    color: var(--color-fondo-oscuro);
    border: 1px solid var(--color-acento-terciario-hover);
}

#momento-justo .cta-section .cta-button:hover {
    background: var(--color-acento-terciario-hover);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.2);
    transform: translateY(-5px) scale(1.05);
}

/* Specific styles for buttons in 'Multimedia' section */
#multimedia .cta-button-primary,
#multimedia .cta-button-secondary {
    padding: 0.7rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    min-width: 150px;
    box-shadow: var(--sombra-suave);
    transition: all var(--transition-rapida);
}

#multimedia .cta-button-primary {
    background: var(--color-acento-secundario); /* Pink/Red */
    color: var(--color-texto-principal); /* White text for contrast */
    border: 1px solid var(--color-acento-secundario-hover);
}

#multimedia .cta-button-primary:hover {
    background: var(--color-acento-secundario-hover);
    box-shadow: 0 0 20px rgba(255, 76, 101, 0.5), 0 0 40px rgba(255, 76, 101, 0.2);
    transform: translateY(-5px) scale(1.05);
}

#multimedia .cta-button-secondary {
    background: transparent;
    color: var(--color-acento-secundario); /* Pink/Red text */
    border: 1px solid var(--color-acento-secundario);
}

#multimedia .cta-button-secondary:hover {
    background: rgba(255, 76, 101, 0.1); /* Light transparent pink/red */
    color: var(--color-acento-secundario-hover);
    border-color: var(--color-acento-secundario-hover);
    box-shadow: 0 0 20px rgba(255, 76, 101, 0.3), 0 0 40px rgba(255, 76, 101, 0.1);
    transform: translateY(-5px) scale(1.05);
}

/* Specific styles for buttons in 'Estudio' section */
#estudio .cta-button-primary,
#estudio .cta-button-secondary {
    padding: 0.7rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    min-width: 150px;
    box-shadow: var(--sombra-suave);
    transition: all var(--transition-rapida);
}

#estudio .cta-button-primary {
    background: var(--color-acento); /* Blue */
    color: var(--color-texto-principal); /* White text for contrast */
    border: 1px solid var(--color-acento-hover);
}

#estudio .cta-button-primary:hover {
    background: var(--color-acento-hover);
    box-shadow: 0 0 20px rgba(0, 174, 239, 0.5), 0 0 40px rgba(0, 174, 239, 0.2);
    transform: translateY(-5px) scale(1.05);
}

#estudio .cta-button-secondary {
    background: transparent;
    color: var(--color-acento); /* Blue text */
    border: 1px solid var(--color-acento);
}

#estudio .cta-button-secondary:hover {
    background: rgba(0, 174, 239, 0.1); /* Light transparent blue */
    color: var(--color-acento-hover);
    border-color: var(--color-acento-hover);
    box-shadow: 0 0 20px rgba(0, 174, 239, 0.3), 0 0 40px rgba(0, 174, 239, 0.1);
    transform: translateY(-5px) scale(1.05);
}

/* Specific styles for buttons in 'IPM' section */
#ipm .cta-button-primary,
#ipm .cta-button-secondary {
    padding: 0.7rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    min-width: 150px;
    box-shadow: var(--sombra-suave);
    transition: all var(--transition-rapida);
}

#ipm .cta-button-primary {
    background: var(--color-acento); /* Blue */
    color: var(--color-texto-principal); /* White text for contrast */
    border: 1px solid var(--color-acento-hover);
}

#ipm .cta-button-primary:hover {
    background: var(--color-acento-hover);
    box-shadow: 0 0 20px rgba(0, 174, 239, 0.5), 0 0 40px rgba(0, 174, 239, 0.2);
    transform: translateY(-5px) scale(1.05);
}

#ipm .cta-button-secondary {
    background: transparent;
    color: var(--color-acento); /* Blue text */
    border: 1px solid var(--color-acento);
}

#ipm .cta-button-secondary:hover {
    background: rgba(0, 174, 239, 0.1); /* Light transparent blue */
    color: var(--color-acento-hover);
    border-color: var(--color-acento-hover);
    box-shadow: 0 0 20px rgba(0, 174, 239, 0.3), 0 0 40px rgba(0, 174, 239, 0.1);
    transform: translateY(-5px) scale(1.05);
}

/* Specific styles for buttons in 'Fundación' section */
#fundacion .cta-button-primary,
#fundacion .cta-button-secondary,
.foundation-buttons .cta-button {
    padding: 0.7rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    min-width: 150px;
    box-shadow: var(--sombra-suave);
    transition: all var(--transition-rapida);
}

#fundacion .cta-button-primary,
.foundation-buttons .foundation-btn-apply {
    background: var(--color-gradient-4); /* Greenish */
    color: var(--color-fondo-oscuro); /* Dark text for contrast */
    border: 1px solid rgba(67, 233, 123, 0.7);
}

#fundacion .cta-button-primary:hover,
.foundation-buttons .foundation-btn-apply:hover {
    background: linear-gradient(135deg, #38f9d7 0%, #43e97b 100%);
    box-shadow: 0 0 20px rgba(67, 233, 123, 0.5), 0 0 40px rgba(67, 233, 123, 0.2);
    transform: translateY(-5px) scale(1.05);
}

#fundacion .cta-button-secondary,
.foundation-buttons .foundation-btn-donate {
    background: transparent;
    color: var(--color-fondo-oscuro);
    border: 1px solid var(--color-gradient-2);
}

#fundacion .cta-button-secondary:hover,
.foundation-buttons .foundation-btn-donate:hover {
    background: rgba(245, 87, 108, 0.1);
    color: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    border-color: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    box-shadow: 0 0 20px rgba(245, 87, 108, 0.3), 0 0 40px rgba(245, 87, 108, 0.1);
    transform: translateY(-5px) scale(1.05);
}

/* Specific styles for cta-button in Footer section */
.main-footer .cta-button {
    padding: 0.7rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    min-width: 150px;
    box-shadow: var(--sombra-suave);
    transition: all var(--transition-rapida);
    background: var(--color-acento);
    color: var(--color-texto-principal);
    border: 1px solid var(--color-acento-hover);
}

.main-footer .cta-button:hover {
    background: var(--color-acento-hover);
    box-shadow: 0 0 20px rgba(0, 174, 239, 0.5), 0 0 40px rgba(0, 174, 239, 0.2);
    transform: translateY(-5px) scale(1.05);
}

/* --- ULTIMATE ANIMACIONES --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* --- ULTIMATE SECCIONES DE CONTENIDO --- */
.section-content {
    padding: var(--spacing-xxl) 0;
    position: relative;
    overflow: hidden;
    background: var(--color-fondo-seccion);
    transition: background-color var(--transition-media);
}

.section-content-enhanced {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.section-content-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 0;
}

.section-content-enhanced .container {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.logo-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.main-section-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
    transition: all var(--transition-media);
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.1));
}

.animate-logo {
    animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(255,255,255,0.1)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 25px rgba(255,255,255,0.2)); }
}

.logo-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.badge {
    background: rgba(255,255,255,0.05);
    color: var(--color-texto-secundario);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--color-borde);
    transition: all var(--transition-rapida);
}

.badge:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--color-borde-hover);
    transform: translateY(-2px);
}

.badge.professional { border-color: var(--color-acento); color: var(--color-acento); }
.badge.creative { border-color: var(--color-acento-secundario); color: var(--color-acento-secundario); }
.badge.scout { border-color: var(--color-acento-terciario); color: var(--color-acento-terciario); }
.badge.education { border-color: var(--color-gradient-2); color: #43e97b; }
.badge.nonprofit { border-color: var(--color-gradient-4); color: #a8edea; }

/* --- ULTIMATE TARJETAS DE SERVICIOS --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: var(--spacing-xl);
}

.service-card {
    background: var(--color-fondo-card);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    border: 1px solid var(--color-borde);
    transition: all var(--transition-media);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--sombra-card);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.03);
    background: var(--color-fondo-card-hover);
    border-color: var(--color-acento);
    box-shadow: 0 0 30px rgba(0, 174, 239, 0.3), var(--sombra-fuerte);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(0, 174, 239, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-media);
}

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

.service-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform var(--transition-media);
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(-10deg);
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--color-texto-principal);
    background: none;
    -webkit-text-fill-color: initial;
}

.service-card p {
    color: var(--color-texto-secundario);
    font-size: 1rem;
}

/* --- ULTIMATE REPRODUCTOR MULTITRACK --- */
.multitrack-player {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--color-borde);
    border-radius: var(--border-radius-xl);
    padding: 3rem;
    margin-top: var(--spacing-xl);
    backdrop-filter: blur(15px);
    box-shadow: var(--sombra-fuerte);
    transition: all var(--transition-media);
}

.multitrack-player:hover {
    border-color: var(--color-borde-hover);
    box-shadow: 0 0 40px rgba(0,0,0,0.7);
}

.player-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: var(--color-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.song-selector-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.song-selector-btn {
    background: rgba(255,255,255,0.05);
    color: var(--color-texto-secundario);
    border: 1px solid var(--color-borde);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-rapida);
    font-family: var(--fuente-titulos);
    font-weight: 600;
    font-size: 1rem;
}

.song-selector-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--color-texto-principal);
    border-color: var(--color-acento);
}

.song-selector-btn.active {
    background: var(--color-acento);
    color: white;
    border-color: var(--color-acento);
    box-shadow: 0 0 15px rgba(0, 174, 239, 0.4);
}

.master-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.master-timeline-container {
    flex-grow: 1;
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    cursor: pointer;
    overflow: hidden;
}

.master-timeline-progress {
    width: 0%;
    height: 100%;
    background: var(--color-gradient-1);
    border-radius: 5px;
    transition: width 0.1s linear;
}

.master-play-btn, .tracklist-toggle-btn {
    padding: 1rem;
    font-size: 1.2rem;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.tracklist-toggle-btn {
    display: none; /* Hidden on desktop */
}

.track-list-wrapper {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px; /* For scrollbar */
}

.track-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.track {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) 100px minmax(150px, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255,255,255,0.03);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-md);
    border: 1px solid transparent;
    transition: all var(--transition-rapida);
}

.track:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--color-borde);
}

.track-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-texto-principal);
}

.vu-meter {
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: rgba(0,0,0,0.3);
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    outline: none;
    transition: opacity 0.2s;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-gradient-1);
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(0, 174, 239, 0.6);
    cursor: pointer;
    transition: all var(--transition-rapida);
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 174, 239, 0.8);
}

.track-buttons {
    display: flex;
    gap: 0.5rem;
}

.control-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--color-borde);
    background: rgba(255,255,255,0.05);
    color: var(--color-texto-secundario);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-rapida);
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--color-borde-hover);
    color: var(--color-texto-principal);
}

.control-btn.active {
    color: white;
}

.mute-btn.active {
    background: var(--color-acento-secundario);
    border-color: var(--color-acento-secundario);
}

.solo-btn.active {
    background: var(--color-acento-terciario);
    border-color: var(--color-acento-terciario);
    color: var(--color-fondo-oscuro);
}

/* --- ULTIMATE SECCIÓN DE PREGUNTAS FRECUENTES --- */
.faq-section {
    margin-top: var(--spacing-xl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-item {
    border-bottom: 1px solid var(--color-borde);
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.5rem 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-texto-principal);
    cursor: pointer;
    position: relative;
    padding-right: 2rem;
    font-family: var(--fuente-titulos);
    letter-spacing: 1px;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--color-acento);
    transition: transform var(--transition-media);
}

.faq-item.open .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-media), padding var(--transition-media);
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: var(--color-texto-secundario);
}

.faq-item.open .faq-answer {
    max-height: 300px; /* Adjust as needed */
}

/* --- ULTIMATE PORTFOLIO --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: var(--spacing-xl);
}

.portfolio-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    background: var(--color-fondo-card);
    border: 1px solid var(--color-borde);
    box-shadow: var(--sombra-card);
    transition: all var(--transition-media);
}

.portfolio-item:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 0 30px rgba(0,0,0,0.5), var(--sombra-fuerte);
}

.portfolio-item img, .portfolio-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-media);
}

.portfolio-item:hover img, .portfolio-item:hover video {
    transform: scale(1.1);
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-media);
}

.portfolio-item:hover .video-play-overlay {
    opacity: 1;
}

.play-button {
    width: 80px;
    height: 80px;
    background: var(--color-acento);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 0 20px rgba(0, 174, 239, 0.5);
    transition: transform var(--transition-rapida);
}

.portfolio-item:hover .play-button {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    color: white;
    transform: translateY(100%);
    transition: transform var(--transition-media);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin: 0;
    background: none;
    -webkit-text-fill-color: initial;
    color: white;
}

/* --- ULTIMATE EQUIPO Y TALENTOS --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: var(--spacing-xl);
}

.team-member {
    background: var(--color-fondo-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    text-align: center;
    border: 1px solid var(--color-borde);
    box-shadow: var(--sombra-card);
    transition: all var(--transition-media);
    cursor: pointer;
}

.team-member:hover {
    transform: translateY(-15px) scale(1.03);
    background: var(--color-fondo-card-hover);
    border-color: var(--color-acento-secundario);
    box-shadow: 0 0 30px rgba(255, 76, 101, 0.3), var(--sombra-fuerte);
}

.team-member img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-media);
}

.team-member:hover img {
    transform: scale(1.05);
}

.team-member h3 {
    font-size: 1.6rem;
    margin: 1.5rem 0 0.5rem;
    color: var(--color-texto-principal);
    background: none;
    -webkit-text-fill-color: initial;
}

.team-member p {
    color: var(--color-texto-secundario);
    padding: 0 1.5rem 1.5rem;
    margin: 0;
}

/* --- ULTIMATE ESTADÍSTICAS --- */
.talent-stats, .education-stats, .foundation-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: var(--spacing-xl) 0;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    text-align: center;
    border: 1px solid var(--color-borde);
    min-width: 180px;
    transition: all var(--transition-media);
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.1);
    border-color: var(--color-borde-hover);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--fuente-titulos);
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--color-texto-secundario);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.talent-stat .stat-number { color: var(--color-acento-terciario); }
.education-stat .stat-number { color: #43e97b; }
.foundation-stat .stat-number { color: #a8edea; }

/* --- ULTIMATE CURSOS --- */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.course-card {
    background: var(--color-fondo-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-borde);
    box-shadow: var(--sombra-card);
    transition: all var(--transition-media);
    cursor: pointer;
}

.course-card:hover {
    transform: translateY(-15px) scale(1.03);
    background: var(--color-fondo-card-hover);
    border-color: #43e97b;
    box-shadow: 0 0 30px rgba(67, 233, 123, 0.3), var(--sombra-fuerte);
}

.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-media);
}

.course-card:hover img {
    transform: scale(1.05);
}

.course-card h3 {
    font-size: 1.6rem;
    margin: 1.5rem 1.5rem 0.5rem;
    color: var(--color-texto-principal);
    background: none;
    -webkit-text-fill-color: initial;
}

.course-card p {
    color: var(--color-texto-secundario);
    padding: 0 1.5rem 1.5rem;
    margin: 0;
}

/* --- ULTIMATE BOTONES DE FUNDACIÓN --- */
.foundation-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: var(--spacing-xl);
    flex-wrap: wrap;
}

.foundation-btn-apply {
    background: var(--color-gradient-2);
    color: var(--color-fondo-oscuro);
}

.foundation-btn-donate {
    background: transparent;
    border: 2px solid var(--color-acento-secundario);
    color: var(--color-acento-secundario);
}

.foundation-btn-apply:hover {
    box-shadow: 0 0 25px rgba(67, 233, 123, 0.7);
}

.foundation-btn-donate:hover {
    background: rgba(255, 76, 101, 0.1);
    box-shadow: 0 0 25px rgba(255, 76, 101, 0.5);
}

/* --- ULTIMATE TIMELINE --- */
.timeline-section {
    padding: var(--spacing-xxl) 0;
    background: var(--color-fondo-oscuro);
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: var(--color-borde);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
}

.timeline-item {
    padding: 1rem 3rem;
    position: relative;
    background: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    right: -15px;
    background: var(--color-fondo-oscuro);
    border: 6px solid var(--color-acento);
    top: 30px;
    border-radius: 50%;
    z-index: 1;
    transition: all var(--transition-media);
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(even)::after {
    left: -15px;
}

.timeline-item:hover::after {
    transform: scale(1.2);
    background: var(--color-acento);
    box-shadow: 0 0 20px rgba(0, 174, 239, 0.6);
}

.timeline-year {
    position: absolute;
    top: 22px;
    width: 100px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--fuente-titulos);
    color: var(--color-acento);
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-year {
    right: -150px;
}

.timeline-item:nth-child(even) .timeline-year {
    left: -150px;
}

.timeline-content {
    padding: 2rem;
    background: var(--color-fondo-card);
    position: relative;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-borde);
    transition: all var(--transition-media);
    box-shadow: var(--sombra-card);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-10px);
    border-color: var(--color-acento);
    box-shadow: 0 0 30px rgba(0, 174, 239, 0.2), var(--sombra-fuerte);
}

.timeline-content h3 {
    font-size: 1.8rem;
    margin-top: 0;
    color: var(--color-texto-principal);
    background: none;
    -webkit-text-fill-color: initial;
}

.timeline-content p {
    margin-bottom: 1rem;
}

.timeline-logo {
    max-height: 40px;
    width: auto;
    margin-top: 1rem;
    opacity: 0.7;
}

.future .timeline-content {
    border-style: dashed;
}

.future-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-acento);
}

/* --- ULTIMATE FOOTER --- */
.main-footer {
    background: var(--color-fondo-oscuro);
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--color-borde);
}

.footer-contact {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.footer-contact h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: var(--spacing-xl);
}

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

.footer-logo {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-texto-principal);
    background: none;
    -webkit-text-fill-color: initial;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--color-texto-secundario);
    font-size: 1.5rem;
    transition: all var(--transition-rapida);
}

.social-links a:hover {
    color: var(--color-acento);
    transform: translateY(-5px) scale(1.1);
}

.footer-bottom {
    text-align: center;
    color: var(--color-texto-terciario);
    border-top: 1px solid var(--color-borde);
    padding-top: 2rem;
    margin-top: 2rem;
}

/* --- ULTIMATE MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-media);
    backdrop-filter: blur(10px);
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--color-fondo-card);
    padding: 3rem;
    border-radius: var(--border-radius-xl);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--color-borde);
    box-shadow: var(--sombra-fuerte);
    transform: scale(0.9);
    transition: transform var(--transition-media);
}

.modal-overlay.visible .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-texto-secundario);
    cursor: pointer;
    transition: all var(--transition-rapida);
}

.modal-close:hover {
    color: var(--color-acento);
    transform: rotate(90deg);
}

.modal-img {
    width: 100%;
    border-radius: var(--border-radius-lg);
    margin-bottom: 2rem;
}

.modal-text h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: var(--border-radius-lg);
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--color-borde);
    border-radius: var(--border-radius-sm);
    color: var(--color-texto-principal);
    font-size: 1rem;
    transition: all var(--transition-rapida);
}

.modal-form input:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: var(--color-acento);
    box-shadow: 0 0 10px rgba(0, 174, 239, 0.3);
}

/* --- ULTIMATE BOTONES FLOTANTES --- */
.back-to-top, .whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: var(--sombra-media);
    transition: all var(--transition-media);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top {
    background: var(--color-acento);
}

.whatsapp-float {
    background: #25D366;
    bottom: 7rem;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover, .whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: var(--sombra-fuerte);
}

/* --- ULTIMATE CURSOR PERSONALIZADO --- */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-acento);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10002;
    transition: transform 0.2s, background-color 0.2s, width 0.2s, height 0.2s, border-color 0.2s;
    mix-blend-mode: difference;
}

.cursor.hover {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 174, 239, 0.2);
    border-color: transparent;
}

.cursor.click {
    transform: scale(0.8);
    background-color: rgba(0, 174, 239, 0.4);
}

/* --- ULTIMATE EFECTO TILT INTERACTIVO --- */
.interactive-tilt {
    transform-style: preserve-3d;
    transition: transform 0.1s linear;
}


/*
================================================================================
================================================================================
==                                                                            ==
==                    INICIO DE CORRECCIONES MÓVIL REFINADAS                    ==
==                                                                            ==
================================================================================
================================================================================
*/

@media (max-width: 768px) {

    /* --- AJUSTES GLOBALES PARA MÓVIL --- */
    html, body {
        -webkit-text-size-adjust: 100%; /* Previene auto-ajuste de texto en iOS */
        overflow-x: hidden;
    }

    .container {
        padding: 0 1rem;
    }

    /* Desactivar efectos de hover que no funcionan en táctil */
    .interactive-tilt:hover {
        transform: none !important;
    }
    .service-card:hover,
    .portfolio-item:hover,
    .team-member:hover,
    .course-card:hover {
        transform: none;
        box-shadow: var(--sombra-card);
    }
    .service-card:hover::before {
        opacity: 0;
    }

    /* --- HEADER COMPACTO --- */
    .header-container {
        padding: 0.5rem 1rem;
        min-height: auto;
        flex-wrap: wrap;
        justify-content: center;
    }
    .logo {
        height: 40px !important;
        margin-bottom: 0.5rem;
    }
    .main-nav {
        gap: 0.5rem;
        width: 100%;
        justify-content: center;
        order: 2;
    }
    .main-nav a {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    .theme-toggle-container {
        position: absolute;
        top: 50%;
        right: 1rem;
        transform: translateY(-50%);
    }
    .theme-toggle {
        width: 44px;
        height: 44px;
    }

    /* --- TIPOGRAFÍA ADAPTADA --- */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; margin-bottom: 2rem; }
    h3 { font-size: 1.5rem; }
    .section-subtitle { font-size: 1.1rem; }

    /* --- ESTADÍSTICAS ESCALADAS --- */
    .stat-item {
        padding: 1rem;
        min-width: 120px;
        flex-grow: 1;
    }
    .stat-number {
        font-size: 2rem;
    }
    .stat-label {
        font-size: 0.8rem;
    }

    /* --- TARJETAS Y MULTIMEDIA --- */
    .services-grid, .portfolio-grid, .team-grid, .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .service-card, .portfolio-item, .team-member, .course-card {
        text-decoration: none; /* Quita cualquier subrayado */
    }
    .portfolio-item h4 {
        font-size: 1.8rem;
    }
    .video-play-overlay {
        opacity: 0.6; /* Overlay semi-visible en touch */
    }
    .portfolio-item:hover .video-play-overlay {
        opacity: 1;
    }

    /* --- MODALES --- */
    .modal-content {
        width: 95vw;
        max-height: 85vh;
        padding: 2rem 1rem;
    }
    .modal-text h3 {
        font-size: 1.8rem;
    }

    /* --- TIMELINE EN UNA COLUMNA --- */
    .timeline::after {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 1rem;
        left: 0 !important;
    }
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-item::after {
        left: 5px;
    }
    .timeline-year {
        position: static;
        text-align: left;
        margin-bottom: 0.5rem;
        font-size: 1.5rem;
    }

    /* --- FAQ Y BOTONES --- */
    .faq-question {
        font-size: 1.1rem;
        padding: 1rem 0;
    }
    .cta-button {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    /*
    ============================================================
    ==             CONSOLA DE AUDIO MÓVIL                     ==
    ============================================================
    */

    .multitrack-player {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 0;
        margin: 0;
        background: var(--color-fondo-card);
        border-radius: 0;
        border-top: 1px solid var(--color-borde);
        z-index: 1001;
        display: flex;
        flex-direction: column;
        transition: transform 0.4s ease-in-out;
        transform: translateY(0);
    }

    .multitrack-player .player-title {
        font-size: 1rem;
        padding: 0.5rem 1rem;
        margin: 0;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        background: none;
        -webkit-text-fill-color: initial;
        color: var(--color-texto-principal);
    }
    .multitrack-player .player-title::after {
        display: none;
    }

    .song-selector-container {
        order: -1;
        padding: 0.5rem;
        background: var(--color-fondo-seccion);
        gap: 0.5rem;
        overflow-x: auto;
        justify-content: flex-start;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .song-selector-container::-webkit-scrollbar {
        display: none;
    }
    .song-selector-btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
        flex-shrink: 0;
    }

    .master-controls {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 0.5rem 1rem;
        width: 100%;
        margin: 0;
        border-top: 1px solid var(--color-borde);
    }

    .master-play-btn, .tracklist-toggle-btn {
        min-width: 50px;
        min-height: 50px;
        width: 50px;
        height: 50px;
        padding: 0;
        font-size: 1.2rem;
        border-radius: 50%;
        flex-shrink: 0;
    }

    .tracklist-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .multitrack-player.tracklist-visible .tracklist-toggle-btn {
        background: var(--color-acento);
        color: white;
    }

    .master-timeline-container {
        height: 8px;
    }

    .track-list-wrapper {
        max-height: 0;
        overflow-y: auto;
        visibility: hidden;
        transition: max-height 0.4s ease-in-out, visibility 0.4s;
        background: var(--color-fondo-seccion);
        padding: 0;
    }

    .multitrack-player.tracklist-visible .track-list-wrapper {
        max-height: 45vh;
        visibility: visible;
        padding: 1rem;
    }

    .track-list {
        gap: 0.5rem;
    }

    .track {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 0.5rem 1rem;
        padding: 0.75rem;
    }

    .track-name {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        font-size: 0.9rem;
    }

    .vu-meter {
        grid-column: 1 / 2;
        grid-row: 2 / 2;
        height: 5px;
    }

    .volume-slider {
        grid-column: 2 / 3;
        grid-row: 1 / 3;
        height: 100%;
        writing-mode: vertical-lr;
        -webkit-appearance: slider-vertical;
        width: 20px;
        padding: 0 5px;
    }

    .track-buttons {
        grid-column: 3 / 4;
        grid-row: 1 / 3;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        justify-content: center;
    }

    .control-btn {
        min-width: 50px;
        min-height: 50px;
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
    
    body {
        padding-bottom: 150px;
    }
    .whatsapp-float {
        bottom: 170px;
    }
    .back-to-top {
        bottom: 230px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }

    .header-container {
        padding: 0.2rem 0.5rem;
    }
    .logo {
        height: 35px !important;
    }
    .main-nav a {
        font-size: 0.6rem;
    }

    .multitrack-player .player-title {
        font-size: 0.8rem;
    }

    .master-play-btn, .tracklist-toggle-btn, .control-btn {
        min-width: 44px;
        min-height: 44px;
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    .track {
        padding: 0.5rem;
    }
}
