:root {
    --azul-turquesa: #1A7B85;
    --naranja-ocre: #D97726;
    --marron-tierra: #3D2616;
    --crema-organico: #F2E8D5;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--marron-tierra);
    color: var(--crema-organico);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, .slogan {
    font-family: 'Bebas Neue', display;
    letter-spacing: 2px;
}

/* =========================================
   Intro Curtain (Cortinilla)
========================================= */
.curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--marron-tierra);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out, transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.curtain.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
}

.logo-container {
    position: relative;
    width: 90vmin;
    height: 90vmin;
    max-width: 800px;
    max-height: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stacked-layers {
    position: relative;
    width: 90vmin;
    height: 90vmin;
    max-width: 800px;
    max-height: 800px;
}

.logo-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.1));
}

/* Sequencing layers */
.layer-0 { animation: revealLayer 0.8s ease forwards 0.5s, glowLayerAzul 2s infinite alternate; }
.layer-1 { animation: revealLayer 0.8s ease forwards 1.5s, glowLayerNaranja 2s infinite alternate 0.5s; }
.layer-2 { animation: revealLayer 0.8s ease forwards 2.5s, glowLayerMarron 2s infinite alternate 1.0s; }
.layer-3 { animation: revealLayer 0.8s ease forwards 3.5s, glowLayerCrema 2s infinite alternate 1.5s; }
.layer-4 { animation: revealLayer 0.8s ease forwards 4.5s, glowLayerFinal 2s infinite alternate 2.0s; }

@keyframes revealLayer {
    0% { opacity: 0; transform: scale(0.85); filter: brightness(2) blur(5px); }
    100% { opacity: 1; transform: scale(1); filter: brightness(1) blur(0); }
}

@keyframes glowLayerAzul {
    0% { filter: drop-shadow(0 0 5px var(--azul-turquesa)); }
    100% { filter: drop-shadow(0 0 15px var(--azul-turquesa)); }
}

@keyframes glowLayerNaranja {
    0% { filter: drop-shadow(0 0 5px var(--naranja-ocre)); }
    100% { filter: drop-shadow(0 0 15px var(--naranja-ocre)); }
}

@keyframes glowLayerMarron {
    0% { filter: drop-shadow(0 0 5px var(--marron-tierra)); }
    100% { filter: drop-shadow(0 0 15px var(--marron-tierra)); }
}

@keyframes glowLayerCrema {
    0% { filter: drop-shadow(0 0 5px var(--crema-organico)); }
    100% { filter: drop-shadow(0 0 15px var(--crema-organico)); }
}

@keyframes glowLayerFinal {
    0% { filter: drop-shadow(0 0 10px var(--naranja-ocre)); }
    100% { filter: drop-shadow(0 0 30px var(--crema-organico)) brightness(1.2); }
}

/* Dazzling Sparkles effect */
.sparkles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.sparkles::before, .sparkles::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 30%, var(--azul-turquesa) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, var(--naranja-ocre) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, var(--crema-organico) 0%, transparent 60%);
    mix-blend-mode: color-dodge;
    opacity: 0;
    animation: intenseSparkle 2s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
    border-radius: 50%;
    filter: blur(8px);
}

.sparkles::after {
    animation-delay: 1s;
    background: 
        radial-gradient(circle at 70% 30%, var(--naranja-ocre) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, var(--azul-turquesa) 0%, transparent 50%);
}

.loading-text {
    margin-top: 40px;
    font-family: 'Bebas Neue', display;
    font-size: 1.5rem;
    color: var(--naranja-ocre);
    letter-spacing: 4px;
    animation: textPulse 1.5s infinite alternate;
}



@keyframes intenseSparkle {
    0% { transform: scale(0.5) rotate(0deg); opacity: 0; filter: blur(10px); }
    50% { opacity: 0.8; filter: blur(5px) brightness(1.5); }
    100% { transform: scale(1.5) rotate(180deg); opacity: 0; filter: blur(15px); }
}

@keyframes textPulse {
    0% { opacity: 0.3; text-shadow: 0 0 5px var(--naranja-ocre); }
    100% { opacity: 1; text-shadow: 0 0 15px var(--naranja-ocre); }
}

/* =========================================
   Main Content & Hero
========================================= */
#main-content {
    opacity: 0;
    transition: opacity 1.5s ease-in;
}

