/* ==========================================================================
   CSS Variables & Base Styles
   ========================================================================== */
   :root {
    /* Color Palette */
    --color-bg: #ffffff;
    --color-bg-light: #f8f9fa;
    --color-text-main: #0B132B; /* Navy Blue from "gran" */
    --color-text-muted: #4a5568;
    
    /* Fallback/Alias variables */
    --color-dark: #0B132B;
    --color-text: #333333;
    --color-text-light: #6c757d;
    
    --color-accent-orange: #F25F29; /* Orange from "casa" */
    --color-accent-wine: #C71545; /* Wine/Pink from logo circle */
    --color-accent-wine-dark: #A00F36;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    /* Layout */
    --container-width: 1200px;
    --header-height: 90px;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-main);
}

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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.bg-light { background-color: var(--color-bg-light); }
.section-padding { padding: 80px 0; }

/* Typography utilities */
.lead-text {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 800px;
    margin: 0 auto 2rem;
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.title-separator {
    width: 60px;
    height: 3px;
    background-color: var(--color-accent-wine);
    margin: 0 auto 2rem;
}
.title-separator-left {
    width: 60px;
    height: 3px;
    background-color: var(--color-accent-wine);
    margin: 1rem 0 2rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-accent-wine);
    color: white;
}
.btn-primary:hover {
    background-color: var(--color-accent-wine-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(199, 21, 69, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}
.btn-secondary:hover {
    background-color: white;
    color: var(--color-text-main);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-accent-wine);
    border: 1px solid var(--color-accent-wine);
}
.btn-outline:hover {
    background-color: var(--color-accent-wine);
    color: white;
    box-shadow: 0 4px 12px rgba(199, 21, 69, 0.2);
}

.btn-primary-alt {
    background-color: var(--color-accent-orange);
    color: white;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(242, 95, 41, 0.4);
}
.btn-primary-alt:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(242, 95, 41, 0.5);
    background-color: #f36e3e;
    color: white;
}

.btn-outline-white {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.25);
    font-weight: 600;
}
.btn-outline-white:hover {
    border-color: white;
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    width: 100%;
    padding: 12px;
    margin-top: auto;
    font-weight: 600;
}
.btn-whatsapp:hover {
    background-color: #1ebe57;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: white;
    border-bottom: 3px solid var(--color-accent-orange);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    z-index: 1000;
    transition: var(--transition-normal);
}

.header-container {
    max-width: var(--container-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative; /* Base for mega menu absolute positioning */
}

/* ── Logo ── */
.logo {
    cursor: pointer;
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
}

.main-logo {
    height: 82px;
    width: auto;
    object-fit: contain;
    /* Removes near-white background on the white header */
    mix-blend-mode: multiply;
}

.footer-logo { margin-bottom: 12px; }

.footer-logo-img {
    height: 65px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.88;
}

.logo-fallback {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    position: relative;
}

.logo-gran { color: var(--color-text-main); }
.logo-casa { color: var(--color-accent-orange); }

.logo-vinos {
    font-family: var(--font-body);
    font-size: 0.6rem;
    letter-spacing: 0.4em;
    color: #333;
    margin-top: 4px;
    margin-left: 0.4em;
}

.logo-fallback::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border: 3px solid var(--color-accent-wine);
    border-radius: 50%;
    opacity: 0.15;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
}

.nav-menu > ul {
    display: flex;
    gap: 15px;
    align-items: center;
}
.nav-menu a {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--color-text-main);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.25s ease;
}
.nav-menu a:hover {
    background-color: rgba(242, 95, 41, 0.08);
    color: var(--color-accent-orange);
}

/* Dropdown arrow for Desktop */
.dropdown-trigger::after {
    content: '▼';
    font-size: 0.6rem;
    margin-left: 6px;
    vertical-align: middle;
    display: inline-block;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.nav-dropdown:hover .dropdown-trigger::after {
    transform: rotate(180deg);
    opacity: 1;
}

.mobile-dropdown-toggle {
    display: none;
}

.nav-link-container {
    display: contents;
}

/* ── Mega Menu (Vinos) ── */
.nav-dropdown.mega-dropdown {
    position: static;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: min(1200px, 95vw);
    background: white;
    box-shadow: 0 25px 70px rgba(0,0,0,0.15);
    border-top: 4px solid var(--color-accent-wine);
    border-radius: 0 0 24px 24px;
    padding: 50px 60px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1200;
}

.nav-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.bodegas-columns-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mega-col h4.mega-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-accent-wine);
    margin-bottom: 18px;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(199, 21, 69, 0.08);
    padding-bottom: 10px;
    text-transform: uppercase;
}

.mega-col ul {
    list-style: none;
    padding: 0;
    display: block;
}

.mega-col ul li {
    margin-bottom: 12px;
    display: block;
}

