﻿:root {
    /* === COLORES PRINCIPALES === */
    --primary-color: #8B2329;
    /* Rojo Garnacha (color de acción principal) */

    --primary-dark: #4B3621;
    /* Tierra Madre / variante oscura */
    --garnacha-red: #8B2329;
    /* Rojo Garnacha */

    --text-color: #1A1A1A;
    /* Carbón para texto principal */
    --text-light: #F4F1EA;
    /* Papel Crema para textos sobre fondo oscuro */
    --accent-color: #6A7045;
    /* Verde Vid para detalles */
    --bg-paper: #F4F1EA;
    /* Fondo principal Papel Crema */
    --bg-dark: #4B3621;
    /* Fondo oscuro Tierra Madre */
    --price-color: #8B2329;
    /* Precios en Rojo Garnacha */


    /* === TIPOGRAFÍA === */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* === TRANSICIONES === */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* === ESPACIADO Y LAYOUT === */
    --container-width: 1200px;
    --header-height: 80px;

    /* === SOMBRAS Y EFECTOS === */
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* === RESET BÁSICO MEJORADO === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: auto !important;
    /* Dejamos que Lenis controle el scroll */
    font-size: 16px;
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

html {
    scroll-behavior: auto;
    scroll-padding-top: 100px;
    margin: 0;
    padding: 0;
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-paper);
    line-height: 1.8;
    transition: background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    position: relative;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

/* Section-based color transitions */
body[data-section="filosofia"] {
    background-color: var(--bg-paper);
}

body[data-section="vins"] {
    background-color: #1a1a1a;
    /* Explicit dark color */
}

/* Ensure no gap between Philosophy and Wines */
.philosophy-editorial {
    margin-bottom: 0 !important;
}

.wine-stack-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
    background-color: #1a1a1a;
}

body[data-section="ubicacio"] {
    background-color: #111;
}

body[data-section="ubicacio"] main {
    background-color: #111;
}

body.age-locked {
    overflow: hidden;
    height: 100vh;
    width: 100%;
    position: fixed;
    touch-action: none;
}

/* --- CORTINA (PRELOADER) & TEXT REVEAL --- */
/* --- AGE GATE CON GLASSMORPHISM --- */
#age-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#age-gate .age-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px;
    border-radius: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

#curtain-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--text-color);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(0);
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

body.site-loaded #curtain-preloader {
    transform: translateY(-100%);
}

.text-mask {
    display: block;
    overflow: hidden;
    line-height: 1.1;
}

.text-mask span {
    display: block;
    transform: translateY(110%);
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-text.active .text-mask span {
    transform: translateY(0);
}

.hero-content.active .text-mask span {
    transform: translateY(0) !important;
}

.reveal-text.active .text-mask:nth-child(2) span {
    transition-delay: 0.1s;
}

.reveal-text.active .text-mask:nth-child(3) span {
    transition-delay: 0.2s;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

::selection {
    background: var(--primary-color);
    color: var(--bg-paper);
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    animation: grainMove 0.10s steps(1) infinite;
    will-change: transform;
}

@media (max-width: 768px) {
    .noise-overlay {
        animation: none;
        /* Disable expensive animation on mobile */
    }
}

@keyframes grainMove {

    0%,
    100% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-2%, -2%);
    }

    20% {
        transform: translate(2%, 2%);
    }

    30% {
        transform: translate(-1%, 1%);
    }

    40% {
        transform: translate(1%, -1%);
    }

    50% {
        transform: translate(-2%, 2%);
    }

    60% {
        transform: translate(2%, -2%);
    }

    70% {
        transform: translate(-1%, -1%);
    }

    80% {
        transform: translate(1%, 1%);
    }

    90% {
        transform: translate(-2%, -1%);
    }
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700 !important;
    letter-spacing: -0.5px;
    color: var(--text-color);
}

.gradient-text {
    background: linear-gradient(135deg, var(--text-color) 0%, var(--primary-color) 50%, var(--accent-color) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

a {
    text-decoration: none;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-paper);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border: 2px solid var(--bg-paper);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- UTILITIES --- */
.section-title-giant {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 4.5rem);
    line-height: 1;
    margin-bottom: 20px;
    font-weight: 800;
    text-transform: uppercase;
}

.tasting-accordion-section .section-title-giant,
.team-peer-section .section-title-giant {
    color: #f9f7f2;
}

.section-subtitle-text {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.meta-label {
    display: block;
    letter-spacing: 3px;
    font-size: 0.85rem;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.separator {
    background: var(--primary-color);
    width: 60px;
    height: 3px;
    margin: 15px 0;
}

.reveal-text {
    overflow: hidden;
}

.split-text {
    overflow: hidden;
}

.split-text .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.split-text.active .word {
    opacity: 1;
    transform: translateY(0);
}

.split-text.active .word:nth-child(1) {
    transition-delay: 0.05s;
}

.split-text.active .word:nth-child(2) {
    transition-delay: 0.1s;
}

.split-text.active .word:nth-child(3) {
    transition-delay: 0.15s;
}

.split-text.active .word:nth-child(4) {
    transition-delay: 0.2s;
}

.reveal-img-wrapper {
    overflow: hidden;
    display: block;
}

.reveal-img-wrapper img {
    transform: scale(1.15);
    transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.reveal-img-wrapper.active img {
    transform: scale(1);
}

/* =================================================================
   --- NAVBAR (Versión Estable y Centrada) --- 
   ================================================================= */
.navbar {
    padding: 25px 0 !important;
    transition: background-color 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), padding 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    z-index: 1000;
    background: transparent !important;
    box-shadow: none !important;
}

/* Bordes cuadrados para el botón SHOP */
.navbar .btn-dark {
    background-color: transparent;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Botón SHOP cuando haces scroll - texto negro */
.navbar.scrolled .btn-dark {
    background: transparent !important;
    border: none !important;
    color: var(--text-color) !important;
    box-shadow: none !important;
}

/* Hover del botón SHOP cuando haces scroll */
.navbar.scrolled .btn-dark:hover {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    box-shadow: none !important;
}

.navbar-brand img {
    height: 85px;
    width: auto;
    display: block;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0) invert(1);
}

.navbar.scrolled {
    background-color: rgba(249, 247, 242, 0.98) !important;
    padding: 10px 0 !important;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.03) !important;
}

.navbar.scrolled .navbar-brand img {
    height: 60px;
    filter: invert(12%) sepia(60%) saturate(3000%) hue-rotate(340deg) brightness(60%) contrast(110%);
}

@media (max-width: 991px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100dvh;
        background-color: var(--bg-paper);
        padding: 100px 30px 40px !important;
        z-index: 1040;
        display: flex;
        flex-direction: column;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: center !important;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
    }

    .navbar-collapse.show {
        opacity: 1;
        visibility: visible;
        display: flex !important;
    }

    .navbar-nav {
        width: 100%;
        gap: 15px;
        align-items: center !important;
        margin-bottom: auto !important;
    }

    /* Staggered Entrance Animation for Links */
    .navbar-collapse.show .nav-item {
        animation: menuLinkReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        opacity: 0;
        transform: translateY(20px);
    }

    .navbar-collapse.show .nav-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .navbar-collapse.show .nav-item:nth-child(2) {
        animation-delay: 0.15s;
    }

    .navbar-collapse.show .nav-item:nth-child(3) {
        animation-delay: 0.2s;
    }

    .navbar-collapse.show .nav-item:nth-child(4) {
        animation-delay: 0.25s;
    }

    .navbar-collapse.show .nav-item:nth-child(5) {
        animation-delay: 0.3s;
    }

    .navbar-collapse.show .nav-item:nth-child(6) {
        animation-delay: 0.35s;
    }

    @keyframes menuLinkReveal {
        to {
            opacity: 1;
        }
    }

    .navbar-collapse .nav-link {
        color: var(--text-color) !important;
        font-family: var(--font-heading);
        font-size: 1.8rem;
        /* Slightly smaller for elegance */
        font-weight: 700;
        margin: 0;
        padding: 5px 0;
        letter-spacing: 1px;
        /* More air */
        transition: color 0.3s ease, transform 0.3s ease;
        display: inline-block;
    }

    .navbar-collapse .nav-link:hover {
        color: var(--primary-color) !important;
        transform: translateX(5px);
    }

    /* Language Switch Position in Mobile */
    .nav-item:has(.lang-switch) {
        order: -1;
        margin-bottom: 50px !important;
        width: 100%;
    }

    /* Mobile Menu Footer */
    .mobile-menu-footer {
        width: 100%;
        padding-top: 30px;
        opacity: 0;
        transform: translateY(20px);
    }

    .navbar-collapse.show .mobile-menu-footer {
        animation: menuLinkReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
    }

    .mobile-menu-divider {
        width: 40px;
        height: 1px;
        background: rgba(0, 0, 0, 0.1);
        margin: 0 auto 30px;
    }

    .mobile-contact-info {
        margin-bottom: 25px;
    }

    .mobile-contact-info p {
        font-family: var(--font-body);
        font-size: 0.9rem;
        color: rgba(0, 0, 0, 0.6);
        margin-bottom: 5px;
    }

    .mobile-contact-info a {
        color: var(--text-color);
        text-decoration: none;
        font-weight: 600;
    }

    .mobile-social-links {
        display: flex;
        justify-content: center;
        gap: 30px;
    }

    .mobile-social-links a {
        font-size: 1.5rem;
        color: var(--text-color);
        transition: color 0.3s ease;
    }

    .mobile-social-links a:hover {
        color: var(--primary-color);
    }

    /* Improved Toggler Icon */
    .navbar-toggler {
        border: none !important;
        padding: 0;
        width: 30px;
        height: 30px;
        position: relative;
        z-index: 1050;
        color: var(--text-color);
        transition: color 0.3s ease;
    }

    .navbar-toggler i {
        display: none;
        /* Hide FontAwesome icon */
    }

    /* Custom CSS Hamburger */
    .navbar-toggler::before,
    .navbar-toggler::after {
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: currentColor;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), top 0.3s, bottom 0.3s;
    }

    .navbar-toggler::before {
        top: 8px;
    }

    .navbar-toggler::after {
        bottom: 8px;
    }

    .navbar-toggler[aria-expanded="true"]::before {
        top: 14px;
        transform: rotate(45deg);
    }

    .navbar-toggler[aria-expanded="true"]::after {
        bottom: 14px;
        transform: rotate(-45deg);
    }
}

/* Icono blanco cuando estás arriba y el menú está cerrado */
.navbar:not(.scrolled) .navbar-toggler:not([aria-expanded="true"]) {
    color: #fff !important;
}

/* Icono negro cuando has hecho scroll O cuando el menú está abierto */
.navbar.scrolled .navbar-toggler,
.navbar-toggler[aria-expanded="true"] {
    color: var(--text-color) !important;
}


/* =================================================================
   --- SELECTOR DE IDIOMAS MOBILE --- 
   ================================================================= */
@media (max-width: 991px) {
    .lang-switch {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
        padding: 0;
        margin: 0;
    }

    .lang-item {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px 15px;
        font-family: 'Space Grotesk', sans-serif;
        font-size: 0.8rem;
        font-weight: 600;
        text-decoration: none !important;
        color: var(--text-color);
        background: rgba(0, 0, 0, 0.03);
        border-radius: 30px;
        transition: all 0.3s ease;
        letter-spacing: 1px;
    }

    .lang-item.active {
        background: var(--text-color) !important;
        color: #fff !important;
    }
}

/* =================================================================
   --- MENÚ ESCRITORIO: ESTILO "ETIQUETA IMPRESA" (Sólido y Gráfico) --- 
   ================================================================= */
@media (min-width: 992px) {
    /* =========================================
   THE EXPANDING LABEL (Desktop Only)
   ========================================= */




    /* 1. ESTRUCTURA: Limpieza y Orden */
    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }

    .navbar-nav {
        align-items: center !important;
        flex-direction: row !important;
        gap: 30px;
    }

    /* 2. ENLACES: Tipografía con efectos modernos */
    .nav-link {
        font-family: 'Inter', sans-serif !important;
        font-size: 0.95rem;
        letter-spacing: 0.8px;
        text-transform: uppercase;
        font-weight: 600;
        padding: 12px 0;
        position: relative;
        transition: var(--transition-smooth);
        overflow: hidden;
    }

    /* Efecto underline animado */
    .nav-link::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: currentColor;
        transition: var(--transition-smooth);
        transform: translateX(-50%);
    }

    .nav-link:hover::before {
        width: 100%;
    }

    .nav-link:hover {
        transform: translateY(-2px);
        letter-spacing: 1.5px;
        color: var(--primary-color) !important;
    }

    /* 3. BOTÓN "SHOP": Efecto glassmorphism premium */
    .btn-shop {
        padding: 14px 32px;
        font-family: 'Inter', sans-serif !important;
        font-weight: 600;
        letter-spacing: 1.2px;
        font-size: 0.85rem;
        border-radius: 6px;
        margin-left: 20px;
        position: relative;
        overflow: hidden;
        transition: var(--transition-smooth);
        text-transform: uppercase;
    }

    /* 3. BOTÓN "SHOP": Efecto glassmorphism premium */
    .btn-shop {
        padding: 14px 32px;
        font-family: 'Space Grotesk', sans-serif !important;
        font-weight: 700;
        letter-spacing: 1.5px;
        font-size: 0.8rem;
        border-radius: 6px;
        margin-left: 20px;
        position: relative;
        overflow: hidden;
        transition: var(--transition-smooth);
        text-transform: uppercase;
    }

    /* Efecto de brillo al hover */
    .btn-shop::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s ease, height 0.6s ease;
    }

    .btn-shop:hover::before {
        width: 300px;
        height: 300px;
    }

    .btn-shop:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    /* 4. ESTADOS CON GLASSMORPHISM */

    /* --- ESTADO A: ARRIBA (Sin filtros) --- */
    .navbar:not(.scrolled) {
        background: transparent !important;
        padding: 25px 0 !important;
        box-shadow: none;
    }

    .navbar:not(.scrolled) .nav-link {
        color: #fff !important;
        text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.8);
    }

    .navbar:not(.scrolled) .btn-shop {
        background: rgba(255, 255, 255, 0.1) !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        color: #fff !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .navbar:not(.scrolled) .btn-shop:hover {
        background: rgba(255, 255, 255, 0.95) !important;
        border-color: #fff !important;
        color: #1a1a1a !important;
    }

    /* --- ESTADO B: SCROLLED (Glassmorphism claro) --- */
    .navbar.scrolled {
        background: rgba(249, 247, 242, 0.95) !important;
        backdrop-filter: blur(25px) saturate(180%);
        -webkit-backdrop-filter: blur(25px) saturate(180%);
        border-bottom: 1px solid rgba(26, 26, 26, 0.08) !important;
        padding: 12px 0 !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06) !important;
    }

    .navbar.scrolled .nav-link {
        color: var(--text-color) !important;
        text-shadow: none;
    }

    .navbar:not(.scrolled) .nav-link:hover,
    .navbar.scrolled .nav-link:hover,
    .navbar .nav-link.active {
        color: var(--primary-color) !important;
    }

    .navbar.scrolled .btn-shop {
        background: transparent !important;
        border: none !important;
        color: var(--text-color) !important;
        box-shadow: none !important;
    }

    .navbar.scrolled .btn-shop:hover {
        background: transparent !important;
        border: none !important;
        color: #fff !important;
        box-shadow: none !important;
    }

}

/* --- HERO --- */
.hero-cinematic {
    height: 100dvh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    color: var(--text-light);
}

.hero-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    filter: brightness(0.7) contrast(1.1);
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding-bottom: 60px;
    will-change: transform;
}

.hero-title-cinematic {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 13vw, 11rem);
    line-height: 0.85;
    font-weight: 800;
    margin: 0;
    color: var(--text-light);
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    animation: titleFloat 6s ease-in-out infinite;
}

@keyframes titleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Hero CTAs */
.hero-cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-hero i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

/* Primary CTA */
.btn-hero-primary {
    background: linear-gradient(135deg, var(--primary-color), #a50000);
    color: #fff;
    border: 2px solid transparent;
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #a50000, var(--primary-color));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btn-hero-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(139, 0, 0, 0.5);
}

.btn-hero-primary:hover::before {
    opacity: 1;
}

.btn-hero-primary:hover i {
    transform: scale(1.15) rotate(5deg);
}

/* Secondary CTA */
.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-hero-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.25);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btn-hero-secondary:hover {
    transform: translateY(-5px);
    border-color: #fff;
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
}

.btn-hero-secondary:hover::before {
    opacity: 1;
}

.btn-hero-secondary:hover i {
    transform: scale(1.15);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .hero-cta-group {
        flex-direction: column;
        gap: 15px;
        margin-top: 35px;
    }

    .btn-hero {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 16px 28px;
        font-size: 0.9rem;
    }
}

