:root {
    /* Color Palette - Earthy & Premium */
    --color-primary: #333333;
    /* Sophisticated Graphite */
    --color-primary-rgb: 51, 51, 51;
    --color-secondary: #1A1A1A;
    /* Deeper Charcoal */
    --color-accent: #888888;
    /* Soft Slate/Silver Accent */
    --color-bg: #f5f5f5;
    /* Premium Light Gray */
    --color-bg-rgb: 245, 245, 245;
    --color-text: #1A1A1A;
    --color-text-light: #555555;
    --color-white: #FFFFFF;

    /* Typography */
    --font-heading: 'Poiret One', cursive;
    --font-body: 'Poiret One', cursive;

    /* Spacing */
    --section-padding: 160px 10%;
    --container-width: 1400px;

    /* Transitions */
    --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: all 2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Utility Classes */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

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

    .mobile-only {
        display: block;
    }
}

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

html {
    scroll-behavior: smooth;
}



/* Base Form Styles for subpages */
input,
textarea {
    outline: none;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

input:focus,
textarea:focus {
    border-color: var(--color-primary) !important;
}

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

h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 300;
    letter-spacing: 1.5px;
    line-height: 1.2;
    color: var(--color-secondary);
}

h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-weight: 300;
    letter-spacing: 1.2px;
    line-height: 1.35;
    color: var(--color-secondary);
}

h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.3;
    color: var(--color-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 14px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
    transition: var(--transition-smooth);
}

nav.scrolled,
nav:not(.index-nav) {
    background: rgba(var(--color-bg-rgb), 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 4%;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 48px;
    width: auto;
    max-height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    transition: var(--transition-smooth);
    filter: none;
    /* Black by default */
}

/* White logo ONLY on transparent index nav */
nav.index-nav:not(.scrolled) .logo img {
    height: 54px;
    max-height: 54px;
    filter: brightness(0) invert(1);
}

nav.scrolled .logo img,
nav:not(.index-nav) .logo img {
    height: 44px;
    max-height: 44px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.4vw, 20px);
    flex-wrap: nowrap;
}

/* Reduce gap when glassmorphism adds padding */
nav.index-nav:not(.scrolled) .nav-links {
    gap: clamp(5px, 0.7vw, 10px);
}

.nav-links a {
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    position: relative;
    color: var(--color-secondary);
    /* Dark by default */
    transition: var(--transition-smooth);
    display: inline-block;
    white-space: nowrap;
}

@media (min-width: 993px) {
    /* White links ONLY on transparent index nav on desktop */
    nav.index-nav:not(.scrolled) .nav-links a {
        color: var(--color-white);
    }

    /* Glassmorphism Button Style ONLY on transparent index nav on desktop */
    nav.index-nav:not(.scrolled) .nav-links a:not(.btn-nav-cta) {
        padding: 9px 18px;
        font-size: 0.85rem;
        background: rgba(255, 255, 255, 0.1);
        border: 1.5px solid rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 25px;
    }

    nav.index-nav:not(.scrolled) .nav-links a:not(.btn-nav-cta):hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.6);
    }

    nav.index-nav:not(.scrolled) .nav-links li a.active:not(.btn-nav-cta) {
        background: rgba(255, 255, 255, 0.25);
        border-color: var(--color-white);
    }

    nav.index-nav:not(.scrolled) .nav-links a.btn-nav-cta {
        padding: 9px 20px;
        font-size: 0.85rem;
    }
}

/* Active color logic */
nav:not(.index-nav) .nav-links li a.active,
nav.scrolled .nav-links li a.active {
    color: var(--color-primary);
}

/* Nav CTA Button */
.nav-cta-item {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-links a.btn-nav-cta {
    background: var(--color-white);
    color: #000000 !important;
    text-shadow: none;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.80rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    white-space: nowrap;
    transition: var(--transition-smooth);
    border: 1.5px solid transparent;
}

.nav-links a.btn-nav-cta:hover {
    background: transparent;
    color: var(--color-white) !important;
    border-color: var(--color-white);
}

nav.scrolled .nav-links a.btn-nav-cta,
nav:not(.index-nav) .nav-links a.btn-nav-cta {
    background: #000000;
    color: var(--color-white) !important;
}

nav.scrolled .nav-links a.btn-nav-cta:hover,
nav:not(.index-nav) .nav-links a.btn-nav-cta:hover {
    background: transparent;
    color: #000000 !important;
    border-color: #000000;
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: var(--color-white);
    margin: 3px 0;
    transition: var(--transition-smooth);
}

nav.scrolled .bar,
nav:not(.index-nav) .bar {
    background-color: var(--color-secondary);
}

/* Hamburger Animation to X */
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Underline effect for standard text links */
.nav-links a:not(.btn-nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: var(--transition-smooth);
}

.nav-links a:not(.btn-nav-cta):hover::after {
    width: 100%;
}

/* Hide underline when glassmorphism is active */
nav.index-nav:not(.scrolled) .nav-links a:not(.btn-nav-cta)::after {
    display: none;
}

.mobile-logo-item {
    display: none;
    margin-bottom: 20px;
}

.mobile-menu-logo {
    height: 80px;
    filter: none !important;
}

/* ==========================================================================
   Language Selector Component
   ========================================================================== */
.lang-selector-item {
    position: relative;
    list-style: none;
    margin-left: 6px;
    display: flex;
    align-items: center;
}

.lang-selector {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--color-white);
    padding: 8px 14px;
    border-radius: 25px;
    font-family: var(--font-primary);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

@media (min-width: 993px) {
    nav.index-nav:not(.scrolled) .lang-btn {
        padding: 9px 16px;
        font-size: 0.85rem;
        background: rgba(255, 255, 255, 0.1);
        border: 1.5px solid rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 25px;
        color: var(--color-white);
    }

    nav.index-nav:not(.scrolled) .lang-btn:hover,
    nav.index-nav:not(.scrolled) .lang-selector.open .lang-btn {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.6);
        color: var(--color-white) !important;
    }

    nav.index-nav:not(.scrolled) .lang-dropdown {
        background: rgba(20, 20, 20, 0.75);
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        border: 1.5px solid rgba(255, 255, 255, 0.22);
        border-radius: 20px;
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    }
}