.mega-col ul li a {
    color: var(--color-text-main);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
    display: block;
    text-transform: none;
}

.mega-col ul li a:hover {
    color: var(--color-accent-wine);
    transform: translateX(5px);
}

.mega-col ul li a span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

/* Reverting Dropdown Menu (for others if needed) */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 3px solid var(--color-accent-wine);
    border-radius: 0 0 8px 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1200;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 0.95rem;
    color: var(--color-text-main);
    font-weight: 500;
}

.dropdown-menu a:hover {
    background-color: #f9f9f9;
    color: var(--color-accent-wine);
}

/* ── Vinos Layout with Sidebar ── */
.vinos-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-top: 30px;
}

.vinos-sidebar {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-filter {
    margin-bottom: 30px;
}

.sidebar-filter:last-child {
    margin-bottom: 0;
}

.sidebar-filter h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--color-text-main);
}

.sidebar-filter select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #f9f9f9;
    font-size: 0.95rem;
    color: var(--color-text-main);
    outline: none;
    transition: all 0.2s;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23C71545' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
}

.sidebar-filter select:focus {
    border-color: var(--color-accent-wine);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(199, 21, 69, 0.05);
}

/* Header Socials */
.header-socials {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid #eee;
}

.header-socials a {
    color: var(--color-text-main);
    transition: color 0.2s ease;
}

.header-socials a:hover {
    color: var(--color-accent-orange);
}

.header-socials svg {
    width: 20px;
    height: 20px;
}

/* Orange underline accent on hover */
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--color-accent-orange);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}
.nav-menu a:hover::after {
    transform: scaleX(1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-main);
    padding: 10px;
    z-index: 1100;
}

.mobile-menu-btn svg {
    width: 28px;
    height: 28px;
}

/* Nav Actions Group */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Winerim CTA button in nav */
.btn-winerim-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent-orange);
    border: 2px solid var(--color-accent-orange);
    background: rgba(242,95,41,0.06);
    transition: all 0.25s ease;
    white-space: nowrap;
    text-decoration: none;
}
.btn-winerim-nav:hover {
    background: var(--color-accent-orange);
    color: white;
    box-shadow: 0 4px 14px rgba(242,95,41,0.35);
    transform: translateY(-1px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    min-height: 600px;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.3));
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 800px;
    padding: 150px 20px 0; /* Empuja el texto hacia abajo */
}

.hero h1 {
    font-size: 4.5rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

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

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats-section {
    background: linear-gradient(135deg, var(--color-text-main) 0%, #1a2744 100%);
    padding: 60px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.stat-item {
    padding: 20px;
}
.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-accent-orange);
    line-height: 1;
    margin-bottom: 10px;
}
.stat-label {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* ==========================================================================
   Features / About Brief
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}
.feature-card {
    padding: 40px 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: var(--transition-normal);
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(199, 21, 69, 0.1);
    color: var(--color-accent-wine);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
    color: var(--color-text-main);
}
.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   Regions Showcase
   ========================================================================== */
.regions-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.regions-text p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}
.regions-list {
    list-style: none;
    padding: 0;
}
.regions-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
    color: var(--color-text-muted);
}
.regions-list li strong {
    color: var(--color-text-main);
}
.regions-list li svg {
    color: var(--color-accent-wine);
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}
.regions-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.regions-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}
.regions-image:hover img {
    transform: scale(1.02);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    background: linear-gradient(135deg, var(--color-accent-wine) 0%, var(--color-accent-wine-dark) 100%);
    padding: 80px 0;
    text-align: center;
}
.cta-section h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}
.cta-section p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.cta-section .btn-primary {
    background-color: white;
    color: var(--color-accent-wine);
    font-weight: 600;
}
.cta-section .btn-primary:hover {
    background-color: var(--color-text-main);
    color: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* ==========================================================================
   Bodegas Grid & Cards
   ========================================================================== */
.bodegas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 30px;
}

.bodega-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 260px;
    cursor: pointer;
}
.bodega-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.bodega-logo-wrap {
    height: 500px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: #faf9f7;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.bodega-logo-wrap img,
.bodega-card-logo {
    width: 95%;
    height: 95%;
    object-fit: contain;
    filter: contrast(1.05);
    transition: transform 0.3s ease;
    transform: scale(1.25);
}
.bodega-card:hover .bodega-logo-wrap img,
.bodega-card:hover .bodega-card-logo {
    transform: scale(1.05);
}
.bodega-text-logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text-main);
    text-align: center;
}
.bodega-info {
    padding: 22px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    text-align: center;
}
.bodega-info h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--color-text-main);
}
.bodega-info p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}
.bodega-footer {
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.explore-link {
    color: var(--color-accent-wine);
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}
.bodega-card:hover .explore-link {
    gap: 8px;
}

.bodega-hero {
    height: 60vh;
    min-height: 400px;
    background-size: cover !important;
    background-position: center center !important;
    position: relative;
    display: flex;
    align-items: center;
    text-align: left;
    padding-top: var(--header-height);
    background-image: linear-gradient(rgba(11, 19, 43, 0.7), rgba(11, 19, 43, 0.4)) !important;
}

/* ==========================================================================
   Catalog (Vinos)
   ========================================================================== */
.page-header {
    padding: 140px 0 80px;
    background-color: var(--color-bg-light);
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-image: linear-gradient(rgba(11, 19, 43, 0.75), rgba(11, 19, 43, 0.55)) !important;
    color: white;
}
.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}
.page-header p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
}