.scroll-down {
    margin-top: 30px;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    opacity: 0.7;
    display: inline-block;
    color: var(--text-light);
    text-decoration: none;
    cursor: pointer;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* --- MARQUEE --- */
.marquee-container {
    background: linear-gradient(90deg, #5a0000 0%, var(--garnacha-red) 45%, #5a0000 100%);
    color: var(--bg-paper);
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(26, 26, 26, 0.55);
    border-bottom: 1px solid rgba(26, 26, 26, 0.55);
    width: 100%;
    --marquee-edge: 90px;
    --marquee-duration: 40s;
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: var(--marquee-edge);
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(90deg, rgba(26, 26, 26, 0.55) 0%, rgba(26, 26, 26, 0) 100%);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(270deg, rgba(26, 26, 26, 0.55) 0%, rgba(26, 26, 26, 0) 100%);
}

.marquee-track {
    display: flex;
    width: fit-content;
    animation-name: scrollText;
    animation-duration: var(--marquee-duration);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
}

.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-group {
    display: flex;
    flex-shrink: 0;
    white-space: nowrap;
}

.marquee-group span {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.05rem, 2.2vw, 1.55rem);
    padding: 0;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.95;
    text-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.marquee-group span:not(:last-child)::after {
    content: "•";
    display: inline-block;
    margin: 0 34px;
    opacity: 0.9;
}

.marquee-group::after {
    content: "•";
    display: inline-block;
    margin: 0 34px;
    opacity: 0.9;
}

@keyframes scrollText {

    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- MARQUEE DESKTOP FIX --- */
@media (min-width: 769px) {

    /* Solo para el primer marquee (el de texto) */
    body>.marquee-container .marquee-track {
        animation-duration: 32s;
        width: fit-content;
    }

    /* Resetear completamente el marquee de imágenes */
    .visual-bridge .marquee-container {
        padding: 0 !important;
    }

    .visual-bridge .marquee-container .gallery-track {
        animation: scrollText 30s linear infinite !important;
        width: fit-content !important;
        transform: none !important;
    }

    @keyframes scrollText {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-50%);
        }
    }
}

@media (max-width: 768px) {
    .marquee-container {
        --marquee-edge: 46px;
        --marquee-duration: 44s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none !important;
        width: 100% !important;
        justify-content: center;
    }
}

/* --- PERFORMANCE OPTIMIZED SECTIONS --- */
/* Removing content-visibility as it causes layout shifts and scroll lag */
main section {
    contain: style;
}

/* === DARK/LIGHT SPLIT SECTION === */
.dark-light-split-section {
    background: var(--bg-paper);
}

.split-block {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.split-block::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80%;
    background: var(--primary-color);
    opacity: 0.4;
    z-index: 999;
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.3);
}

.split-half {
    flex: 0 0 50%;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Lado oscuro con imagen */
.split-dark {
    background: var(--bg-paper);
    position: relative;
    overflow: hidden;
}

.split-image {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    transition: all 0.5s ease;
}

.split-dark:hover .split-image {
    opacity: 1;
    transform: scale(1.05);
}

/* Lado claro con texto */
.split-light {
    background: var(--bg-paper);
    padding: 80px 60px;
}

.split-content {
    max-width: 500px;
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
        transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.split-block.active .split-content {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.split-content {
    position: relative;
}

.split-content::before {
    content: attr(data-number);
    position: absolute;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20rem;
    font-weight: 900;
    color: rgba(139, 0, 0, 0.5);
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

.split-content {
    position: relative;
}

.split-block.active .split-content {
    opacity: 1;
    transform: translateY(0);
}

.split-number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    letter-spacing: 3px;
}

.split-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--text-color);
    line-height: 1.1;
}

.split-desc {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(26, 26, 26, 0.7);
}

/* Mobile */
@media (max-width: 991px) {
    .split-block {
        flex-direction: column !important;
        min-height: auto;
        padding-bottom: 60px;
        background: var(--bg-paper);
    }

    .split-block::after {
        display: none;
    }

    /* Vertical Storytelling Layout */
    .split-half.split-dark {
        display: block !important;
        flex: 0 0 350px !important;
        width: 100% !important;
        height: 350px !important;
        min-height: 350px !important;
        order: 1 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .split-image {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background-size: cover !important;
        background-position: center !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        filter: none !important;
    }

    .split-half.split-light {
        flex: 1 1 auto;
        width: 100%;
        padding: 40px 25px 0 !important;
        order: 2 !important;
        background: transparent !important;
    }

    .split-content {
        max-width: 100% !important;
        opacity: 1 !important;
        transform: none !important;
        text-align: left !important;
    }

    /* Remove background numbers and add subtitle indicators */
    .split-content::before {
        display: none !important;
    }

    .split-content::after {
        content: attr(data-number) " / FILOSOFIA";
        display: block;
        font-family: var(--font-heading);
        font-size: 0.75rem;
        letter-spacing: 3px;
        color: var(--accent-color);
        margin-bottom: 15px;
        font-weight: 700;
        opacity: 0.8;
    }

    .split-title {
        font-size: clamp(1.8rem, 8vw, 2.2rem) !important;
        margin-bottom: 15px !important;
        letter-spacing: -0.5px !important;
    }

    .split-desc {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        color: #444 !important;
    }

    /* Alternating Backgrounds for Storytelling Rhythm */
    .split-block-1 {
        background-color: #f9f7f2 !important;
        /* Warm Cream */
    }

    .split-block-2 {
        background-color: var(--primary-color) !important;
    }

    .split-block-2 .split-title {
        color: var(--bg-paper) !important;
    }

    .split-block-2 .split-desc {
        color: rgba(255, 255, 255, 0.8) !important;
    }

    .split-block-2 .split-content::after {
        color: var(--primary-color) !important;
        /* Brighter accent on dark */
    }

    .split-block-3 {
        background-color: #f2ede4 !important;
        /* Soft Earth/Stone */
    }
}

/* --- BANNERS --- */
.banner-section {
    background-color: var(--primary-dark);
    background-image: url('images/cansais.png');
    background-size: cover;
    background-position: center;
    color: var(--bg-paper);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Overlay marrón para teñir la imagen de fondo */
.banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-dark);
    opacity: 0.80;
    mix-blend-mode: var(--bg-dark);
    /* Mezcla el marrón con la imagen */
    z-index: 1;
}

.banner-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;

    margin-bottom: 5px;
}

.banner-label {
    font-family: 'Inter';
    letter-spacing: 4px;
    font-size: 0.8rem;
    opacity: 0.7;
    display: block;
    margin-bottom: 10px;
}

.lang-switch,
.lang-switch * {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.lang-switch {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 0 !important;
}

.lang-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.6;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-flag {
    width: 24px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.lang-link:hover .lang-flag,
.lang-link.active .lang-flag {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Filter to make it "pop" slightly if needed, but scale is usually enough */
}

.lang-link:hover,
.lang-link.active {
    opacity: 1;
}

/* Hide text underlining for flags */
.lang-link::after {
    display: none;
}

.banner-subtext {
    font-family: 'Inter';
    font-size: 1.1rem;
    max-width: 600px;
    margin: 10px auto 0;
    opacity: 0.9;
    font-weight: 300;
}

.crossed-out {
    position: relative;
    color: rgba(255, 255, 255, 0.5);
}

.crossed-out::after {
    content: '';
    position: absolute;
    left: -5%;
    top: 50%;
    width: 110%;
    height: 4px;
    background: var(--text-color);
    transform: rotate(-2deg);
}

.banner-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.9;
    position: relative;
    display: inline-block;
    transition: var(--transition-bounce);
    cursor: default;
}

/* Racimo de uvas que cae (oculto por defecto) */
.banner-icon::before {
    content: '\f72f';
    /* Código de botella de vino en Font Awesome */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--text-light);
    opacity: 0;
    transition: none;
    pointer-events: none;
}

/* Al hacer hover, el racimo cae */
.banner-icon:hover::before {
    animation: grapeFall 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes grapeFall {
    0% {
        top: -100px;
        opacity: 0;
        transform: translateX(-50%) rotate(0deg) scale(0.5);
    }

    50% {
        opacity: 1;
    }

    100% {
        top: -10px;
        opacity: 1;
        transform: translateX(-50%) rotate(360deg) scale(1);
    }
}

/* Efecto de rebote en el icono de la mano cuando cae el racimo */
.banner-icon:hover {
    transform: translateY(5px) scale(0.95);
    opacity: 1;
}

.icon-crossed::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -20%;
    width: 140%;
    height: 4px;
    background: var(--text-color);
    transform: rotate(-45deg) translateY(-50%);
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
}


/* --- VINS SECTION - GLITCH SUAVE --- Solo oscuras */
.wines-section:not(.light-mode) {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 0 80px 0;
    background: var(--text-color);
    color: var(--text-light);

    .wine-item:hover::before {
        width: 800px;
        height: 800px;
    }

    /* SIN HOVER AGRESIVO - Solo elevación sutil */
    .wine-item:hover {
        transform: translateY(-8px);
    }

    .wine-item.reverse {
        flex-direction: row-reverse;
    }

    /* BOTELLA 3D SUAVE */
    .wine-visual {
        width: min(350px, 25vw);
        height: 80vh;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 10;
        transform-style: preserve-3d;
        perspective: 1000px;
    }

    .wine-visual img {
        width: auto;
        height: auto;
        max-height: 80vh;
        object-fit: contain;
        transition: all 0.8s ease;
        transform: rotateY(0deg) scale(1);
    }


    /* INFO CON GLITCH SUAVE */
    .wine-info {
        flex: 1;
        text-align: left;
        color: var(--text-light);
        position: relative;
        z-index: 10;
        max-width: 650px;
    }

    /* TÍTULO MÁS LEGIBLE */
    .wine-info h3 {
        font-size: 3.5rem;
        line-height: 1;
        margin-bottom: 25px;
        font-weight: 800;
        transition: all 0.6s ease;
        letter-spacing: -2px;
        text-transform: uppercase;
        position: relative;
        animation: titleGlitch 5s infinite;
        color: var(--text-light);
    }

    @keyframes titleGlitch {

        0%,
        100% {
            text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
            transform: translateX(0);
        }

        25% {
            text-shadow: -1px 0 rgba(255, 0, 64, 0.2), 1px 0 rgba(0, 255, 255, 0.2);
            transform: translateX(-1px);
        }

        50% {
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
            transform: translateX(0);
        }

        75% {
            text-shadow: 1px 0 rgba(255, 0, 64, 0.2), -1px 0 rgba(0, 255, 255, 0.2);
            transform: translateX(1px);
        }
    }



    /* VARIEDADES DE VINOS - UNIFICADO */
    .wine-info .text-muted {
        font-size: 0.85rem;
        margin-bottom: 25px;
        color: rgba(255, 255, 255, 0.9) !important;
        text-transform: uppercase;
        letter-spacing: 4px;
        font-weight: 600;
        position: relative;
        animation: textGlitch 6s infinite;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
        border-bottom: 1px solid rgba(255, 255, 255, 0.4) !important;
        padding-bottom: 8px;
        display: inline-block;
    }

    @keyframes textGlitch {

        0%,
        100% {
            opacity: 0.9;
        }

        50% {
            opacity: 1;
        }
    }

    .wine-price {
        font-size: 2.2rem;
        margin-bottom: 35px;
        color: var(--price-color);
        font-weight: 800;
        display: block;
        text-shadow: 0 0 15px rgba(192, 108, 76, 0.3);
    }

    @keyframes priceGlow {

        0%,
        100% {
            text-shadow: 0 0 15px rgba(192, 108, 76, 0.3);
            transform: scale(1);
        }

        50% {
            text-shadow: 0 0 25px rgba(192, 108, 76, 0.5);
            transform: scale(1.02);
        }
    }

    .wine-info p {
        font-size: 1.2rem;
        line-height: 1.7;
        margin-bottom: 40px;
        color: rgba(255, 255, 255, 0.85);
        font-weight: 300;
    }

    /* BOTONES GLITCH - COMPACTOS Y ELEGANTES */
    .wines-section .btn-dark {
        background: transparent;
        border: 1px solid var(--text-light);
        color: var(--text-light);
        padding: 12px 24px;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        font-weight: 600;
        border-radius: 0;
        transition: all 0.4s ease;
        width: auto;
        display: inline-block;
        position: relative;
        overflow: hidden;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    }

    .wines-section .btn-dark::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
        transition: left 0.6s ease;
        z-index: -1;
    }

    .wines-section .btn-dark:hover::before {
        left: 100%;
    }

    .wines-section .btn-dark:hover {
        color: var(--text-color) !important;
        background: var(--text-light) !important;
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(244, 241, 234, 0.4);
    }
}

/* --- WINES SECTION - LIGHT MODE (Gama Clàssics) --- */
.wines-section.light-mode {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 0 80px 0;
    background: var(--bg-paper);
    color: var(--text-color);
}

.wines-section.light-mode .wine-item:hover {
    transform: translateY(-8px);
}

.wines-section.light-mode .wine-item.reverse {
    flex-direction: row-reverse;
}