nav.scrolled .lang-btn,
nav:not(.index-nav) .lang-btn {
    background: rgba(0, 0, 0, 0.04);
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--color-secondary);
    border-radius: 25px;
    padding: 8px 14px;
}

nav.scrolled .lang-btn:hover,
nav:not(.index-nav) .lang-btn:hover,
nav.scrolled .lang-selector.open .lang-btn,
nav:not(.index-nav) .lang-selector.open .lang-btn {
    background: rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary);
    color: var(--color-primary) !important;
}

.lang-btn i.fa-globe {
    font-size: 0.85rem;
}

.lang-arrow {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
}

.lang-selector.open .lang-arrow {
    transform: rotate(180deg);
}

/* Floating Glass Dropdown */
.lang-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 10px;
    min-width: 255px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14), inset 0 1px 1px rgba(255, 255, 255, 0.9);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.97);
    transform-origin: top right;
    transition: opacity 0.22s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.22s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
}

.lang-selector.open .lang-dropdown,
.lang-selector:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.lang-dropdown li {
    margin: 0;
    padding: 0;
}

.lang-dropdown li:last-child {
    grid-column: span 2;
}

/* Miniature Glass Pills inside dropdown */
.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: var(--font-primary);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.6px;
    color: var(--color-secondary) !important;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-dropdown a::after {
    display: none !important;
}

.lang-dropdown li:last-child a {
    justify-content: center;
}

.lang-code {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 2px 5px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--color-secondary);
    transition: all 0.2s ease;
}

.lang-name {
    font-size: 0.78rem;
}

/* Hover state */
.lang-dropdown a:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary);
    color: var(--color-primary) !important;
    transform: translateY(-1px);
}

/* Active state */
.lang-dropdown a.active {
    background: rgba(197, 160, 89, 0.15);
    border-color: var(--color-primary);
    color: var(--color-primary) !important;
}

