@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Premium Twilight Shader Palette */
    --primary-bg: #050a15;
    /* Deep Space Black-Blue */
    --secondary-bg: rgba(30, 41, 59, 0.5);
    /* Translucent Slate */
    --accent-blue: #3b82f6;
    /* Official Logo Blue */
    --accent-glow: rgba(59, 130, 246, 0.4);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(16px);
    --transition-smooth: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Evitar que cualquier elemento sobresalga */
img,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: smooth;
    background-color: var(--primary-bg) !important;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    background: #020617 !important;
    /* Even deeper space black */
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
    max-width: 100vw;
    cursor: default;
    user-select: none;
    position: relative;
}

/* Layer 1: Celestial Nebula Shader */
#_0xns6,
._0xns {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(147, 51, 234, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(30, 41, 59, 0.2) 0%, transparent 60%);
    filter: blur(60px);
    animation: nebulaFloat 30s ease-in-out infinite alternate;
}

@keyframes nebulaFloat {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.2) translate(2%, 2%);
    }
}

/* Base background for low performance */
.low-performance body {
    background: #050a15;
    /* Simple fallback */
}

/* 🛡️ SECURITY & PERFORMANCE OVERRIDES */
/* Cuando DevTools está abierto (_0xsec) o rendimiento bajo (low-performance) */
._0xsec *,
.low-performance * {
    animation-duration: 0.1s !important;
    transition-duration: 0.1s !important;
}

._0xsec .nebula-surface,
.low-performance .nebula-surface,
._0xsec .cyber-grid,
.low-performance .cyber-grid,
._0xsec #bg-particles,
.low-performance #bg-particles,
._0xsec ._0xmg {
    display: none !important;
    visibility: hidden !important;
}

._0xsec .glass,
.low-performance .glass {
    backdrop-filter: none !important;
    background: rgba(15, 23, 42, 0.98) !important;
}

._0xsec [data-reveal],
.low-performance [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
}

/* Simplificación del visualizador en modo básico */
._0xsec ._0xsimp .visualizer-container,
.low-performance .visualizer-container {
    display: none !important;
}

/* Layer 2: Cyber Grid Overlay */
#_0xcg7,
._0xcg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), black 0%, transparent 60%);
    -webkit-mask-image: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), black 0%, transparent 60%);
    pointer-events: none;
}

/* Layer 3: Interactive Photon Glow - Global Presence */
._0xmg {
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.05) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999;
    /* Above all content, below interactive UI */
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
    transition: width 0.3s ease, height 0.3s ease;
    filter: blur(50px);
}

/* Background Particles Layer */
#_0xbp9 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Right behind content, potentially above other BG layers if they are negative */
    pointer-events: none;
    opacity: 1;
}

/* Hero Section */
.hero {
    min-height: 45vh;
    /* Even more compact */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 140px;
    /* Increased to push content BELOW the fixed header */
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
}

/* Old shader removed */

/* Typography Harmony */
/* Standard Compatibility ID: 253d4df3-4c91-4454-b4d0-fb917eee309c */
h1 {
    font-weight: 700;
    font-size: clamp(2.8rem, 7vw, 4.2rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(135deg,
            #fff 0%,
            var(--accent-blue) 25%,
            #fff 50%,
            var(--accent-blue) 75%,
            #fff 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 5s linear infinite;
}

@keyframes textShimmer {
    to {
        background-position: 200% center;
    }
}

h2 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 24px;
    background: linear-gradient(90deg, #fff, var(--accent-blue), #fff);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 8s linear infinite;
    position: relative;
    display: inline-block;
}

h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-blue);
    box-shadow: 0 0 15px var(--accent-glow);
    transition: width 1s cubic-bezier(0.23, 1, 0.32, 1);
}

[data-reveal].active h2::after {
    width: 60px;
}