#main-content.visible {
    opacity: 1;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, #2a1a0f 0%, var(--marron-tierra) 100%);
    position: relative;
    padding: 0 20px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(30px);
    opacity: 0;
    transition: all 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) 1s;
}

#main-content.visible .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.hero-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 10px;
}

.hero-logo-stacked {
    position: relative;
    width: 60vmin;
    height: 60vmin;
    max-width: 600px;
    max-height: 600px;
    margin-bottom: 30px;
}

.hero-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
}

.coming-soon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 2vw, 30px);
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.hop-icon {
    width: clamp(25px, 7vw, 120px);
    height: auto;
    filter: drop-shadow(0 0 10px rgba(217, 119, 38, 0.5));
    flex-shrink: 0;
}

.mobile-hop {
    display: none;
}

.desktop-hop {
    display: block;
}

@media (max-width: 768px) {
    .mobile-hop {
        display: block;
    }
    .desktop-hop {
        display: none;
    }
}

.hop-left {
    --rot: -20deg;
    animation: bounceHop 3s infinite alternate ease-in-out;
}

.hop-right {
    --rot: 20deg;
    animation: bounceHop 3s infinite alternate ease-in-out 1.5s;
}

@keyframes bounceHop {
    0% { transform: translateY(0) rotate(var(--rot)) scale(1); filter: drop-shadow(0 0 10px rgba(217, 119, 38, 0.4)); }
    100% { transform: translateY(-15px) rotate(var(--rot)) scale(1.1); filter: drop-shadow(0 0 20px rgba(26, 123, 133, 0.6)); }
}

.coming-soon {
    font-size: clamp(3rem, 15vw, 7rem);
    color: var(--naranja-ocre);
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
    text-align: center;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.5), 0 0 30px rgba(217, 119, 38, 0.3);
}

.slogan {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--azul-turquesa);
    margin-top: 15px;
    font-style: italic;
    font-weight: 300;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    opacity: 0;
    transition: opacity 1s ease 2.5s;
}

#main-content.visible .scroll-indicator {
    opacity: 0.8;
}

.scroll-indicator::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    border-right: 3px solid var(--naranja-ocre);
    border-bottom: 3px solid var(--naranja-ocre);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* =========================================
   Storytelling Sections
========================================= */
.story-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.story-section:nth-child(even) {
    background-color: var(--crema-organico);
    color: var(--marron-tierra);
}

.story-section:nth-child(odd) {
    background-color: #24160c;
}

.content-box {
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.text-content {
    width: 100%;
}

/* Storytelling Animations - step by step paragraphs */
.content-box h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--naranja-ocre);
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.content-box.alternate h2 {
    color: var(--azul-turquesa);
}

.content-box.active h2 {
    opacity: 1;
    transform: translateY(0);
}

.content-box h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 0;
    height: 4px;
    background-color: currentColor;
    transition: width 1s ease 0.5s;
}

.content-box.active h2::after {
    width: 100%;
}

.paragraphs p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.8;
    margin-bottom: 1.8rem;
    opacity: 0;
    transform: translateY(40px); /* Move up animation */
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.content-box.active .paragraphs p {
    opacity: 1;
    transform: translateY(0);
}

/* Staggering paragraph animations */
.content-box.active .paragraphs p:nth-child(1) { transition-delay: 0.3s; }
.content-box.active .paragraphs p:nth-child(2) { transition-delay: 0.6s; }
.content-box.active .paragraphs p:nth-child(3) { transition-delay: 0.9s; }
.content-box.active .paragraphs p:nth-child(4) { transition-delay: 1.2s; }

.paragraphs strong {
    color: var(--naranja-ocre);
    font-family: 'Bebas Neue', display;
    font-size: 1.5em;
    letter-spacing: 1px;
    margin-right: 5px;
    font-weight: normal;
}

.content-box.alternate .paragraphs strong {
    color: var(--azul-turquesa);
}

.final-quote {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--naranja-ocre);
    margin-top: 3rem;
    text-align: center;
    line-height: 1.3;
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1) 1.5s; /* Delays until paragraphs are done */
}

.content-box.active .final-quote {
    opacity: 1;
    transform: scale(1) translateY(0);
}

footer {
    background-color: #170e08;
    text-align: center;
    padding: 2rem;
    color: rgba(242, 232, 213, 0.5);
    font-size: 0.9rem;
}