.lang-dropdown a.active .lang-code {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

/* Transparent index nav desktop styles for dropdown pills */
@media (min-width: 993px) {
    nav.index-nav:not(.scrolled) .lang-btn,
    nav.index-nav:not(.scrolled) .lang-btn:hover,
    nav.index-nav:not(.scrolled) .lang-btn:focus,
    nav.index-nav:not(.scrolled) .lang-btn:active,
    nav.index-nav:not(.scrolled) .lang-selector.open .lang-btn {
        color: #ffffff !important;
    }

    nav.index-nav:not(.scrolled) .lang-btn * {
        color: #ffffff !important;
    }

    nav.index-nav:not(.scrolled) .lang-dropdown a {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.18);
        color: #ffffff !important;
    }

    nav.index-nav:not(.scrolled) .lang-dropdown a * {
        color: #ffffff !important;
    }

    nav.index-nav:not(.scrolled) .lang-dropdown .lang-code {
        background: rgba(255, 255, 255, 0.14);
        border: 1px solid rgba(255, 255, 255, 0.28);
        color: #ffffff !important;
    }

    nav.index-nav:not(.scrolled) .lang-dropdown a:hover {
        background: rgba(255, 255, 255, 0.24);
        border-color: rgba(255, 255, 255, 0.6);
        color: #ffffff !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    }

    nav.index-nav:not(.scrolled) .lang-dropdown a:hover * {
        color: #ffffff !important;
    }

    nav.index-nav:not(.scrolled) .lang-dropdown a.active {
        background: rgba(197, 160, 89, 0.4);
        border-color: var(--color-primary);
        color: #ffffff !important;
        box-shadow: 0 0 16px rgba(197, 160, 89, 0.45);
    }

    nav.index-nav:not(.scrolled) .lang-dropdown a.active * {
        color: #ffffff !important;
    }

    nav.index-nav:not(.scrolled) .lang-dropdown a.active .lang-code {
        background: var(--color-primary);
        color: #ffffff !important;
        font-weight: 800;
        border-color: var(--color-primary);
    }
}

/* Mobile Language Bar (Top of Drawer) */
.mobile-lang-wrapper {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

@media (max-width: 900px) {
    .lang-selector-item {
        display: none !important;
    }

    .mobile-lang-wrapper {
        display: flex !important;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: -10px;
        margin-bottom: 8px;
    }

    .mobile-lang-bar {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        padding: 4px 6px;
        border-radius: 30px;
        background: rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.09);
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
        max-width: 94%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-lang-icon {
        color: #777777;
        font-size: 0.75rem;
        padding: 0 4px;
        display: flex;
        align-items: center;
    }

    .mobile-lang-bar a.mobile-lang-chip {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 5px 9px !important;
        border-radius: 16px !important;
        font-family: var(--font-primary) !important;
        font-size: 0.74rem !important;
        font-weight: 600 !important;
        letter-spacing: 0.8px !important;
        text-transform: uppercase !important;
        text-decoration: none !important;
        text-shadow: none !important;
        color: #333333 !important;
        background: transparent !important;
        border: 1px solid transparent !important;
        line-height: 1 !important;
        min-width: 28px !important;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .mobile-lang-bar a.mobile-lang-chip::after {
        display: none !important;
    }

    .mobile-lang-bar a.mobile-lang-chip:hover {
        background: rgba(0, 0, 0, 0.07) !important;
        color: #000000 !important;
    }

    .mobile-lang-bar a.mobile-lang-chip.active {
        background: #000000 !important;
        color: #ffffff !important;
        border-color: #000000 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    }
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    height: 100dvh;
    /* Modern mobile browsers */
    display: flex;
    flex-direction: column;
    /* Ensure vertical stack */
    justify-content: center;
    /* Center vertically */
    align-items: center;
    /* Center horizontally */
    text-align: center;
    /* Center text */
    padding: 0 5%;
    position: relative;
    overflow: hidden;
    background: #000;
}

/* --- Hero Award Seal --- */
.hero-award-seal {
    position: absolute;
    top: 21vh;
    /* Alineado con Luzia Lamps */
    right: 14%;
    /* Un poco más a la derecha */
    left: auto;
    z-index: 20;
    width: 160px;
    height: 160px;
    opacity: 0;
    transition: all var(--transition-smooth);
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.2s;
}

.hero-award-seal:hover {
    transform: scale(1.05);
}

.hero-award-seal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.4));
}

@media (max-width: 1024px) {
    .hero-award-seal {
        width: 110px;
        height: 110px;
        top: 15px;
        /* Arriba del todo */
        left: 0;
        right: 0;
        margin: 0 auto;
    }

    .hero-award-seal:hover {
        transform: scale(1.05);
    }
}

.hero-story-trigger {
    position: absolute;
    inset: 0;
    z-index: 5;
    cursor: pointer;
    display: block;
}

.hero-image-container {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 2;
    pointer-events: none;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--color-white);
    max-width: 800px;
    margin-top: 40px;
    /* Moved slightly higher for desktop balance */
    width: 100%;
    padding: 0 20px;
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(2.6rem, 7vw, 4.2rem);
    margin-bottom: 24px;
    font-weight: 300;
    letter-spacing: 2px;
    line-height: 1.15;
    color: var(--color-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.5s;
}

.hero p {
    font-size: 0.9rem;
    /* Slightly smaller for elegance */
    margin-bottom: 40px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 4px;
    /* Slightly reduced for legibility */
    color: rgba(255, 255, 255, 0.9);

    /* Glass Box Effect */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 28px;
    border-radius: 50px;
    display: inline-block;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.8s;
}

.hero-hint {
    position: relative;
    z-index: 10;
    color: var(--color-white);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    pointer-events: auto;
    cursor: pointer;
    font-weight: 500;

    /* Sleek Glassmorphism Chip Style */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 10px 22px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-hint:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(0) scale(1.05);
    /* Maintain vertical alignment while scaling */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

@media (min-width: 1025px) {
    .hero-hint {
        position: absolute;
        bottom: 35px;
        /* Lowered for better framing */
        right: 5%;
        margin: 0;
        letter-spacing: 2px;
        opacity: 0.75;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .hero-hint::after {
        display: none;
    }

    .hero-hint:hover {
        opacity: 1;
        transform: scale(1.05);
    }
}

.hero-hint i {
    display: inline-block;
    color: var(--color-white);
    font-size: 0.85rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-hint:hover i {
    transform: rotate(-12deg) scale(1.15);
}

@media (max-width: 768px) {
    .hero-hint {
        font-size: 0.65rem;
        padding: 8px 18px;
        letter-spacing: 1.5px;
        margin-top: 20px;
        max-width: 90%;
    }
}

.btn {
    display: inline-block;
    padding: 20px 50px;
    background: rgba(255, 255, 255, 0.15);
    /* Slightly darker glass for contrast */
    color: var(--color-white);
    font-size: 0.95rem;
    /* Increased size */
    font-weight: 600;
    /* Bolder text */
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: none;
    /* Removed blur effect */
    border: 3px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 20;
    /* Ensure button is above the story trigger */
    pointer-events: auto;
    /* Ensure button is clickable */
}

.btn:hover {
    background: var(--color-white);
    color: var(--color-secondary);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Dark Button for Light Backgrounds */
.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: var(--color-secondary);
    color: var(--color-white);
    transform: translateY(-3px);
}

.hero .btn {
    margin-top: 50px;
    /* Added more space to separate from the tagline */
    opacity: 0;
    transform: translateY(25px);
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 1s;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 22px 60px;
    font-size: 0.95rem;
    box-shadow: 0 10px 20px rgba(142, 91, 62, 0.2);
}

.btn-primary:hover {
    background: var(--color-secondary);
    color: var(--color-white);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* --- Hero Scroll Arrow --- */
.scroll-down-arrow {
    position: absolute;
    bottom: 80px;
    /* Safe clearance for iOS home indicator and Safari bars */
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-white);
    font-size: 2rem;
    z-index: 20;
    animation: bounce 2s infinite;
    opacity: 0.8;
}

.scroll-down-arrow:hover {
    opacity: 1;
    color: var(--color-white);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -15px);
    }

    60% {
        transform: translate(-50%, -7px);
    }
}

/* --- Shared Section Styles --- */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.section-header .line {
    width: 60px;
    height: 2px;
    background: var(--color-primary);
    margin: 0 auto;
}

/* --- About & Process --- */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.split-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.split-img {
    position: relative;
}

.split-img img {
    width: 100%;
    border-radius: 20px;
    transition: var(--transition-slow);
}

.split-img:hover img {
    /* transform: scale(1.02); removed as per user request */
}

/* --- Collections --- */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.collection-card {
    padding: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
    background: var(--color-white);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    /* When used as an <a> tag */
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.collection-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
    margin: 0;
    padding: 0;
    border-radius: 20px 20px 0 0;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img,
.gallery-item:hover video {
    /* transform: scale(1.05); removed as per user request */
}

.gallery-item-media {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    width: 100%;
}

.gallery-info {
    position: relative;
    padding: 15px 0 35px;
    background: transparent;
    color: var(--color-text);
    opacity: 1;
    transition: color 0.3s ease;
    pointer-events: none;
    z-index: 2;
    text-align: center;
}

.gallery-item:hover .gallery-info {
    color: var(--color-accent);
}

.gallery-info h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    font-weight: 400;
}

@media (max-width: 768px) {
    .gallery-info {
        padding: 10px 0 30px;
    }

    .gallery-info h3 {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }
}

.collection-info {
    padding: 20px 5px 5px 5px;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* If the collection-info is inside a featured/custom card (which has its own background), keep 30px padding */
.collection-card[style*="background"] .collection-info,
.collection-card--featured .collection-info,
.collection-card--custom .collection-info {
    padding: 30px;
}

.collection-info h3 {
    font-size: 1.5rem;
    color: var(--color-secondary);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    position: relative;
    display: inline-block;
}

.collection-info h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background: var(--color-primary);
    margin-top: 10px;
    transition: width 0.3s ease;
}

.collection-card:hover h3::after {
    width: 60px;
}

.collection-info p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-light);
    margin: 0;
}

