/* AURA - Design System & Variables */
:root {
    --color-matcha: #A4C639;
    --color-matcha-dark: #8dae32;
    --color-pink: #F8D1D3;
    --color-pink-dark: #ff9fb4;
    --color-matcha-light: #e8f5c8;
    --color-pink-light: #fef0f0;

    /* NEW: Dark Olive/Matcha Background from User Image */
    --color-bg: #BDB57B;
    --color-avela-cream: #F4EBE1; /* Hazelnut cream */

    /* NEW: Typography Colors */
    --color-text-main: #FCFBF9;
    /* Off-white for dark green areas */
    --color-text-muted: #DDEBCC;
    /* Light sage for subtexts */
    --color-text-inverse: #2A2A2A;
    /* Dark charcoal for the light/pink "claresas" */

    --color-white: #FFFFFF;

    --font-serif: 'Playfair Display', 'Bodoni Moda', serif;
    --font-sans: 'Inter', sans-serif;

    --bezier: cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: clip;
    cursor: none;
    position: relative;
    transition: background-color 0.5s var(--bezier);
}

h1,
h2,
h3,
.logo-aura {
    font-family: var(--font-serif);
    font-weight: 600;
}

/* Background Decorative Blobs - HIDDEN for solid uniform background */
.blob {
    display: none;
}

.blob-pink {
    display: none;
}

.blob-matcha {
    display: none;
}

/* Custom Cursor - Restricted to desktop to prevent mobile touch interception bugs */
@media (hover: hover) and (pointer: fine) {
    .cursor-blob {
        width: 20px;
        height: 20px;
        background-color: var(--color-matcha-light);
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 99999; /* Higher than all modals */
        mix-blend-mode: multiply;
        transition: width 0.3s var(--bezier), height 0.3s var(--bezier), background-color 0.3s var(--bezier);
        transform: translate(-50%, -50%);
    }

    body:hover .cursor-blob {
        opacity: 1;
    }
}

/* Aura Sparkles (Option 4) */
.sparkles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 2;
}

.sparkle {
    position: absolute;
    width: 25px;
    height: 25px;
    opacity: 0;
    animation: twinkle 8s ease-in-out infinite, floatUp 15s linear infinite;
}

.s1 {
    top: 80%;
    left: 10%;
    color: var(--color-matcha-light);
    animation-delay: 0s, 0s;
    width: 30px;
    height: 30px;
}

.s2 {
    top: 40%;
    left: 85%;
    color: var(--color-matcha-light);
    animation-delay: 2s, 4s;
}

.s3 {
    top: 15%;
    left: 20%;
    color: #eed573;
    animation-delay: 4s, 8s;
    width: 22px;
    height: 22px;
}

.s4 {
    top: 90%;
    left: 70%;
    color: var(--color-matcha-light);
    animation-delay: 6s, 1s;
    width: 15px;
    height: 15px;
}

.s5 {
    top: 60%;
    left: 5%;
    color: #eed573;
    animation-delay: 1s, 5s;
}

.s6 {
    top: 20%;
    left: 90%;
    color: var(--color-matcha-light);
    animation-delay: 3s, 7s;
    width: 35px;
    height: 35px;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.5) rotate(0deg);
        filter: blur(2px);
    }

    50% {
        opacity: 0.8;
        transform: scale(1) rotate(45deg);
        filter: drop-shadow(0 0 10px currentColor);
    }
}

@keyframes floatUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100px);
    }
}

/* Main App Container */
.app-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    z-index: 5;
}

/* Ticker Tape / Marquee */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: var(--color-pink);
    /* Update background to user color */
    border-bottom: none;
    padding: 12px 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 200;
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 40s linear infinite;
    color: #4A3628;
    /* Harmonious chestnut / espresso brown */
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

.ticker__item {
    display: inline-block;
    padding: 0 2rem;
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Pinned Hero Section */
#hero-spacer {
    width: 100%;
    height: 115vh; /* Added 15vh extra to separate it from the next section */
    position: relative;
}

.sticky-hero {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 0 5vw;
}

.hero-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6rem;
    width: 100%;
    max-width: 1100px;
}

.logo-container {
    position: relative;
    user-select: none;
    text-align: left;
    margin-top: -5vh;
}

/* THE ENLARGED FLOATING WIDGET */
.floating-widget {
    position: relative;
    width: 600px;
    max-width: 90vw;
    height: auto;
    overflow: hidden;
    z-index: 100;
    pointer-events: none; /* Make completely untouchable */
}

.floating-widget::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Rectangular blur using linear gradients, focusing heavily on the bottom */
    background: 
        linear-gradient(to top, rgba(189, 181, 123, 1) 0%, rgba(189, 181, 123, 0) 35%),
        linear-gradient(to bottom, rgba(189, 181, 123, 1) 0%, rgba(189, 181, 123, 0) 15%),
        linear-gradient(to right, rgba(189, 181, 123, 1) 0%, rgba(189, 181, 123, 0) 15%),
        linear-gradient(to left, rgba(189, 181, 123, 1) 0%, rgba(189, 181, 123, 0) 15%);
    pointer-events: none;
    z-index: 2;
}

canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-video {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none; /* Prevents video from stealing touch events on mobile */
}

/* Typography & Details (Hero) */
.starburst {
    color: var(--color-matcha-light);
    font-size: 3rem;
    position: absolute;
    top: -10px;
    left: -50px;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.logo-aura {
    font-size: clamp(6rem, 10vw, 9rem);
    letter-spacing: -0.05em;
    color: var(--color-pink);
    line-height: 0.9;
}

.logo-sub {
    font-size: 1.2rem;
    letter-spacing: 0.4em;
    margin-top: 1rem;
    font-weight: 500;
    color: var(--color-text-main);
}

.hero-divider {
    width: 60px;
    height: 3px;
    background-color: var(--color-matcha-light);
    margin: 1.5rem 0;
}

.logo-city {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 2vw;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #4A3628; /* Chestnut brown */
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to top, #4A3628, transparent);
    animation: slideDown 2s ease-in-out infinite;
    transform-origin: bottom;
}



/* HORIZONTAL SCROLL SECTION (MODULE 3) */
#horizontal-spacer {
    width: 100%;
    height: 400vh; /* Increased to emphasize vertical scroll lock */
    position: relative;
    z-index: 10;
}