.wines-section.light-mode .wine-visual {
    width: min(350px, 25vw);
    height: 80vh;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.wines-section.light-mode .wine-visual img {
    width: auto;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    transition: all 0.8s ease;
}

.wines-section.light-mode .wine-info {
    flex: 1;
    text-align: left;
    color: var(--text-color);
    position: relative;
    z-index: 10;
    max-width: 650px;
}

/* Slider móvil de vinos (estructura en columna) */
.wines-mobile-slider {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.wines-section.light-mode {
    background: var(--bg-paper);
    color: var(--text-color);
}

.wine-item {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
    cursor: pointer;
    position: relative;
}

.wine-item.reverse {
    flex-direction: row-reverse;
}

.wine-visual {
    flex: 0 0 40%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 450px;
}

.wine-bg-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.wine-visual:hover .wine-bg-glow {
    opacity: 0.6;
    transform: scale(1.1);
}

.bottle-container {
    position: relative;
    z-index: 1;
}

.wine-bottle {
    height: 400px;
    width: auto;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.wine-visual:hover .wine-bottle {
    transform: translateY(-10px) scale(1.02);
}

.liquid-wave {
    display: none;
}

.wine-info {
    flex: 1;
}

.wine-info h3 {
    color: inherit;
    margin-bottom: 10px;
}

.wine-info .text-muted {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.tech-specs {
    margin: 20px 0;
}

.tech-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.wines-section.light-mode .tech-row {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.wine-info p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.85;
    margin: 20px 0;
}

/* Aseguramos que los títulos de los pósters de vinos sean siempre blancos,
   por encima de cualquier regla genérica de h3 dentro de .wines-section */
.wines-section .poster-title-wrap h3,
.terroir-poster .poster-title-wrap h3 {
    color: #ffffff !important;
}

/* Regla ultra-específica para vencer .wines-section.light-mode h3 */
.wines-section.light-mode .poster-title-wrap h3,
.wines-section.light-mode .terroir-poster .poster-title-wrap h3 {
    color: #ffffff !important;
}

.btn-glitch {
    background: transparent;
    border: 2px solid currentColor;
    color: inherit;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-glitch:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* --- VINS POSTER JOURNEY (BASE STYLES, DESKTOP + MOBILE) --- */

/* Contenedor de pósters: fondo negro y flow vertical */
.terroir-journey {
    position: relative;
    width: 100%;
    background: #000;
}

/* Cada vino ocupa prácticamente una pantalla completa */
.terroir-poster {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Text overlay común (ajustaremos tamaños por viewport en media queries) */
.poster-title-wrap {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 0 8vw;
}

.poster-title-wrap h3 {
    font-family: var(--font-heading);
    font-size: clamp(5rem, 10vw, 8rem);
    line-height: 0.9;
    color: #F4F1EA;
    text-transform: uppercase;
    text-align: left;
    text-shadow: 0 10px 35px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.08em;
}

.poster-title-wrap .wine-name {
    display: block;
}

/* Botella en la imagen de fondo; ocultamos cualquier imagen interna de botella */
.poster-visual,
.poster-bottle {
    display: none !important;
}

/* No queremos overlays oscuros encima del texto */
.poster-overlay {
    display: none !important;
}

/* Fondos por vino (textura + botella en la propia imagen) */
.item-blanc {
    background-image: url('images/blanc_textura.jpg');
}

.item-negre {
    background-image: url('images/negre_textura.jpg');
}

.item-rosat {
    background-image: url('images/rosat_textura.jpg');
}

.item-ancestral {
    background-image: url('images/ancestral_textura.jpg');
}

.item-piranha {
    background-image: url('images/piranha_textura.jpg');
}

/* --- VINS MÓVIL (PREMIUM VERTICAL STACK) --- */

@media (max-width: 991px) {
    .wines-section {
        padding: 60px 0 !important;
    }

    /* Titles refinement (para los headings de texto estándar, no los pósters) */

    .wines-section .text-center.mb-5.reveal-text {
        margin-bottom: 40px !important;
        padding: 0 20px;
    }

    .wines-section h2 {
        font-size: 3rem !important;
    }

    .wines-section h3:not(.wine-info h3) {
        font-size: 1.5rem !important;
        letter-spacing: 2px !important;
        background: var(--primary-color);
        color: white;
        display: inline-block;
        padding: 5px 20px;
        border-radius: 5px;
        margin-bottom: 15px !important;
    }

    .mobile-slider-outer {
        position: relative;
        padding: 0 40px;
        /* Space for arrows */
        margin: 20px 0;
    }

    .slider-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(0, 0, 0, 0.1);
        color: var(--primary-dark);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 10;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 1;
        visibility: visible;
    }

    .slider-arrow:active {
        transform: translateY(-50%) scale(0.9);
    }

    .slider-arrow.prev {
        left: 0;
    }

    .slider-arrow.next {
        right: 0;
    }

    /* --------------------------------------------------------- */
    /* NEW: POSTER-FIRST IMMERSIVE TERROIR JOURNEY               */
    /* --------------------------------------------------------- */
    .wines-section {
        padding: 0 !important;
        overflow: visible !important;
    }

    .terroir-journey {
        /* Scroll-snap para sensación de pantalla a pantalla en mobile */
        scroll-snap-type: y mandatory;
    }

    .terroir-poster {
        scroll-snap-align: start;
    }

    /* Atmospheric Overlay (Removed manual gradients to let artwork shine) */
    .poster-overlay {
        display: none;
    }

    /* Organic Grain Animation (Kept for subtle soul) */
    .terroir-poster::before {
        content: "";
        position: absolute;
        top: -100%;
        left: -100%;
        width: 300%;
        height: 300%;
        background-image: url("https://grainy-gradients.vercel.app/noise.svg");
        opacity: 0.1;
        z-index: 5;
        pointer-events: none;
        animation: grain 8s steps(10) infinite;
    }

    @keyframes grain {

        0%,
        100% {
            transform: translate(0, 0)
        }

        10% {
            transform: translate(-5%, -10%)
        }

        30% {
            transform: translate(7%, -25%)
        }

        50% {
            transform: translate(-15%, 10%)
        }

        70% {
            transform: translate(0%, 15%)
        }

        90% {
            transform: translate(-10%, 10%)
        }
    }

    /* Botella en la imagen de fondo; mantenemos el texto en HTML */
    .poster-visual,
    .poster-bottle {
        display: none !important;
    }

    .poster-title-wrap {
        display: block !important;
        position: relative;
        z-index: 10;
        width: 100%;
        padding: 0 8vw;
    }

    .poster-title-wrap h3 {
        font-family: var(--font-heading);
        font-size: 12vw;
        line-height: 0.9;
        color: #fdf4e3;
        text-transform: uppercase;
        text-align: left;
        text-shadow: 0 10px 35px rgba(0, 0, 0, 0.8);
        letter-spacing: 0.08em;
    }

    .poster-title-wrap .wine-name {
        display: block;
    }

    /* Subtle Info Cue */
    .terroir-poster::after {
        content: "";
        /* Clean for now as requested "quitemos lo del solapamiento" and "IGUAL que ahí" */
        display: none;
    }

    /* INTRO SLIDE */
    .terroir-intro {
        background: #000 !important;
    }

    .poster-meta {
        font-family: 'Inter', sans-serif;
        font-size: 0.8rem;
        letter-spacing: 12px;
        color: rgba(255, 255, 255, 0.6);
        text-transform: uppercase;
        margin-bottom: 20px;
        display: block;
    }

    .poster-main-title {
        font-family: 'Playfair Display', serif;
        font-size: 18vw;
        line-height: 0.9;
        font-weight: 900;
        color: #fff;
        text-transform: uppercase;
        margin: 0;
    }

    /* TERROIR SPECIFIC BACKGROUNDS (textura + botella en la propia imagen) */
    .item-blanc {
        background-image: url('images/blanc_textura.jpg') !important;
    }

    .item-negre {
        background-image: url('images/negre_textura.jpg') !important;
    }

    .item-rosat {
        background-image: url('images/rosat_textura.jpg') !important;
    }

    .item-ancestral {
        background-image: url('images/ancestral_textura.jpg') !important;
    }

    .item-piranha {
        background-image: url('images/piranha_textura.jpg') !important;
    }

    /* Incremental Z-index for smooth stacking journey */
    .terroir-poster:nth-child(1) {
        z-index: 10;
    }

    .terroir-poster:nth-child(2) {
        z-index: 20;
    }

    .terroir-poster:nth-child(3) {
        z-index: 30;
    }

    .terroir-poster:nth-child(4) {
        z-index: 40;
    }

    .terroir-poster:nth-child(5) {
        z-index: 50;
    }

    .terroir-poster:nth-child(6) {
        z-index: 60;
    }
}

/* --- ENOTURISME (VISIT SECTION) --- */
.visit-section {
    padding: clamp(60px, 10vw, 100px) 0;
    background: var(--bg-paper);
}

.postcard-container {
    display: flex;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.04);
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.postcard-img {
    flex: 1;
    min-width: 350px;
    position: relative;
    border-right: 2px solid var(--text-color);
    overflow: hidden;
}

.postcard-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) contrast(110%);
    transition: var(--transition-smooth);
}

.postcard-img:hover img {
    filter: grayscale(0%) contrast(100%);
    transform: scale(1.08);
}

.postcard-content {
    flex: 1;
    min-width: 350px;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.postcard-subtitle {
    font-family: 'Inter';
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: block;
    font-weight: 700;
}

.postcard-title {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 30px;
    font-family: var(--font-heading);
}

.postcard-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.postcard-list li {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.btn-dark,
.btn-postcard {
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 0;
    transition: color 0.3s ease, border-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-dark::after,
.btn-postcard::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: var(--garnacha-red);
    transition: var(--transition-smooth);
    z-index: -1;
}

.btn-dark:hover::after,
.btn-postcard:hover::after {
    height: 100%;
}

.btn-dark {
    background: var(--garnacha-red);
    border: 2px solid var(--garnacha-red);
    color: #fff;
    padding: 15px 30px;
}

.btn-dark:hover {
    color: var(--garnacha-red);
    border-color: var(--garnacha-red);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 35, 41, 0.35);
}

.btn-postcard {
    background: var(--garnacha-red);
    border: 2px solid var(--garnacha-red);
    color: #fff;
    padding: 20px;
    display: block;
    text-align: center;
}

.btn-postcard:hover {
    color: var(--garnacha-red);
    background: transparent;
}

/* --- EQUIPO (NUEVO DISEÑO ELEGANTE) --- */
.team-section {
    background-color: var(--bg-paper) !important;
}

.team-mobile-scroll {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 30px;
    margin: 0 -15px;
    padding-left: 15px;
}

.team-mobile-scroll::-webkit-scrollbar {
    display: none;
}

.team-scroll-container {
    display: flex;
    padding: 0 15px 0 30px;
    width: max-content;
    gap: 15px;
}

.team-member-wrapper {
    width: 280px;
    flex-shrink: 0;
}

.team-member {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-align: center;
    padding: 0 !important;
    transition: transform 0.5s ease;
}

.team-member img {
    width: 100%;
    aspect-ratio: 1 / 1.2;
    object-fit: cover;
    filter: grayscale(100%) contrast(110%);
    transition: var(--transition-bounce);
    margin-bottom: 25px !important;
    transform: scale(1);
    border-radius: 4px;
}

/* Efecto de revelado de color */
.team-member:hover img {
    filter: grayscale(0%) contrast(1.1);
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Efecto en el nombre */
.team-member h4 {
    transition: var(--transition-smooth);
    position: relative;
}

.team-member:hover h4 {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Efecto en el cargo */
.team-member .text-muted {
    transition: var(--transition-smooth);
}

.team-member:hover .text-muted {
    color: var(--accent-color) !important;
    letter-spacing: 4px;
}

/* Efecto en la descripción */
.team-member p.small {
    transition: var(--transition-smooth);
    transform: translateY(0);
}

.team-member:hover p.small {
    transform: translateY(-3px);
    opacity: 1;
}

/* Efecto sutil en el contenedor */
.team-member {
    transition: var(--transition-smooth);
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member:hover img {
    filter: grayscale(0%) contrast(100%);
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.team-member h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
    font-weight: 700;
}

.team-member .text-muted {
    color: var(--accent-color) !important;
    font-size: 0.7rem !important;
    letter-spacing: 3px !important;
    margin-bottom: 15px;
    display: block;
    font-weight: 600;
}

.team-member p.section-subtitle-text {
    font-size: 0.9rem !important;
    line-height: 1.6;
    color: #666;
}

/* --- VISUAL BRIDGE & FOOTER --- */
.visual-bridge {
    padding: 0;
    margin: 0 !important;
    background: #0a0a0a;
    overflow: visible;
    position: relative;
    z-index: 5;
}

.floating-tag {
    position: absolute;
    top: -25px;
    left: 5%;
    background: var(--primary-color);
    color: white;
    padding: 10px 25px;
    font-family: var(--font-heading);
    font-weight: 700;
    z-index: 20;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.2);
}

.gallery-track {
    display: flex;
    width: fit-content;
    animation: scrollText 30s linear infinite;
}

.gallery-group {
    display: flex;
    flex-shrink: 0;
}

.gallery-item {
    width: 250px;
    height: 250px;
    border-right: 2px solid var(--text-color);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: var(--bg-paper);
}

.gallery-track .gallery-group:first-child .gallery-item:first-child {
    border-left: 2px solid var(--text-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.9);
    transition: var(--transition-bounce);
    transform: scale(1);
}

/* Efecto zoom y color al hover */
.gallery-item:hover img {
    filter: grayscale(0%) brightness(1.1) contrast(1.1);
    transform: scale(1.05);
}

/* Efecto de overlay sutil */
.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(192, 108, 76, 0.15), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.gallery-item:hover::before {
    opacity: 1;
}

/* Efecto en el texto de la galería */
.gallery-text {
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-text span {
    transform: translateY(-3px);
    letter-spacing: 2px;
}

.gallery-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.15);
}

.gallery-text {
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
}

/* --- MEGA FOOTER CORREGIDO (CENTRADO PERFECTO) --- */
footer {
    background-color: #111;
    color: #f9f7f2;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer-bottom {
    padding: 0 0 15px;
    /* arriba / laterales / abajo - padding superior eliminado */
}

/* TEXTO GIGANTE: Truco para centrar aunque sea más ancho que el contenedor */
.footer-brand-huge {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20vw;
    /* Un poco más pequeño para asegurar que entre mejor */
    font-weight: 800;
    line-height: 0.8;
    text-align: center;
    color: #1a1a1a;

    /* TRUCO DE CENTRADO ABSOLUTO */
    width: 100vw;
    /* Ocupa todo el ancho de la ventana */
    margin-left: calc(50% - 50vw);
    /* Se sale del contenedor para centrarse en pantalla */
    margin-top: 20px;
    margin-bottom: -20px;

    letter-spacing: -0.05em;
    user-select: none;
    pointer-events: none;
    display: block;
    position: relative;
    left: 0;
    animation: footerPulse 4s ease-in-out infinite;
}

@keyframes footerPulse {

    0%,
    100% {
        opacity: 0.60;
    }

    50% {
        opacity: 1;
    }
}

/* --- REDES SOCIALES (CENTRADO FORZOSO) --- */
/* Centrar y alinear redes sociales del footer */
footer .social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;

    padding: 0;
    margin: 0;
    list-style: none;

    flex-wrap: wrap;
    position: static;
    left: auto;
    transform: none;
}

footer .social-links li {
    display: flex;
    margin: 0;
    padding: 0;
}

footer .social-links a {
    display: flex;
    flex-direction: row;
    /* icono + texto en línea */
    align-items: center;
    gap: 10px;

    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    color: #f9f7f2;
}

footer .social-links i {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* --- AGE GATE (DISEÑO PREMIUM) --- */
#age-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(139, 0, 0, 0.95) 0%, rgba(26, 26, 26, 0.98) 100%),
        url('images/portada.webp') center/cover;
    backdrop-filter: blur(10px);
    z-index: 9999999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInGate 0.6s ease-out forwards;
}

@keyframes fadeInGate {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }

    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

#age-gate.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.age-content {
    max-width: 550px;
    padding: 60px 40px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(249, 247, 242, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUpContent 0.8s ease-out 0.2s backwards;
}

@keyframes slideUpContent {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.age-content img {
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

.age-title {
    font-family: var(--font-heading);
    color: var(--bg-paper);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 40px;
    line-height: 1.1;
    letter-spacing: 2px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.age-btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.btn-age {
    padding: 18px 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 1px;
    border: 2px solid var(--bg-paper);
    color: var(--bg-paper);
    background: transparent;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

.btn-age::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--bg-paper);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-age:hover::before {
    left: 0;
}

.btn-age:hover {
    color: var(--primary-color);
    border-color: var(--bg-paper);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(249, 247, 242, 0.3);
}

.btn-age:active {
    transform: translateY(-1px);
}

.btn-age.no {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    padding: 18px 35px;
}

.btn-age.no::before {
    background: rgba(255, 255, 255, 0.1);
}

.btn-age.no:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.age-disclaimer {
    margin-top: 40px;
    font-size: 0.75rem;
    color: rgba(249, 247, 242, 0.5);
    font-family: var(--font-body);
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 300;
}

@media (max-width: 768px) {
    .age-content {
        padding: 40px 30px;
        margin: 20px;
    }

    .age-btn-group {
        flex-direction: column;
        gap: 15px;
    }

    .btn-age {
        width: 100%;
        padding: 18px 30px;
    }

    .btn-age.no {
        width: 100%;
    }
}

/* Mobile responsive */
@media (max-width: 991px) {
    .hero-title-cinematic {
        font-size: 15vw;
    }

    .postcard-img {
        border-right: none;
        border-bottom: 2px solid var(--text-color);
        height: 250px;
    }

    .postcard-content {
        padding: 30px;
    }

    .postcard-title {
        font-size: 2.2rem;
    }

    .banner-headline {
        font-size: 2.5rem;
    }
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: 9999;
    transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
}

/* Efecto de brillo en el scroll */
.scroll-progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8));
    animation: scrollShine 2s infinite;
}

@keyframes scrollShine {
    0% {
        right: -20px;
    }

    100% {
        right: 100%;
    }
}

.btn-dark:focus-visible,
.btn-postcard:focus-visible,
.btn-shop:focus-visible,
.btn-age:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 2px;
}

/* =========================================================
   --- MOBILE POLISH (COHERENCIA & RITMO) ---
   ========================================================= */

/* =========================================================
   --- AJUSTES FINALES TAMAÑOS MÓVIL (VINS & EQUIP) ---
   ========================================================= */

/* =========================================================
   --- MASTER MOBILE FIXES (ESTILOS, TAMAÑOS Y PUNTOS) ---
   ========================================================= */

@media (max-width: 991px) {

    /* 1. COHERENCIA DE SECCIONES (Espaciado Mejorado) */
    .philosophy-grid,
    .origin-section,
    .wines-section,
    .visit-section,
    .team-section {
        padding: 100px 0 !important;
        /* Más aire */
    }

    /* 2. BANNERS MÁS ALTOS */
    .banner-section {
        min-height: 60vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 40px 20px;
    }

    .banner-headline {
        font-size: 3rem;
    }

    /* 3. ESTILOS DE LOS PUNTOS (LO QUE FALTABA) */
    .swipe-indicator {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-top: 10px;
        padding-bottom: 5px;
        width: 100%;
    }

    .dot {
        width: 8px;
        height: 8px;
        background-color: rgba(0, 0, 0, 0.2);
        /* Gris suave por defecto */
        border-radius: 50%;
        transition: var(--transition-smooth);
    }

    /* Puntos blancos cuando el fondo es oscuro (Vinos) */
    .wines-section .dot {
        background-color: rgba(255, 255, 255, 0.3);
    }

    .dot.active {
        background-color: var(--primary-color) !important;
        /* Rojo al activar */
        transform: scale(1.4);
    }


    /* CORRECCIÓN LEGIBILIDAD VARIEDADES */
    .wine-info .text-muted {
        font-size: 0.85rem;
        margin-bottom: 25px;
        color: rgba(255, 255, 255, 0.9) !important;
        /* Más contraste */
        text-transform: uppercase;
        letter-spacing: 4px;
        font-weight: 600;
        position: relative;
        animation: textGlitch 6s infinite;
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
        /* Añadir sombra */
        border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
        /* Línea más visible */
        padding-bottom: 5px;
    }

    /* Mobile también */
    @media (max-width: 991px) {
        .wine-info .text-muted {
            font-size: 0.8rem;
            margin-bottom: 20px;
            color: rgba(255, 255, 255, 0.9) !important;
            letter-spacing: 3px;
            font-weight: 600;
            text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
            border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
            padding-bottom: 5px;
        }
    }

    .wine-price {
        font-size: 1.4rem !important;
        margin-bottom: 8px !important;
    }

    .wine-info p {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
        margin-bottom: 15px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        opacity: 0.8;
    }

    .wines-section .btn-dark {
        width: 100% !important;
        padding: 8px 20px !important;
        font-size: 0.9rem !important;
        text-align: center;
    }


    /* 5. TAMAÑOS EQUIPO (ARREGLADO: Fotos más compactas y Slider) */
    .team-mobile-scroll {
        width: 100%;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        padding: 10px 5px 30px !important;
        margin: 0 !important;
        display: flex !important;
        gap: 15px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .team-mobile-scroll::-webkit-scrollbar {
        display: none;
    }

    .team-scroll-container {
        display: flex;
        gap: 15px;
        width: 100%;
    }

    .team-member-wrapper {
        flex: 0 0 100% !important;
        /* One card at a time */
        scroll-snap-align: center !important;
        padding: 0 !important;
    }

    .team-member {
        padding: 20px !important;
        background: #fff;
        border: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 15px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }

    .team-member img {
        height: 250px !important;
        /* Slightly more prominence but compact */
        width: 100%;
        object-fit: cover;
        margin-bottom: 15px !important;
        border-radius: 10px;
    }

    .team-member h4 {
        font-size: 1.4rem !important;
        margin-bottom: 5px !important;
    }

    .team-member p.text-muted {
        font-size: 0.8rem !important;
        letter-spacing: 2px !important;
    }
}


/* --- ACCESIBILIDAD: FOCUS STATES CONSISTENTES --- */

/* Links y botones principales */
a:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.btn-dark:focus-visible,
.btn-shop:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Botones con bordes */
.btn-dark:focus-visible,
.btn-shop:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Enlaces del navbar */
.nav-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    background: rgba(139, 0, 0, 0.1);
}


/* Botones de age gate */
.btn-age:focus-visible {
    outline: 3px solid var(--bg-paper);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(249, 247, 242, 0.3);
}

/* Wine items */
.wine-item:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 4px;
    border-radius: 8px;
}

/* Social links */
.social-links a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 50%;
}

/* Skip link para accesibilidad */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    font-weight: 600;
    font-size: 0.9rem;
}

.skip-link:focus {
    top: 6px;
}

/* Asegurar que los hover mantengan contraste */
.nav-link:hover {
    color: #5a0000;
}

.social-links a:hover {
    color: #fff !important;
}


/* --- EFECTOS ADICIONALES PARA ICONOS --- */

/* Animación de pulso sutil para iconos importantes */
@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Aplicar a iconos específicos */
.banner-icon {
    animation: iconPulse 3s ease-in-out infinite;
}

/* Efecto de rotación para iconos de redes sociales */
.social-links i {
    transition: var(--transition-smooth);
}

.social-links a:hover i {
    transform: rotate(-5deg) scale(1.1);
}

/* Efecto de brillo para iconos de detalles */
.detail-item i {
    transition: var(--transition-smooth);
}

.detail-item:hover i {
    color: var(--primary-color);
    transform: rotate(10deg);
}

/* --- EFECTOS PARALLAX SUTILES --- */