.collection-cover-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    object-position: center 90%;
}

@media (min-width: 1025px) {
    .collection-cover-video {
        object-position: center 75%;
    }

    .collection-cover-img {
        object-position: center 70%;
    }
}

/* --- Testimonials --- */
.testimonials {
    background: var(--color-secondary);
    color: var(--color-white);
    padding: 120px 5%;
}

.testimonials h2 {
    color: var(--color-white);
    margin-bottom: 20px;
}

.reviews-summary {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.rating-number {
    font-size: 3rem;
    font-weight: 200;
}

.reviews-summary .stars {
    color: #FFD700;
    /* Classic Golden Stars */
    font-size: 1.2rem;
    letter-spacing: 5px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.reviews-count {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

.rating-note {
    font-size: 0.75rem;
    opacity: 0.5;
    max-width: 300px;
    line-height: 1.4;
    margin-top: 5px;
}

.slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 60px;
    padding: 10px 0;
}

.slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    gap: 30px;
}

.testimonial-item {
    flex: 0 0 calc(33.333% - 20px);
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--color-primary);
    border-radius: 20px;
    /* Brand Color Accent */
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.slider-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.slider-btn:hover {
    background: var(--color-white);
    color: var(--color-secondary);
    border-color: var(--color-white);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active {
    background: var(--color-primary);
    transform: scale(1.5);
}

@media (max-width: 1024px) {
    .testimonial-item {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .testimonial-item {
        flex: 0 0 100%;
    }
}

.testimonial-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.review-header .stars {
    color: #FFD700;
    font-size: 0.9rem;
}

.review-date {
    font-size: 0.75rem;
    opacity: 0.6;
    font-weight: 300;
}

.testimonial-item p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    font-style: normal;
    font-family: var(--font-body);
    opacity: 0.9;
}

.review-footer {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.testimonial-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-10px);
}

.testimonial-author {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--color-white);
}

.purchased-item {
    font-size: 0.75rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 300;
}

/* --- Final CTA --- */
.shopify-cta {
    background: var(--color-white);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    padding: 140px 5%;
    overflow: hidden;
}

.shopify-cta .section-header h2 {
    font-weight: 200;
    letter-spacing: 2px;
}

.shopify-cta p {
    font-weight: 300;
    letter-spacing: 0.5px;
}

.shopify-cta .btn-primary {
    transition: var(--transition-slow);
}

.shop-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.shop-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.6;
    color: var(--color-text-light);
}