.horizontal-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.horizontal-content {
    display: flex;
    flex-direction: row;
    width: 150vw; /* 3 panels x 50vw */
    height: 100%;
    will-change: transform;
}

.h-panel {
    position: relative;
    width: 50vw; /* Much closer together */
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2vw; /* Reduced padding */
    animation: hPanelFloat 8s ease-in-out infinite;
}

.h-panel:nth-child(even) {
    animation-delay: -4s;
}

@keyframes hPanelFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Café Panel - Two-column layout */
.cafe-panel {
    width: 85vw; /* Increased even more for massive impact */
    gap: 4vw;
    justify-content: center;
}

.cafe-frames-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px; /* Reduced to look much smaller on desktop */
    flex: 2; /* Takes up much more horizontal space */
    aspect-ratio: 1 / 1;
    overflow: visible; /* Allow glow to spill out */
    background: transparent;
    transition: width 0.5s ease, aspect-ratio 0.5s ease;
}

/* The magical aura glow behind the coffee */
.cafe-frames-wrapper::before {
    content: '';
    position: absolute;
    top: -15%; left: -15%; right: -15%; bottom: -15%;
    background: radial-gradient(circle at 30% 30%, rgba(163, 177, 138, 0.5) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(74, 54, 40, 0.5) 0%, transparent 50%);
    filter: blur(40px);
    z-index: -1;
    animation: coffeeAura 8s infinite alternate ease-in-out;
    pointer-events: none;
}

@keyframes coffeeAura {
    0% { transform: scale(1) rotate(0deg); opacity: 0.6; }
    100% { transform: scale(1.1) rotate(15deg); opacity: 1; }
}

#cafe-frames-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: cover;
    border-radius: 50px;
}

.cafe-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.cafe-loading-spinner {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-top-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 
   Content Boxes - Transparent/Green to match website background
*/
.content-block {
    background: var(--color-pink);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 40px;
    padding: 5rem;
    width: 100%;
    max-width: 650px;
    color: #4A3628;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.glass-card {
    background: var(--color-pink);
    border: none;
    border-radius: 40px;
    padding: 5rem;
    width: 100%;
    max-width: 650px;
    color: #4A3628;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08), inset 0 2px 10px rgba(255, 255, 255, 0.5);
}

.content-block h2 {
    font-size: 4rem;
    margin-bottom: 2rem;
    color: var(--color-text-main);
}

.glass-card h2 {
    font-size: 4rem;
    margin-bottom: 2rem;
    color: #4A3628;
}

.content-block .subtitle {
    color: #4A3628;
    opacity: 0.8;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.8;
}

.glass-card .subtitle {
    color: #4A3628;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.8;
    opacity: 0.8;
}

.chic-menu {
    list-style: none;
}

.chic-menu li {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(74, 54, 40, 0.25); /* Chestnut border */
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s;
    color: var(--color-text-main);
}

.chic-menu li:hover {
    transform: translateX(10px);
}

/* Nail Lab Block */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.img-wrapper {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    transition: transform 0.5s var(--bezier), box-shadow 0.5s var(--bezier);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.img-wrapper.matcha-fade {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.img-wrapper:hover {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.service-card h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.glass-card .service-card h4 {
    color: #4A3628;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.glass-card .service-card p {
    color: #4A3628;
    opacity: 0.8;
}

/* Panels styling */
.panel {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 5vw;
    position: relative;
    z-index: 10;
}

.panel.center {
    align-items: center;
    text-align: center;
}

/* Interactive Nails Section */
#interactive-nails {
    background-color: var(--color-avela-cream);
    border-radius: 60px;
    margin-top: -60px; /* Overlaps smoothly over the previous section */
    padding-top: 10rem;
    padding-bottom: 10rem;
    position: relative;
    z-index: 20; 
    box-shadow: 0 40px 100px rgba(0,0,0,0.15); /* Soft drop shadow */
}

#interactive-nails h2 {
    color: var(--color-text-inverse) !important;
}

#interactive-nails .subtitle {
    color: var(--color-text-inverse) !important;
    opacity: 0.8;
}

.interactive-nails-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Pushes layout towards the left */
    gap: 8rem; /* Creates ample space between image and buttons */
    width: 100%;
    max-width: 1250px; /* Expanded maximum width */
    margin: 0 auto;
    padding-left: 5vw; /* Anchors it cleanly to the left */
}

.nails-display {
    position: relative;
    display: inline-block;
    max-width: 750px; /* Made the image significantly larger */
    width: 100%;
    
    /* Re-applied the stunning Glass Card Effect */
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 40px;
    padding: 0.6rem; /* Reduced the white frame border */
    box-shadow: 0 80px 160px rgba(0, 0, 0, 0.25), 0 25px 65px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.05); /* Deep floating shadow */
    backdrop-filter: blur(12px);
}

.nails-base-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 34px; /* Matches the new smaller padding frame */
    transition: opacity 0.8s var(--bezier);
}

.nails-video {
    position: absolute;
    top: 0.6rem; /* Account for the new glass card padding */
    left: 0.6rem;
    width: calc(100% - 1.2rem);
    height: calc(100% - 1.2rem);
    border-radius: 34px;
    object-fit: cover;
    transition: opacity 0.8s var(--bezier);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}


.nails-video.active {
    opacity: 1;
}

.color-selector-container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.colors-indicator {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--color-text-inverse);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.colors-line {
    width: 2px;
    height: 80px;
    background: linear-gradient(to top, var(--color-text-inverse), transparent);
    animation: slideDown 2s ease-in-out infinite;
    transform-origin: bottom;
}