/* Parallax en hero */
.hero-bg {
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

/* Parallax en philosophy items */
.ph-item {
    transition: var(--transition-smooth);
}



/* Efecto de profundidad en gallery */
.gallery-track {
    perspective: 1000px;
}

/* --- TRANSICIONES ENTRE SECCIONES --- */

/* Efecto de fade entre secciones */
section {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Efecto de revelado para secciones */
.section-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Transiciones específicas por sección */
body[data-section="filosofia"] .philosophy-grid {
    animation: sectionFadeIn 1s ease forwards;
}

body[data-section="vins"] .wines-section {
    animation: sectionSlideIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

body[data-section="equip"] .team-section {
    animation: sectionZoomIn 1s ease forwards;
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sectionSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes sectionZoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- EFECTOS DE scroll AVANZADOS --- */

/* Efecto de blur al hacer scroll */
.navbar.scrolled {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* --- ENHANCED REVEAL ANIMATIONS --- */

/* Base reveal: Fade up */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal for groups */
.reveal-stagger {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-stagger.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Text reveal (for paragraphs) */
.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.reveal-text.active {
    opacity: 1;
    transform: translateY(0);
}

/* Image wrapper reveal with scale */
.reveal-img-wrapper {
    overflow: hidden;
    display: block;
}

.reveal-img-wrapper img {
    transform: scale(1.15);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.reveal-img-wrapper.active img {
    transform: scale(1);
}

/* Legacy support for scroll-reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Section reveal variants */
.reveal-fade {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade.active {
    opacity: 1;
}

.reveal-slide-right {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-slide-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-slide-left {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-slide-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal-stagger,
    .reveal-text,
    .reveal-img-wrapper img,
    .scroll-reveal,
    .reveal-fade,
    .reveal-slide-right,
    .reveal-slide-left {
        transition: none !important;
        transform: none !important;
    }

    .reveal,
    .reveal-stagger,
    .reveal-text,
    .scroll-reveal,
    .reveal-fade,
    .reveal-slide-right,
    .reveal-slide-left {
        opacity: 1 !important;
    }
}

/* Efecto de parallax en fondo */
body {
    background-attachment: fixed;
    background-position: center;
}

/* Efecto de zoom en hero al scroll */
.hero-cinematic {
    transition: transform 0.3s ease;
}

.hero-cinematic.scrolled {
    transform: scale(0.95);
}

/* --- MICRO-ANIMACIONES PREMIUM --- */

/* Efecto de typing en títulos */
@keyframes typingReveal {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.typing-effect {
    overflow: hidden;
    white-space: nowrap;
    animation: typingReveal 2s steps(30, end);
}

/* Efecto de glitch sutil */
@keyframes glitch {

    0%,
    100% {
        transform: translate(0);
    }

    20% {
        transform: translate(-1px, 1px);
    }

    40% {
        transform: translate(1px, -1px);
    }

    60% {
        transform: translate(-1px, -1px);
    }

    80% {
        transform: translate(1px, 1px);
    }
}

.glitch-effect:hover {
    animation: glitch 0.3s ease-in-out;
}

/* Efecto de magnetic hover */
.magnetic-hover {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efecto de ripple en botones */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.ripple-effect:hover::before {
    width: 300px;
    height: 300px;
}

/* --- BOTÓN GLITCH LIMPIO --- */
.btn-glitch {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 500;
    border-radius: 0;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-glitch::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-glitch:hover::before {
    left: 100%;
}

.btn-glitch:hover {
    color: #000;
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Específico para botones en wine-info */
.wine-info .btn-glitch {
    width: auto;
    max-width: 200px;
    margin-top: 15px;
}

/* === UNIFORMIDAD DE TÍTULOS DE SECCIÓN === */
.meta-label {
    display: block;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 15px;
    opacity: 0.9;
}

/* Descripción de sección consistente */
section p[style*="max-width: 600px"] {
    font-family: var(--font-body);
    line-height: 1.6;
    opacity: 0.85;
}

/* Separadores siempre del mismo color */
.separator {
    width: 60px;
    height: 2px;
    background: var(--accent-color) !important;
    margin: 20px auto;
}

/* Títulos h2 en secciones */
section h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .meta-label {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    section p[style*="max-width: 600px"] {
        font-size: 0.95rem !important;
        padding: 0 20px;
    }
}

/* --- INSTAGRAM GALLERY: INTERACTIVE ACCORDION --- */
.insta-grid-container {
    display: flex;
    width: 100%;
    height: 500px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.insta-item {
    position: relative;
    flex: 1;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 2px solid rgba(255, 255, 255, 0.3);
}

.insta-item:last-child {
    border-right: none;
}

.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: filter 0.4s ease, transform 0.6s ease;
    filter: grayscale(60%) brightness(0.7);
    transform: scale(1.1);
    /* Slight zoom to prevent gaps */
}

/* Overlay */
.insta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 40px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 5;
}

.insta-overlay i {
    color: #fff;
    font-size: 3rem;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Hover State: Expand the hovered item */
.insta-item:hover {
    flex: 3;
    /* Expands to 3x the normal width */
}

.insta-item:hover img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1);
}

.insta-item:hover .insta-overlay {
    opacity: 1;
}

.insta-item:hover .insta-overlay i {
    transform: translateY(0);
}

/* Non-hovered items shrink */
.insta-grid-container:hover .insta-item:not(:hover) {
    flex: 0.5;
}

.insta-grid-container:hover .insta-item:not(:hover) img {
    filter: grayscale(80%) brightness(0.5);
}

/* Mobile: Stack vertically */
@media (max-width: 991px) {
    .insta-grid-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        height: auto;
    }

    .insta-item {
        flex: none;
        height: 200px;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .insta-item:hover {
        flex: 2;
    }

    .insta-grid-container:hover .insta-item:not(:hover) {
        flex: 1;
    }
}

.team-member img {
    width: 100%;

    /* AÑADE ESTAS 3 LÍNEAS: */
    height: 50dvh;
    /* Altura fija para todas */
    object-fit: cover;
    /* Recorta la imagen para que rellene el hueco sin deformarse */
    object-position: top center;
    /* Enfoca la parte de arriba (las caras) para que no corte cabezas */

    /* Mantén el resto de tus estilos que ya tenías: */
    filter: grayscale(100%) contrast(110%);
    transition: var(--transition-bounce);
    margin-bottom: 25px !important;
    transform: scale(1);
}

/* --- DATOS TÉCNICOS (Estilo Cuaderno de Campo) --- */
.tech-specs {
    margin: 15px 0 20px;
    font-family: 'Courier New', Courier, monospace;
    /* Tipografía monoespaciada */
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
    max-width: 200px;
    /* Para que no ocupe todo el ancho */
}

/* Alineación diferente para el vino de la derecha (Blanc) si es necesario */
.text-lg-end .tech-specs {
    margin-left: auto;
    /* Lo empuja a la derecha en PC */
}

.tech-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.2);
    /* Línea discontinua técnica */
}

.tech-row:first-child {
    border-top: 1px dashed rgba(0, 0, 0, 0.2);
}

.tech-row span:first-child {
    font-weight: 700;
    color: var(--primary-color);
    /* Etiqueta en rojo vino */
}

/* Prevenir línea blanca en móvil */
html,
body {
    width: 100%;
    position: relative;
}

.container {
    max-width: 100%;
}

/* Asegurar que ningún elemento se salga */
.row {
    margin-left: 0;
    margin-right: 0;
}

/* =========================================
   NUEVA SECCIÓN DE VINOS (GAMA CLARA)
   ========================================= */

/* 1. Fondo con TU Imagen Personalizada */
.wines-section.light-mode {
    background-color: #f4f1ea !important;
    background-image: url('images/cansais.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    /* AÑADE ESTA LÍNEA */
}

/* 2. Filtro "Gris Elegante" para máxima legibilidad */
.wines-section.light-mode::before {
    content: "";
    position: absolute;
    top: -10px;
    /* Aumentado de -1px a -10px */
    left: -10px;
    /* Aumentado de -1px a -10px */
    right: -10px;
    /* AÑADE esta línea */
    bottom: -10px;
    /* AÑADE esta línea */
    background: rgba(235, 235, 235, 0.92);
    backdrop-filter: grayscale(100%);
    pointer-events: none;
    z-index: 0;
    display: block !important;
}

/* 3. Textos oscuros para el fondo claro */
.wines-section.light-mode h2,
.wines-section.light-mode h3,
.wines-section.light-mode .meta-label {
    color: #1a1a1a !important;
    /* Cambia de var(--text-color) a negro puro */
    text-shadow: none !important;
}

.wines-section.light-mode p {
    color: #333 !important;
    /* Cambia de #555 a #333 - Más oscuro */
}

.wines-section.light-mode .separator {
    background: linear-gradient(90deg,
            var(--primary-color),
            var(--accent-color),
            var(--primary-color)) !important;
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

/* 4. Ajustes de las fichas de vino en modo claro */
.wines-section.light-mode .wine-info p.text-muted {
    color: var(--accent-color) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.wines-section.light-mode .tech-row span {
    color: var(--text-color) !important;
}

/* 5. Botón en modo claro (borde negro) */
.wines-section.light-mode .btn-glitch {
    border: 1px solid var(--text-color);
    color: var(--text-color);
}

.wines-section.light-mode .btn-glitch:hover {
    background: var(--text-color);
    color: #fff;
}

.watermark-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Playfair Display', serif;
    /* Más elegante que la actual */
    font-size: 20vw;
    /* Aumentado de 18vw */
    font-weight: 900;
    color: rgba(0, 0, 0, 0.06);
    /* Aumentado de 0.03 a 0.06 - Más visible */
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    line-height: 1;
    letter-spacing: -0.02em;
    /* Ajuste fino */
}

/* Asegurar que el contenido esté por encima del fondo */
.wines-section.light-mode .container {
    position: relative;
    z-index: 2;
}

/* Separador brillante animado */
.wines-section.light-mode .separator {
    background: linear-gradient(90deg,
            var(--primary-color),
            var(--accent-color),
            var(--primary-color)) !important;
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 0%;
    }
}

/* === PUENTE VISUAL (BRIDGE MARQUEE) === */
.bridge-section {
    position: relative;
    width: 100%;
    height: 120px;
    /* Altura de la franja */
    z-index: 20;
    overflow: hidden;
    /* El truco: Fondo dividido 50% claro (arriba) y 50% oscuro (abajo) */
    background: linear-gradient(to bottom, var(--bg-paper) 50%, #000 50%);
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bridge-marquee {
    width: 100%;
    overflow: hidden;
    /* Invertir colores mágicamente: Lo que pasa por lo blanco se ve negro, y viceversa */
    mix-blend-mode: difference;
    pointer-events: none;
}

.bridge-track {
    display: flex;
    white-space: nowrap;
    animation: scrollBridge 20s linear infinite;
    will-change: transform;
}

.bridge-track span {
    font-family: var(--font-heading);
    font-size: 4rem;
    /* Texto grande */
    font-weight: 800;
    letter-spacing: -1px;
    color: #fff;
    /* Base blanca para que el 'difference' funcione bien */
    padding: 0 40px;
    line-height: 1;
    text-transform: uppercase;
}

@keyframes scrollBridge {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-20%);
    }

    /* Ajustar según longitud */
}

/* Ajuste Móvil */
@media (max-width: 991px) {
    .bridge-section {
        height: 80px;
    }

    .bridge-track span {
        font-size: 2.5rem;
    }
}

/* === OIL SPILL TRANSITION === */
.oil-spill-container {
    position: absolute;
    bottom: -1px;
    /* Pequeño ajuste para evitar líneas blancas */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 20;
    pointer-events: none;
}

.oil-svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 180px;
    /* Altura de la ola */
    transform: rotateY(180deg);
}

/* Animación sutil de "respiración" del líquido */
.oil-svg path {
    animation: oilBreath 6s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes oilBreath {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(1.05);
    }
}

/* Ajuste para móviles */
@media (max-width: 991px) {
    .oil-svg {
        height: 100px;
    }
}

/* === THE GLITCH THRESHOLD (BRUTAL MODE) === */
.glitch-threshold {
    position: relative;
    width: 100%;
    height: 150px;
    /* Altura de la grieta */
    background: #000;
    overflow: hidden;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 2px solid #fff;
    border-bottom: 2px solid #fff;
}

/* Ruido estático de fondo */
.glitch-noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    mix-blend-mode: overlay;
}

/* Línea roja de error que recorre la pantalla */
.glitch-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ff003c;
    box-shadow: 0 0 10px #ff003c, 0 0 20px #ff003c;
    z-index: 10;
    animation: scanline 2s linear infinite;
}

@keyframes scanline {
    0% {
        transform: translateY(-75px);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(75px);
        opacity: 0;
    }
}

/* Texto de error hackeado */
.glitch-content {
    position: relative;
    z-index: 20;
    mix-blend-mode: difference;
}

.glitch-text {
    font-family: 'Courier New', monospace;
    font-weight: 900;
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: #fff;
    letter-spacing: -2px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

/* Efecto RGB Split en el texto */
.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-text::before {
    color: #00ffff;
    z-index: -1;
    animation: glitch-anim-1 0.4s infinite linear alternate-reverse;
}

.glitch-text::after {
    color: #ff003c;
    z-index: -2;
    animation: glitch-anim-2 0.4s infinite linear alternate-reverse;
}

/* Fragmentos rotos (Shards) */
.glitch-shards .shard {
    position: absolute;
    background: #fff;
    mix-blend-mode: exclusion;
    animation: shard-flash 0.2s infinite;
}

.shard:nth-child(1) {
    top: 20%;
    left: 10%;
    width: 100px;
    height: 5px;
    animation-delay: 0.1s;
}

.shard:nth-child(2) {
    top: 80%;
    right: 15%;
    width: 60px;
    height: 10px;
    animation-delay: 0.3s;
}

.shard:nth-child(3) {
    top: 40%;
    left: 60%;
    width: 200px;
    height: 2px;
    animation-delay: 0.05s;
}

/* ANIMACIONES CAÓTICAS */
@keyframes glitch-anim-1 {
    0% {
        clip-path: inset(20% 0 80% 0);
        transform: translate(-2px, 1px);
    }

    20% {
        clip-path: inset(60% 0 10% 0);
        transform: translate(2px, -1px);
    }

    40% {
        clip-path: inset(40% 0 50% 0);
        transform: translate(-2px, 2px);
    }

    60% {
        clip-path: inset(80% 0 5% 0);
        transform: translate(2px, -2px);
    }

    80% {
        clip-path: inset(10% 0 70% 0);
        transform: translate(-1px, 1px);
    }

    100% {
        clip-path: inset(30% 0 20% 0);
        transform: translate(1px, -1px);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip-path: inset(10% 0 60% 0);
        transform: translate(2px, -1px);
    }

    20% {
        clip-path: inset(80% 0 5% 0);
        transform: translate(-2px, 2px);
    }

    40% {
        clip-path: inset(30% 0 20% 0);
        transform: translate(2px, 1px);
    }

    60% {
        clip-path: inset(10% 0 80% 0);
        transform: translate(-1px, -2px);
    }

    80% {
        clip-path: inset(50% 0 30% 0);
        transform: translate(1px, 2px);
    }

    100% {
        clip-path: inset(20% 0 70% 0);
        transform: translate(-2px, 1px);
    }
}

@keyframes shard-flash {

    0%,
    100% {
        opacity: 0;
        transform: scaleX(0.5);
    }

    50% {
        opacity: 1;
        transform: scaleX(1.5);
    }
}

/* Ajuste Móvil */
@media (max-width: 991px) {
    .glitch-threshold {
        height: 100px;
    }

    .glitch-text {
        font-size: 1.2rem;
        letter-spacing: 0;
    }
}

/* === REALITY BREAK (PRE-GLITCH LAYER) === */
.reality-break {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    /* Cuánto espacio hacia arriba afecta */
    pointer-events: none;
    z-index: 15;
    overflow: hidden;
}

.break-strip {
    position: absolute;
    left: 0;
    width: 100%;
    background: rgba(255, 0, 60, 0.1);
    /* Tinte rojo muy sutil */
    mix-blend-mode: exclusion;
    /* Invierte colores suavemente */
    opacity: 0;
}

/* Tira 1: Fina y rápida */
.break-strip:nth-child(1) {
    bottom: 10%;
    height: 5px;
    animation: stripGlitch 2s infinite linear;
}

/* Tira 2: Gruesa y lenta */
.break-strip:nth-child(2) {
    bottom: 25%;
    height: 30px;
    background: rgba(0, 255, 255, 0.1);
    /* Tinte cian */
    animation: stripGlitch 3.5s infinite reverse steps(5);
}

/* Tira 3: Aleatoria */
.break-strip:nth-child(3) {
    bottom: 5%;
    height: 10px;
    animation: stripGlitch 0.5s infinite alternate;
}

/* Tira 4: Grande */
.break-strip:nth-child(4) {
    bottom: 40%;
    height: 2px;
    background: #fff;
    mix-blend-mode: difference;
    animation: stripGlitch 5s infinite linear;
}

/* Tira 5: Ruido */
.break-strip:nth-child(5) {
    bottom: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0;
    mix-blend-mode: overlay;
    animation: noiseFade 2s infinite;
    mask-image: linear-gradient(to top, black, transparent);
}

@keyframes stripGlitch {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    10% {
        opacity: 0;
    }

    11% {
        opacity: 0.8;
    }

    15% {
        opacity: 0;
    }

    40% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes noiseFade {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 0.15;
    }

    /* Ruido sutil que aparece y desaparece */
}

/* Modificar el Glitch Threshold para que se integre mejor */
.glitch-threshold {
    border-top: none;
    /* Quitamos el borde limpio */
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.5);
    /* Sombra hacia arriba */
}

/* === CORRECCIÓN DE BORDES === */
.glitch-threshold {
    border-bottom: none !important;
    /* ADIÓS LÍNEA BLANCA */
    /* Fusión perfecta con el gris de abajo */
    background: linear-gradient(to bottom, var(--text-color) 80%, var(--text-color) 100%);
}

/* === DIGITAL AFTERSHOCK (POST-GLITCH LAYER) === */
.wines-section {
    position: relative;
    /* Necesario para posicionar el aftershock */
}

.digital-aftershock {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px;
    /* Se desvanece hacia abajo */
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, black, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent);
}

/* Líneas de eco que bajan */
.echo-line {
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(0, 255, 255, 0.3);
    /* Cian sutil */
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    animation: echoDrop 3s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.echo-line:nth-child(2) {
    background: rgba(255, 0, 60, 0.3);
    /* Rojo sutil */
    animation-delay: 1.5s;
    animation-duration: 4s;
}

@keyframes echoDrop {
    0% {
        transform: translateY(0) scaleX(1);
        opacity: 0.8;
    }

    100% {
        transform: translateY(300px) scaleX(1.1);
        opacity: 0;
    }
}

/* Lluvia de píxeles muertos */
.pixel-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    animation: pixelRain 20s linear infinite;
}

@keyframes pixelRain {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 1000px;
    }
}

/* Asegurar que el contenido (títulos, vinos) esté POR ENCIMA del efecto */
.wines-section .container {
    position: relative;
    z-index: 2;
}

/* === ANOMALY ENHANCEMENTS (HOLOGRAPHIC & GLITCH) === */

/* 1. GRID NERVIOSO (Sustituye la animación suave por esta) */
.wines-section:not(.light-mode)::before {
    animation: gridTwitch 4s infinite steps(1) !important;
    /* Pasos bruscos */
    opacity: 0.4;
}

@keyframes gridTwitch {
    0% {
        transform: translate(0, 0);
        opacity: 0.3;
    }

    5% {
        transform: translate(2px, 2px);
        opacity: 0.4;
    }

    10% {
        transform: translate(-2px, -2px);
        opacity: 0.3;
    }

    15% {
        transform: translate(0, 0);
        opacity: 0.3;
    }

    50% {
        transform: translate(1px, -1px);
        opacity: 0.35;
    }

    52% {
        transform: translate(-5px, 5px);
        opacity: 0.2;
        filter: hue-rotate(90deg);
    }

    /* Glitch de color momentáneo */
    54% {
        transform: translate(0, 0);
        opacity: 0.3;
    }

    100% {
        transform: translate(0, 0);
        opacity: 0.3;
    }
}

/* 2. BOTELLA HOLOGRÁFICA (RGB SPLIT ON HOVER) */
/* Solo aplica a la sección oscura */
.wines-section:not(.light-mode) .wine-visual {
    position: relative;
    overflow: visible;
    /* Permitir que el glitch salga */
}

/* Crear copias fantasma para el efecto RGB */
.wines-section:not(.light-mode) .wine-visual::before,
.wines-section:not(.light-mode) .wine-visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    background-image: inherit;
    /* Truco: Heredar la imagen si fuera fondo, pero aquí usamos img */
    /* En este caso, usaremos la imagen real clonada via CSS mask o simplemente duplicando el efecto visual */
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    transition: opacity 0.2s;
}

@keyframes hologramMain {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    50% {
        transform: translate(1px, 0) scale(1.01);
        opacity: 0.9;
    }

    100% {
        transform: translate(-1px, 0) scale(1);
        opacity: 1;
    }
}

@keyframes hologramRed {
    0% {
        transform: translate(-2px, 0);
        opacity: 0.4;
    }

    20% {
        transform: translate(2px, 2px);
        opacity: 0;
    }

    40% {
        transform: translate(-2px, -2px);
        opacity: 0.4;
    }

    100% {
        transform: translate(0, 0);
        opacity: 0.2;
    }
}

@keyframes hologramBlue {
    0% {
        transform: translate(2px, 0);
        opacity: 0.4;
    }

    20% {
        transform: translate(-2px, -2px);
        opacity: 0;
    }

    40% {
        transform: translate(2px, 2px);
        opacity: 0.4;
    }

    100% {
        transform: translate(0, 0);
        opacity: 0.2;
    }
}

/* 3. TEXTO CORRUPTO (DATA DECAY) */
.wines-section:not(.light-mode) .wine-info p {
    position: relative;
    opacity: 0.8;
}

.wines-section:not(.light-mode) .wine-item:hover .wine-info p {
    animation: textFlicker 0.15s infinite;
}

@keyframes textFlicker {
    0% {
        opacity: 0.8;
    }

    50% {
        opacity: 0.6;
    }

    51% {
        opacity: 0.9;
        text-shadow: 2px 0 red;
    }

    52% {
        opacity: 0.8;
        text-shadow: none;
    }

    100% {
        opacity: 0.8;
    }
}

/* === OPTIMIZACIÓN MÓVIL PARA GLITCH === */
@media (max-width: 991px) {

    /* 1. Grieta más compacta */
    .glitch-threshold {
        height: 80px !important;
        /* Reducir altura */
        border-top-width: 1px;
        border-bottom-width: 1px;
    }

    /* 2. Texto más pequeño y manejable */
    .glitch-text {
        font-size: 0.9rem !important;
        /* Texto mucho más pequeño */
        letter-spacing: 1px !important;
        white-space: nowrap;
        /* Evitar saltos de línea feos */
    }

    /* 3. Reducir invasión de efectos pre/post */
    .reality-break {
        height: 150px !important;
        /* Menos altura hacia arriba */
    }

    .digital-aftershock {
        height: 200px !important;
        /* Menos altura hacia abajo */
    }

    /* 4. Controlar las líneas de eco */
    @keyframes echoDrop {
        0% {
            transform: translateY(0) scaleX(1);
            opacity: 0.8;
        }

        100% {
            transform: translateY(150px) scaleX(1.1);
            opacity: 0;
        }

        /* Caída más corta */
    }

    /* 5. Evitar desbordamiento horizontal */
    .glitch-threshold,
    .reality-break,
    .digital-aftershock {
        width: 100vw;
        left: 50%;
        transform: translateX(-50%);
        /* Centrado seguro */
        max-width: 100vw;
        overflow: hidden;
    }

    /* 6. Suavizar el grid nervioso en móvil para no marear */
    .wines-section:not(.light-mode)::before {
        opacity: 0.2 !important;
        /* Más sutil */
        animation-duration: 8s !important;
        /* Más lento */
    }
}

/* === REFINAMIENTO: BOTÓN TAST & HOVER VINOS === */

/* 1. Botón Tast (Visit) más elegante */
.visit-section .btn-dark {
    padding: 12px 28px !important;
    /* Más pequeño */
    font-size: 0.8rem !important;
    /* Texto más fino */
    letter-spacing: 3px !important;
    /* Más aire entre letras */
    border-width: 1px !important;
    /* Borde sutil */
    font-weight: 600 !important;
    background: transparent !important;
    /* Fondo transparente por defecto */
    color: var(--text-color) !important;
    border-color: var(--text-color) !important;
}

.visit-section .btn-dark:hover {
    background: var(--text-color) !important;
    color: #fff !important;
}

/* 2. Ajuste de Área de Hover en Vinos (Desktop) */
@media (min-width: 992px) {
    .wine-item {
        padding: 10px 40px !important;
        /* Reducimos drásticamente el relleno (antes 80px) */
        margin: 20px 0 !important;
        /* Reducimos el margen vertical para menos espacio */
        border-radius: 20px;
        /* Opcional: suaviza el área de detección */
    }

    /* Ajuste para que la botella no "baile" tanto al reducir espacio */
    .wine-visual {
        transform-origin: center center;
    }

}

/* === REFINAMIENTO FINAL: HOVER SOLO EN BOTELLA === */

/* 1. DESACTIVAR EL CUADRADO GIGANTE (El gradiente de fondo) */
.wine-item:hover::before {
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
}

/* 2. MOVER TODOS LOS EFECTOS PARA QUE SOLO SALTEN AL TOCAR LA BOTELLA (.wine-visual) */

/* Glow de fondo */
.wine-item:hover .wine-bg-glow {
    /* Anular el trigger anterior del padre */
    opacity: 0.03;
    transform: translate(-50%, -50%);
    animation: none;
}

.wine-visual:hover .wine-bg-glow {
    /* Nuevo trigger directo */
    opacity: 0.08;
    /* Un poco más intenso para compensar */
    transform: translate(-50%, -50%) scale(1.3);
    animation: glowPulse 4s ease-in-out infinite;
}



.wine-visual:hover img {
    /* Nuevo trigger */
    filter: brightness(1.2) contrast(1.1) drop-shadow(0 35px 70px rgba(139, 0, 0, 0.5));
    transform: translateY(-15px) scale(1.05);
}

/* Líquido / Ondas */
.wine-item:hover .liquid-wave {
    opacity: 0;
    animation: none;
}

.wine-visual:hover .liquid-wave {
    opacity: 0.25;
    transform: translateX(-50%) translateY(-20px) scale(1.2);
    animation: liquidPulse 3s ease-in-out infinite;
}

/* Ripple effect */
.wine-item:hover .bottle-container::before {
    opacity: 0;
    animation: none;
}

.wine-visual:hover .bottle-container::before {
    opacity: 0.15;
    animation: ripple 2s ease-out infinite;
}

/* === CORRECCIÓN GLITCH PIRANHA === */

/* 1. Desactivar trigger antiguo (tarjeta completa) */
/*.wines-section:not(.light-mode) .wine-item:hover .wine-visual::before,
.wines-section:not(.light-mode) .wine-item:hover .wine-visual::after {
    animation: none;
    opacity: 0;
}*/

/* Aseguramos que la imagen base se vea siempre */
.wines-section:not(.light-mode) .wine-item:hover .wine-visual img {
    opacity: 1;
    animation: none;
    /* Paramos la animación si no estás sobre la botella, pero no la ocultamos */
}

/* 2. Activar trigger nuevo (SOLO botella) - CON MÁS FUERZA */
/*.wines-section:not(.light-mode) .wine-item .wine-visual:hover img {
    animation: hologramMain 0.1s infinite !important;
    opacity: 1 !important;
}

.wines-section:not(.light-mode) .wine-item .wine-visual:hover::before {
    opacity: 0.5 !important;
    animation: hologramRed 2s infinite linear alternate-reverse !important;
}

.wines-section:not(.light-mode) .wine-item .wine-visual:hover::after {
    opacity: 0.5 !important;
    animation: hologramBlue 3s infinite linear alternate-reverse !important;
}*/

/* Texto Glitch al tocar botella */
.wines-section:not(.light-mode) .wine-item .wine-visual:hover~.wine-info p {
    animation: textFlicker 0.15s infinite !important;
}





/* 3. Versión alternativa para banners (círculo -> rectángulo) */
.banner-bg {
    clip-path: circle(0% at 50% 50%);
    transition: clip-path 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-section.reveal-active .banner-bg {
    clip-path: circle(150% at 50% 50%);
}

/* =================================================================
   WINE MODAL - PROFESSIONAL TASTING CARD (NUEVO DISEÑO)
   ================================================================= */

/* Base Modal */
.wine-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 3vh 4vw;
    overflow: hidden;
    /* el modal nunca supera la pantalla */
}

.wine-modal.active {
    display: flex;
}

/* Backdrop */
.wine-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.88);
    backdrop-filter: blur(12px);
    animation: fadeIn 0.3s ease;
}

/* Tarjeta principal */
.wine-modal-card {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: min(90vh, 720px);
    /* nunca más alto que la pantalla */
    background: linear-gradient(135deg, #faf7f1 0%, #f4efe6 100%);
    border-radius: 0;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    /* sin scroll interno */
    animation: modalEnter 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* textura papel suave acorde con la web */
    background-image:
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0, 0, 0, .015) 2px, rgba(0, 0, 0, .015) 4px),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, .015) 2px, rgba(0, 0, 0, .015) 4px);
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: translateY(24px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Botón cerrar */
.wine-modal-close {
    position: absolute;
    top: 20px;
    right: 22px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 999px;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.wine-modal-close i {
    font-size: 17px;
    color: #2b2520;
    transition: color 0.25s ease;
}

.wine-modal-close:hover {
    background: var(--primary-color);
    transform: rotate(90deg);
}

.wine-modal-close:hover i {
    color: #fff;
}

/* Sello edición limitada */
.limited-edition-seal {
    position: absolute;
    top: 18px;
    left: 32px;
    width: 90px;
    height: 90px;
    z-index: 15;
    animation: sealRotate 22s linear infinite;
}

@keyframes sealRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.seal-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    background:
        radial-gradient(circle at 30% 20%, #fff7d8 0%, #d8b454 55%, #b08a2a 100%);
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 2px,
            rgba(255, 255, 255, 0.14) 2px, rgba(255, 255, 255, 0.14) 4px);
}

.seal-text {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    color: #2b2520;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
}

.seal-number {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin: 3px 0;
}

/* Layout interior: dos paneles + botella centrada visualmente */
.wine-modal-container {
    position: relative;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    column-gap: 70px;
    padding: 70px 80px 55px;
    align-items: stretch;
}

/* Columna botella */
.wine-modal-image-col {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* halo detrás de la botella para centrarla visualmente */
.wine-modal-image-col::before {
    content: "";
    position: absolute;
    inset: 14%;
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.2) 45%, transparent 70%),
        radial-gradient(circle at 50% 70%, rgba(0, 0, 0, 0.10), transparent 65%);
    mix-blend-mode: multiply;
    pointer-events: none;
}