.catalog-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

.filter-group h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.filter-list li {
    margin-bottom: 10px;
}
.filter-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    text-align: left;
    width: 100%;
    padding: 5px 0;
    transition: var(--transition-fast);
}
.filter-btn:hover, .filter-btn.active {
    color: var(--color-accent-wine);
    font-weight: 600;
}

.catalog-header {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-muted);
}

.vinos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.vinos-grid-home {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .vinos-grid-home { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .vinos-grid-home { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .vinos-grid-home { grid-template-columns: 1fr; }
}

.vino-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    position: relative;
}

.vino-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.06);
    border-color: var(--color-accent-wine-light);
}

.vino-header {
    margin-bottom: 15px;
}

.vino-nombre {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-text-main);
    margin-bottom: 5px;
    line-height: 1.2;
}

.vino-bodega-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent-orange);
    font-weight: 700;
}

.vino-linea-wrap {
    margin-bottom: 25px;
    flex-grow: 1;
}

.vino-img {
    height: 320px;
    margin: -25px -25px 20px -25px;
    background: #fdfdfd radial-gradient(circle, #f0f0f0 0%, #fdfdfd 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    overflow: hidden;
    position: relative;
}

.vino-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.08));
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
    opacity: 0;
}

.vino-img img[src] {
    opacity: 1;
}

.vino-card:hover .vino-img img {
    transform: scale(1.08) translateY(-10px);
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.15));
}

.vino-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
    font-style: italic;
}

.vino-varietales-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #999;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 0.05em;
}

.vino-varietales-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    margin: 0;
}

.vino-actions {
    margin-top: auto;
}

.btn-whatsapp-simple {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #25D366;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    width: 100%;
    transition: background 0.2s;
}

.btn-whatsapp-simple:hover {
    background-color: #128C7E;
    color: white;
}

/* ==========================================================================
   Combos
   ========================================================================== */
.combos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}
.combo-card {
    background: var(--color-bg-light);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    border: 1px solid #eaeaea;
    transition: var(--transition-normal);
}
.combo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}
.combo-badge {
    display: inline-block;
    background-color: var(--color-accent-orange);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
}
.combo-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.combo-items {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 25px;
    line-height: 1.8;
}

/* ==========================================================================
   Ferias
   ========================================================================== */
.ferias-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.ferias-images {
    position: relative;
    height: 500px;
}
.feria-img {
    position: absolute;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.feria-img.img-1 {
    width: 70%;
    top: 0;
    right: 0;
    z-index: 2;
}
.feria-img.img-2 {
    width: 60%;
    bottom: 0;
    left: 0;
    z-index: 1;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #0B132B;
    color: #e2e8f0;
    padding: 80px 0 30px;
}
.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
    margin-bottom: 50px;
}
.footer .logo-gran { color: white; }
.footer .logo-vinos { color: #aaa; }

.footer-col h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-accent-wine);
}

.brand-col p {
    margin-top: 25px;
    color: #a0aec0;
    line-height: 1.7;
    max-width: 320px;
}
.social-links {
    margin-top: 25px;
    display: flex;
    gap: 10px;
}
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.08);
    color: #FFFFFF !important;
    opacity: 0.8;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 10px;
}
.social-links a svg {
    width: 24px !important;
    height: 24px !important;
}
.social-links a:hover {
    background-color: rgba(255,255,255,0.15);
    transform: translateY(-5px);
    opacity: 1;
}

.links-col ul {
    list-style: none;
    padding: 0;
}
.links-col li {
    margin-bottom: 12px;
}
.links-col a {
    color: #a0aec0;
    transition: color 0.2s ease;
}
.links-col a:hover {
    color: var(--color-accent-orange);
    padding-left: 5px;
}

.contact-col p {
    color: #a0aec0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-col p i {
    color: var(--color-accent-wine);
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #718096;
    font-size: 0.9rem;
}

/* ==========================================================================
   Bodega Chip Filters
   ========================================================================== */
.bodega-filter-panel {
    background: white;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 16px;
}