/* Aesthetic Corner Accents */
.aura-corner-indicator {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #4A3628; /* Chestnut Brown to stand out */
    text-transform: uppercase;
    font-size: 0.85rem; /* Slightly larger */
    font-weight: 600; /* Bolder */
    letter-spacing: 0.3em;
    writing-mode: vertical-rl;
    opacity: 0.85; /* Increased opacity */
    transition: opacity 0.5s var(--bezier);
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.4); /* Glow to ensure it stands out on any background */
    z-index: 15;
}

.aura-corner-indicator:hover {
    opacity: 1;
}

.aura-corner-indicator.top-right {
    top: 6rem;
    right: 4vw;
}

.aura-corner-indicator.bottom-left {
    bottom: 6rem;
    left: 4vw;
    transform: rotate(180deg);
}

.aura-corner-indicator.top-left {
    top: 6rem;
    left: 4vw;
}

.aura-corner-indicator.bottom-right {
    bottom: 6rem;
    right: 4vw;
    transform: rotate(180deg);
}

.aura-corner-indicator.light,
.aura-corner-indicator.dark {
    color: #4A3628; /* Force chestnut on all corners so they stand out */
}

.color-selector {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 5;
}

.color-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background-color: var(--btn-color);
    cursor: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s var(--bezier);
    position: relative;
}

.color-btn::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    border: 1px solid var(--color-white);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s var(--bezier);
}

.color-btn:hover {
    transform: scale(1.15);
}

.color-btn.active {
    transform: scale(1.15);
}

.color-btn.active::after {
    opacity: 1;
    transform: scale(1);
}

@media(max-width: 900px) {
    .interactive-nails-wrapper {
        flex-direction: column;
        gap: 2.5rem;
        padding-left: 0;
    }

    .color-selector-container {
        flex-direction: column-reverse;
        gap: 2rem;
    }

    .colors-indicator {
        writing-mode: horizontal-tb;
        transform: rotate(0deg);
        flex-direction: row;
    }

    .colors-line {
        width: 80px;
        height: 2px;
        background: linear-gradient(to right, var(--color-text-inverse), transparent);
        animation: none;
    }

    .color-selector {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nails-display {
        width: 100%;
        max-width: 450px;
        height: auto;
    }

    .aura-corner-indicator {
        display: none; /* Keep mobile clean */
    }
}

/* Cute Booking Card */
.cute-booking-card {
    background: #FBE4E7; /* A slightly softer, lighter pastel pink than var(--color-pink) */
    border-radius: 40px;
    padding: 4rem;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08), inset 0 2px 10px rgba(255, 255, 255, 0.5);
    color: var(--color-text-inverse);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cute-booking-card h2 {
    font-size: 3.5rem;
    color: var(--color-text-inverse);
    margin-bottom: 0.5rem;
}

.booking-sub {
    color: rgba(0,0,0,0.6);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.booking-info-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    margin-bottom: 3.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.6);
    padding: 1.5rem 2rem;
    border-radius: 24px;
    gap: 1.5rem;
    text-align: left;
    transition: transform 0.3s ease, background 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.85);
}

.icon-box {
    background: var(--color-white);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-text-inverse);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.info-text h3 {
    font-size: 1.1rem;
    font-family: var(--font-sans);
    margin-bottom: 0.2rem;
    color: var(--color-text-inverse);
}

.info-text p {
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.4;
}

.btn-book-cute {
    display: inline-block;
    width: 100%;
    padding: 1.4rem;
    border: none;
    border-radius: 20px;
    background: var(--color-text-inverse);
    color: var(--color-white);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: none;
    text-decoration: none;
    transition: all 0.3s var(--bezier);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-book-cute:hover {
    background: var(--color-white);
    color: var(--color-text-inverse);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Footer */
.footer {
    padding: 4rem 0;
    text-align: center;
    min-height: auto;
}

.ig-feed {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.ig-item {
    aspect-ratio: 1;
    background: transparent;
    border-radius: 20px;
    transition: transform 0.4s var(--bezier);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ig-item:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.footer-info h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.footer-info p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.socials {
    display: flex;
    gap: 3rem;
    justify-content: center;
}

.socials a {
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
    cursor: none;
}

.socials a:hover {
    color: var(--color-matcha-light);
}

/* Observers for Fade In / Reveal */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s var(--bezier);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Super Professional Grand Reveal */
.reveal-grand {
    opacity: 0;
    transform: translateY(150px) scale(0.95);
    border-radius: 120px !important;
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), 
                opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), 
                border-radius 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-grand.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    border-radius: 60px !important;
}

/* Staggered Item Reveals */
.reveal-item {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-grand.active .reveal-item {
    opacity: 1;
    transform: translateY(0);
}

.reveal-grand.active .reveal-item:nth-child(1) { transition-delay: 0.15s; }
.reveal-grand.active .reveal-item:nth-child(2) { transition-delay: 0.3s; }
.reveal-grand.active .reveal-item:nth-child(3) { transition-delay: 0.45s; }

/* Mobile Responsiveness */
@media(max-width: 900px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .logo-container {
        text-align: center;
    }

    .hero-divider {
        margin: 1.5rem auto;
    }
}

/* Contact Modal Integration */
.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--bezier);
}

.contact-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.contact-modal-content {
    background: var(--color-avela-cream);
    padding: 4rem 5rem;
    border-radius: 30px;
    position: relative;
    transform: translateY(50px);
    transition: transform 0.5s var(--bezier);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
    text-align: center;
    max-width: 90vw;
}

.contact-modal-overlay.active .contact-modal-content {
    transform: translateY(0);
}

.contact-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: var(--color-text-inverse);
    cursor: none;
    transition: transform 0.3s;
}

.contact-modal-close:hover {
    transform: scale(1.2) rotate(90deg);
}