.wine-bottle-float {
    position: relative;
}

.wine-bottle-float img {
    max-height: 540px;
    /* botella MUCHO más grande */
    width: auto;
    filter: drop-shadow(0 26px 55px rgba(0, 0, 0, 0.35));
}

/* Columna información: rejilla de bloques alrededor de la botella */
.wine-modal-info-col {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    grid-auto-rows: min-content;
    column-gap: 30px;
    row-gap: 18px;
    align-content: start;
    color: #2b2520;
    overflow: visible;
    /* SIN scroll interno */
}

/* Distribución de secciones (izquierda/derecha) */
.wine-modal-header,
.modal-divider,
.modal-description {
    grid-column: 1 / 2;
}

.organoleptic-section {
    grid-column: 2 / 3;
    grid-row: 1 / span 3;
}

.tasting-notes-section {
    grid-column: 1 / 2;
}

.intensity-section {
    grid-column: 2 / 3;
}

.pairing-section {
    grid-column: 1 / 3;
}

.technical-footer {
    grid-column: 1 / 3;
}

.modal-cta-container {
    grid-column: 1 / 3;
}

/* Cabecera */
.wine-modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    padding-bottom: 12px;
}

.modal-grape-variety {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.modal-wine-name {
    font-family: var(--font-heading);
    font-size: 2.7rem;
    font-weight: 700;
    text-transform: none;
    color: #201814;
    margin: 0 0 6px 0;
    line-height: 1.05;
}

.modal-price-tag {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
}

.price-label {
    font-family: var(--font-body);
    font-size: 0.86rem;
    color: #8a8076;
}

/* Divider */
.modal-divider {
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 10px 0;
}

/* Descripción */
.modal-description {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: #443a32;
    font-style: italic;
}

/* Títulos de sección */
.section-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: #251d18;
    margin: 0 0 14px 0;
    border-bottom: 1px solid #e0d6cc;
    padding-bottom: 8px;
}

/* Bloques en tarjeta clara */
.organoleptic-section,
.tasting-notes-section,
.intensity-section {
    background: rgba(255, 255, 255, 0.82);
    padding: 18px 18px 16px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Gráfico */
.organoleptic-chart {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.organoleptic-chart svg {
    width: 100%;
    max-width: 210px;
    height: auto;
}

.chart-label {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 600;
    fill: #5a4a3e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#modal-profile-polygon {
    transition: all 0.5s ease;
}

/* Notas de cata */
.tasting-notes-grid {
    display: grid;
    gap: 14px;
}

.tasting-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.note-icon {
    width: 38px;
    height: 38px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.note-icon i {
    font-size: 15px;
    color: #fff;
}

.note-content {
    flex: 1;
}

.note-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 3px;
}

.note-text {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.5;
    color: #51443a;
}

/* Barras de intensidad */
.intensity-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.intensity-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.intensity-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: #30251e;
    min-width: 80px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.intensity-bar-track {
    flex: 1;
    height: 8px;
    background: #e4ddd5;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.intensity-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 999px;
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Maridaje */
.pairing-section {
    background: var(--primary-color);
    color: #fff;
    padding: 18px;
    border-radius: 10px;
    text-align: center;
}

.pairing-icon {
    font-size: 1.9rem;
    margin-bottom: 8px;
    opacity: 0.9;
}

.pairing-text {
    font-family: var(--font-body);
    font-size: 0.98rem;
    line-height: 1.6;
    margin: 0;
}

/* Footer técnico */
.technical-footer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 16px 18px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
    border-top: 2px solid var(--accent-color);
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.tech-item i {
    font-size: 1.45rem;
    color: var(--primary-color);
}

.tech-item span {
    font-family: var(--font-heading);
    font-size: 0.83rem;
    font-weight: 600;
    color: #362b23;
}

/* CTA */
.modal-cta-container {
    text-align: center;
    padding-top: 4px;
}

.modal-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 38px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.25s ease;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35);
}

.modal-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(37, 211, 102, 0.55);
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
}

.modal-cta-button i {
    font-size: 1.15rem;
}

/* RESPONSIVE */

/* Tablet */
@media (max-width: 991px) {
    .wine-modal {
        padding: 20px 16px;
        overflow-y: auto;
        /* se desplaza el overlay, no el contenido interno */
    }

    .wine-modal-card {
        height: auto;
        max-height: none;
    }

    .wine-modal-container {
        grid-template-columns: 1fr;
        row-gap: 28px;
        padding: 70px 32px 40px;
    }

    .wine-modal-image-col::before {
        inset: 18% 10%;
    }

    .wine-bottle-float img {
        max-height: 420px;
    }

    .wine-modal-info-col {
        grid-template-columns: 1fr 1fr;
        column-gap: 24px;
    }

    .technical-footer {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-cta-button {
        width: 100%;
        justify-content: center;
    }

    .limited-edition-seal {
        top: 12px;
        left: 18px;
        width: 78px;
        height: 78px;
    }
}

/* Móvil */
@media (max-width: 576px) {
    .wine-modal {
        padding: 0;
    }

    .wine-modal-card {
        border-radius: 0;
    }

    .wine-modal-container {
        padding: 68px 18px 30px;
    }

    .wine-modal-info-col {
        grid-template-columns: 1fr;
    }

    .organoleptic-section,
    .tasting-notes-section,
    .intensity-section,
    .pairing-section {
        padding: 15px;
    }

    .section-title {
        font-size: 0.8rem;
    }

    .technical-footer {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .modal-wine-name {
        font-size: 2.1rem;
    }

    .price-amount {
        font-size: 1.5rem;
    }

    /* Swipe handle for mobile */
    .wine-modal-pill {
        display: block !important;
        width: 40px;
        height: 5px;
        background: rgba(0, 0, 0, 0.15);
        border-radius: 999px;
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
    }
}

/* Hide pill by default */
.wine-modal-pill {
    display: none;
}

/* Ajustes finos modal vino con glassmorphism */
.wine-modal-card {
    background: rgba(250, 247, 241, 0.7) !important;
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3) !important;
}

/* Hacer que la columna de la botella también parezca tarjeta clara */
.wine-modal-image-col {
    background: rgba(250, 247, 241, 0.98);
    border-radius: 24px;
    padding: 32px 24px;
}

/* Suavizamos el halo para que no oscurezca tanto la zona izquierda */
.wine-modal-image-col::before {
    inset: 12% 10%;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.25) 45%, transparent 75%),
        radial-gradient(circle at 50% 80%, rgba(0, 0, 0, 0.08), transparent 70%);
}