.coming-soon-message {
    background: rgba(var(--color-primary-rgb), 0.05);
    border: 1px solid rgba(var(--color-primary-rgb), 0.1);
    padding: 30px;
    border-radius: 4px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.coming-soon-message h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.coming-soon-message p {
    font-size: 1.2rem;
    color: var(--color-secondary);
    font-weight: 300;
    font-style: italic;
}

/* --- Contact & Footer --- */
.footer {
    padding: 100px 5% 40px;
    background: var(--color-bg);
    border-top: 1px solid rgba(26, 26, 26, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
    text-align: left;
}

.footer-brand .footer-logo img {
    height: 80px;
    margin-bottom: 30px;
}

.footer-manifesto {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text-light);
    max-width: 350px;
    line-height: 1.6;
}

.footer-seal-container {
    margin-top: 25px;
}

.footer-seal {
    max-height: 70px;
    width: auto;
    display: inline-block;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.footer-seal:hover {
    transform: translateY(-2px) scale(1.03);
}


.footer h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    color: var(--color-secondary);
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    font-size: 0.95rem;
    color: var(--color-text-light);
    transition: var(--transition-smooth);
}

.footer-links ul li a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-contact p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.social-links {
    margin-top: 30px;
    display: flex;
    gap: 25px;
}

.social-icon {
    font-size: 1.4rem;
    color: var(--color-secondary);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    color: var(--color-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(26, 26, 26, 0.05);
    text-align: center;
}

.copyright {
    font-size: 0.8rem;
    color: var(--color-text-light);
    opacity: 0.6;
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .footer-brand,
    .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-manifesto {
        max-width: 100%;
    }

    .social-links {
        justify-content: center;
    }
}

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

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

.reveal {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    transition: none !important;
}

.reveal.active {
    opacity: 1;
}

/* Responsiveness */
/* Global Fluid Typography */
body {
    font-size: clamp(0.9rem, 1vw + 0.5rem, 1.1rem);
}

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.split-content h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Responsiveness Extensions */
@media (min-width: 1025px) {
    .hero {
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: 15vh;
        padding-left: 10%;
        height: 100vh;
        /* Restored to full screen height */
    }

    .hero::after {
        background: transparent;
    }

    .hero-img {
        object-position: center;
        /* Reset to center as requested */
        opacity: 1;
        /* Restored full opacity */
        z-index: 1;
    }

    .hero-content {
        text-align: left;
        max-width: 800px;
        padding: 0;
        z-index: 10;
    }

    .hero .btn {
        position: absolute;
        bottom: 100px;
        right: 8%;
        left: auto;
        z-index: 20;
    }
}

@media (max-width: 1180px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 80px 5% 0;
    }

    .hero-img {
        object-position: center top;
        opacity: 0.9;
    }

    .hero-content {
        padding: 0 20px;
        /* Centered padding */
        text-align: center;
        margin-top: 0px;
        margin-bottom: 60px;
        /* Lifted the button */
        z-index: 10;
        width: 100%;
    }

    .hero h1 {
        font-size: clamp(2.4rem, 12vw, 4.5rem);
        /* Proportional increase for mobile */
    }

    nav {
        padding: 15px 20px !important;
        align-items: flex-end !important;
    }

    nav.scrolled,
    nav:not(.index-nav) {
        padding: 12px 20px !important;
        align-items: flex-end !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: var(--color-bg) !important;
    }

    /* --- MOBILE DRAWER NAVIGATION (IDENTICAL ON ALL PAGES) --- */
    nav .nav-links,
    nav.index-nav .nav-links,
    .nav-links {
        position: fixed !important;
        right: -100% !important;
        top: 0 !important;
        height: 100vh !important;
        height: 100dvh !important;
        width: 100% !important;
        background: var(--color-bg) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: clamp(24px, 3.2vh, 34px) !important;
        padding: 95px 20px 70px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        transition: 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
        z-index: 1000 !important;
    }

    nav .nav-links.active,
    nav.index-nav .nav-links.active,
    .nav-links.active {
        right: 0 !important;
    }

    nav .nav-links a:not(.mobile-lang-chip),
    nav.index-nav .nav-links a:not(.mobile-lang-chip),
    nav.index-nav:not(.scrolled) .nav-links a:not(.mobile-lang-chip),
    nav.index-nav:not(.scrolled) .nav-links a:not(.btn-nav-cta):not(.mobile-lang-chip),
    .nav-links a:not(.mobile-lang-chip) {
        color: #000000 !important;
        font-size: clamp(1.85rem, 5.2vw, 2.15rem) !important;
        font-weight: 500 !important;
        text-transform: uppercase !important;
        letter-spacing: 2.5px !important;
        position: relative !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        padding: 6px 0 !important;
        text-shadow: none !important;
    }

    nav .nav-links a.btn-nav-cta,
    nav.index-nav .nav-links a.btn-nav-cta,
    nav.index-nav:not(.scrolled) .nav-links a.btn-nav-cta,
    .nav-links a.btn-nav-cta {
        background: #000000 !important;
        color: #ffffff !important;
        padding: 14px 34px !important;
        border-radius: 30px !important;
        font-size: 1.05rem !important;
        margin-top: 15px !important;
        border: 1.5px solid #000000 !important;
        letter-spacing: 1.5px !important;
        text-shadow: none !important;
    }

    /* Active link in mobile drawer */
    nav .nav-links a.active:not(.mobile-lang-chip),
    nav.index-nav .nav-links a.active:not(.mobile-lang-chip),
    nav.index-nav:not(.scrolled) .nav-links a.active:not(.mobile-lang-chip),
    .nav-links a.active:not(.mobile-lang-chip) {
        color: var(--color-primary) !important;
    }

    nav .nav-links a.active:not(.mobile-lang-chip)::after,
    nav.index-nav .nav-links a.active:not(.mobile-lang-chip)::after,
    .nav-links a.active:not(.mobile-lang-chip)::after {
        content: '' !important;
        position: absolute !important;
        bottom: -4px !important;
        left: 0 !important;
        width: 100% !important;
        height: 2px !important;
        background: var(--color-primary) !important;
        display: block !important;
        transition: 0.3s ease !important;
    }

    .mobile-logo-item {
        display: block;
        margin-bottom: 20px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        margin: 0;
        padding: 0;
        margin-bottom: 6px;
        /* Returning to 6px as the requested 2px nudge upwards */
    }

    .logo {
        display: flex;
        justify-content: flex-start;
    }

    .menu-toggle.active .bar {
        background-color: var(--color-secondary);
    }

    .hero .btn {
        position: relative;
        z-index: 20;
        bottom: auto;
        left: auto;
        right: auto;
    }

    .scroll-down-arrow {
        bottom: 30px;
        /* Lowered the arrow */
    }

    section {
        padding: 80px 5%;
    }

    .split-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .split-section[style*="direction: rtl"] {
        direction: ltr !important;
    }

    .split-content {
        direction: ltr !important;
        text-align: center !important;
    }

    .split-content .section-header {
        text-align: center !important;
    }

    .split-content .line {
        margin: 0 auto !important;
    }
}

.contact-card {
    border-radius: 20px;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary) !important;
}