/* MODULE 2.5: Summer Trends Magazine & 3D Book */
#summer-trends {
    background: linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.35)), url('fudno.png') no-repeat center center !important;
    background-size: cover !important;
    border-radius: 60px;
    margin-top: -60px; /* Seamless overlap overlay */
    padding-top: 10rem;
    padding-bottom: 10rem;
    position: relative;
    z-index: 21;
    box-shadow: 0 40px 100px rgba(0,0,0,0.1);
    overflow: hidden; /* Clips the background blobs nicely */
}

#summer-trends h2 {
    color: var(--color-text-inverse) !important;
    font-family: var(--font-serif);
    position: relative;
    z-index: 5;
}

#summer-trends .subtitle {
    color: var(--color-text-inverse) !important;
    position: relative;
    z-index: 5;
}

/* Dynamic Background Blur Shapes */
.trends-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    z-index: 1;
    pointer-events: none;
    animation: floatBlob 15s ease-in-out infinite alternate;
}

.trends-blob-1 {
    width: 350px;
    height: 350px;
    background: rgba(244, 194, 194, 0.7); /* Warm rose pink */
    top: 5%;
    left: -5%;
}

.trends-blob-2 {
    width: 400px;
    height: 400px;
    background: rgba(232, 245, 200, 0.85); /* Matcha green */
    bottom: 5%;
    right: -5%;
    animation-delay: -7s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    100% {
        transform: translate(80px, 40px) scale(1.2) rotate(180deg);
    }
}

/* 3D Book Layout */
.magazine-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 2000px; /* Real 3D effect depth */
    margin: 4rem auto;
    width: 100%;
    max-width: 900px;
    height: 600px;
    position: relative;
    z-index: 5;
}

.book {
    position: relative;
    width: 430px; /* One page width */
    height: 560px;
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
    transform-style: preserve-3d;
    transform: translateX(0); /* Centered closed cover hinge */
    border-radius: 0 24px 24px 0;
}

/* Shifts the book spine to the absolute center when opened */
.book.is-open {
    transform: translateX(215px);
}

/* Single leaf page of the book */
.book-sheet {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform-style: preserve-3d;
    transform-origin: left center;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Page Sides (Front / Back) */
.sheet-side {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    box-sizing: border-box;
    border-radius: 0 24px 24px 0;
    background: #FCFBF9;
    box-shadow: 15px 15px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Back sides of sheets are flipped 180deg and round on left side */
.sheet-side.back-side {
    transform: rotateY(180deg);
    border-radius: 24px 0 0 24px;
    box-shadow: -15px 15px 40px rgba(0, 0, 0, 0.05);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

/* Flipped sheet animation logic */
.book-sheet.flipped {
    transform: rotateY(-180deg);
}

/* Centered Shadow Overlay Spine for opened sheets */
.sheet-side.front-side::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 35px;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.07) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.sheet-side.back-side::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 35px;
    height: 100%;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.07) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

/* Page Content Formatting */
.page-content {
    padding: 4rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    width: 100%;
    position: relative;
    color: var(--color-text-inverse);
    text-align: left;
}

.cover-content, .back-content {
    align-items: center;
    text-align: center;
    padding: 5rem 4rem;
}

.page-num {
    position: absolute;
    bottom: 2rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    opacity: 0.4;
    color: var(--color-text-inverse);
}
.sheet-side:not(.back-side) .page-num {
    right: 3rem;
}
.sheet-side.back-side .page-num {
    left: 3rem;
}

/* Typography styles */
.mag-subtitle {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: #8B7A6F;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.mag-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    line-height: 1.1;
    color: #4A3C31;
    margin-bottom: 1.8rem;
    letter-spacing: -0.02em;
}

.mag-divider {
    width: 70px;
    height: 2px;
    background-color: #D3C2B5;
    margin: 1.5rem 0;
}

.mag-desc {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: #7A6A5E;
    max-width: 280px;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.mag-cta {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8B7A6F;
    font-weight: 600;
    animation: pulse 2s infinite;
    cursor: pointer;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}

.sheet-side h4 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: #4A3C31;
    margin-bottom: 1.2rem;
}

.trend-color-pill {
    width: 65px;
    height: 26px;
    border-radius: 50px;
    margin-bottom: 1.8rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.trend-text {
    font-family: var(--font-sans);
    font-size: 0.98rem;
    line-height: 1.7;
    color: #615347;
    margin-bottom: 2rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.trend-moodboard {
    display: flex;
    gap: 1.2rem;
}

@keyframes hintBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
        color: rgba(0, 0, 0, 0.5);
    }
    50% {
        transform: translateY(-8px) scale(1.05);
        opacity: 1;
        color: #4A3628;
    }
}

.swatch-hint {
    font-size: 0.85rem;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 0.8rem;
    font-weight: 600;
    animation: hintBounce 1.5s ease-in-out infinite;
}

.mood-swatch {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
    cursor: none;
    transition: transform 0.4s var(--bezier), box-shadow 0.4s var(--bezier);
}

.mood-swatch:hover {
    transform: scale(1.2) translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.trends-book-btn {
    padding: 1.1rem 2.2rem;
    border: none;
    border-radius: 50px;
    background-color: #4A3C31;
    color: var(--color-white);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s var(--bezier);
    box-shadow: 0 10px 25px rgba(74, 60, 49, 0.15);
}

.trends-book-btn:hover {
    background-color: var(--color-matcha);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(164, 198, 57, 0.25);
}

/* Cover / Back cover covers styling */
.sheet-side.cover-page {
    background: linear-gradient(135deg, #FCF9F6 0%, #F5EFEB 100%);
    border-left: 5px solid #E3D4C7; /* Simulated hardcover spine binding */
}

.sheet-side.back-page {
    background: linear-gradient(135deg, #F5EFEB 0%, #FCF9F6 100%);
    border-right: 5px solid #E3D4C7;
}

/* Controls */
.magazine-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 3rem;
    position: relative;
    z-index: 5;
}

.mag-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(74, 54, 40, 0.15); /* Light chestnut fill */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 54, 40, 0.3);
    padding: 0.9rem 1.6rem;
    border-radius: 50px;
    color: #4A3C31;
    font-family: var(--font-sans);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s var(--bezier);
}

.mag-nav-btn:hover:not(:disabled) {
    background: #4A3C31;
    color: var(--color-white);
    border-color: #4A3C31;
    transform: translateY(-2px);
}

.mag-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.mag-indicator {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.95rem;
    color: #7A6A5E;
}

.mag-indicator span {
    font-weight: 600;
    color: #4A3C31;
}

/* Mobile Responsive Book Structure (Native Slider) */
@media(max-width: 768px) {
    .magazine-wrapper {
        height: auto;
        margin: 2rem auto;
        position: relative; /* For absolute positioning of buttons */
    }
    
    .book {
        width: 100vw !important;
        height: auto !important;
        transform: none !important;
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 0 !important;
        /* Pull book out of parent padding to touch screen edges */
        margin-left: -5vw;
        padding-bottom: 2rem;
    }
    
    .book::-webkit-scrollbar {
        display: none; /* Hide scrollbar */
    }
    
    .book-sheet {
        position: relative !important;
        transform: none !important;
        display: contents !important; /* Flatten DOM hierarchy so sheet-sides are direct flex children */
        z-index: 1 !important;
    }
    
    .sheet-side {
        position: relative !important;
        transform: none !important;
        display: flex !important; /* Show ALL pages natively side by side */
        flex-direction: column;
        opacity: 1 !important;
        min-width: 100vw !important; /* Each page takes full screen */
        scroll-snap-align: center;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #FCFBF9;
        border: none !important;
    }
    
    .page-content {
        padding: 3rem 1.5rem !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        flex: 1; /* Permite que el contenido se estire para igualar páginas altas */
        justify-content: center; /* Centra el contenido verticalmente en páginas cortas como la portada */
    }
    
    .mag-title {
        font-size: 2.8rem;
    }
    
    .page-num {
        position: static;
        margin-top: 1rem;
    }
    
    /* Overlay controls ON the pages */
    .magazine-controls {
        position: absolute;
        top: 50%;
        left: -2vw;
        width: calc(100% + 4vw);
        transform: translateY(-50%);
        justify-content: space-between !important;
        pointer-events: none; /* Let touches pass through to swipe */
        z-index: 20;
    }
    
    .mag-nav-btn {
        pointer-events: auto; /* Re-enable clicks for buttons */
        background: rgba(255, 255, 255, 0.9) !important;
        border-radius: 50% !important;
        width: 45px;
        height: 45px;
        padding: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0 !important; /* Hide text, show only SVG */
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
        border: none !important;
    }
    
    .mag-nav-btn svg {
        margin: 0 !important; /* Reset margins */
    }
    
    .mag-indicator {
        display: none !important; /* Hide text indicator on mobile */
    }
}
.main-header {
    position: fixed;
    top: 60px; /* Floats perfectly below the top ticker wrap */
    left: 0;
    width: 100%;
    padding: 0 5vw;
    z-index: 150;
    pointer-events: none; /* Allows scrolling background, clicks bypass to page */
    transition: transform 0.4s var(--bezier), opacity 0.4s var(--bezier), top 0.4s var(--bezier);
}

.nav-capsule {
    pointer-events: auto; /* Re-enable clicks on the capsule navbar itself */
    margin: 0 auto;
    max-width: 1100px;
    height: 64px;
    background: var(--color-pink); /* Solid warm rose pink */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1.5px solid rgba(189, 181, 123, 0.4); /* Pastel olive green accent border (#BDB57B) */
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 
                0 10px 20px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.nav-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
}

.nav-social {
    color: #4A3628;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.3s ease;
    cursor: none;
}

.nav-social:hover {
    color: var(--color-white);
    transform: translateY(-2px) scale(1.1);
}

.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 3rem;
}