/* Ligero ajuste para que las tarjetas rodeen mejor la botella en desktop */
@media (min-width: 992px) {
    .wine-modal-container {
        column-gap: 56px;
    }

    .wine-modal-info-col {
        align-content: space-between;
    }
}

/* Botella centrada y mucho más grande en escritorio */
@media (min-width: 992px) {

    /* El overlay puede desplazarse si hace falta, pero el contenido interno no se corta */
    .wine-modal {
        overflow-y: auto;
    }

    /* La tarjeta puede crecer más en altura para que quepa la botella entera */
    .wine-modal-card {
        height: auto;
        max-height: none;
    }

    /* La columna izquierda ocupa un poco más y acerca la botella al centro visual */
    .wine-modal-container {
        grid-template-columns: 1.3fr 1.1fr;
        padding-top: 72px;
        padding-bottom: 56px;
    }

    /* Botella perfectamente centrada en su columna */
    .wine-modal-image-col {
        justify-content: center;
        align-items: center;
    }

    /* Botella mucho más grande sin cortarse */
    .wine-bottle-float img {
        max-height: min(80vh, 720px);
        width: auto;
    }
}

/* === LAYOUT DEFINITIVO MODAL 3 COLUMNAS === */

/* El overlay nunca tiene scroll interno del card; el desplazamiento es sobre el propio overlay solo en móvil */
.wine-modal {
    overflow: hidden;
}

/* La tarjeta cabe siempre en una pantalla */
.wine-modal-card {
    width: 90vw;
    max-width: 1280px;
    height: min(95vh, 720px);
    max-height: min(90vh, 720px);
}

/* Layout base de 3 columnas: izquierda (info), centro (botella), derecha (info) */
.wine-modal-container {
    height: 100%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr 1.1fr;
    column-gap: 40px;
    padding: 48px 56px 40px;
    align-items: center;
}

/* Columna central: botella grande y centrada */
.wine-modal-image-col {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(250, 247, 241, 0.9);
    border-radius: 22px;
    padding: 24px 18px;
    position: relative;
}

.wine-modal-image-col::before {
    content: "";
    position: absolute;
    inset: 14% 10%;
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.25) 45%, transparent 75%),
        radial-gradient(circle at 50% 80%, rgba(0, 0, 0, 0.08), transparent 70%);
    mix-blend-mode: multiply;
    pointer-events: none;
}

.wine-bottle-float img {
    max-height: 65vh;
    width: auto;
    filter: drop-shadow(0 26px 55px rgba(0, 0, 0, 0.35));
}

/* Columnas de info: se comportan como columnas flex para que quepa todo */
.wine-modal-info-col.info-left,
.wine-modal-info-col.info-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
}

/* Compactamos un poco verticalmente para que todo quepa en 90vh */
.wine-modal-header {
    margin-bottom: 4px;
}

.modal-wine-name {
    font-size: 2.4rem;
}

.modal-description {
    font-size: 0.95rem;
}

.section-title {
    font-size: 0.85rem;
}

.organoleptic-section,
.tasting-notes-section,
.intensity-section,
.pairing-section {
    padding: 14px 14px 12px;
}

.technical-footer {
    padding: 12px 14px;
    gap: 10px;
}

/* Desktop ancho: afinamos proporciones */
@media (min-width: 1200px) {
    .wine-modal-container {
        grid-template-columns: 1.1fr 0.8fr 1.1fr;
        column-gap: 56px;
    }

    .modal-wine-name {
        font-size: 2.6rem;
    }
}

/* Tablet y móvil: mantenemos versión 1 columna/2 columnas que ya tenías */
@media (max-width: 991px) {
    .wine-modal {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .wine-modal-card {
        width: 100%;
        height: auto;
        min-height: 100vh;
        max-height: none;
        margin: 0;
        border-radius: 32px 32px 0 0;
        padding-top: 10px;
        background: #fdfbf7;
        /* Off-white for premium feel */
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    }

    .wine-modal-pill {
        display: block !important;
        width: 36px;
        height: 5px;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 999px;
        margin: 8px auto 20px;
        flex-shrink: 0;
    }

    .wine-modal-container {
        grid-template-columns: 1fr;
        row-gap: 28px;
        padding: 20px 24px 60px;
    }

    .wine-modal-image-col {
        order: -1;
        max-height: 45vh;
        background: transparent !important;
        padding: 0;
    }

    .wine-bottle-float img {
        max-height: 40vh;
        filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
    }

    .modal-wine-name {
        font-size: 2.2rem;
    }

    /* Premium mobile section styling */
    .tasting-notes-section,
    .pairing-section,
    .organoleptic-section,
    .intensity-section {
        background: rgba(255, 255, 255, 0.6) !important;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.5);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
        border-radius: 20px;
        padding: 24px !important;
    }
}

/* Ocultar sello edición limitada en el modal de vinos */
.limited-edition-seal {
    display: none !important;
}

/* Botella sin círculo ni rectángulo de fondo (desktop) */
@media (min-width: 992px) {
    .wine-modal-image-col {
        background: transparent !important;
        border-radius: 0 !important;
        padding: 0 !important;
    }

    .wine-modal-image-col::before {
        content: none !important;
        /* elimina el halo/círculo */
    }

    /* Recentramos un poco la botella al quitar el padding */
    .wine-bottle-float img {
        max-height: 65vh;
        width: auto;
    }
}

/* Desactivar animación de flotación dentro del modal */
.wine-modal .wine-bottle-float {
    animation: none !important;
}

/* Desactivar animación de las barras de "Característiques" en el modal */
.intensity-bar-fill {
    animation: none !important;
    background-position: 0 0 !important;
    /* posición fija del degradado */
}

/* Más aire vertical alrededor del modal en escritorio */
@media (min-width: 992px) {
    .wine-modal {
        padding-top: 6vh;
        padding-bottom: 6vh;
    }

    /* Ajustamos la altura máxima del card para que no toque los bordes */
    .wine-modal-card {
        height: auto;
        max-height: calc(100vh - 12vh);
        /* 100% de alto menos el padding del overlay */
    }
}

/* Ajustes para iconos SVG en notes de tast */
.note-icon {
    color: #fff;
    /* color del trazo/relleno de los SVG */
}

.note-icon .note-svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* Maridatge con el mismo estilo que "Notes de Tast" */
.pairing-section {
    background: rgba(255, 255, 255, 0.82) !important;
    color: #362b23;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.pairing-section .section-title {
    color: #251d18;
    border-bottom-color: #e0d6cc;
}

.pairing-section .pairing-icon,
.pairing-section .pairing-text {
    color: #362b23;
}

/* Botella "en vuelo" al abrir el modal */
.bottle-fly {
    position: fixed;
    z-index: 11000;
    /* por encima del modal/backdrop */
    pointer-events: none;
    transform-origin: center center;
    transition:
        transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.6s ease;
    height: auto;
    /* Limpiar cualquier herencia */
    animation: none !important;
    filter: none !important;
}

/* Cloned bottle animation */
.bottle-flying-clone {
    position: fixed;
    z-index: 10001;
    pointer-events: none;
    will-change: transform, opacity;
    animation: none !important;
}

.bottle-fly .wine-bottle {
    transform: none !important;
    filter: none !important;
}

/* === BOTELLA VOLADORA (FLIP ANIMATION) === */
.bottle-fly {
    position: fixed;
    z-index: 99999;
    pointer-events: none;
    transform-origin: center center;
    /* Cambiado a center para mejor escala */
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.7s ease;
    will-change: transform, opacity;
    object-fit: contain;
    /* Mantener proporción de imagen */
}

/* === MODAL INVISIBLE PARA MEDICIÓN === */
.modal-invisible-layout {
    display: flex !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

/* === ANIMACIÓN DE CIERRE ELEGANTE (RECEDE) === */
.wine-modal {
    /* Aseguramos que tenga transición para cuando le quitemos la opacidad */
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Estado de cierre: se desvanece y se aleja un poco */
.wine-modal.closing {
    opacity: 0 !important;
    transform: scale(0.95) !important;
    pointer-events: none !important;
}

/* =========================================
   MOBILE POSTCARD STICKY DECK (VINTAGE REALISTA)
   ========================================= */
@media (max-width: 991px) {

    /* Línea divisoria central (separa texto y dirección) */
    .postcard-view .split-content::after {
        content: '';
        position: absolute;
        top: 8px;
        bottom: 8px;
        left: 60%;
        /* más o menos entre la columna 1.3fr y la 0.7fr */
        border-left: 1px solid rgba(0, 0, 0, 0.4);
        opacity: 0.7;
    }

    /* 1. CONTENEDOR PRINCIPAL */
    .postcard-view {
        /* Fondo oscuro para resaltar las postales claras */
        padding: 40px 15px 120px 15px !important;
        overflow: visible !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* 2. LA TARJETA (Estructura) */
    .postcard-view .split-block {
        position: sticky;
        display: flex !important;
        flex-direction: column;
        width: 100%;
        max-width: 380px;
        background: #f0e6d2;
        /* Color base papel viejo */
        margin-bottom: 50px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1), 0 15px 40px rgba(0, 0, 0, 0.2);
        transform-origin: center top;
        border: none;

        /* Borde Airmail Clásico (con colores más apagados/integrados) */
        padding: 12px;
    }


    /* Efecto de apilado orgánico (rotación) */
    .postcard-view .split-block:nth-child(1) {
        top: 90px;
        transform: rotate(-1.5deg);
    }

    .postcard-view .split-block:nth-child(2) {
        top: 110px;
        transform: rotate(1deg);
    }

    .postcard-view .split-block:nth-child(3) {
        top: 130px;
        transform: rotate(-0.5deg);
    }

    /* 3. IMAGEN GRANDE (OCULTA EN MÓVIL - Solo se ve el reverso) */
    .postcard-view .split-half.split-dark {
        display: block !important;
        width: 100% !important;
        height: 280px !important;
        position: relative !important;
        overflow: hidden !important;
        border: 12px solid #fff;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        margin-bottom: 25px;
        border-radius: 2px;
    }


    /* LAYOUT GRID */
    .postcard-view .split-content {
        display: grid;
        grid-template-columns: 1.3fr 0.7fr;
        grid-template-rows: auto 1fr;
        gap: 15px;
        position: relative;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        transform: none !important;
        opacity: 1 !important;
    }

    /* LÍNEAS DE DIRECCIÓN (punteadas, tipo postal clásica) */
    .postcard-view .split-content::before {
        content: '';
        grid-column: 2;
        grid-row: 2;
        align-self: stretch;
        margin: 4px 6px 6px 16px;
        /* separa un poco del borde y del texto */
        background-image: repeating-linear-gradient(to bottom,
                rgba(0, 0, 0, 0.45) 0,
                rgba(0, 0, 0, 0.45) 1px,
                transparent 1px,
                transparent 8px);
        opacity: 0.7;
    }

    /* Título (Izquierda) */
    .postcard-view .split-title {
        grid-column: 1;
        grid-row: 1;
        font-family: 'Space Grotesk', sans-serif;
        font-size: 1.3rem !important;
        line-height: 1.1;
        margin-bottom: 0;
        text-align: left;
        align-self: end;
        color: #3e3e3e;
        /* Negro suave */
        opacity: 0.9;
    }

    /* Texto (Izquierda) */
    .postcard-view .split-desc {
        grid-column: 1;
        grid-row: 2;
        font-family: 'Courier Prime', 'Courier New', monospace;
        font-size: 0.8rem !important;
        line-height: 1.4;
        color: #555;
        text-align: left;
        margin-top: 15px;
        padding-right: 15px;
    }

    /* Sello con IMAGEN */
    .postcard-view .postcard-stamp {
        grid-column: 2;
        grid-row: 1;
        position: relative !important;
        top: auto !important;
        right: auto !important;
        width: 65px;
        height: 80px;
        border: 3px solid #fdfbf7;
        box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
        background-size: cover;
        background-position: center;
        transform: rotate(3deg);
        justify-self: center;
        color: transparent !important;
        /* Ocultar texto */
        font-size: 0;
        filter: sepia(0.4) contrast(1.1);
        /* Filtro vintage */
    }

    /* Asignar imágenes a los sellos automáticamente */
    .split-block-1 .postcard-stamp {
        background-color: #e8dcc4;
        background-image: url('/images/hati.png');
    }

    .split-block-2 .postcard-stamp {
        background-color: #e8dcc4;
        background-image: url('/images/intervencio.png');
    }

    .split-block-3 .postcard-stamp {
        background-color: #e8dcc4;
        background-image: url('/images/elegancia.webp');
    }
}

/* Contenedor para centrar y dar aire */
.footer-seal-container {
    text-align: center;
    margin-top: -30px;
    /* Reducido para acercar a los iconos sociales */
    margin-bottom: 0.2rem;
    /* Reducido aún más */
}

/* El enlace que envuelve todo */
.gavarres-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    margin-top: -10px;
    opacity: 0.4;
    /* ESTADO INICIAL: Sutil (40% opacidad) */
    transition: all 0.4s ease;
    /* Transición suave */
    cursor: pointer;
}

/* EFECTO HOVER: Al pasar el ratón */
.gavarres-link:hover {
    opacity: 1;
    /* Se ilumina al 100% */
    transform: translateY(-2px);
    /* Un pequeño flote elegante */
}

/* Configuración de la imagen del logo */
.gavarres-logo {
    height: 45px;
    /* Tamaño discreto, ajusta si lo quieres más grande */
    width: auto;
    display: block;
    margin-bottom: 5px;

    /* TRUCO PRO: Si tu logo es NEGRO y lo quieres BLANCO sin Photoshop, descomenta esto: */
    /* filter: invert(1) brightness(2); */
}

/* Texto pequeño debajo del logo (Opcional) */
.gavarres-label {
    font-family: 'Helvetica', 'Arial', sans-serif;
    /* Usa la fuente de tu web */
    font-size: 0.65rem;
    /* Muy pequeñito, estilo editorial */
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
    /* Color del texto */
    margin-top: 4px;
    font-weight: 300;
}

/* Centrar enlaces sociales del footer */
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0 0 0 0;
    list-style: none;
    gap: 30px;
}

.social-links li {
    display: block;
    /* Aseguramos comportamiento estándar dentro de flex */
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light, #f9f7f2);
    /* Color claro para fondo oscuro */
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    /* Color al pasar el ratón */
    opacity: 0.8;
}

/* --- MICRO-INTERACCIONES EQUIPO --- */
.team-member img {
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
    filter: grayscale(100%) contrast(1.1);
    transform-origin: center center;
    border-radius: 4px;
    /* Slight rounding for elegance */
    will-change: transform, filter;
}

/* On desktop only to avoid mobile sticky hover */
@media (min-width: 768px) {
    .team-member:hover img {
        filter: grayscale(0%) contrast(1);
        transform: scale(1.05);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    /* Playful effect for Kali (the dog) */
    .team-member img[alt*="Kali"]:hover {
        transform: scale(1.05) rotate(5deg);
    }

    .team-member h4 {
        transition: color 0.3s ease, transform 0.3s ease;
        display: inline-block;
        /* Needed for transform */
    }

    .team-member:hover h4 {
        color: var(--primary-color);
        transform: translateY(-3px);
    }

    .team-member p.text-muted {
        transition: color 0.3s ease;
    }

    .team-member:hover p.text-muted {
        color: #ddd !important;
        /* Lighter than muted */
    }
}

/* --- TEXT REVEAL ANIMATION (Splitting) --- */
.word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    margin-right: 0.25em;
    /* Space between words */
    will-change: opacity, transform;
}

.active .word,
.active.word {
    opacity: 1;
    transform: translateY(0);
}

/* --- ESTANDARIZACIÓN DE BOTONES (LIQUID EFFECT) --- */

/* Base Styles for ALL Buttons */
.btn,
.btn-dark,
.btn-shop,
.btn-primary,
.btn-postcard,
button[type="submit"] {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px !important;
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer;
    overflow: hidden !important;
    z-index: 1;
    transition: color 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.3s ease, box-shadow 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none !important;
    /* Default Colors (Unfilled) */
    background: var(--bg-paper) !important;
    color: var(--text-color) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Specific Base Colors Override */
.btn-dark {
    background: var(--text-color) !important;
    color: var(--text-light) !important;
    border: 1px solid var(--text-color) !important;
}

.navbar .btn-dark,
.navbar .btn-shop {
    /* Navbar specific: Transparent to start */
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-color) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Navbar Scrolled State */
.navbar.scrolled .btn-dark {
    color: var(--text-color) !important;
    background: transparent !important;
    border: 1px solid var(--text-color) !important;
}

/* --- LIQUID FILL EFFECT (::after) --- */
.btn::after,
.btn-dark::after,
.btn-shop::after,
.btn-primary::after,
.btn-postcard::after,
button[type="submit"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    /* Slightly larger to cover padding */
    padding-bottom: 120%;
    /* Make it separate from width */
    background: var(--primary-color);
    /* Garnacha Red Fill */
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transform-origin: center;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
    will-change: transform;
}

/* Dark variant fills with accent or different color? Let's use Primary for branding */
.btn-dark::after {
    background: var(--primary-color);
}

/* Hover States */
.btn:hover,
.btn-dark:hover,
.btn-shop:hover,
.btn-primary:hover,
.btn-postcard:hover,
button[type="submit"]:hover {
    color: #ffffff !important;
    /* Force White Text */
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(139, 35, 41, 0.3) !important;
    border-color: var(--primary-color) !important;
    /* Match fill */
}

.btn:hover::after,
.btn-dark:hover::after,
.btn-shop:hover::after,
.btn-primary:hover::after,
.btn-postcard:hover::after,
button[type="submit"]:hover::after {
    transform: translate(-50%, -50%) scale(1.5);
    /* Expand to fill */
}

/* Active/Click State */
.btn:active,
.btn-dark:active,
.btn-shop:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(139, 35, 41, 0.2) !important;
}

