/* Celestya Landing Page Specific Styles */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Lato:wght@300;400;700&display=swap');

:root {
    --celestya-bg: #050816;
    --celestya-gold: #FFD700;
    --celestya-gold-hover: #F39C12;
    --celestya-text: #F9FAFB;
    --celestya-text-muted: #D1D5DB;
    --celestya-card-bg: rgba(11, 17, 32, 0.85);
}

body.celestya-page {
    background-color: var(--celestya-bg);
    color: var(--celestya-text);
    font-family: 'Lato', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Cinzel', serif;
    /* A more "classic/eternal" font */
    color: var(--celestya-gold);
}

.celestya-page .header-portada {
    background: transparent;
    position: absolute;
    width: 100%;
    z-index: 10;
    border-bottom: none;
    padding: 20px 40px;
    pointer-events: none;
    /* Allows clicks to pass through to the slider/button underneath */
}

.celestya-page .header-portada * {
    pointer-events: auto;
    /* Re-enables clicks for the logo and nav links */
}

.celestya-page .nav-botones li a {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--celestya-gold);
}

.celestya-page .nav-botones li a:hover {
    background: var(--celestya-gold);
    color: #000;
}

/* Hero Section */
.celestya-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Gradient overlay: Navy blue to transparent, ensuring text readability */
    background:
        linear-gradient(to bottom, rgba(5, 8, 22, 0.7) 0%, rgba(5, 8, 22, 0.4) 50%, var(--celestya-bg) 100%),
        url('images/hero-parejas-conexiones-eternas.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0 20px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    animation: fadeInUp 1.5s ease-out;
    margin-top: 40px;
    /* Slight offset to center content visually with image */
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    color: var(--celestya-text);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

.hero-cta {
    display: inline-block;
    position: relative;
    z-index: 20;
    padding: 16px 40px;
    background: linear-gradient(45deg, var(--celestya-gold), #F1C40F);
    color: #050816;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.hero-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
}

.hero-support-text {
    font-size: 0.9rem;
    color: var(--celestya-text-muted);
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-video-container {
    margin-top: 30px;
    display: block;
    /* Fix colapso de altura en movil (quirk de flexbox) */
    width: 100%;
}

.hero-video {
    max-width: 280px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.2);
    /* Aspect ratio for reels (9:16 approx) */
    aspect-ratio: 9 / 16;
    object-fit: cover;
}

/* Features Section */
.celestya-features {
    padding: 80px 20px;
    background: var(--celestya-bg);
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 50px auto 0;
}

.feature-card {
    background: var(--celestya-card-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 215, 0, 0.3);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    object-fit: contain;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.feature-text {
    color: var(--celestya-text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* About / Community Section */
.celestya-about {
    padding: 80px 20px;
    background: linear-gradient(180deg, var(--celestya-bg), #0b1120);
    text-align: center;
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.2rem;
    color: var(--celestya-text-muted);
    line-height: 1.8;
    margin-bottom: 30px;
}

.regions-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.region-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--celestya-gold);
    padding: 10px 20px;
    border-radius: 30px;
    color: var(--celestya-gold);
    font-weight: bold;
}

/* Footer Specifics */
.celestya-footer {
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
}

.footer-links a {
    color: var(--celestya-text-muted);
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--celestya-gold);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-cta {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .celestya-page .header-portada {
        padding: 15px;
        justify-content: center;
    }

    .celestya-page .nav-botones {
        margin-top: 10px;
    }
}

/* =============================================
   FLOATING MUSIC PLAYER WIDGET
   ============================================= */
.music-player-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(5, 8, 22, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 50px;
    padding: 10px 18px 10px 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.15);
    cursor: pointer;
    /* Start hidden; becomes visible via JS */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
    pointer-events: none;
}

.music-player-widget.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.music-player-widget:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.6);
}

/* The round button */
.music-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--celestya-gold), #F1C40F);
    color: #050816;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.music-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.6);
}

.music-btn:active {
    transform: scale(0.96);
}

.music-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.music-icon.hidden {
    display: none;
}

/* Song title label */
.music-label {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    color: var(--celestya-text-muted);
    white-space: nowrap;
    letter-spacing: 0.5px;
    min-width: 90px;
    transition: color 0.3s;
}

.music-player-widget:hover .music-label {
    color: var(--celestya-gold);
}

/* Animated sound bars */
.sound-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
}

.sound-bars span {
    display: block;
    width: 3px;
    border-radius: 3px;
    background: var(--celestya-gold);
    height: 4px;
    transition: height 0.3s;
    opacity: 0.4;
}

/* Bars animate only when playing */
.sound-bars.active span:nth-child(1) {
    animation: bar-bounce 0.9s ease-in-out infinite alternate;
    opacity: 1;
}
.sound-bars.active span:nth-child(2) {
    animation: bar-bounce 0.7s ease-in-out infinite alternate 0.15s;
    opacity: 1;
}
.sound-bars.active span:nth-child(3) {
    animation: bar-bounce 1.1s ease-in-out infinite alternate 0.05s;
    opacity: 1;
}
.sound-bars.active span:nth-child(4) {
    animation: bar-bounce 0.8s ease-in-out infinite alternate 0.25s;
    opacity: 1;
}

@keyframes bar-bounce {
    0%   { height: 4px; }
    50%  { height: 14px; }
    100% { height: 20px; }
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .music-player-widget {
        bottom: 20px;
        right: 16px;
        padding: 8px 14px 8px 8px;
    }

    .music-label {
        font-size: 0.72rem;
        min-width: 78px;
    }

    .music-btn {
        width: 36px;
        height: 36px;
    }
}