/* Links & Logo Styles */
.nav-link {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #4A3628; /* Chestnut brown */
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    cursor: none;
}

.nav-link:hover {
    color: var(--color-white);
    transform: translateY(-1px);
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #4A3628; /* Chestnut brown */
    text-decoration: none;
    transition: transform 0.3s var(--bezier), color 0.3s var(--bezier);
    cursor: none;
}

.nav-logo:hover {
    transform: scale(1.05);
    color: var(--color-avela-cream);
}

.nav-cta {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4A3C31; /* Deep Espresso Brown */
    background-color: var(--color-avela-cream);
    padding: 0.75rem 1.6rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s var(--bezier);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    cursor: none;
}

.nav-cta:hover {
    background-color: var(--color-white);
    color: var(--color-text-inverse);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Responsive capsule adjustments for tablet/mobile */
@media(max-width: 768px) {
    .main-header {
        top: 60px !important; /* Keep floating static relative below mobile ticker wrap */
        padding: 0 3vw;
    }
    
    .nav-capsule {
        padding: 0 1.2rem;
        height: 52px;
        border-radius: 30px;
    }
    
    .nav-link {
        font-size: 0.72rem;
        letter-spacing: 0.1em;
    }
    
    .nav-logo {
        font-size: 1.45rem;
    }
    
    .nav-cta {
        font-size: 0.68rem;
        padding: 0.5rem 1rem;
    }
    
    .nav-right {
        gap: 1rem;
    }

    /* Beautiful responsive improvements for the Estética del Sabor frame animation on mobile */
    .cafe-panel {
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 2rem !important;
        padding: 2rem !important;
    }
    
    .cafe-frames-wrapper {
        width: 80vw !important;
        max-width: 450px !important;
        min-width: 240px !important;
        aspect-ratio: 16/9 !important;
    }
    
    .content-block.text-left {
        padding: 2.5rem !important;
        max-width: 100% !important;
        text-align: center !important;
    }
    
    .content-block.text-left .subtitle {
        margin: 0 auto 1.5rem auto !important;
    }
    
    .chic-menu li {
        padding: 1rem 0 !important;
    }
}

/* Extended Colors Modal */
.explore-more-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.4);
    color: var(--color-text-inverse);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    cursor: none;
    backdrop-filter: blur(5px);
    transition: all 0.3s var(--bezier);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.explore-more-btn:hover {
    background: var(--color-white);
    color: #000;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.colors-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--bezier);
}

