@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;700;900&display=swap');

:root {
    --primary-purple: #6349e9;
    --highlight-gold: #dca85d;
    --bg-dark: #0a0a0a;
    --bg-card: rgba(25, 26, 26, 0.8);
    --text-light: #f2e7bb;
    --text-white: #ffffff;
    --gradient-vibrant: linear-gradient(90deg, #551F89 1.67%, #FF5E44 100%);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

/* Glassmorphism Effect */
.glass {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 5%;
    transition: 0.4s;
}

header.scrolled {
    background: rgba(10, 10, 10, 0.9);
    padding: 1rem 5%;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

#main-nav {
    display: flex;
    justify-content: flex-start;
    min-width: 0;
}

.logo {
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    min-width: 0;
}

.header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
    min-width: 0;
}

.logo h1 {
    font-weight: 900;
    font-size: 1.8rem;
    background: var(--gradient-vibrant);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    white-space: nowrap;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav ul li a {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul li a:hover {
    color: var(--highlight-gold);
}

.btn-cta {
    background: var(--highlight-gold);
    color: #000;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-weight: 700;
    transition: 0.3s;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--highlight-gold);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--highlight-gold);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 3000;
    /* Higher than #main-nav */
    position: relative;
}

/* Hero Section */
.hero {
    height: 720px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -1;
    filter: brightness(0.4);
    pointer-events: none;
    /* Prevents focus stealing and iframe interaction issues */
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero-content h2 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    animation: fadeInUp 1s ease forwards;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.8;
    animation: fadeInUp 1.2s ease forwards;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    header {
        padding: 1rem 3%;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .btn-cta {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .discovery-bar-container {
        padding: 0 1rem;
        z-index: 1000;
    }

    /* Removed forced spacing to allow discovery bar to bridge the transition naturally */
    section:first-of-type {
        margin-top: 0;
    }
}

/* Common Sections */
section {
    padding: 6rem 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--highlight-gold);
    margin-bottom: 1rem;
}

.section-title p {
    opacity: 0.7;
    font-size: 1.1rem;
}

/* Dynamic Blocks Layouts */
.block-split {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.block-parallax {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
    padding: 0;
}

.block-parallax .parallax-overlay {
    background: rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

.block-sticky {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.sticky-media {
    flex: 1;
    position: sticky;
    top: 100px;
    height: 500px;
}

.sticky-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.block-full {
    position: relative;
    padding: 0;
    min-height: 80vh;
    display: flex;
    align-items: stretch;
}

.block-full-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.block-full-content {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    width: 100%;
    min-height: inherit;
    padding: 10% 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .block-split {
        gap: 2rem;
        text-align: center;
    }

    .block-split h2 {
        font-size: 2rem;
    }

    .block-split p {
        font-size: 0.95rem;
    }

    .block-parallax {
        height: auto;
        min-height: 60vh;
        background-attachment: scroll;
    }

    .block-parallax .parallax-overlay {
        padding: 4rem 1.5rem;
    }

    .block-parallax h2 {
        font-size: 2rem !important;
    }

    .block-parallax p {
        font-size: 1rem !important;
        opacity: 1 !important;
    }

    .block-full {
        min-height: 60vh;
    }

    .block-full-content {
        background: rgba(0, 0, 0, 0.7);
        text-align: center;
        padding: 4rem 1.5rem;
    }

    .block-full h2 {
        font-size: 2.2rem !important;
    }

    .block-full p {
        font-size: 1rem !important;
    }

    .block-sticky {
        flex-direction: column;
    }

    .sticky-media {
        position: relative;
        top: 0;
        height: 300px;
    }

    .block-parallax {
        height: 40vh;
        background-attachment: scroll;
    }
}

/* Footer */
footer {
    background: #050505;
    padding: 4rem 10% 2rem;
    border-top: 1px solid var(--glass-border);
}

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

.footer-col h4 {
    color: var(--highlight-gold);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.9rem;
    opacity: 0.5;
}

/* Grid for Store/Shows */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
    gap: 2rem;
    justify-content: center;
}

.card {
    transition: 0.4s;
    overflow: hidden;
    position: relative;
    padding: 0;
}

.card:hover {
    transform: translateY(-10px);
}

.card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: 0.4s;
}

.card:hover img {
    transform: scale(1.1);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

.card-title {
    font-weight: 900;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.card-price {
    color: var(--highlight-gold);
    font-weight: 700;
}

/* Forms */
.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    outline: none;
}

.form-control:focus {
    border-color: var(--highlight-gold);
}

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

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

/* Responsive */
@media (max-width: 992px) {
    header {
        padding: 1rem 5%;
    }

    .mobile-toggle {
        display: block;
    }

    #main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        /* Changed to 100% for a cleaner native feel on mobile */
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        /* Slightly darker for better contrast */
        backdrop-filter: blur(25px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 2500;
    }

    #main-nav.active {
        right: 0;
    }

    #main-nav ul {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    #main-nav ul li a {
        font-size: 1.5rem;
    }

    .hide-mobile {
        display: none;
    }

    /* Mobile Header Specifics */
    .nav-container {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    #main-nav {
        order: 4;
        /* Behind everything */
    }

    .logo {
        flex: 1;
        text-align: left;
        order: 1;
    }

    .header-actions {
        flex: initial;
        order: 2;
        gap: 1rem;
    }

    .mobile-toggle {
        order: 3;
    }
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    section {
        padding: 4rem 5%;
    }

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

    .form-container {
        padding: 2rem !important;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #25d366;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 9999;
    text-decoration: none;
    font-weight: 700;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
    color: #fff;
}

.whatsapp-float i {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 0.8rem;
    }

    .whatsapp-float span {
        display: none;
    }
}

/* Trigger point to reserve space for sticky bar and avoid jumps */
#discovery-trigger-point {
    height: 1px;
    margin-bottom: -1px;
    visibility: hidden;
    pointer-events: none;
}

/* Discovery Bar */
.discovery-bar-container {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 900;
    margin-top: -35px;
    /* Perfect bisection of the hero/section line */
    /* Overlap hero slightly */
    padding-bottom: 0;
    /* Remove gap for seamless join */
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.discovery-bar-container.active {
    padding-bottom: 0;
}

.discovery-bar-container.sticky {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    margin-top: 0;
    padding: 0;
    /* Remove container padding in sticky */
    background: transparent;
    transition: 0.3s;
}

.discovery-bar-container.sticky .discovery-bar {
    position: relative !important;
    margin-top: 0 !important;
    padding: 0.8rem 2.5rem;
    /* Slender but premium in sticky */
    transform: scale(0.95);
}

header.scrolled+#discovery-trigger-point+.discovery-bar-container.sticky {
    top: 60px;
}

.discovery-bar {
    background: #fff;
    color: #000;
    padding: 1rem 3rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    box-shadow: none;
    /* Shadow removed as requested */
    font-weight: 700;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 2px solid transparent;
    width: auto;
    position: absolute;
    margin-top: -35px;
}

/* Forzar la expansión persistente del botón cuando está activo, sin importar el hover o el estado sticky */
.discovery-bar-container.active .discovery-bar,
.discovery-bar-container.sticky.active .discovery-bar {
    width: 90% !important;
    max-width: 1200px !important;
    border-radius: 24px 24px 0 0 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-bottom: none !important;
    transform: scale(1) !important;
    /* Asegurar que no se encoja por el estado sticky */
    z-index: 5001;
}

.discovery-bar:hover {
    transform: scale(1.05);
    border-color: var(--primary-purple);
}

.discovery-bar-container.active .discovery-bar:hover {
    transform: scale(1);
    /* No scale when active */
}

.discovery-bar span {
    font-size: 1.1rem;
}

/* Mega Menu - Dropdown Expansion */
.mega-menu {
    position: absolute;
    top: 100%;
    /* Attach exactly at the end of the container */
    left: 50%;
    width: 90%;
    max-width: 1200px;
    transform: translateX(-50%) scaleY(0);
    transform-origin: top center;
    background: transparent;
    z-index: 5000;
    display: block;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        opacity 0.3s ease;
    pointer-events: none;
}

.mega-menu.active {
    opacity: 1;
    transform: translateX(-50%) scaleY(1);
    pointer-events: all;
}

.mega-menu-content {
    background: #fff;
    width: 100%;
    border-radius: 0 0 24px 24px;
    padding: 1rem;
    color: #000;
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-top: none;
    /* Seamless join with the bar above */
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.mega-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mega-menu-header h3 {
    font-size: 2rem;
    font-weight: 900;
    color: #6349e9;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: #000;
    line-height: 1;
}

.discovery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.discovery-card {
    cursor: pointer;
    transition: 0.3s;
    text-align: left;
}

.discovery-card:hover {
    transform: translateY(-5px);
}

.db-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    margin-bottom: 12px;
}

.db-info h4 {
    font-weight: 800;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db-meta {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.db-meta i {
    color: var(--primary-purple);
    width: 14px;
    text-align: center;
}

@media (max-width: 768px) {
    .discovery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .discovery-bar {
        padding: 0.8rem 1.2rem;
        /* Reduced padding */
        width: 100%;
        max-width: 90vw;
        border-radius: 50px;
        .discovery-bar span {
        font-size: 0.85rem;
        /* Slightly smaller text */
        white-space: nowrap;
    }

    .discovery-bar-container.active .discovery-bar,
    .discovery-bar-container.sticky.active .discovery-bar {
        width: 100% !important;
        /* Full width on mobile for cleaner look */
        max-width: 100vw !important;
        border-radius: 0 !important;
        /* Sharp for mobile edge-to-edge fusion */
        padding: 1.2rem !important;
    }

    .mega-menu {
        width: 100% !important;
        max-width: 100vw !important;
        top: 100% !important;
        left: 0 !important;
        transform: scaleY(0) !important;
    }

    .mega-menu.active {
        transform: scaleY(1) !important;
        left: 0 !important;
    }

    .mega-menu-content {
        padding: 1rem !important;
        border-radius: 0 0 16px 16px !important;
        max-height: 70vh;
        overflow-y: auto;
        border: none !important;
        border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
    }

    .mega-menu-header {
        margin-bottom: 1rem;
    }

    .mega-menu-header h3 {
        font-size: 1.2rem !important;
    }

    .db-info h4 {
        font-size: 0.85rem;
    }

    .db-meta {
        font-size: 0.65rem;
    }
}