/* Mobile Fixes */
@media (max-width: 768px) {

    .btn,
    .btn-dark,
    .btn-shop {
        padding: 12px 25px !important;
        font-size: 0.9rem !important;
    }
}


/* --- PARALLAX FOOTER REVEAL --- */
html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    position: relative;
    z-index: 2;
    /* Por encima del footer */
    background-color: var(--bg-paper);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    /* Sombra para dar profundidad al "reveal" */
}

#contacte {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: -1;
    pointer-events: none;
    /* Permite clics solo cuando está activo */
}

.footer-active #contacte {
    pointer-events: auto !important;
    z-index: 99 !important;
    /* Move above main and other content */
}

/* --- LOCATION & MAP SECTION --- */
.location-section {
    background-color: var(--bg-paper);
    overflow: hidden;
    position: relative;
    z-index: 5;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.map-column {
    min-height: 700px;
    height: auto;
    display: flex;
}

.map-wrapper {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 700px;
    filter: grayscale(20%) contrast(1.1);
    transition: filter 0.5s ease;
}

.map-wrapper:hover {
    filter: grayscale(0%) contrast(1);
}

.info-column {
    display: flex;
    align-items: center;
    padding: 80px 8% 80px 12%;
    background-color: var(--bg-paper);
}

.location-content {
    max-width: 500px;
    margin: 0 auto;
}

.location-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin: 10px 0 20px;
    color: var(--text-color);
}

.location-block {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
}

.location-block:last-child {
    margin-bottom: 0;
    /* Remove bottom margin from last block */
}

.location-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(139, 35, 41, 0.2);
}

.location-details h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    color: var(--accent-color);
    font-weight: 700;
}

.location-details p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
    color: var(--text-color);
}

.location-details a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.location-details a:hover {
    color: var(--primary-color);
}

.schedule-line {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    padding-bottom: 5px;
    margin-bottom: 5px !important;
}

.btn-location {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 16px 32px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(139, 35, 41, 0.3);
}

.btn-location:hover {
    background-color: #a50000;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(139, 35, 41, 0.4);
    color: #fff;
    text-decoration: none;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .location-section .row {
        display: flex !important;
        flex-direction: column !important;
    }

    .map-column,
    .info-column {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .map-column {
        height: 600px !important;
        min-height: 600px !important;
        order: 2;
        /* Map after info for better UX flow */
    }

    .map-wrapper {
        min-height: 600px !important;
        height: 600px !important;
    }

    .info-column {
        padding: 60px 20px !important;
        order: 1;
    }

    .location-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .location-content {
        padding: 0;
        margin-bottom: 30px;
        transform: none !important;
        /* Prevent reveal collisions */
    }
}

/* 7. Desactivar el reveal del footer en móvil por legibilidad */
@media (max-width: 991px) {
    main {
        margin-bottom: 0 !important;
        box-shadow: none !important;
    }

    #contacte {
        position: relative !important;
        z-index: 10 !important;
    }
}

/* =========================================
   NEW WINE SECTION: VERTICAL CARD STACK (AWWARDS STYLE)
   ========================================= */

.wine-stack-section {
    background: #000;
    padding: 0;
    position: relative;
    width: 100%;
}

.wine-card {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.2);
    transform-origin: center top;
    will-change: transform;
    z-index: 10;
    /* Keep content above depth header (z-1) */
}

/* Colors & Gradients */
.wine-card.card-blanc {
    background: radial-gradient(circle at center, #fbf7ee 0%, #dcd2b5 100%);
}

.wine-card.card-negre {
    background: radial-gradient(circle at center, #2a1b12 0%, #0d0604 100%);
}

.wine-card.card-rosat {
    background: radial-gradient(circle at center, #fff0f5 0%, #ffc4cc 100%);
}

.wine-card.card-ancestral {
    background: radial-gradient(circle at center, #fffbee 0%, #e8dcb8 100%);
}

/* Typography */
.wine-big-type {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    font-size: clamp(5rem, 20vw, 15rem);
    line-height: 0.8;
    color: transparent;
    -webkit-text-stroke: 2px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.wine-card.card-negre .wine-big-type {
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.15);
}

.wine-card:hover .wine-big-type {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.05);
}

/* Bottle Image */
.wine-bottle-img {
    position: relative;
    z-index: 10;
    height: 65vh;
    /* Larger for impact */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.35));
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wine-card:hover .wine-bottle-img {
    transform: scale(1.1);
}

/* Info Pill */
.wine-info-pill {
    position: absolute;
    bottom: 8vh;
    z-index: 20;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    padding: 15px 35px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #000;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.wine-card.card-negre .wine-info-pill {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

.wine-info-pill i {
    opacity: 0.7;
}

.wine-info-pill:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* === MOBILE VISUAL REFINEMENTS (Preserved) === */
@media (max-width: 768px) {
    .split-half.split-dark {
        display: none !important;
    }

    .swipe-indicator {
        display: none !important;
    }
}

/* 2. WINE MODAL - MOBILE RESPONSIVE */
@media (max-width: 991px) {
    .wine-modal {
        padding: 0;
        align-items: flex-end;
    }

    .wine-modal-card {
        width: 100%;
        max-width: 100%;
        height: 92vh;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
        animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    @keyframes modalSlideUp {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }

    /* Pill indicator para swipe down */
    .wine-modal-pill {
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 2px;
        z-index: 25;
    }

    .wine-modal-container {
        display: flex;
        flex-direction: column;
        padding: 50px 25px 30px;
        overflow-y: auto;
        height: 100%;
        gap: 0;
    }

    /* Ocultar sello en mobile */
    .limited-edition-seal {
        display: none;
    }

    /* Botón cerrar más grande */
    .wine-modal-close {
        width: 36px;
        height: 36px;
        top: 15px;
        right: 15px;
    }

    /* Layout de una sola columna */
    .wine-modal-image-col {
        order: 1;
        margin-bottom: 30px;
        max-height: 300px;
    }

    .wine-modal-image-col::before {
        display: none;
    }

    .wine-bottle-float img {
        max-height: 280px;
    }

    .wine-modal-info-col {
        order: 2;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* Resetear grid a layout vertical */
    .wine-modal-header,
    .modal-divider,
    .modal-description,
    .organoleptic-section,
    .tasting-notes-section,
    .intensity-section,
    .pairing-section,
    .technical-footer,
    .modal-cta-container {
        grid-column: 1 / -1;
    }

    /* Ajustar tamaños de texto */
    .modal-wine-name {
        font-size: 2rem;
    }

    .price-amount {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 0.8rem;
    }

    .modal-description {
        font-size: 0.95rem;
    }

    /* Gráfico más pequeño */
    .organoleptic-chart svg {
        max-width: 180px;
    }
}

/* 3. AGE GATE - MOBILE FIX */
@media (max-width: 768px) {
    #age-gate .age-content {
        padding: 40px 25px;
        width: 95%;
        max-width: 400px;
    }

    .age-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    #age-gate .age-btn-group {
        flex-direction: row;
        gap: 15px;
    }

    #age-gate .btn-dark {
        padding: 15px 30px !important;
        font-size: 1rem !important;
        flex: 1;
    }

    #age-gate .btn-dark.no {
        padding: 15px 25px !important;
        font-size: 0.9rem !important;
    }
}

/* 4. FOOTER - MOBILE FIX */
@media (max-width: 991px) {
    #contacte {
        position: relative !important;
        z-index: 10 !important;
        pointer-events: auto !important;
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
    }

    .footer-brand-huge {
        font-size: clamp(3rem, 15vw, 5rem);
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .footer-seal-container {
        margin-top: 30px;
    }
}

/* === TESTIMONIALS SECTION === */
.testimonials-section {
    position: relative;
    overflow: hidden;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.reviewer-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.reviewer-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 5px 0;
    text-transform: none;
}

.review-stars {
    display: flex;
    gap: 3px;
}

.review-stars i {
    color: #FBBC04;
    font-size: 0.9rem;
}

.google-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.testimonial-text {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    font-style: italic;
    margin: 0 0 15px 0;
}

.review-date {
    font-size: 0.85rem;
    color: #999;
    font-family: var(--font-body);
}

/* Responsive Testimonials */
@media (max-width: 991px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        padding: 25px;
    }

    .reviewer-avatar {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .reviewer-name {
        font-size: 1rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }
}

/* =========================================
   PHILOSOPHY REDESIGN: PARALLAX EDITORIAL
   ========================================= */

.philosophy-editorial {
    background-color: #fff;
    color: #1a1a1a;
    position: relative;
    z-index: 10;
}

.philosophy-row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.philosophy-text-col {
    width: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8vw 5vw;
    z-index: 2;
}

.philosophy-img-col {
    width: 50%;
    height: 100vh;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    overflow: hidden;
    z-index: 1;
}

.phi-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-out;
}

.philosophy-row:hover .phi-image {
    transform: scale(1.05);
}

/* Typography */
.phi-number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #8b2329;
    /* Brand Red */
    opacity: 0.8;
}

.phi-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 0.95;
    font-weight: 800;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: #000;
}

.phi-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 450px;
    color: #555;
    font-family: var(--font-body);
    /* Montserrat/Inter */
}

/* Reverse Layout */
.philosophy-row.reverse-layout {
    flex-direction: row-reverse;
}

/* Mobile */
@media (max-width: 991px) {
    .philosophy-row {
        flex-direction: column;
    }

    .philosophy-row.reverse-layout {
        flex-direction: column;
    }

    .philosophy-text-col,
    .philosophy-img-col {
        width: 100%;
    }

    .philosophy-img-col {
        height: 60vh;
        position: relative;
        /* No sticky on mobile usually, saves space */
    }

    .philosophy-text-col {
        padding: 60px 20px;
        text-align: center;
    }

    .phi-desc {
        margin: 0 auto;
    }
}

/* === CINEMATIC EDITORIAL TEAM SECTION === */

.team-editorial-section {
    position: relative;
    padding: 5vh 0 0 0;
    margin-bottom: 0 !important;
    background-color: #0a0a0a;
    color: #fff;
    overflow: hidden;
}

.team-editorial-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 5vw;
    display: flex;
    flex-direction: column;
    gap: 10vh;
}

.editorial-member {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 40vh;
}

/* Staggered arrangement */
.editorial-member:nth-child(even) {
    flex-direction: row-reverse;
}

.member-image-col {
    width: 45%;
    position: relative;
    z-index: 1;
}

.member-image-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 2px;
    background: #111;
}

.member-image-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) brightness(0.8);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 1s ease;
    will-change: transform;
}

.editorial-member:hover .member-image-inner img,
.editorial-member.is-in-view .member-image-inner img {
    filter: grayscale(0.2) brightness(0.9);
}

.member-image-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
}

.member-info-col {
    width: 55%;
    padding: 0 8vw;
    position: relative;
    z-index: 2;
}

.editorial-member:nth-child(even) .member-info-col {
    text-align: right;
}

.member-details {
    position: relative;
}

.member-index {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 700;
    opacity: 0.8;
}

.member-name {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.85;
    margin: 0;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    color: #fff;
    position: relative;
}

/* Overlap effect for desktop */
@media (min-width: 992px) {
    .editorial-member:nth-child(odd) .member-name {
        margin-left: -15vw;
    }

    .editorial-member:nth-child(even) .member-name {
        margin-right: -15vw;
    }
}

.member-role {
    display: block;
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2rem;
    font-weight: 500;
}

/* Scroll reveal animations */
.editorial-member {
    opacity: 0;
    transform: translateY(100px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-member.is-in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Floating grain for images */
.member-image-inner::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.15;
    pointer-events: none;
    z-index: 2;
    animation: editorialNoiseAnim 0.2s steps(4) infinite;
}

@keyframes editorialNoiseAnim {
    0% {
        transform: translate(0, 0)
    }

    10% {
        transform: translate(-5%, -5%)
    }

    20% {
        transform: translate(-10%, 5%)
    }

    30% {
        transform: translate(5%, -10%)
    }

    40% {
        transform: translate(-5%, 15%)
    }

    50% {
        transform: translate(-10%, 5%)
    }

    60% {
        transform: translate(15%, 0)
    }

    70% {
        transform: translate(0, 10%)
    }

    80% {
        transform: translate(-15%, 0)
    }

    90% {
        transform: translate(10%, 5%)
    }

    100% {
        transform: translate(5%, 0)
    }
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .team-editorial-section {
        padding: 80px 0;
    }

    .team-editorial-container {
        gap: 80px;
    }

    .editorial-member,
    .editorial-member:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        text-align: left !important;
        min-height: auto;
    }

    .member-image-col,
    .member-info-col {
        width: 100%;
    }

    .member-info-col {
        padding: 30px 0 0;
    }

    .member-name {
        font-size: 3.5rem;
        margin: 0 !important;
    }

    .member-index {
        margin-bottom: 1rem;
    }

    .member-role {
        margin-top: 1rem;
    }
}





@media (min-width: 992px) {
    #contacte {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 1;
        pointer-events: none;
        transform: translate3d(0, 100%, 0);
        opacity: 0;
        transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
    }

    main {
        position: relative;
        z-index: 2;
    }

    .footer-active #contacte {
        pointer-events: auto !important;
        z-index: 99 !important;
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

#contacte {
    background-color: #111;
    color: #f9f7f2;
    overflow: hidden;
}

#contacte>.container {
    padding-bottom: 2rem !important;
}

#contacte .footer-bottom {
    padding: 10px 0 12px;
}

#contacte .footer-brand-huge {
    color: rgba(249, 247, 242, 0.10);
}

#contacte .social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 28px;
    flex-wrap: wrap;
}

#contacte .social-links li {
    display: block;
    margin: 0;
    padding: 0;
}

#contacte .social-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #f9f7f2;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

#contacte .social-links a:hover {
    color: var(--primary-color) !important;
    opacity: 0.9;
    transform: translateY(-1px);
}

#contacte .social-links i {
    color: var(--primary-color);
}

#contacte .footer-seal-container {
    text-align: center;
    margin-top: 6px;
}

#contacte .gavarres-link {
    opacity: 0.6;
}

#contacte .gavarres-link:hover {
    opacity: 1;
}

@media (max-width: 991px) {
    #contacte {
        position: relative !important;
        z-index: 10 !important;
        pointer-events: auto !important;
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
    }

    main {
        margin-bottom: 0 !important;
        box-shadow: none !important;
    }

    #contacte .footer-brand-huge {
        font-size: clamp(3rem, 15vw, 5rem);
    }

    #contacte .social-links {
        gap: 15px;
    }
}

/* =================================================================
   --- AWWWARDS-STYLE CENTERED NAVIGATION (NEW) ---
   ================================================================= */

:root {
    --nav-height-desktop: 100px;
    --nav-height-scrolled: 70px;
    --logo-size-default: 90px;
    --logo-size-scrolled: 65px;
    --nav-blur: 20px;
    --nav-transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Main Navbar Container */
.navbar-awwwards {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--nav-height-desktop);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4%;
    background: transparent;
    z-index: 1000;
    transition: all var(--nav-transition);
}