.colors-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.colors-modal-content {
    width: 90%;
    max-width: 1100px;
    height: 85vh;
    background: rgba(244, 235, 225, 0.95); /* Avela cream with transparency */
    border-radius: 40px;
    padding: 3rem;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.5);
    transform: translateY(50px) scale(0.95);
    transition: all 0.5s var(--bezier);
}

.colors-modal-overlay.active .colors-modal-content {
    transform: translateY(0) scale(1);
}

.colors-modal-close {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--color-text-inverse);
    cursor: none;
    transition: transform 0.3s ease;
}

.colors-modal-close:hover {
    transform: rotate(90deg) scale(1.1);
}

.colors-search-container {
    position: relative;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 400px;
}

#colors-search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    padding-left: 3rem;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.6);
    font-family: var(--font-sans);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    cursor: none;
    color: var(--color-text-inverse);
}

#colors-search-input:focus {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--color-matcha);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
}

.colors-grid-container {
    flex: 1;
    overflow-y: auto;
    padding-right: 1rem;
}

/* Custom Scrollbar */
.colors-grid-container::-webkit-scrollbar {
    width: 8px;
}
.colors-grid-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}
.colors-grid-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1.5rem;
    padding-bottom: 2rem;
}

.color-card {
    background: var(--color-white);
    border-radius: 20px;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    transition: all 0.4s var(--bezier);
    cursor: none;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.color-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.color-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.color-swatch {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 14px;
    margin-bottom: 0.8rem;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.4s ease;
}

.color-card:hover .color-swatch {
    transform: scale(1.05);
}

.color-name {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-text-inverse);
    text-align: center;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.color-hex {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
}

@media(max-width: 768px) {
    .colors-modal-content {
        width: 95%;
        padding: 2rem;
        height: 90vh;
    }
    .colors-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 1rem;
    }
}

/* MODULE 5: Testimonials */
.testimonials-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.border-pill {
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--color-text-inverse);
    display: inline-block;
}

.testimonials-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    height: 750px;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    /* Circular masking for smooth fade in all directions */
    mask-image: radial-gradient(100% 50% at 50% 50%, black 85%, transparent 100%);
    -webkit-mask-image: radial-gradient(100% 50% at 50% 50%, black 85%, transparent 100%);
}

.testimonial-col {
    display: flex;
    flex-direction: column;
    width: 340px;
}

.testimonial-track {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
}

/* Animations */
.col-slow .testimonial-track {
    animation: marquee-y 12s linear infinite;
}

.col-medium .testimonial-track {
    animation: marquee-y 16s linear infinite;
}

.col-fast .testimonial-track {
    animation: marquee-y 9s linear infinite;
}

/* Pause on hover */
.testimonial-col:hover .testimonial-track {
    animation-play-state: paused;
}

@keyframes marquee-y {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%); /* 50% because we duplicated the content */
    }
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    color: var(--color-text-inverse);
    font-family: var(--font-sans);
    cursor: none;
    transition: transform 0.4s var(--bezier), background 0.4s var(--bezier);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.75);
    transform: scale(1.03);
}

.testimonial-card p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.t-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.t-author img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-white);
}

.t-info {
    display: flex;
    flex-direction: column;
}

.t-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.t-role {
    font-size: 0.8rem;
    opacity: 0.7;
}

@media(max-width: 1024px) {
    .hidden-lg {
        display: none !important;
    }
    .testimonials-container {
        gap: 2rem;
    }
}

@media(max-width: 768px) {
    .hidden-md {
        display: none !important;
    }
    .testimonials-container {
        height: 500px;
    }
    .testimonial-col {
        width: 100%;
        max-width: 350px;
    }
    .testimonial-card {
        padding: 2rem;
    }
}

/* Expandable Services Card */
.expandable-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: all 0.3s var(--bezier);
}

.info-header-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.info-header-row .info-text {
    flex: 1;
}

.btn-servicios {
    background: var(--color-pink);
    color: var(--color-text-inverse);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s var(--bezier);
}

.btn-servicios:hover {
    background: var(--color-matcha-light);
    transform: translateY(-2px);
}

.btn-servicios .arrow {
    transition: transform 0.3s var(--bezier);
    display: inline-block;
}

.expandable-item.open .btn-servicios .arrow {
    transform: rotate(180deg);
}

.services-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--bezier), margin-top 0.3s var(--bezier), opacity 0.3s var(--bezier);
    opacity: 0;
    margin-top: 0;
}

.expandable-item.open .services-dropdown {
    max-height: 800px; /* Increased to accommodate the full list of 11 services */
    margin-top: 1.5rem;
    opacity: 1;
}

.services-dropdown ul {
    list-style: none;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.services-dropdown li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.95rem;
    font-family: var(--font-sans);
}

.services-dropdown li strong {
    color: var(--color-text-inverse);
    font-weight: 600;
}

@keyframes pointRight {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(6px);
    }
}

/* NEW BOOK STYLES */
.image-grid-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
    transition: all 0.5s var(--bezier);
}

.mini-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.5s var(--bezier);
    cursor: pointer;
}

.heart-btn {
    margin-top: 30px;
    background: transparent;
    border: none;
    color: #ba122b;
    cursor: pointer;
    transition: transform 0.3s var(--bezier);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 10;
}

.heart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    width: 100%;
    position: relative;
    z-index: 10;
}

.heart-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #ba122b;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
    opacity: 0.8;
}

.bounce-arrow {
    animation: bounceDown 1.5s infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.heart-btn svg {
    width: 40px;
    height: 40px;
    fill: transparent;
    transition: fill 0.3s var(--bezier), transform 0.3s var(--bezier);
}

.heart-btn:hover svg {
    transform: scale(1.1);
}

.heart-btn.active svg {
    fill: #ba122b;
}

/* Gallery Popup styles */
.gallery-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    max-width: 900px;
    background: rgba(255,255,255,0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--bezier);
}