._0ht {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

._0hs {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 32px;
}

/* Reduced from 54px */


/* Layout */
._0xc {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

@media (max-width: 768px) {
    ._0xc {
        padding: 0 20px;
        max-width: 100%;
    }
}

/* Header - Floating Shader */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10001;
    padding: 18px 0;
    background: transparent;
    /* Optimizar la transición para que sea súper suave */
    transition: background 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        padding 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        backdrop-filter 0.6s ease,
        box-shadow 0.6s ease,
        border 0.6s ease;
    /* Animación de entrada */
    animation: slideDownHeader 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes slideDownHeader {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

header.scrolled {
    background: rgba(5, 10, 21, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    /* Subtle glowing border */
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    /* Depth shadow */
}

.high-performance header.scrolled,
.mid-performance header.scrolled {
    background: rgba(5, 10, 21, 0.65);
    backdrop-filter: var(--glass-blur);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    flex: 1;
    /* Left wing */
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}

.logo img {
    height: 50px;
    width: auto;
    transform: scale(1.8);
    transform-origin: left center;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.3));
}

header.scrolled .logo img {
    transform: scale(1.5);
}

.nav-links {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    list-style: none;
}

.desktop-only {
    display: flex;
}

/* Burger Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1003;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Header Socials - Far Right */
.header-socials {
    flex: 1;
    /* Right wing */
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

.header-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
}

.header-social-btn:hover {
    background: var(--accent-blue-soft);
    border-color: var(--accent-blue);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}

/* Compact Ultra Social Shader - Liquid Glow */
.whatsapp-btn-shader {
    position: relative;
    padding: 20px 50px;
    border-radius: 100px;
    background: #25d366;
    /* WhatsApp Green */
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-smooth);
    border: none;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    z-index: 1;
}

.whatsapp-btn-shader::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-100%);
    transition: none;
}

.whatsapp-btn-shader:hover::before {
    transform: translateX(100%);
    transition: transform 0.8s ease;
}

.whatsapp-btn-shader::after {
    content: "";
    position: absolute;
    inset: -4px;
    background: linear-gradient(45deg, #25d366, #128c7e, #25d366);
    background-size: 200% 200%;
    z-index: -1;
    filter: blur(10px);
    opacity: 0;
    transition: var(--transition-smooth);
    animation: liquidMove 3s linear infinite;
}

.whatsapp-btn-shader:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(37, 211, 102, 0.4);
    color: white;
}

.whatsapp-btn-shader:hover::after {
    opacity: 1;
}

@keyframes liquidMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Section Spacing */
section {
    padding: 100px 0;
    /* Reduced from 180px */
}

._0st {
    text-align: center;
    margin-bottom: 50px;
    /* Reduced from 80px */
}

.bg-dark-shader {
    background: linear-gradient(180deg, transparent 0%, rgba(30, 41, 59, 0.2) 50%, transparent 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Cards - 3D Shader Effect */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 48px;
}

.info-card {
    padding: 54px;
    background: rgba(15, 23, 42, 0.8);
    /* Slightly more opaque for contrast */
    backdrop-filter: blur(25px);
    border: 1px solid transparent;
    border-radius: 32px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 2;
    /* Ensure cards sit above the glow */
}

/* Refractive Prism Border */
.info-card::after {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 32px;
    background: conic-gradient(from var(--angle),
            #3b82f6, #9333ea, #3b82f6, #60a5fa, #3b82f6);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotateAngle 6s linear infinite;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.info-card:hover::after {
    opacity: 1;
}

.info-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
}

/* Diario de la Esperanza Section */
.esperanza-section {
    padding: 100px 0;
    position: relative;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(59, 130, 246, 0.03) 50%, rgba(15, 23, 42, 0) 100%);
}

.esperanza-grid {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.video-card {
    max-width: 800px;
    width: 100%;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

@media (max-width: 768px) {
    .video-card {
        grid-template-columns: 1fr;
    }
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: 0.4s ease;
}

.play-overlay i {
    font-size: 4rem;
    color: white;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.8));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.video-card:hover .play-overlay {
    background: rgba(0, 0, 0, 0.2);
    opacity: 1;
}

.video-card:hover .play-overlay i {
    transform: scale(1.2);
}

.video-card.full-width {
    max-width: 950px;
    margin: 0 auto;
}

.video-info {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(30, 41, 59, 0.3) 100%);
    position: relative;
    overflow: hidden;
}