/* --- Liana Decorative Detail (Hero) --- */
@keyframes liana-sway {
    0% {
        transform: rotate(-3deg);
    }

    50% {
        transform: rotate(3deg);
    }

    100% {
        transform: rotate(-3deg);
    }
}

.liana-detail {
    position: absolute;
    top: 0;
    right: 6%;
    z-index: 3;
    transform-origin: top center;
    animation: liana-sway 8s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.85;
}

.liana-detail img {
    display: block;
    height: 380px;
    width: auto;
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .liana-detail {
        right: 2%;
        opacity: 0.35;
    }

    .liana-detail img {
        height: 220px;
    }
}

/* Mobile — hidden, keep the hero clean */
@media (max-width: 768px) {
    .liana-detail {
        display: none;
    }
}

/* --- Collection Sub-Page --- */
.collection-hero {
    padding: 160px 5% 80px;
    text-align: center;
    background: var(--color-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.collection-hero .collection-tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.collection-hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 300;
    letter-spacing: 1.5px;
    line-height: 1.2;
    color: var(--color-secondary);
    margin-bottom: 24px;
    animation: none;
    opacity: 1;
    transform: none;
}

.collection-hero .collection-intro {
    max-width: 680px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--color-text-light);
    font-weight: 300;
}

.collection-gallery {
    padding: 80px 5% 120px;
    max-width: 1400px;
    margin: 0 auto;
}

#navbar {
    z-index: 5000;
    /* Absolute protection for the header */
}

/* Updated .gallery-grid using CSS grid for responsive layout */
/* Removed previous Masonry column-count implementation */

/* Simplified vertical gallery layout */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Single column for maximum mobile stability */
    gap: 30px;
}

/* Standard Masonry Gallery */
.gallery-grid {
    display: block;
    column-count: 3;
    column-gap: 30px;
    width: 100%;
}

@media (max-width: 1024px) {
    .gallery-grid {
        column-count: 2;
        column-gap: 20px;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        column-count: 1;
    }
}

/* Duo Gallery Grid (for 2-image layouts like Trabajos) */
.gallery-grid--duo {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    column-count: auto !important;
    gap: 30px;
    align-items: stretch;
    width: 100%;
}

.gallery-grid--duo .gallery-item {
    margin-bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
}

.gallery-grid--duo .gallery-item img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    max-height: 580px;
    object-fit: cover;
    border-radius: 24px;
    display: block;
}

@media (max-width: 768px) {
    .gallery-grid--duo {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .gallery-grid--duo .gallery-item img {
        min-height: auto;
        max-height: none;
    }
}

.gallery-grid .gallery-item {
    display: inline-block;
    width: 100%;
    position: relative;
    margin-bottom: 25px;
    /* Restored margin for stable separation */
    overflow: hidden;
    /* Restored to protect layout */
    border-radius: 24px;
    background: transparent;
    cursor: zoom-in;
    break-inside: avoid-column;
    -webkit-column-break-inside: avoid;
    line-height: 0;
    /* Fixes tiny gaps below images/videos */
}

/* Hardware Acceleration ONLY for mobile (Fixed flickering but can clip desktop masonry) */
/* Mobile Stability Fixes */
@media (max-width: 1024px) {
    .gallery-grid .gallery-item {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        transform: none;
        will-change: auto;
        contain: paint;
        /* Optimization hint for mobile Safari */
    }
}

/* Decoupled click overlay to stop Safari 'bubbles' */
.gallery-item .lightbox-trigger {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: transparent;
    display: block;
}

.gallery-grid .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.gallery-grid .gallery-item video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    /* Prevents black bars on PC */
    opacity: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* No hover effects to prevent any PC rendering flicker */
.gallery-grid .gallery-item:hover {
    box-shadow: none;
}

/* Responsive Masonry columns */
@media (max-width: 992px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        column-count: 1;
    }

    .gallery-item {
        margin-bottom: 20px;
    }
}

.gallery-item {
    display: inline-block;
    width: 100%;
    position: relative;
    margin-bottom: 25px;
    overflow: hidden;
}

.gallery-item .gallery-item-media {
    width: 100%;
    overflow: hidden;
}