.gallery-popup.active {
    opacity: 1;
    pointer-events: auto;
    animation: popIn 0.5s var(--bezier) forwards;
}

.image-grid-large {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.large-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.close-gallery-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: #ba122b;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s var(--bezier);
    z-index: 10000;
}

.close-gallery-btn:hover {
    transform: scale(1.1) rotate(90deg);
}

@keyframes popIn {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.overlay-dark {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.7);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--bezier);
}
.overlay-dark.active {
    opacity: 1;
    pointer-events: auto;
}

/* Artistic Golden Waves Background */
.golden-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.8; /* Adjust overall intensity of the waves */
}

.golden-waves svg {
    width: 100%;
    height: 100%;
}

/* MODULE 2.8: Scroll Video Sequence */
.scroll-video-container {
    position: relative;
    width: 100%;
    height: 150vh; /* Further reduced scroll distance so it takes less space */
    background: transparent;
    margin-top: -20vh; /* Recorta el espacio en blanco con la sección de arriba */
    margin-bottom: -25vh; /* Recorta el espacio en blanco con la sección de abajo */
}

.scroll-video-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh; /* Forces the scroll to "lock" on the screen while the animation finishes */
    display: flex;
    justify-content: center;
    align-items: center; /* Center perfectly while the screen is locked */
    overflow: hidden;
}

/* Gradient overlay to seamlessly blend the bottom of the video into the background */
.scroll-video-sticky::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10vh; /* Increased for more blur area */
    background: linear-gradient(to bottom, transparent, var(--color-bg));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    mask-image: linear-gradient(to bottom, transparent, black);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black);
    pointer-events: none;
    z-index: 2;
}