/* Desktop: Three Column Layout */
@media (min-width: 992px) {
    .navbar-awwwards {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 60px;
        align-items: center;
    }

    /* Left Navigation Links */
    .nav-left-links {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 40px;
    }

    /* Right Navigation Links */
    .nav-right-links {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 40px;
    }

    /* Centered Logo */
    .nav-logo-center {
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all var(--nav-transition);
        transform-origin: center;
    }

    .nav-logo-center img {
        height: var(--logo-size-default);
        width: auto;
        filter: brightness(0) invert(1);
        transition: all var(--nav-transition);
        will-change: transform;
    }

    /* Navigation Links Styling */
    .navbar-awwwards .nav-link {
        font-family: var(--font-heading);
        font-size: 0.95rem;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: #fff;
        text-decoration: none;
        position: relative;
        padding: 8px 0;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .navbar-awwwards .nav-link:hover {
        color: #fff;
        transform: translateY(-2px);
        text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }

    /* Hide Desktop Elements on Mobile */
    .nav-mobile-toggle,
    .nav-mobile-menu {
        display: none;
    }

    /* Language Switcher Desktop */
    .nav-right-links .lang-switch {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 6px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 30px;
        transition: all 0.3s ease;
    }

    .nav-right-links .lang-switch:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .nav-right-links .lang-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        transition: all 0.3s ease;
        overflow: hidden;
    }

    .nav-right-links .lang-link.active {
        background: rgba(255, 255, 255, 0.95);
        color: var(--text-color);
        transform: scale(1.1);
    }

    .nav-right-links .lang-flag {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Scrolled State */
.navbar-awwwards.scrolled {
    height: var(--nav-height-scrolled);
    background: rgba(249, 247, 242, 0.98);
    backdrop-filter: blur(var(--nav-blur));
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.navbar-awwwards.scrolled .nav-logo-center img {
    height: var(--logo-size-scrolled);
    filter: invert(12%) sepia(60%) saturate(3000%) hue-rotate(340deg) brightness(60%) contrast(110%);
}

.navbar-awwwards.scrolled .nav-link {
    color: var(--text-color);
    text-shadow: none;
}

.navbar-awwwards.scrolled .nav-link:hover {
    color: var(--primary-color);
}

.navbar-awwwards.scrolled .nav-right-links .lang-switch {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.navbar-awwwards.scrolled .nav-right-links .lang-link.active {
    background: var(--text-color);
    color: #fff;
}

/* =================================================================
   --- MOBILE NAVIGATION (< 992px) ---
   ================================================================= */
@media (max-width: 991px) {
    .navbar-awwwards {
        height: 70px;
        padding: 0 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: transparent;
    }

    /* Hide Desktop Elements */
    .nav-left-links,
    .nav-right-links {
        display: none;
    }

    /* Logo on Mobile (Left) */
    .nav-logo-center {
        order: 1;
        display: flex;
        align-items: center;
    }

    .nav-logo-center img {
        height: 60px;
        filter: brightness(0) invert(1);
        transition: all 0.3s ease;
    }

    .navbar-awwwards.scrolled {
        background: rgba(249, 247, 242, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    }

    .navbar-awwwards.scrolled .nav-logo-center img {
        height: 50px;
        filter: invert(12%) sepia(60%) saturate(3000%) hue-rotate(340deg) brightness(60%) contrast(110%);
    }

    /* Mobile Toggle Button */
    .nav-mobile-toggle {
        order: 2;
        position: relative;
        width: 30px;
        height: 22px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1100;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .nav-mobile-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: #fff;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        border-radius: 2px;
    }

    .navbar-awwwards.scrolled .nav-mobile-toggle span {
        background: var(--text-color);
    }

    /* Hamburger to X Animation */
    .nav-mobile-toggle.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .nav-mobile-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }

    .nav-mobile-toggle.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }

    .nav-mobile-toggle.active span {
        background: var(--text-color) !important;
    }

    /* Full-Screen Mobile Menu */
    .nav-mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #F4F1EA !important;
        /* Papel Crema forced */
        z-index: 1050;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100%);
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-mobile-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-mobile-content {
        text-align: center;
        padding: 40px;
        width: 100%;
        max-width: 500px;
    }

    .nav-mobile-item {
        display: block;
        font-family: var(--font-heading);
        font-size: 2rem;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: #1A1A1A !important;
        /* Force black text */
        text-decoration: none;
        margin: 20px 0;
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.3s ease;
    }

    .nav-mobile-menu.active .nav-mobile-item {
        animation: slideInFromTop 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .nav-mobile-menu.active .nav-mobile-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-mobile-menu.active .nav-mobile-item:nth-child(2) {
        animation-delay: 0.15s;
    }

    .nav-mobile-menu.active .nav-mobile-item:nth-child(3) {
        animation-delay: 0.2s;
    }

    .nav-mobile-menu.active .nav-mobile-item:nth-child(4) {
        animation-delay: 0.25s;
    }

    .nav-mobile-menu.active .nav-mobile-item:nth-child(5) {
        animation-delay: 0.3s;
    }

    @keyframes slideInFromTop {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-mobile-item:hover {
        color: var(--primary-color);
        transform: translateX(5px);
    }

    /* Mobile Language Switcher */
    .nav-mobile-lang {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin: 40px 0 30px;
        opacity: 0;
        transform: translateY(20px);
    }

    .nav-mobile-menu.active .nav-mobile-lang {
        animation: slideInFromTop 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    }

    .nav-mobile-lang .lang-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        font-family: var(--font-heading);
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--text-color);
        background: rgba(0, 0, 0, 0.05);
        border: 2px solid transparent;
        transition: all 0.3s ease;
        text-decoration: none;
    }

    .nav-mobile-lang .lang-link.active {
        background: var(--text-color);
        color: #fff;
        transform: scale(1.1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }

    /* Mobile Footer */
    .nav-mobile-footer {
        margin-top: 50px;
        padding-top: 30px;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        opacity: 0;
        transform: translateY(20px);
    }

    .nav-mobile-menu.active .nav-mobile-footer {
        animation: slideInFromTop 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
    }

    .mobile-contact-info {
        margin-bottom: 25px;
    }

    .mobile-contact-info p {
        font-family: var(--font-body);
        font-size: 0.9rem;
        color: rgba(0, 0, 0, 0.6);
        margin: 5px 0;
    }

    .mobile-contact-info a {
        color: var(--text-color);
        text-decoration: none;
        font-weight: 600;
    }

    .mobile-social-links {
        display: flex;
        justify-content: center;
        gap: 25px;
    }

    .mobile-social-links a {
        font-size: 1.5rem;
        color: var(--text-color);
        transition: all 0.3s ease;
    }

    .mobile-social-links a:hover {
        color: var(--primary-color);
        transform: scale(1.2);
    }

    /* Prevent Body Scroll When Menu Open */
    body.menu-open {
        overflow: hidden;
    }
}

/* === VISUAL ENHANCEMENTS (PHASE 2) === */

/* 1. Glassmorphism Noise Texture */
.navbar-awwwards::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Lightweight noise pattern - optimized */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.2;
    pointer-events: none;
    z-index: -1;
    mix-blend-mode: overlay;
}

/* 2. Shimmer Border Effect */
.navbar-awwwards::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.4) 50%,
            transparent 100%);
    background-size: 200% 100%;
    animation: shimmerBorder 8s infinite linear;
    opacity: 0.4;
    pointer-events: none;
}

.visual-bridge {
    padding: 0;
    margin: 0 !important;
    background: #0a0a0a;
}

@keyframes shimmerBorder {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* 3. Hover Reveal Container */
.nav-hover-reveal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s ease-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.4) blur(0px);
    transform: scale(1.1);
}

.nav-hover-reveal.active {
    opacity: 1;
    transform: scale(1);
    filter: brightness(0.5) blur(0px);
}

/* === TASTING INTERACTIVE LABELS (PHASE 4 - FINAL) === */

/* === TASTING IMMERSIVE PANORAMIC (PHASE 5 - FINAL) === */

/* === TASTING PANORAMIC FRAMES (PHASE 6 - FINAL FIX) === */

/* === TASTING VELOCITY ACCORDION (PHASE 9 - FINAL) === */

.tasting-accordion-section {
    padding: 0;
    background: #111;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.accordion-container {
    display: flex;
    height: 90vh;
    width: 100%;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
}

.accordion-panel {
    flex: 1;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: flex 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
    cursor: pointer;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
    /* Background layer */
}

.accordion-panel:last-child {
    border-right: none;
}

.accordion-panel:hover {
    flex: 2.5;
    /* Velocity expansion */
}

/* Dim other panel on hover */
.accordion-container:hover .accordion-panel:not(:hover) {
    filter: grayscale(100%) brightness(0.6);
}

.panel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.accordion-panel:hover .panel-bg {
    transform: scale(1.05);
}

.panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.88) 75%);
    z-index: 2;
    transition: background 0.6s ease;
}

.accordion-panel:hover .panel-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.panel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 4rem;
    z-index: 10;
    color: #f9f7f2;
    transform: translateY(0);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.panel-number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.panel-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    white-space: nowrap;
}

.panel-description {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 500px;
    color: rgba(249, 247, 242, 0.8);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 0;
    overflow: hidden;
}

/* Reveal description on expand */
.accordion-panel:hover .panel-description {
    opacity: 1;
    transform: translateY(0);
    max-height: 200px;
    margin-top: 1rem;
}

.panel-footer {
    display: flex;
    align-items: center;
    gap: 3rem;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reveal footer on expand */
.accordion-panel:hover .panel-footer {
    max-height: 100px;
    opacity: 1;
    margin-top: 2rem;
}

.panel-price {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
}

.panel-cta {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 10px 25px;
    color: #fff;
    transition: all 0.3s ease;
}

.panel-cta:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .accordion-container {
        flex-direction: column;
        height: auto;
    }

    .accordion-panel {
        height: auto;
        min-height: 85vh;
        flex: none;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        /* Flex again for bottom alignment */
        flex-direction: column;
        justify-content: flex-end;
        overflow: hidden;
        position: relative;
    }

    .panel-bg {
        background-position: center bottom !important;
        /* Show base/bottles as requested */
    }

    .accordion-panel:hover {
        flex: none;
    }

    .accordion-container:hover .accordion-panel:not(:hover) {
        filter: none;
    }

    .panel-footer {
        max-height: none;
        opacity: 1;
        margin-top: 1rem;
    }

    .panel-content {
        position: relative;
        z-index: 20;
        padding: 3rem 1.5rem 7rem;
        /* Reduced top padding to lift content higher */
        height: auto;
        width: 100%;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%) !important;
    }

    .panel-description,
    .panel-footer {
        opacity: 1 !important;
        max-height: none !important;
        visibility: visible !important;
        transform: none !important;
        display: block !important;
        margin-top: 1rem;
    }

    .panel-description {
        font-size: 1rem;
        line-height: 1.5;
        color: #fff;
        margin-bottom: 1.5rem;
    }

    .panel-title {
        font-size: 2.2rem;
        word-break: break-word;
        margin-bottom: 0.5rem;
    }
}

/* =========================================================
   --- TEAM / EQUIP REDESIGN (Awwwards Style) ---
   ========================================================= */

.team-peer-section {
    position: relative;
    padding: 120px 0;
    min-height: 80vh;
    background-color: var(--bg-paper);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.peer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    /* Ensure stacking context */
    z-index: 5;
    /* Sit above depth header */
}

.peer-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.peer-frame {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: 25px;
    position: relative;
    border-radius: 4px;
    background-color: #f0e6d2;
    /* Fallback/Placeholder color */
}

.peer-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.8s ease;
    filter: grayscale(100%) contrast(110%);
}

.peer-item:hover .peer-frame img {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(100%);
}

.peer-info h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
    color: var(--text-color);
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.peer-item:hover .peer-info h4 {
    color: var(--primary-color);
}

.peer-info span {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Mobile Responsive: Horizontal Scroll Snap */
@media (max-width: 991px) {
    .team-peer-section {
        padding: 50px 0;
        display: block;
        /* Align top/block flow */
        min-height: auto;
    }

    .peer-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding: 20px 20px 40px 20px;
        /* Extra bottom padding for scroll area */
        width: 100%;
        max-width: 100%;
        margin: 0;
        scrollbar-width: none;
        /* Hide scrollbar Firefox */
        -webkit-overflow-scrolling: touch;
    }

    .peer-grid::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari */
    }

    .peer-item {
        flex: 0 0 75vw;
        /* Show 75% of card to encourage scroll */
        scroll-snap-align: center;
        max-width: 300px;
    }

    .peer-frame {
        aspect-ratio: 3/4;
        margin-bottom: 15px;
    }

    .peer-info h4 {
        font-size: 1.1rem;
    }
}

/* =========================================================
   --- STANDARD SECTION HEADERS (Added for Equip) ---
   ========================================================= */

.section-title-standard {
    text-align: center;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 60px;
    letter-spacing: 2px;
    color: var(--text-color);
    position: relative;
    z-index: 10;
}

/* --- SCRAMBLE ANIMATION STYLES --- */
.dud {
    color: var(--primary-color);
    opacity: 0.7;
}


/* --- WINE MODAL NAVIGATION ARROWS --- */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    z-index: 10002;
    padding: 20px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.modal-nav:hover {
    opacity: 1;
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.nav-prev {
    left: 10px;
}

.nav-next {
    right: 10px;
}

@media (max-width: 991px) {
    .modal-nav {
        font-size: 1.5rem;
        padding: 10px;
        top: 250px;
        /* Adjust vertical position for mobile to sit near image */
        background: rgba(255, 255, 255, 0.7);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-prev {
        left: 10px;
    }

    .nav-next {
        right: 10px;
    }
}


/* --- LIQUID PAGE TRANSITIONS (BARBA.JS) --- */

/* The Curtain Overlay */
.transition-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-color);
    z-index: 99999;
    pointer-events: none;
    transform: translateY(100%);
    /* Use a 'liquid' bezier curve */
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    /* Alternative advanced clip-path if browsers support: */
    /* clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); */
}

/* Specific state for transition active */
.transition-curtain.active {
    transform: translateY(0);
}

/* Optional: Slight opacity fade for liquid feel */
body {
    transition: opacity 0.4s ease;
}

body.is-transitioning {
    opacity: 1;
    /* handled by curtain */
}

/* =========================================
   NEW WINE SCROLL ANIMATION (PARALLAX TECH SHEET)
   ========================================= */

/* Wrapper for scroll space (250vh height ensures scroll time) */
.wine-card-wrapper {
    position: relative;
    width: 100%;
    height: 175vh;
    z-index: 10;
}

/* Sticky Container: The visible viewport */
.wine-card-inner {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    will-change: transform;
}

/* Backgrounds applied to INNER container now */
.wine-card-inner.card-blanc {
    background: radial-gradient(circle at center, #fbf7ee 0%, #dcd2b5 100%);
}

.wine-card-inner.card-negre {
    background: radial-gradient(circle at center, #2a1b12 0%, #0d0604 100%);
}

.wine-card-inner.card-rosat {
    background: radial-gradient(circle at center, #fff0f5 0%, #ffc4cc 100%);
}

.wine-card-inner.card-ancestral {
    background: radial-gradient(circle at center, #fffbee 0%, #e8dcb8 100%);
}

/* Big Type (Decorative Background) */
.wine-big-type {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    font-size: clamp(5rem, 20vw, 15rem);
    line-height: 0.8;
    color: transparent;
    -webkit-text-stroke: 2px rgba(0, 0, 0, 0.08);
    /* Lighter stroke for subtlety */
    transition: all 0.5s ease;
}

.wine-card-inner.card-negre .wine-big-type {
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.1);
}

/* Layout Grid/Flex */
.wine-content-layout {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    /* Centered by default */
    justify-content: center;
    align-items: center;
}

/* Left Column: Bottle */
.wine-col-bottle {
    position: relative;
    transition: transform 0.1s linear;
    /* Controlled by JS via scroll */
    z-index: 5;
    will-change: transform;
}

.wine-bottle-img {
    height: 85vh;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.35));
    will-change: transform;
}

@media (max-width: 991px) {

    .tech-sheet,
    .scroll-prompt-capsule {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .tech-sheet {
        background: rgba(255, 255, 255, 0.95) !important;
    }

    .wine-card-inner.card-negre .tech-sheet {
        background: rgba(0, 0, 0, 0.85) !important;
    }
}

/* Right Column: Tech Sheet */
.wine-col-tech {
    position: absolute;
    right: 15%;
    /* Initial position offset */
    top: 50%;
    transform: translateY(-50%) translateX(100px);
    width: 550px;
    opacity: 0;
    transition: opacity 0.1s linear, transform 0.1s linear;
    /* Controlled by JS */
    z-index: 20;
    pointer-events: none;
    /* Initially non-interactive */
}

/* Active State (Controlled by JS classes if needed, or inline styles) */
.wine-col-tech.active {
    pointer-events: auto;
}

/* Tech Sheet Card Styling */
.tech-sheet {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #1a1a1a;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Dark mode override for Negre */
.wine-card-inner.card-negre .tech-sheet {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.tech-grape {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.tech-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.tech-price {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.tech-desc {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 1;
}

/* Grid for details */
.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1.5rem;
}

.wine-card-inner.card-negre .tech-grid {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.tech-item {
    display: flex;
    flex-direction: column;
}

.tech-item label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    margin-bottom: 0.2rem;
}

.tech-item span {
    font-weight: 600;
    font-size: 0.95rem;
}

/* CTA Button */
.tech-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1a1a1a;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.wine-card-inner.card-negre .tech-cta {
    background: #fff;
    color: #000;
}

.tech-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.wine-card-inner.card-negre .tech-cta:hover {
    color: #000;
}

/* Scroll Prompt Capsule */
.scroll-prompt-capsule {
    position: absolute;
    bottom: 30px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    animation: bounce 2s infinite;
    z-index: 5;
    opacity: 0.7;
    pointer-events: none;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

/* MOBILE FALLBACK */

/* MOBILE FALLBACK */


/* --- ZIGZAG LAYOUT (ALTERNATING CARDS) - DESKTOP ONLY --- */
@media (min-width: 992px) {
    .wine-card-inner.alternate-layout .wine-content-layout {
        flex-direction: row-reverse;
    }

    .wine-card-inner.alternate-layout .wine-col-tech {
        right: auto;
        left: 15%;
        /* Initial state for alternate: shifted left */
        transform: translateY(-50%) translateX(-100px);
    }


}

/* --- MOBILE ANIMATION STYLES --- */
/* MOBILE FALLBACK (Scroll Driven) */
@media (max-width: 991px) {
    .wine-card-wrapper {
        height: 151vh;
        /* Enable Scroll */
        position: relative;
        z-index: 1;
    }

    .wine-card-inner {
        position: sticky;
        top: 0;
        height: 100vh;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .wine-content-layout {
        display: contents;
    }

    /* Bottle: Starts Centered, Opaque, Foreground */
    .wine-col-bottle {
        position: absolute !important;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 5;
        /* Initially on top of tech sheet wrapper */
        width: auto;
        margin: 0;
        transition: none;
        /* Controlled by JS scroll */
        opacity: 1;
        pointer-events: none;
    }

    .wine-bottle-img {
        height: 80vh;
        /* Good size for mobile center */
        width: auto;
        opacity: 1;
        /* Fully visible at start */
        filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    }

    /* Tech Sheet: Starts Hidden */
    .wine-col-tech {
        position: relative;
        z-index: 10;
        /* Will sit on top when visible */
        opacity: 0;
        transform: translateY(20px);
        width: 85%;
        max-width: 450px;
        text-align: center;
        margin: 0 auto !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transition: none;
        /* Controlled by JS scroll */
    }

    /* Alternate Layout Adjustments handled by JS primarily, 
       but basic overrides here if needed */
    .wine-card-inner.alternate-layout .wine-col-bottle {
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -50%);
    }

    .scroll-prompt-capsule {
        display: none;
    }
}

/* --- ZIGZAG LAYOUT (ALTERNATING CARDS) - DESKTOP ONLY --- */
@media (min-width: 992px) {
    .wine-card-inner.alternate-layout .wine-content-layout {
        flex-direction: row-reverse;
    }

    .wine-card-inner.alternate-layout .wine-col-tech {
        right: auto;
        left: 15%;
        /* Initial state for alternate: shifted left */
        transform: translateY(-50%) translateX(-100px);
    }
}

/* User Feedback Updates - White Titles */
.card-negre .tech-title,
.card-negre .tech-price,
.card-negre .tech-desc,
.card-negre .tech-item span,
.card-negre .tech-item label,
.panel-essence .panel-title,
.panel-gourmand .panel-title {
    color: #ffffff !important;
    opacity: 1 !important;
}