.gallery-item .gallery-info {
    text-align: center;
    padding: 15px 0 35px;
    background: transparent;
    color: var(--color-text);
    opacity: 1;
    transition: color 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.collection-cta-strip {
    text-align: center;
    padding: 60px 5% 120px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.collection-cta-strip p {
    margin-bottom: 30px;
    font-style: italic;
    color: var(--color-text-light);
}

/* FSC Tag Decoration */
.fsc-tag-img {
    height: 40px;
    /* Adjust height to match layout */
    width: auto;
    opacity: 0.8;
    border-radius: 8px;
    /* Rounded corners */
    transition: var(--transition-smooth);
}

.fsc-tag-img:hover {
    opacity: 1;
}

/* --- Lightbox Styles --- */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(var(--color-bg-rgb), 0.8), rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    display: none;
    place-items: center;
    /* Robust centering */
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 60px 20px;
    overflow: hidden;
}

#lightbox.active {
    display: grid;
    /* Use grid for centering */
    opacity: 1;
    animation: fadeIn 0.4s ease forwards;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    position: relative;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
}

/* Story Panel for Lightbox */
.lightbox-story-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 12%;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1002;
    overflow-y: auto;
    pointer-events: none;
    /* Block interaction when hidden */
}

.lightbox-story-panel.active {
    transform: translateY(0);
    pointer-events: auto;
    /* Enable interaction when visible */
}

.story-title {
    font-family: 'Poiret One', cursive;
    font-size: clamp(2rem, 8vw, 3.5rem);
    color: var(--color-white);
    margin-bottom: 30px;
    letter-spacing: 12px;
    font-weight: 300;
    text-transform: uppercase;
    opacity: 0.9;
}

.lightbox-story-panel p {
    font-size: clamp(1rem, 4vw, 1.35rem);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.8px;
    text-align: center;
}

.lightbox-story-indicator {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    text-align: center;
    cursor: pointer;
    z-index: 10005;
    /* On top of the panel */
    animation: bounceIndicator 2.5s infinite;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 30px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: auto;
    white-space: nowrap;
    line-height: 1.4;
    display: none;
    /* Hidden by default */
    flex-direction: column;
    align-items: center;
    gap: 5px;
    pointer-events: auto;
}

#lightbox.has-story .lightbox-story-indicator {
    display: flex;
}

#lightbox.has-story.story-active .lightbox-story-indicator {
    display: none !important;
}

@keyframes bounceIndicator {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-12px) translateX(-50%);
    }

    60% {
        transform: translateY(-6px) translateX(-50%);
    }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    /* Centering the icon */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 1.5rem;
    z-index: 10010;
    /* Always on top */
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-close:hover {
    background: var(--color-white);
    transform: scale(1.1) rotate(90deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* User feedback on gallery items */
.gallery-item {
    cursor: zoom-in;
}

/* --- Visual Highlight Sections (Sub-Hero) --- */
.highlight-section {
    padding: 20px 5% 60px;
}

.highlight-container {
    border-radius: 40px;
    /* More organic curved borders */
    overflow: hidden;
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    padding: 40px 60px;
}

.highlight-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    object-position: center 45%;
    /* Reverting to user-approved desktop framing */
    transform: none;
    /* No scaling for desktop as requested */
    /* No brightness filter as requested */
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin-top: 8vh;
}

.highlight-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    padding: 50px;
    /* Reduced desktop padding */
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.highlight-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 25px;
    font-weight: 200;
    color: var(--color-white);
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.highlight-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 35px;
    opacity: 0.95;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.highlight-img.pos-bottom {
    object-position: 70% bottom;
    /* Shifted slightly to the right as requested */
    /* transform: scale(1.3); removed as per user request */
    transform-origin: center bottom;
}

/* Alternating layout */
.highlight-container.align-right {
    justify-content: flex-end;
}

.highlight-container.align-left {
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .hero-content {
        margin-top: -60px !important;
        /* Adjusted height on mobile for better balance */
    }

    .highlight-container {
        height: 85vh;
        min-height: 550px;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-end !important;
        align-items: stretch;
        border-radius: 40px;
        margin: 15px 4px;
        /* Minimal side margin to meet 'menos padding lateral' request */
        width: calc(100% - 8px);
    }

    .highlight-content {
        min-height: 40%;
        height: auto;
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 40px 40px 0 0;
        padding: 30px 10px 45px;
        /* Significant reduction in horizontal and vertical padding */
        backdrop-filter: blur(25px);
        background: rgba(255, 255, 255, 0.1);
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    }

    .highlight-content h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
        text-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
    }

    .highlight-content p {
        font-size: 1rem;
        margin-bottom: 25px;
        line-height: 1.6;
    }

    .highlight-content .btn {
        align-self: center;
        padding: 15px 40px;
    }

    /* Use scale to shift content up without breaking edges */
    .highlight-img {
        object-position: center 0% !important;
        /* transform: scale(1.3); removed as per user request */
        transform-origin: center bottom;
    }

    .highlight-img.pos-bottom {
        object-position: 70% bottom !important;
        /* transform: scale(1.9); removed as per user request */
    }
}

/* Collection Card Styles */
.collection-card {
    background: var(--color-bg);
    border-radius: 20px;
    padding: 25px;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.collection-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Grid Gallery Styles */
.grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.grid-gallery img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.grid-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

/* Premium Collections Grid — one block per row */
.collections-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.collections-grid.custom-collections-list {
    gap: 80px;
}

/* Grid view of collection cards on PC/Desktop screens (min-width: 993px) */
@media (min-width: 993px) {
    .collections-grid:not(.custom-collections-list) {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 380px));
        justify-content: center;
        gap: 40px;
    }
}

/* Each collection: Premium Card */
.collection {
    display: flex;
    flex-direction: column;
    gap: 32px;
    background: #faf8f6;
    border-radius: 36px;
    padding: 48px;
    border: 1px solid rgba(139, 115, 85, 0.06);
    box-shadow: 0 10px 40px rgba(139, 115, 85, 0.04);
    transition: var(--transition-smooth);
}