#scroll-video-canvas {
    width: 55vw; /* Increased size based on feedback */
    max-width: 900px; 
    height: auto; /* CRITICAL: Override global height: 100% so aspect-ratio works */
    aspect-ratio: 16/9;
    object-fit: cover; 
    object-position: center;
    border-radius: 24px;
    border: none;
    background: transparent;
    
    /* Blur/fade all four edges so it blends seamlessly */
    -webkit-mask-image: 
        linear-gradient(to right, transparent 0%, black 18%, black 82%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
    -webkit-mask-composite: source-in;
    
    mask-image: 
        linear-gradient(to right, transparent 0%, black 18%, black 82%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
    mask-composite: intersect;
}

/* Decorative corners for the video section */
.scroll-video-symbol {
    position: absolute;
    top: 5vh;
    left: 4vw;
    font-size: 2rem;
    color: var(--color-white);
    z-index: 10;
    opacity: 0.9;
    pointer-events: none;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.scroll-video-logo {
    position: absolute;
    bottom: 4vh;
    right: 4vw;
    font-size: 2.5rem;
    font-family: var(--font-serif);
    font-style: italic;
    color: #4A3628; /* Castaño / Chestnut brown */
    z-index: 10;
    opacity: 0.9;
    pointer-events: none;
    text-shadow: 0 1px 5px rgba(255,255,255,0.3);
}

/* ==========================================================================
   AURA MOBILE OPTIMIZATION (PREMIUM RESPONSIVE)
   ========================================================================== */
@media (max-width: 768px) {
    /* Prevent touch highlight and hover sticking on mobile */
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Smooth Reveal Overrides for Mobile */
    .reveal {
        transform: translateY(30px);
    }
    .reveal-grand {
        transform: translateY(40px) scale(0.98);
        border-radius: 40px !important;
    }
    .reveal-item {
        transform: translateY(20px);
    }
    /* Global Resets */
    html, body {
        overflow-x: hidden;
        width: 100vw !important;
        max-width: 100% !important;
    }
    .app-container {
        overflow-x: hidden !important;
        width: 100vw !important;
        max-width: 100% !important;
    }
    
    /* Typography */
    h1, .logo-aura {
        font-size: clamp(3rem, 15vw, 4.5rem) !important;
        line-height: 1.1 !important;
    }
    h2 {
        font-size: clamp(2rem, 10vw, 2.5rem) !important;
        line-height: 1.2 !important;
    }
    .subtitle {
        font-size: 1rem !important;
        padding: 0 1rem !important;
        line-height: 1.5 !important;
    }

    /* Navigation */
    .nav-capsule {
        padding: 0.8rem 1rem !important;
        gap: 0.5rem !important;
        width: 95vw !important;
        max-width: 100% !important;
    }
    .nav-left .nav-link {
        display: none !important; /* Hide menu text on mobile */
    }
    .nav-center .nav-logo {
        font-size: 1.5rem !important;
    }
    .nav-right > div {
        display: none !important; /* Hide Conócenos text wrapper to prevent overlap */
    }
    .nav-right .nav-cta {
        padding: 0.6rem 1rem !important;
        font-size: 0.75rem !important;
    }
    .nav-left .nav-social {
        display: flex !important;
    }

    /* Hero Section */
    .sticky-hero {
        padding: 15vh 1rem 4rem 1rem !important; /* Start from top to prevent logo cut-off */
        height: auto !important;
        min-height: calc(100vh + 80px) !important; /* Forces the next section entirely off-screen, compensating for the -60px margin-top */
        justify-content: flex-start !important; /* Prevent centering from pushing content off the top */
    }
    .hero-content {
        flex-direction: column !important;
        text-align: center !important;
        gap: 2rem !important;
        padding-top: 4rem !important;
    }
    .logo-container {
        margin-top: 0 !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    .hero-divider {
        margin: 1.5rem auto !important;
    }
    .floating-widget {
        width: 90vw !important;
        max-width: 350px !important;
    }
    
    /* Interactive Nails & Colors */
    .panel {
        padding: 4rem 1rem !important;
    }
    #interactive-nails {
        padding-top: 6rem !important;
        padding-bottom: 6rem !important;
        border-radius: 40px !important;
        margin-top: -30px !important;
    }
    .interactive-nails-wrapper {
        flex-direction: column !important;
        gap: 2.5rem !important;
        padding-left: 0 !important;
        align-items: center !important;
    }
    .nails-display {
        width: 90vw !important;
        max-width: 350px !important;
        margin: 0 auto !important;
        padding: 0.4rem !important;
        border-radius: 30px !important;
    }
    .nails-base-image, .nails-video {
        border-radius: 26px !important;
    }
    .color-selector-container {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.5rem !important;
    }
    .color-selector {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    .colors-indicator {
        transform: rotate(0) !important;
        writing-mode: horizontal-tb !important;
        flex-direction: column !important;
    }
    .colors-line {
        width: 80px !important;
        height: 2px !important;
        background: linear-gradient(to right, var(--color-text-inverse), transparent) !important;
        animation: none !important;
    }

    /* Magazine */
    .magazine-wrapper {
        transform: scale(0.65) !important;
        margin-top: -3rem !important;
        margin-bottom: -3rem !important;
        max-width: 100vw !important;
    }
    /* Make inner pages smaller than the cover (capa y contracapa) on mobile */
    .sheet-side:not(.cover-page):not(.back-page) {
        height: 94% !important;
        top: 3% !important;
        width: 95% !important;
        left: 0 !important;
    }
    .trends-container {
        padding: 0 0.5rem !important;
        overflow: hidden !important;
        width: 100vw !important;
    }

    /* Horizontal Sections (Nail Lab & Cafe) -> Vertical Stack */
    #horizontal-spacer {
        height: auto !important;
    }
    .horizontal-sticky {
        position: relative !important;
        height: auto !important;
        overflow: visible !important;
    }
    .horizontal-content {
        width: 100% !important;
        flex-direction: column !important;
        transform: none !important;
        gap: 0 !important;
        height: auto !important;
    }
    .h-panel {
        width: 100vw !important;
        height: auto !important;
        padding: 4rem 1.5rem !important;
        animation: none !important;
        min-height: auto !important;
    }
    .cafe-panel {
        width: 100vw !important;
        display: block !important;
        padding: 4rem 1.5rem 0 !important;
        height: auto !important; /* Removed locked animation height to let it flow naturally */
    }
    
    .content-block, .glass-card {
        width: 100% !important;
        padding: 2.5rem 1.5rem !important;
        border-radius: 24px !important;
    }
    .content-block h2, .glass-card h2 {
        font-size: 2.5rem !important;
    }
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .cafe-frames-wrapper {
        width: 100% !important;
        max-width: 550px !important; /* Extremely large size */
        margin: -3rem auto 0 auto !important; /* Negative top margin to reduce space */
        position: relative !important; /* Removes the sticky lock */
        top: auto !important; /* Reset top since it's no longer sticky */
        height: 75vh !important; /* Massive height taking up most of the screen */
        display: flex;
        justify-content: center;
        align-items: center;
    }
    #cafe-frames-canvas {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }

    /* Booking Section */
    .booking-info-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .cute-booking-card {
        padding: 2.5rem 1.5rem !important;
        width: 90vw !important;
        border-radius: 24px !important;
    }
    
    /* Conocenos (About) Page */
    #conocenos {
        padding: 6rem 1.5rem !important;
        margin-top: 3rem !important;
    }
    .conocenos-container h2 {
        font-size: 2.8rem !important;
    }
    .conocenos-container p {
        font-size: 1.05rem !important;
        text-align: left !important;
        text-align-last: left !important;
    }
    
    /* Scroll Video Section */
    .scroll-video-container {
        height: auto !important; /* No longer pinned */
        padding: 4rem 0 !important;
    }
    .scroll-video-sticky {
        position: relative !important;
        height: 65vh !important; /* Slightly smaller to fit entirely on screen */
        top: auto !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    #scroll-video-canvas {
        width: 100vw !important;
        height: 100% !important;
        object-fit: contain !important; /* Ensures the girl is completely visible and never cut off */
    }
    .scroll-video-symbol {
        top: 1rem !important;
        left: 1rem !important;
        font-size: 1.5rem !important;
    }
    .scroll-video-logo {
        bottom: 1rem !important;
        right: 1rem !important;
        font-size: 1.5rem !important;
    }
    
    /* Aesthetic Corners */
    .aura-corner-indicator {
        display: none !important; /* Hide aesthetic text corners on mobile to save space and reduce clutter */
    }
    
    /* ========================================= */
    /* TOTAL SCROLL LOCK REMOVAL FOR MOBILE      */
    /* Force fluid scrolling across all sections */
    /* ========================================= */
    .sticky-hero,
    .horizontal-sticky,
    .scroll-video-sticky,
    .cafe-frames-wrapper,
    .nails-sticky {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
    }
    
    #hero-spacer {
        height: auto !important;
        min-height: calc(100vh + 80px) !important;
    }

    #horizontal-spacer,
    .scroll-video-container,
    .cafe-panel,
    #interactive-nails {
        height: auto !important;
        min-height: 0 !important;
    }
}

/* Mobile Warning Overlay */
.mobile-warning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(189, 181, 123, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-in-out;
}
.mobile-warning-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.warning-content {
    background: var(--color-pink);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 40px;
    padding: 3rem 2rem;
    text-align: center;
    width: 85vw;
    max-width: 400px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.warning-title {
    font-size: 3rem;
    color: #4A3628;
    margin: 0;
    font-family: var(--font-serif);
}
.warning-text {
    font-size: 1.1rem;
    color: #4A3628;
    line-height: 1.6;
    opacity: 0.9;
}
.countdown-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: transparent;
    border: 3px solid #4A3628;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: #4A3628;
    margin: 1rem 0;
    animation: pulseWarning 1s infinite alternate;
}
@keyframes pulseWarning {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 54, 40, 0.4); }
    100% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(74, 54, 40, 0); }
}
.warning-sub {
    font-size: 0.85rem;
    color: #4A3628;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
}