.bodega-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bodega-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border: 2px solid #eee;
    border-radius: 12px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 72px;
    max-width: 90px;
}

.bodega-chip:hover {
    border-color: var(--color-accent-wine);
    background: rgba(199, 21, 69, 0.04);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(199, 21, 69, 0.15);
}

.bodega-chip.active {
    border-color: var(--color-accent-wine);
    background: rgba(199, 21, 69, 0.07);
    box-shadow: 0 4px 12px rgba(199, 21, 69, 0.2);
}

.bodega-chip-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.bodega-chip-icon.all-icon {
    background: var(--color-accent-wine);
    color: white;
}

.bodega-chip.active .bodega-chip-icon.all-icon {
    background: var(--color-dark);
}

.bodega-chip-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bodega-chip > span {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--color-text-main);
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

.bodega-chip.active > span {
    color: var(--color-accent-wine);
}

/* Variedad filter bar */
.variedad-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.variedad-filter-bar .filter-scroll {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    overflow: visible;
    padding: 0;
}


/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    line-height: 0;
    padding: 0;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
    color: white;
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ==========================================================================
   Animations & Responsive
   ========================================================================== */
.fade-in-up {
    animation: fadeInUp 1s ease both;
}
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.feria-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
}


@media (max-width: 992px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }
    .ferias-layout {
        grid-template-columns: 1fr;
    }
    .ferias-images {
        height: 400px;
        margin-top: 40px;
    }
    .regions-layout {
        grid-template-columns: 1fr;
    }
    .regions-image {
        margin-top: 40px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu, .header .btn-primary {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero h1 {
        font-size: 3rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .stat-number {
        font-size: 2.5rem;
    }
    .cta-section h2 {
        font-size: 1.8rem;
    }

    .page-header h1 {
        font-size: 2.2rem !important;
    }

    .hero h1 {
        font-size: 2.5rem !important;
    }

    .hero p {
        font-size: 1.2rem !important;
    }

    /* Mobile Menu Open State */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
        z-index: 1050;
        padding: 80px 30px;
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
        width: 100%;
    }

    .nav-menu a {
        font-size: 1.5rem;
        font-family: var(--font-heading);
        width: 100%;
        text-align: left;
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
        color: var(--color-text-main);
        text-transform: none;
        letter-spacing: 0;
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-actions {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 1100;
    }
}

/* ==========================================================================
   New Homepage Sections
   ========================================================================== */
.category-banners {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.cat-banner {
    position: relative;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: var(--transition-normal);
}

.cat-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.cat-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.9) contrast(1.05);
}

.cat-banner:hover img {
    transform: scale(1.05);
}

.cat-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.cat-banner h3 {
    position: absolute;
    bottom: 25px;
    left: 25px;
    color: white;
    z-index: 2;
    font-size: 1.8rem;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.bodega-logo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.bodega-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 180px;
}

.bodega-logo-item:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.bodega-logo-item img {
    max-width: 240px;
    max-height: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

/* Extra scaling for Marchiori & Barraud in the catalog to compensate for its horizontal/thin design */
.bodega-card-marchiori-barraud .bodega-logo-wrap img {
    transform: scale(2.2) !important;
}

@media (max-width: 992px) {
    .bodega-logo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .bodega-logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .bodega-logo-item {
        height: 80px;
        padding: 15px;
    }
}


.bg-dark {
    background-color: var(--color-text-main);
    color: white;
}

.bg-dark h2 {
    color: white;
}

.bg-white {
    background-color: white !important;
}

/* Catalog Banner with QR Code */
.catalog-banner {
    background: linear-gradient(135deg, #0d1b3e 0%, #1a0a05 100%);
    position: relative;
    overflow: hidden;
}

.catalog-banner::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(242, 95, 41, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.catalog-banner::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(199, 21, 69, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.catalog-qr-container {
    display: flex;
    align-items: center;
    gap: 60px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.qr-code-wrapper {
    flex-shrink: 0;
    background: white;
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.qr-code-wrapper:hover {
    transform: rotate(0deg) scale(1.04);
}

.qr-code-wrapper img {
    display: block;
    width: 220px;
    height: 220px;
}

.qr-code-wrapper p {
    text-align: center;
    font-size: 0.7rem;
    color: #666;
    margin-top: 8px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.catalog-info {
    flex: 1;
}

.b2b-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(242, 95, 41, 0.15);
    border: 1px solid rgba(242, 95, 41, 0.4);
    border-radius: 30px;
    padding: 6px 16px;
    margin-bottom: 18px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent-orange);
    display: inline-block;
    animation: pulse 2s infinite;
}

.b2b-badge span:last-child {
    color: var(--color-accent-orange);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.catalog-info h2 {
    font-size: 3.2rem;
    color: white;
    line-height: 1.1;
    margin-bottom: 6px;
}

.accent-text {
    background: linear-gradient(90deg, var(--color-accent-orange), #f5a05a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.catalog-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 460px;
    margin-bottom: 30px;
}

.catalog-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(242, 95, 41, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(242, 95, 41, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(242, 95, 41, 0); }
}

@media (max-width: 992px) {
    .catalog-qr-container {
        flex-direction: column;
        padding: 40px 30px;
        text-align: center;
        gap: 40px;
    }
    .catalog-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .catalog-info h2 {
        font-size: 2.5rem;
    }
    .catalog-actions {
        justify-content: center;
    }
}

/* Horizontal Filters */
.filters-container {
    background: white;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.filter-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.filter-row + .filter-row {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.filter-label {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 80px;
}

.filter-label i {
    width: 14px;
    height: 14px;
    color: var(--color-accent-orange);
}

.filter-track-wrap {
    flex: 1;
    overflow: hidden;
}

.filter-track {
    display: flex;
    gap: 8px;
    padding: 4px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-track::-webkit-scrollbar {
    display: none;
}

@media (min-width: 769px) {
    .filter-track {
        flex-wrap: wrap;
    }
}

/* Pills */
.pill-btn {
    background: #f4f4f6;
    border: 1.5px solid transparent;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.pill-btn:hover {
    background: rgba(242, 95, 41, 0.09);
    border-color: rgba(242, 95, 41, 0.35);
    color: var(--color-accent-orange);
    transform: translateY(-1px);
}

.pill-btn.active {
    background: var(--color-accent-orange);
    border-color: var(--color-accent-orange);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(242,95,41,0.4);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .filter-label { min-width: unset; }
    .filter-track-wrap { width: 100%; }
}

@media (max-width: 576px) {
    .catalog-info h2 {
        font-size: 2rem;
    }
    .qr-code-wrapper img {
        width: 180px;
        height: 180px;
    }
    .catalog-qr-container {
        padding: 30px 20px;
    }
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 19, 43, 0.85);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 12px;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transform: translateY(20px);
    transition: all 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.05);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--color-dark);
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(0,0,0,0.1);
}

/* Modal Internal Layout */
.wine-modal-layout {
    display: flex;
    flex-direction: row;
}

.wine-modal-img {
    flex: 0 0 40%;
    background: #f8f8f8;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wine-modal-img img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

.wine-modal-info {
    flex: 1;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
}

.wine-modal-info h2 {
    font-size: 2.2rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 10px;
}

.wine-modal-info h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--color-accent-orange);
}

.wine-modal-linea {
    color: var(--color-accent-orange);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wine-modal-desc {
    font-size: 1.05rem;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.wine-modal-bodega {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--color-text-light);
    font-style: italic;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .wine-modal-layout {
        flex-direction: column;
    }
    .wine-modal-img {
        padding: 1rem;
    }
    .wine-modal-img img {
        max-height: 300px;
    }
    .wine-modal-info {
        padding: 2rem 1.5rem;
    }
    .wine-modal-info h2 {
        font-size: 1.8rem;
    }
}

/* Logos Marquee */
.logos-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.logos-track {
    display: flex;
    gap: 80px;
    align-items: center;
    width: fit-content;
    animation: marquee 40s linear infinite;
}

.logos-track:hover {
    animation-play-state: paused;
}

.marquee-logo {
    height: 140px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    margin: 0 40px;
    mix-blend-mode: multiply;
    transition: all 0.4s ease;
}

.marquee-logo:hover {
    filter: grayscale(0%) opacity(1) !important;
    transform: scale(1.1);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Combos Section */
.combos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.combo-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.combo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-color: var(--color-accent-orange);
}

.combo-img {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.combo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

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

.combo-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.combo-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(242, 95, 41, 0.1);
    color: var(--color-accent-orange);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.combo-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--color-text-main);
}

.combo-items {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
}


/* ==========================================================================
   Franchise Section Styles
   ========================================================================== */
.franchise-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.franchise-logo-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.franchise-logo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    border-color: var(--color-accent-orange);
}

.franchise-img-container {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.franchise-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.franchise-city-tag {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.badge {
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    display: inline-block;
}

.badge-central, .badge-active {
    background-color: #1a472a; /* Verde bosque profundo */
    color: #d4af37; /* Oro elegante */
    border: 1px solid #d4af37;
    box-shadow: 0 2px 8px rgba(26, 71, 42, 0.2);
}

.badge-available {
    background-color: transparent;
    color: var(--color-text-muted);
    border: 1px solid #cbd5e0;
    font-weight: 600;
}

@media (max-width: 768px) {
    .franchise-logos-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    .franchise-logo-card {
        padding: 15px !important;
    }
    .franchise-city-tag {
        font-size: 1rem !important;
    }
    .badge {
        font-size: 0.6rem !important;
        padding: 3px 8px !important;
    }
}




/* ==========================================================================
   Bodegas Page & Alphabetical Nav Styles
   ========================================================================== */
/* ── Bodegas Grid (Continuous) ── */
.bodegas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.bodega-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.bodega-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--color-accent-wine-light);
}

.bodega-logo-wrap {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: #fdfdfd;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.bodega-card-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.bodega-card:hover .bodega-card-logo {
    transform: scale(1.05);
}

.bodega-text-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-accent-wine);
    text-align: center;
    font-weight: 700;
}

.bodega-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.bodega-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--color-text-main);
}

.bodega-info p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.bodega-footer {
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.explore-link {
    color: var(--color-accent-wine);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
}



/* ==========================================================================
   MOBILE OPTIMIZATIONS (Only for mobile screens)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Typography & Global Spacing */
    body h1 { font-size: 1.5rem !important; }
    body h2, body .section-title { font-size: 1.4rem !important; margin-bottom: 0.5rem !important; }
    body h3 { font-size: 1.1rem !important; }
    body .section-padding { padding: 20px 0 !important; }
    body .container { padding: 0 15px !important; }
    
    /* 2. Hero Section (Ultra Compact 40vh) */
    body .hero {
        height: auto !important;
        min-height: 350px !important;
        padding: 110px 0 40px !important; /* Increased top padding to avoid header overlap */
        display: flex !important;
        align-items: center !important;
        overflow: hidden !important;
    }
    body .hero h1 { font-size: 1.6rem !important; line-height: 1.1 !important; margin-bottom: 5px !important; }
    body .hero p { font-size: 0.85rem !important; margin-bottom: 1rem !important; }
    body .hero-buttons { flex-direction: column !important; gap: 8px !important; width: 100% !important; align-items: center !important; }
    body .hero-buttons .btn { width: 100% !important; max-width: 220px !important; padding: 8px 12px !important; font-size: 0.8rem !important; }

    /* 3. Feature Cards */
    body .features-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
    body .feature-card { padding: 12px !important; }
    body .feature-card p { font-size: 0.8rem !important; line-height: 1.3 !important; }

    /* 4. Vinos Catalog Page Optimizations */
    body .vinos-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    body .vinos-sidebar {
        position: static !important;
        padding: 15px !important;
        border-radius: 12px !important;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    body .sidebar-filter {
        margin-bottom: 10px !important;
    }
    body .sidebar-filter h4 {
        font-size: 0.8rem !important;
        margin-bottom: 5px !important;
    }
    body .sidebar-filter select {
        padding: 8px !important;
        font-size: 0.8rem !important;
    }
    body .page-header {
        height: auto !important;
        min-height: 180px !important;
        padding: 110px 0 40px !important; /* Increased top padding */
        background-attachment: scroll !important;
    }
    body .page-header h1 {
        font-size: 1.8rem !important;
    }
    body .page-header p {
        font-size: 0.9rem !important;
    }

    body .vinos-grid { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 12px !important; 
        padding: 0 5px !important;
    }
    body .vino-card {
        min-height: auto !important;
        border-radius: 12px !important;
    }
    body .vino-img {
        height: 160px !important;
        padding: 5px !important;
    }
    body .vino-img img {
        max-width: 90% !important;
        max-height: 90% !important;
        object-fit: contain !important;
    }
    body .vino-info {
        padding: 10px !important;
    }
    body .vino-info h3 {
        font-size: 0.8rem !important;
        min-height: 2rem !important;
    }
    body .vino-info p {
        font-size: 0.7rem !important;
    }
    body .vino-price {
        font-size: 0.85rem !important;
    }
    
    /* Optimized Filter Chips on Mobile */
    body .variedad-filter-bar {
        overflow-x: auto !important;
        white-space: nowrap !important;
        flex-wrap: nowrap !important;
        padding: 8px 15px !important;
        border-radius: 10px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    body .variedad-filter-bar::-webkit-scrollbar { display: none; }
    body .variedad-filter-bar .filter-scroll {
        flex-wrap: nowrap !important;
    }
    body .chip-btn {
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
    }


    /* Modal mobile */
    #vino-modal-overlay > div {
        flex-direction: column !important;
        max-height: 95vh !important;
        border-radius: 16px !important;
        width: 95% !important;
    }
    #vino-modal-overlay > div > div:first-child {
        min-height: 220px !important;
        padding: 20px !important;
    }
    #vino-modal-overlay > div > div:last-child {
        padding: 20px !important;
    }
    body .vino-info p { 
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        font-size: 0.8rem !important;
        max-height: 2.6em !important;
    }

    /* 5. Combos */
    body .combo-img { height: 150px !important; }
    body .combo-items { -webkit-line-clamp: 2 !important; display: -webkit-box !important; -webkit-box-orient: vertical !important; overflow: hidden !important; font-size: 0.82rem !important; max-height: 2.6em !important; }



    /* Alphabetical Nav (FORCE SCROLL) */
    body .alphabet-nav {
        display: flex !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        padding: 8px !important;
        gap: 5px !important;
        margin-bottom: 20px !important;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap !important;
        background: #fdfdfd !important;
        border: 1px solid #eee !important;
        border-radius: 30px !important;
        width: 100% !important;
    }
    body .alphabet-nav::-webkit-scrollbar { display: none; }
    body .alphabet-nav .alphabet-btn {
        flex: 0 0 32px !important;
        width: 32px !important;
        height: 32px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        font-size: 0.8rem !important;
        border-radius: 50% !important;
        background: #f5f5f5 !important;
    }

    /* 7. Ferias */
    body .event-flyer { height: 180px !important; }
    body .event-flyer img { object-fit: contain !important; padding: 10px; }

    /* Stats */
    body .stats-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
    body .stat-number { font-size: 1.8rem !important; }

    /* Header & Logo Mobile Adjustments */
    body .header {
        height: 80px !important;
    }
    body .logo img {
        height: 45px !important;
    }
    body .hamburger {
        top: 22px !important;
    }

    /* Header & Mega Menu Mobile (Refined & Bonito) */
    body .header-socials {
        display: none !important;
    }
    body .nav-menu {
        padding: 100px 30px !important;
        justify-content: flex-start !important;
    }
    body .nav-menu ul li {
        width: 100%;
        margin-bottom: 5px;
    }
    body .nav-menu a {
        font-size: 1.1rem !important;
        padding: 12px 15px !important;
        display: block !important;
        border-bottom: 1px solid #f0f0f0;
        flex: 1; /* Make link take full width in container */
        position: relative;
        z-index: 5;
        pointer-events: auto !important;
    }
    body .nav-link-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    body .nav-link-container a {
        border-bottom: none !important;
        flex: 1;
    }
    body .mobile-dropdown-toggle {
        display: flex !important; /* Show only on mobile */
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        background: none;
        border: none;
        color: var(--color-accent-wine);
        cursor: pointer;
    }
    body .dropdown-trigger::after {
        display: none !important; /* Hide the desktop arrow on mobile */
    }
    body .nav-dropdown.active .dropdown-trigger::after {
        transform: rotate(180deg);
    }
    body .mega-menu {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        display: none;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none !important;
        border: none !important;
        padding: 10px !important;
        background: #fdfdfd !important;
        border-left: 4px solid var(--color-accent-wine) !important;
        margin-top: 5px;
        margin-bottom: 15px;
    }
    body .nav-dropdown.active .mega-menu {
        display: block !important;
    }
    body .mega-menu-container {
        grid-template-columns: 1fr !important;
        gap: 5px !important;
    }
    body .mega-col {
        background: white;
        margin-bottom: 8px;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #eee;
        grid-column: auto !important; /* Reset span on mobile */
    }
    body .bodegas-columns-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    body .mega-title {
        font-size: 0.95rem !important;
        margin: 0 !important;
        padding: 14px 18px !important;
        color: #333 !important;
        font-weight: 700 !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #fcfcfc;
    }
    body .mega-title::after {
        content: '+';
        font-size: 1.2rem;
        color: var(--color-accent-wine);
    }
    body .mega-col.active .mega-title {
        background: #fdfdfd;
        color: var(--color-accent-wine) !important;
    }
    body .mega-col.active .mega-title::after {
        content: '−';
    }
    body .mega-col ul {
        padding: 5px 0 !important;
    }
    body .mega-col ul li a {
        color: #555 !important;
        font-size: 0.95rem !important;
        padding: 14px 25px !important;
        display: block !important;
        width: 100% !important;
        position: relative !important;
        z-index: 100 !important;
        pointer-events: auto !important;
        border-bottom: none !important;
        text-transform: none !important;
        font-weight: 500 !important;
    }
    .mobile-only {
        display: none;
    }
    @media (max-width: 768px) {
        .mobile-only {
            display: inline;
        }
        .mobile-dropdown-toggle svg {
            transition: transform 0.3s ease;
        }
        .nav-dropdown.active .mobile-dropdown-toggle svg {
            transform: rotate(180deg);
        }
    }
    body .mega-col ul li a:active {
        background: #f0f0f0;
    }
}

@media (max-width: 480px) {
    body .hero h1 { font-size: 1.6rem !important; }
    body .stats-grid { grid-template-columns: 1fr !important; }
}

/* ==========================================================================
   Combos Grid
   ========================================================================== */
.combos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .combos-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Full Responsive & Mobile Optimization Overhaul
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Hero Image Fix (Not cut off) */
    body .hero {
        height: auto !important;
        min-height: 450px !important;
        padding-top: 120px !important;
        padding-bottom: 60px !important;
        background-attachment: scroll !important;
    }
    body .hero h1 { font-size: 2.4rem !important; }

    /* 2. Mega Menu Accordion Logic (Styles) */
    body .nav-menu {
        padding: 80px 20px !important;
    }
    body .mega-menu {
        display: none !important; /* Managed by JS/Classes */
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: #fdfdfd !important;
        padding: 0 !important;
        transform: none !important;
    }
    body .nav-dropdown.active .mega-menu {
        display: block !important;
    }
    body .mega-col {
        border-bottom: 1px solid #eee;
    }
    body .mega-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 10px;
        font-size: 0.9rem !important;
        margin: 0 !important;
        color: var(--color-dark) !important;
    }
    body .mega-title::after {
        content: '+';
        font-family: monospace;
        font-size: 1.2rem;
    }
    body .mega-col.active .mega-title::after {
        content: '−';
    }
    body .mega-col ul {
        display: none;
        padding: 0 15px 15px !important;
    }
    body .mega-col.active ul {
        display: block !important;
    }

    /* 3. Bodegas Grid (2 Columns + Min 100px) */
    .bodega-logo-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        padding: 0 15px !important;
    }
    .bodega-logo-item {
        min-width: 140px !important;
        height: 130px !important;
        padding: 15px !important;
    }

    /* 4. Vinos Seleccionados Slider */
    .vinos-grid-home {
        display: flex !important;
        overflow-x: auto !important;
        gap: 15px !important;
        padding: 10px 15px 30px !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start !important;
    }
    .vinos-grid-home .vino-card {
        flex: 0 0 250px !important; /* Slightly smaller for better fit */
        scroll-snap-align: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
        margin-bottom: 0 !important;
    }
    .vinos-grid-home .vino-img {
        height: 240px !important;
        padding: 8px !important;
    }
    .vinos-grid-home .vino-info h3 {
        font-size: 1rem !important;
        min-height: 2.4rem !important;
    }

    /* 5. Hide QR, Show Mobile CTA */
    .qr-code-wrapper, .catalog-photo-decor {
        display: none !important;
    }
    .catalog-info {
        text-align: center !important;
        padding: 0 !important;
    }
    .catalog-info h2 { font-size: 2rem !important; }
    .catalog-actions {
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }

    /* 6. WhatsApp Float Fix */
    .whatsapp-float {
        display: none !important; /* Hide the old one if needed */
    }
    .whatsapp-float-mobile {
        display: flex !important;
        position: fixed;
        bottom: 25px;
        right: 25px;
        width: 60px;
        height: 60px;
        background: #25D366;
        color: white;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
        z-index: 9999;
        padding: 15px;
    }

    /* 7. Catalog Bodegas - Optimized */
    .bodegas-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 0 5px !important;
    }
    .bodega-card {
        min-height: auto !important;
        border-radius: 12px !important;
    }
    .bodega-logo-wrap {
        height: 180px !important;
        padding: 20px !important;
        background: #faf9f7 !important;
    }
    .bodega-logo-wrap img, .bodega-card-logo {
        max-width: 90% !important;
        max-height: 85% !important;
        object-fit: contain !important;
    }
    .bodega-info {
        padding: 12px !important;
        text-align: center;
    }
    .bodega-info h3 {
        font-size: 0.95rem !important;
        margin-bottom: 0 !important;
    }
    .bodega-info p { display: none !important; }
    .bodega-footer { display: none !important; }
}

/* Base state for desktop */
.whatsapp-float-mobile { display: none; }


/* ==========================================================================
   Ferias & Eventos Gallery
   ========================================================================== */
.event-flyer {
    transition: var(--transition-normal);
}

.event-flyer-wrap p {
    margin-top: 10px;
    font-size: 1rem;
    color: var(--color-text-main);
}


/* ==========================================================================
   Page Headers (Vino Color)
   ========================================================================== */
.page-header {
    background: linear-gradient(135deg, #800020 0%, #4a0404 100%) !important;
    background-image: linear-gradient(135deg, #800020 0%, #4a0404 100%) !important;
    color: white !important;
    padding: 80px 0 !important;
    text-align: center !important;
    margin-top: 90px !important; /* Spacing for fixed header */
    border-bottom: 4px solid var(--color-accent-orange) !important;
}

.page-header h1, 
.page-header p {
    color: white !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
}

/* Fix for team image on mobile to hide SushiClub sign */
@media (max-width: 768px) {
    .about-image img {
        height: 350px !important;
        object-position: center bottom !important;
    }
}