.collection:hover {
    box-shadow: 0 15px 50px rgba(139, 115, 85, 0.08);
}

.collection-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.collection-info {
    flex: 1;
}

.collection-info h4 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--color-secondary);
    margin-bottom: 16px;
    text-align: left;
    letter-spacing: 0.5px;
}

.collection-info p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-light);
    text-align: left;
    margin: 0;
}

/* Customization Pills */
.collection-meta {
    width: 340px;
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.meta-tag {
    padding: 10px 14px;
    background: rgba(51, 51, 51, 0.04);
    border-radius: 30px;
    font-size: 0.82rem;
    color: var(--color-primary);
    border: 1px solid rgba(51, 51, 51, 0.08);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.meta-tag i {
    font-size: 0.9rem;
    opacity: 0.8;
}

.meta-tag:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(51, 51, 51, 0.15);
}

/* Collection Gallery Wrapper with Arrows */
.collection-gallery-wrapper {
    position: relative;
    width: 100%;
}

.scroll-gallery {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 12px 4px;
    /* Custom Thin Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(51, 51, 51, 0.2) transparent;
}

.scroll-gallery::-webkit-scrollbar {
    height: 6px;
}

.scroll-gallery::-webkit-scrollbar-track {
    background: transparent;
}

.scroll-gallery::-webkit-scrollbar-thumb {
    background: rgba(51, 51, 51, 0.15);
    border-radius: 10px;
    transition: background 0.3s;
}

.scroll-gallery::-webkit-scrollbar-thumb:hover {
    background: rgba(51, 51, 51, 0.35);
}

.scroll-gallery img {
    width: 320px;
    height: 420px;
    flex-shrink: 0;
    object-fit: cover;
    object-position: center center;
    border-radius: 20px;
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16 rgba(0, 0, 0, 0.06);
}

.scroll-gallery img:hover {
    transform: scale(1.025);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Slide Arrow Buttons */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-primary);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-nav-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.gallery-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.gallery-nav-btn.prev {
    left: -24px;
}

.gallery-nav-btn.next {
    right: -24px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .collection {
        padding: 36px;
        gap: 28px;
    }

    .collection-header {
        flex-direction: column;
        gap: 24px;
    }

    .collection-meta {
        width: 100%;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .gallery-nav-btn {
        display: none;
        /* Hide on mobile/tablet for swipe scroll */
    }

    .scroll-gallery img {
        width: 280px;
        height: 380px;
    }
}

@media (max-width: 576px) {
    .collection {
        padding: 24px;
        border-radius: 24px;
    }

    .collection-info h4 {
        font-size: 1.8rem;
    }

    .scroll-gallery {
        gap: 12px;
    }

    .scroll-gallery img {
        width: 240px;
        height: 320px;
    }
}

/* Lightbox styles */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s;
    z-index: 10000;
}

.lightbox.active {
    visibility: visible;
    opacity: 1;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.lightbox .lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

/* =============================================
   GLASSMORPHISM BANNERS — Personalizadas Page
   Apple-style frosted glass effect
   ============================================= */

/* Subtle background texture so the blur has something to refract */
.personalizadas-banners-section {
    background: #fdfdfd;
    /* Off-white to help glass stand out slightly */
    border-radius: 40px;
    padding: 60px 5% 80px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

/* Ensure content sits properly */
.personalizadas-banners-section>* {
    position: relative;
    z-index: 1;
}

/* Glass card */
.custom-glass-banner {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    border-left: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 36px;
    padding: 60px 8%;
    display: flex;
    align-items: center;
    gap: 60px;
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.08),
        inset 0 1px 2px rgba(255, 255, 255, 0.9);
    margin-bottom: 48px;
    overflow: visible;
    /* CRITICAL for arrow buttons absolute positioning */
    position: relative;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.custom-glass-banner:last-child {
    margin-bottom: 0;
}

.custom-glass-banner:hover {
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.08),
        inset 0 1px 2px rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* Text side */
.banner-text-content {
    flex: 1.1;
    min-width: 280px;
}

.banner-text-content h2 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    margin: 0 0 20px;
    color: var(--color-secondary);
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.banner-text-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 28px;
}

.banner-text-content .collection-meta {
    margin-bottom: 32px;
    width: 100%;
    max-width: 360px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.banner-text-content .btn {
    display: inline-block;
    padding: 15px 38px;
    border-radius: 50px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    transition: var(--transition-smooth);
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    box-shadow: 0 6px 20px rgba(51, 51, 51, 0.18);
}

.banner-text-content .btn:hover {
    background: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(51, 51, 51, 0.25);
}

/* Gallery / slider side */
.banner-gallery-content {
    flex: 1;
    min-width: 0;
    max-width: 50%;
    /* Prevents the gallery wrapper from pushing layout width */
    width: 100%;
    position: relative;
}

@media (max-width: 1024px) {
    .custom-glass-banner {
        flex-direction: column;
        padding: 40px 5%;
        gap: 36px;
    }

    .banner-text-content,
    .banner-gallery-content {
        flex: none;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .banner-text-content .collection-meta {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .personalizadas-banners-section {
        padding: 40px 4% 60px;
        border-radius: 24px;
    }

    .custom-glass-banner {
        padding: 32px 5%;
        border-radius: 24px;
    }

    .banner-text-content h2 {
        font-size: 1.9rem;
    }
}