.video-info::after {
    content: "\f02d";
    /* fa-book-open */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 8rem;
    color: var(--accent-blue);
    opacity: 0.03;
    transform: rotate(15deg);
    pointer-events: none;
    transition: var(--transition-smooth);
}

.video-card:hover .video-info::after {
    opacity: 0.08;
    transform: rotate(5deg) scale(1.1);
}

.video-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(90deg, #fff, var(--accent-blue), #fff);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 5s linear infinite;
    letter-spacing: -0.02em;
}

.video-info p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
    max-width: 90%;
}

.btn-text {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    transition: var(--transition-smooth);
    width: fit-content;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.btn-text i {
    transition: transform 0.3s ease;
}

.btn-text:hover {
    color: #fff;
    border-color: var(--accent-blue);
    transform: translateX(2px) translateY(-1px);
}

.btn-text:hover i {
    transform: translateX(3px) translateY(-2px);
}

.section-footer {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

/* Enhanced CTA Button with Shader */
.cta-btn-premium {
    position: relative;
    padding: 20px 60px;
    border-radius: 100px;
    background: rgba(15, 23, 42, 0.9);
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cta-btn-premium span {
    position: relative;
    z-index: 3;
    background: linear-gradient(90deg, #fff, var(--accent-blue), #fff);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 5s linear infinite;
    letter-spacing: -0.02em;
}

.cta-btn-premium::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: conic-gradient(from var(--angle),
            #3b82f6, #9333ea, #3b82f6, #60a5fa, #3b82f6);
    border-radius: 100px;
    z-index: -1;
    padding: 2px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotateAngle 4s linear infinite;
}

.cta-btn-premium::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.cta-btn-premium:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4);
}

.cta-btn-premium:hover::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .cta-btn-premium {
        font-size: 1.2rem;
        padding: 15px 40px;
    }
}

/* Responsive Video Container */
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 20px;
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.info-card i {
    font-size: 32px;
    color: var(--accent-blue);
    margin-bottom: 32px;
    display: block;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

/* Ultimate Player Shader - Cyber Glow */
._0xpc {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 820px;
    padding: 10px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1002;
    /* Top-most */
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(30px);
    border-radius: 100px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.8);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.4s ease,
        border-color 0.4s ease;
    /* Animación de entrada */
    animation: slideUpPlayer 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.3s backwards;
}

@keyframes slideUpPlayer {
    0% {
        transform: translateX(-50%) translateY(150px);
        opacity: 0;
    }

    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* Animación de hover para el contenedor completo */
@media (min-width: 769px) {
    .player-container:hover {
        transform: translateX(-50%) translateY(-5px);
        box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.9), 0 0 20px rgba(59, 130, 246, 0.2);
        border-color: rgba(59, 130, 246, 0.4);
    }
}

/* Edge-Glow Border Shader */
.player-container::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 100px;
    padding: 1px;
    background: conic-gradient(from var(--angle), transparent 60%, var(--accent-blue) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: rotateAngle 4s linear infinite;
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotateAngle {
    to {
        --angle: 360deg;
    }
}

._0xpb {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.play-btn.loading {
    opacity: 0.8;
    cursor: wait;
    pointer-events: none;
}

/* Animación de hover - Elevación y brillo */
.play-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.6);
    background: linear-gradient(135deg, var(--accent-blue), #60a5fa);
}

/* Animación de click - Pulso */
.play-btn:active {
    transform: scale(0.95) rotate(5deg);
    box-shadow: 0 2px 15px var(--accent-glow);
    transition: all 0.1s ease;
}

/* Efecto de pulso continuo cuando está reproduciendo */
.playing ._0xpb {
    animation: playPulse 2s ease-in-out infinite;
}

@keyframes playPulse {

    0%,
    100% {
        box-shadow: 0 4px 20px var(--accent-glow);
    }

    50% {
        box-shadow: 0 4px 30px rgba(59, 130, 246, 0.8), 0 0 0 4px rgba(59, 130, 246, 0.2);
    }
}

/* Dynamic Visualizer Waves */
._0xvi {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 30px;
    margin: 0 15px;
}

.wave-bar {
    width: 4px;
    height: 15px;
    background: var(--accent-blue);
    border-radius: 10px;
    transition: height 0.3s ease;
    opacity: 0.5;
}

.playing .wave-bar {
    animation: waveAnim 1s ease-in-out infinite alternate;
    opacity: 1;
}

.wave-bar:nth-child(2) {
    animation-delay: 0.1s;
}

.wave-bar:nth-child(3) {
    animation-delay: 0.2s;
}

.wave-bar:nth-child(4) {
    animation-delay: 0.3s;
}

.wave-bar:nth-child(5) {
    animation-delay: 0.15s;
}

@keyframes waveAnim {
    0% {
        height: 10px;
        transform: scaleY(1);
    }

    100% {
        height: 30px;
        transform: scaleY(1.5);
    }
}

/* Integrated Live Indicator */
.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.pulsing-dot {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
    animation: dotPulse 1.5s infinite;
}

.live-text {
    font-size: 0.7rem;
    font-weight: 700;
    color: #ef4444;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

@keyframes dotPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.6;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

._0xsi {
    flex-grow: 1;
    margin-left: 10px;
}

.song-title {
    font-weight: 600;
    font-size: 1rem;
    background: linear-gradient(135deg,
            #fff 0%,
            var(--accent-blue) 25%,
            #fff 50%,
            var(--accent-blue) 75%,
            #fff 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 5s linear infinite;
    display: inline-block;
}

.station-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Neon Slider - Refined & Animated */
.volume-control {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.volume-control:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.volume-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.volume-btn:hover {
    color: #fff;
    transform: scale(1.1);
}

.volume-slider-wrapper {
    display: flex;
    align-items: center;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    height: 4px;
    /* Slimmer track */
    border-radius: 10px;
    cursor: pointer;
    width: 100px;
    outline: none;
    position: relative;
    overflow: visible;
}

/* Custom background fill handled via JS variable --value */
input[type="range"]::-webkit-slider-runnable-track {
    background: linear-gradient(to right, var(--accent-blue) 0%, var(--accent-blue) var(--value, 100%), rgba(255, 255, 255, 0.1) var(--value, 100%));
    height: 4px;
    border-radius: 10px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 14px;
    width: 14px;
    background: #fff;
    border: 3px solid var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow);
    margin-top: -5px;
    /* Centers thumb on track */
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

input[type="range"]:hover::-webkit-slider-thumb {
    transform: scale(1.4);
    box-shadow: 0 0 20px var(--accent-blue);
    background: var(--accent-blue);
    border-color: #fff;
}

/* Footer & Social */
.footer {
    padding: 120px 0 180px;
    text-align: center;
    background: rgba(5, 10, 21, 1);
    border-top: 1px solid var(--border-color);
}

.footer-logo {
    height: 60px;
    margin-bottom: 32px;
}

.social-btn {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 8px;
    transition: var(--transition-smooth);
}

.social-btn:hover {
    color: #fff;
    border-color: var(--accent-blue);
    background: var(--accent-blue-soft);
    transform: translateY(-4px);
}

/* Dynamic Reveal Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px) rotateX(10deg);
    transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

[data-reveal].active {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

/* ====== PRECISION RESPONSIVE OVERHAUL (768px) ====== */
@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }

    body.menu-active main,
    body.menu-active footer {
        filter: blur(8px);
        transition: filter 0.5s ease;
    }


    #header ._0n {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100%;
        grid-template-columns: none !important;
        /* Reset desktop grid */
    }

    .logo {
        flex: 0 1 auto;
    }

    .logo img {
        height: 45px !important;
        transform: scale(1.8) !important;
        /* Logo visible pero no demasiado grande en móvil */
        transform-origin: left center;
    }

    .desktop-only {
        display: none !important;
    }

    /* Mobile Menu Button - Far Right */
    .mobile-menu-btn {
        display: flex !important;
        order: 10;
        margin-left: auto;
    }

    /* Navigation Overlay */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100vh;
        background: rgba(5, 10, 21, 0.98);
        backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 1002;
        padding: 60px 20px;
        visibility: hidden;
    }

    .nav-links.active {
        right: 0;
        visibility: visible;
    }

    /* Staggered Item Animation */
    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .mobile-only {
        display: block !important;
        width: 100%;
        margin-top: 30px;
    }

    .menu-socials {
        display: flex;
        justify-content: center;
        gap: 24px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .menu-socials a {
        font-size: 1.6rem;
        color: var(--text-primary);
        opacity: 0.8;
    }

    /* Fixed Socials (Left above player) */
    .fixed-socials {
        position: fixed !important;
        left: 20px !important;
        bottom: 155px !important;
        /* Lowered slightly to match player change */
        will-change: auto;
        /* Lifted to avoid overlap with enlarged player */
        /* Above player (player is 15px bottom + height) */
        display: flex !important;
        flex-direction: column;
        gap: 6px !important;
        /* Reduced from 20px */
        z-index: 1001;
        transition: none !important;
        transform: none !important;
        /* Prevent jitter on scroll */
        animation: slideInLeft 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    }

    @keyframes slideInLeft {
        from {
            transform: translateX(-50px);
            opacity: 0;
        }

        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    .fixed-social-btn {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        background: rgba(15, 23, 42, 0.8);
        backdrop-filter: blur(10px);
        border: 1px solid var(--border-color);
        color: var(--text-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }

    .fixed-social-btn i {
        font-size: 1.1rem;
    }

    ._0xpc {
        position: fixed !important;
        flex-direction: row !important;
        height: auto !important;
        padding: 14px 20px !important;
        width: 94% !important;
        max-width: 480px !important;
        left: 50% !important;
        bottom: 40px !important;
        /* Lowered slightly for better balance on scroll */
        will-change: auto;
        transform: translateX(-50%) !important;
        border-radius: 24px !important;
        gap: 12px !important;
        text-align: left;
        align-items: center !important;
        justify-content: space-between !important;
        z-index: 10000 !important;
        overflow: visible !important;
        background: rgba(15, 23, 42, 0.95) !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8) !important;
        transition: none !important;
        -webkit-transform: translateX(-50%) !important;
        /* Disable transitions to prevent "scrolling" feel during browser UI changes */
    }

    /* Ajustar el shader giratorio para que sea cuadrado */
    .player-container::after {
        border-radius: 20px !important;
    }

    ._0xpb {
        /* Larger touch target */
        width: 55px !important;
        height: 55px !important;
        flex-shrink: 0;
    }

    .play-btn i {
        font-size: 1.1rem !important;
    }

    /* Mostrar visualizador en móvil pero compacto */
    ._0xvi {
        display: flex !important;
        flex-shrink: 0;
        margin: 0 !important;
        height: 24px !important;
        gap: 2px !important;
    }

    .wave-bar {
        width: 3px !important;
        height: 12px !important;
    }

    ._0xsi {
        /* Center section - grows to fill space */
        flex: 1;
        margin: 0 !important;
        min-width: 0;
        /* Allow shrinking */
        overflow: hidden;
        text-align: left !important;
    }

    .live-indicator {
        margin-bottom: 2px !important;
        gap: 5px !important;
    }

    .pulsing-dot {
        width: 5px !important;
        height: 5px !important;
        flex-shrink: 0;
    }

    .live-text {
        font-size: 0.55rem !important;
        letter-spacing: 0.5px !important;
    }

    .song-title {
        font-size: 0 !important;
        line-height: 0 !important;
        margin-bottom: 0;
    }

    .song-title::after {
        content: "La Radio Cristiana";
        font-size: 0.95rem;
        line-height: 1.2;
        color: var(--text-primary);
        display: block;
        background: linear-gradient(135deg, #fff 0%, var(--accent-blue) 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .station-name {
        display: none !important;
    }

    .volume-control {
        position: relative;
        padding: 0 !important;
        background: none !important;
        border: none !important;
    }

    .volume-btn {
        width: 40px;
        height: 40px;
        background: rgba(30, 41, 59, 0.8);
        backdrop-filter: blur(10px);
        border: 1px solid var(--border-color);
        border-radius: 50%;
        color: #fff;
        z-index: 10;
    }

    .volume-btn.active {
        border-color: var(--accent-blue);
        box-shadow: 0 0 15px var(--accent-glow);
    }

    .volume-slider-wrapper {
        position: absolute;
        bottom: 65px;
        left: 50%;
        transform: translateX(-50%) translateY(20px) scale(0.8);
        transform-origin: bottom center;
        background: rgba(15, 23, 42, 0.85);
        backdrop-filter: blur(30px) saturate(150%);
        padding: 25px 0;
        /* No horizontal padding needed with fixed width */
        width: 45px !important;
        /* Forces it to be slim */
        border-radius: 40px;
        border: 1px solid rgba(59, 130, 246, 0.4);
        box-shadow:
            0 20px 50px rgba(0, 0, 0, 0.7),
            0 0 30px rgba(59, 130, 246, 0.2),
            inset 0 0 15px rgba(255, 255, 255, 0.05);
        transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        opacity: 0;
        pointer-events: none;
        height: 180px;
        display: flex;
        flex-direction: column;
        align-items: center;
        z-index: 10001;
        touch-action: none;
    }

    .volume-slider-wrapper.active {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 1;
        pointer-events: all;
    }

    /* Percentage Indicator */
    .volume-slider-wrapper::after {
        content: attr(data-volume);
        position: absolute;
        top: 8px;
        font-size: 0.65rem;
        color: var(--accent-blue);
        font-weight: 800;
        text-shadow: 0 0 10px var(--accent-glow);
    }

    input[type="range"] {
        -webkit-appearance: none;
        appearance: none;
        transform: rotate(-90deg);
        width: 100px !important;
        height: 4px !important;
        background: rgba(255, 255, 255, 0.1);
        margin: 60px 0 !important;
        cursor: pointer;
    }

    /* Standard custom track behavior from desktop works through rotation */
    input[type="range"]::-webkit-slider-runnable-track {
        height: 4px;
        background: linear-gradient(to right, var(--accent-blue) 0%, var(--accent-blue) var(--value, 100%), rgba(255, 255, 255, 0.1) var(--value, 100%));
    }

    /* Content Scaling */
    section {
        padding: 60px 0;
    }

    h1 {
        font-size: 2.2rem;
    }

    .hero {
        padding-top: 140px;
        /* Reducir padding superior para que hero no quede muy abajo */
        padding-bottom: 60px;
        min-height: auto;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* --- Unified Premium Reveal System --- */
[data-reveal] {
    opacity: 0;
    will-change: opacity, transform, filter;
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1),
        filter 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-reveal="up"] {
    transform: translateY(50px);
}

[data-reveal="down"] {
    transform: translateY(-50px);
}

[data-reveal="left"] {
    transform: translateX(-60px);
}

[data-reveal="right"] {
    transform: translateX(60px);
}

[data-reveal="zoom"] {
    transform: scale(0.85);
}

[data-reveal="blur"] {
    filter: blur(20px);
}

[data-reveal].active {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    filter: blur(0);
}

/* Performance Optimized Overrides */
.low-performance .nebula-surface,
.low-performance .cyber-grid,
.low-performance .mouse-glow,
.low-performance #bg-particles,
.mid-performance .nebula-surface,
.mid-performance ._0xmg {
    display: none !important;
}

.low-performance .info-card::after,
.low-performance .cta-btn-premium::before,
.low-performance .player-container::after,
.low-performance .whatsapp-btn-shader::before {
    display: none !important;
}

.low-performance .info-card,
.low-performance .video-card,
.low-performance .player-container,
.low-performance header.scrolled {
    background: rgba(15, 23, 42, 0.98) !important;
}

.low-performance .video-info {
    background: #1e293b !important;
}

/* Stagger Logic for Grid Elements */
.cards-grid>[data-reveal]:nth-child(1) {
    transition-delay: 0.1s;
}

.cards-grid>[data-reveal]:nth-child(2) {
    transition-delay: 0.25s;
}

.cards-grid>[data-reveal]:nth-child(3) {
    transition-delay: 0.4s;
}

.cards-grid>[data-reveal]:nth-child(4) {
    transition-delay: 0.55s;
}

.esperanza-grid>[data-reveal] {
    transition-delay: 0.2s;
}

/* WhatsApp Premium Shader Button */
.whatsapp-btn-shader {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 45px;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    overflow: hidden;
    z-index: 1;
}

.whatsapp-btn-shader::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: conic-gradient(from var(--angle),
            #22c55e, #16a34a, #4ade80, #22c55e);
    border-radius: 50px;
    z-index: -1;
    padding: 2px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotateAngle 4s linear infinite;
    opacity: 0.6;
}

.whatsapp-btn-shader:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(34, 197, 94, 0.15);
    border-color: #22c55e;
    box-shadow: 0 15px 35px rgba(34, 197, 94, 0.3);
}

.whatsapp-btn-shader:hover i {
    transform: scale(1.2) rotate(10deg);
}

.whatsapp-btn-shader i {
    color: #22c55e;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Cursor and Utilities */
a,
button,
.play-btn,
.social-btn,
.header-social-btn,
.whatsapp-btn-shader {
    cursor: pointer;
}

.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

.mobile-menu .header-socials {
    display: flex !important;
    justify-content: center;
    gap: 18px;
    margin-top: 25px;
}

/* ====== FIX HEADER PROPORCIONES Y ALINEACIÓN - DESKTOP ONLY ====== */

@media (min-width: 769px) {
    #header {
        padding: 10px 0 !important;
    }

    #header ._0n {
        display: grid !important;
        grid-template-columns: auto 1fr auto;
        align-items: center !important;
    }

    /* LOGO MÁS GRANDE */
    .logo img {
        height: 70px !important;
        width: auto;
    }

    /* MENÚ CENTRADO REAL */
    .nav-links {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 40px;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* REDES ARRIBA Y ALINEADAS CON EL LOGO */
    .header-socials {
        display: flex !important;
        align-items: center !important;
        gap: 12px;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* QUITA ESPACIOS RAROS DEL CONTENEDOR */
    .container._0n {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* BOTONES REDES MÁS ARRIBA VISUALMENTE */
    .header-social-btn {
        margin-top: -4px;
    }

    /* === MOUSE REACTION ANIMATIONS (PC ONLY) === */
    /* Player Hover */
    ._0xpc {
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
            box-shadow 0.4s ease,
            border-color 0.4s ease !important;
    }

    ._0xpc:hover {
        transform: translateX(-50%) translateY(-5px) scale(1.02) !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(59, 130, 246, 0.2) !important;
        border-color: rgba(59, 130, 246, 0.4) !important;
    }

    /* Interactive Elements Hover Scale & Brightness */
    .play-btn,
    .volume-btn,
    .social-btn {
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .play-btn:hover,
    .volume-btn:hover,
    .social-btn:hover {
        filter: brightness(1.2);
        transform: scale(1.15);
    }
}

/* ====== MOBILE MENU ACTIVE Z-INDEX ====== */
@media (max-width: 768px) {
    .mobile-menu-btn.active {
        z-index: 1003;
    }

    /* Ensure nav stays in grid layout on mobile */
    #header ._0n {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
}

/* PWA Prompt Styles */
.pwa-prompt {
    position: fixed;
    bottom: 90px;
    left: 20px;
    right: 20px;
    z-index: 20000;
    display: none;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.6s ease;
}

@media (max-width: 768px) {
    .pwa-prompt {
        display: block;
    }
}

.pwa-prompt.hidden-prompt {
    transform: translateY(150%);
    opacity: 0;
    pointer-events: none;
}

.pwa-content {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.pwa-icon img {
    border-radius: 12px;
}

.pwa-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pwa-text strong {
    font-size: 1rem;
    color: #fff;
}

.pwa-text span {
    font-size: 0.8rem;
    color: #94a3b8;
}

.pwa-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pwa-btn {
    border: none;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.pwa-btn.install {
    background: #3b82f6;
    color: #fff;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 600;
}

.pwa-btn.close {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-center {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
}

.footer {
    padding: 60px 0;
    background: rgba(2, 6, 23, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.footer-logo-size {
    width: 130px !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    margin-bottom: 20px;
    display: inline-block !important;
}

/* Aislamiento botón WhatsApp */
.rc-center {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}
