/* ==========================================================================
   Cafe Cota 1000 - Premium Design System (Roboto Only) - B2B Focus
   ========================================================================== */

/* Variables & Base Custom Properties */
:root {
    /* Brand Colors */
    --primary: #60070E;
    /* Deep Burgundy Wine */
    --primary-hover: #7E0A13;
    /* Bright Burgundy */
    --primary-light: #F0E6E7;
    /* Light Pinkish Cream */
    --accent: #CC9D4F;
    /* Cream Gold */
    --accent-hover: #DFB770;
    /* Light Gold */
    --accent-light: #FAF5EA;
    /* Light Cream Gold */

    /* Neutrals */
    --black: #0F0F0F;
    /* Deep rich black */
    --dark-grey: #1B1B1B;
    /* Card dark backgrounds */
    --light-grey: #F4F4F4;
    /* Simple light backgrounds */
    --white: #FFFFFF;
    --cream: #FDFBF7;
    /* Organic cream background */
    --border-color: #E2D9C8;
    /* Warm gold-toned border */

    /* Typography */
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-normal: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);

    /* Dimensions */
    --header-height: 80px;
    --header-shrink-height: 70px;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --max-width: 1200px;
}

/* Base Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--white);
    color: #333333;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Styles */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--black);
    line-height: 1.25;
}

p {
    font-size: 1rem;
    color: #4A4A4A;
    margin-bottom: 1.25rem;
}

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

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

ul {
    list-style: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    background: none;
    outline: none;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border: 2px solid var(--black);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ==========================================================================
   Helper Utilities
   ========================================================================== */
.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 24px;
}

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

.text-white {
    color: var(--white) !important;
}

.text-white-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.accent-bar {
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    margin: 16px 0;
}

.section-header.align-center .accent-bar {
    margin-left: auto;
    margin-right: auto;
}

.accent-bar.gold {
    background-color: var(--accent);
}

.section-tag {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

.section-tag.light {
    color: var(--accent);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.section-lead {
    font-size: 1.15rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

/* Button UI Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(96, 7, 14, 0.2);
}

.btn-secondary {
    background-color: var(--accent);
    color: var(--black);
    border: 1px solid var(--accent);
}

.btn-secondary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(204, 157, 79, 0.25);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--black);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-mini {
    padding: 8px 16px;
    font-size: 0.75rem;
    background-color: var(--primary);
    color: var(--white);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-mini:hover {
    background-color: var(--primary-hover);
}

/* ==========================================================================
   Header / Navigation Menu
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    transition: var(--transition-normal);
}

.main-header.scrolled {
    height: var(--header-shrink-height);
    background-color: rgba(96, 7, 14, 0.95);
    border-bottom: 1px solid rgba(204, 157, 79, 0.2);
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.brand-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-normal);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.main-header.scrolled .brand-logo {
    height: 42px;
}

.nav-menu ul {
    display: flex;
    gap: 28px;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--white);
    letter-spacing: 0.5px;
    position: relative;
    padding: 8px 0;
}

.main-header.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-trigger {
    background: transparent;
    color: var(--white);
    border: none;
    cursor: pointer;
    position: relative;
    padding: 8px;
    transition: var(--transition-fast);
}

.cart-trigger:hover {
    color: var(--accent);
    transform: scale(1.08);
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--accent);
    color: var(--black);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: badgePop 0.3s ease;
}

@keyframes badgePop {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    cursor: pointer;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--white);
    transition: var(--transition-normal);
}

/* ==========================================================================
   Full-Screen Video Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    background-color: var(--black);
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.video-hero {
    min-height: 100vh;
    height: 100vh;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%) scale(1.25);
    /* Zoom to hide subtitles on zoom-out */
    object-fit: cover;
    pointer-events: none;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(15, 15, 15, 0.4) 0%, rgba(15, 15, 15, 0.95) 90%);
    z-index: 1;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-content.centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.15;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 38px;
    max-width: 650px;
}

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

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse-icon {
    width: 26px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 13px;
    display: block;
    position: relative;
}

.mouse-icon .wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s ease infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 15px);
    }
}

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

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

/* ==========================================================================
   1000m Focus Altitude Widget (Science of Altitude)
   ========================================================================== */
.origen-section {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.altitude-features-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
}

.altitude-factor-card {
    flex: 1;
    background-color: var(--cream);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.altitude-factor-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(204, 157, 79, 0.12);
    background-color: var(--white);
}

.altitude-factor-card.active {
    background-color: var(--white);
    border-color: var(--primary);
    border-width: 2.5px;
    box-shadow: 0 12px 30px rgba(96, 7, 14, 0.1);
}

.factor-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
    transition: var(--transition-fast);
}

.altitude-factor-card:hover .factor-icon {
    transform: scale(1.15);
}

.altitude-factor-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--black);
    font-family: var(--font-heading);
}

.factor-summary {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0;
    line-height: 1.6;
}

.altitude-factor-card .factor-detail {
    display: none !important;
}

.altitude-detail-display {
    margin-top: 30px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 40px 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-left: 5px solid var(--accent);
}

.display-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(204, 157, 79, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.display-content {
    position: relative;
    z-index: 2;
    animation: fadeIn 0.5s ease-out;
}

.display-content h3 {
    color: var(--accent);
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.display-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    margin-bottom: 0;
    line-height: 1.7;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* ==========================================================================
   Product Catalog (No Prices, B2B Focus)
   ========================================================================== */
.catalogo-section {
    background-color: var(--cream);
    border-bottom: 1px solid var(--border-color);
}

.catalog-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 30px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: #4A4A4A;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

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

.product-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-normal);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(96, 7, 14, 0.08);
}

.product-image-container {
    height: 280px;
    width: 100%;
    background-color: #F8F8F8;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.product-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition-normal);
}

.product-card:hover .product-image {
    transform: scale(1.06);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 15, 15, 0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: var(--transition-fast);
    z-index: 5;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-view-btn {
    background-color: var(--white);
    color: var(--black);
    padding: 12px 24px;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: var(--transition-fast);
    border-radius: var(--border-radius-sm);
}

.quick-view-btn:hover {
    background-color: var(--primary);
    color: var(--white);
}

.product-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-meta {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 10px;
}

.product-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    align-items: center;
    margin-top: auto;
    width: 100%;
}

.btn-add-to-cart {
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 12px 18px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.btn-add-to-cart:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* ==========================================================================
   La Hacienda Section
   ========================================================================== */
.hacienda-section {
    position: relative;
    background-color: var(--primary);
    overflow: hidden;
}

.hacienda-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

.hacienda-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hacienda-text {
    animation: fadeInLeft 1s ease;
}

.hacienda-paragraph {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 20px;
}

.hacienda-features {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.feature-icon {
    font-size: 1.5rem;
}

.feature-content h4 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 4px;
    font-family: var(--font-body);
    font-weight: 600;
}

.feature-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-bottom: 0;
}

.hacienda-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gallery-main-wrapper {
    width: 100%;
    height: 380px;
    background-color: var(--dark-grey);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-main-img,
.gallery-main-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: var(--white);
    padding: 20px;
    font-size: 0.9rem;
    font-style: italic;
    z-index: 3;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.thumbnail {
    position: relative;
    height: 80px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: var(--transition-fast);
}

.thumbnail.active,
.thumbnail:hover {
    border-color: var(--accent);
    opacity: 1;
}

.thumbnail img,
.thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Play icon overlay on video thumbnail */
.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.play-svg {
    width: 16px;
    height: 16px;
    fill: var(--white);
}

.thumbnail:hover .play-icon-overlay {
    background-color: var(--primary);
    transform: translate(-50%, -50%) scale(1.1);
    border-color: var(--accent);
}

/* ==========================================================================
   Cacao y Chocolate Section
   ========================================================================== */
.cacao-chocolate-section {
    position: relative;
    background-color: #2B1612; /* Deep warm chocolate brown background */
    overflow: hidden;
}

.cacao-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(67, 37, 32, 0.15) 0%, rgba(43, 22, 18, 0.95) 90%);
    pointer-events: none;
    z-index: 1;
}

.cacao-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.cacao-text {
    animation: fadeInLeft 1s ease;
}

.cacao-paragraph {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 20px;
}

.cacao-features {
    margin-top: 30px;
}

.cacao-showcase {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.showcase-img-wrapper {
    width: 100%;
    height: 380px;
    background-color: #120A08;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cacao-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.showcase-img-wrapper:hover .cacao-img {
    transform: scale(1.04);
}

.cacao-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: var(--white);
    padding: 20px;
    font-size: 0.9rem;
    font-style: italic;
    z-index: 3;
}

/* ==========================================================================
   Productos Lácteos (Quesos) Section (No Prices)
   ========================================================================== */
.productos-lacteos-section {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.quesos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.queso-card {
    background-color: var(--cream);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-rows: 320px 1fr;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
}

.queso-image-slider {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #ECECEC;
    overflow: hidden;
}

.queso-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.queso-img.active {
    opacity: 1;
    position: relative;
}

.slider-nav {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.2);
    transition: var(--transition-fast);
}

.slider-dot.active {
    background-color: var(--primary);
    width: 24px;
    border-radius: 5px;
}

.queso-info {
    padding: 36px;
    display: flex;
    flex-direction: column;
}

.queso-meta {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.queso-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--black);
}

.queso-desc {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 24px;
    line-height: 1.6;
}

.gouda-types {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.gouda-type-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
}

.type-name {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ==========================================================================
   Brewing Guide (Coffee Timer)
   ========================================================================== */
.brewing-section {
    background-color: var(--cream);
    border-bottom: 1px solid var(--border-color);
}

.brewing-widget {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.brew-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--border-color);
}

.brew-tab {
    padding: 24px 16px;
    background-color: #FAF9F6;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-fast);
    border-right: 1px solid var(--border-color);
}

.brew-tab:last-child {
    border-right: none;
}

.brew-tab.active {
    background-color: var(--white);
    border-bottom: 4px solid var(--primary);
}

.tab-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 8px;
}

.tab-name {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--black);
}

.brew-tab.active .tab-name {
    color: var(--primary);
}

.brew-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    padding: 40px;
    gap: 40px;
}

.brew-calculator {
    background-color: var(--cream);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 24px;
    margin-bottom: 30px;
}

.brew-calculator h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: var(--primary);
}

.calc-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
}

.input-group input,
.input-group select,
.input-group textarea {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: var(--white);
    color: var(--black);
    width: 100%;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: var(--primary);
}

.calc-operator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ratio-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #888;
}

.ratio-value {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent);
}

.brew-instructions h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: var(--black);
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.steps-list li {
    display: flex;
    gap: 12px;
    font-size: 0.95rem;
}

.step-num {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
}

.step-text {
    color: #4A4A4A;
}

.brew-timer-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: 1px solid var(--border-color);
    padding-left: 40px;
}

.timer-circle-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    margin-bottom: 24px;
}

.timer-svg {
    transform: rotate(-90deg);
}

.timer-bg-circle {
    fill: none;
    stroke: var(--light-grey);
    stroke-width: 6;
}

.timer-progress-circle {
    fill: none;
    stroke: var(--primary);
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s linear;
}

.timer-time {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--black);
}

.timer-label {
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    font-weight: 700;
    text-align: center;
    width: 80%;
}

.timer-controls {
    display: flex;
    gap: 16px;
    width: 100%;
}

.timer-controls .btn {
    flex: 1;
}

/* Style overrides for outline buttons inside light background components (e.g. Timer Reset) */
.brew-timer-panel .btn-outline {
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
    background-color: transparent !important;
}

.brew-timer-panel .btn-outline:hover:not(:disabled) {
    background-color: var(--primary) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
}

.brew-timer-panel .btn-outline:disabled {
    color: #BDBDBD !important;
    border-color: #E0E0E0 !important;
    background-color: transparent !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    transform: none !important;
}

/* ==========================================================================
   Supermarket & Distribution Page
   ========================================================================== */
.distribucion-section {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.supermarkets-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.supermarket-logo {
    height: 100px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background-color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    filter: grayscale(100%);
    opacity: 0.6;
}

.supermarket-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.supermarket-logo span {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wholesale-callout {
    background-color: var(--primary);
    color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 50px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wholesale-callout::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(204, 157, 79, 0.15));
    pointer-events: none;
}

.callout-decoration {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    opacity: 0.18;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.callout-decoration svg {
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
}

.callout-content {
    max-width: 750px;
}

.wholesale-callout h3 {
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: 14px;
}

.wholesale-callout p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    background-color: var(--black);
    padding: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
}

.contact-info-panel {
    padding: 80px 60px;
    background-color: #121212;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-details {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.detail-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.detail-icon {
    font-size: 1.5rem;
}

.detail-text h5 {
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.detail-text p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.detail-text a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.detail-text a:hover {
    color: var(--accent);
}

.contact-form-panel {
    padding: 80px 60px;
    background-color: var(--black);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    width: 100%;
}

.contact-form .input-group label {
    color: rgba(255, 255, 255, 0.8);
}

.contact-form .input-group input,
.contact-form .input-group select,
.contact-form .input-group textarea {
    background-color: #1E1E1E;
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.contact-form .input-group input::placeholder,
.contact-form .input-group textarea::placeholder {
    color: #666;
}

.contact-form .input-group input:focus,
.contact-form .input-group select:focus,
.contact-form .input-group textarea:focus {
    border-color: var(--accent);
    background-color: #262626;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background-color: #0A0A0A;
    border-top: 1px solid rgba(204, 157, 79, 0.15);
    color: rgba(255, 255, 255, 0.7);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 60px;
}

.footer-brand .footer-logo {
    height: 48px;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links h4,
.footer-newsletter h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-family: var(--font-body);
    font-weight: 600;
}

.footer-links ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-newsletter p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-size: 0.85rem;
}

.newsletter-form button {
    background-color: var(--accent);
    color: var(--black);
    padding: 0 20px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.newsletter-form button:hover {
    background-color: var(--accent-hover);
}

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

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0;
}

/* ==========================================================================
   Shopping Cart Sidebar (Slide-out Drawer)
   ========================================================================== */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(4px);
    transition: var(--transition-normal);
}

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

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    height: 100%;
    background-color: var(--white);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: var(--transition-normal);
}

.cart-drawer.active {
    right: 0;
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-header h3 {
    font-size: 1.35rem;
    color: var(--black);
}

.cart-close {
    font-size: 1.75rem;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.cart-close:hover {
    transform: scale(1.15);
    color: var(--black);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.empty-cart-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--text-muted);
}

.empty-cart-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--border-color);
}

/* Cart Item Cards */
.cart-item {
    display: flex;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ECECEC;
}

.cart-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cart-item-img-wrapper {
    width: 70px;
    height: 70px;
    background-color: #F8F8F8;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.cart-item-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-name {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--black);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    width: 28px;
    height: 26px;
    background-color: var(--cream);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.qty-btn:hover {
    background-color: var(--border-color);
}

.qty-val {
    width: 32px;
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-remove-item {
    font-size: 0.75rem;
    color: #999;
    cursor: pointer;
    font-weight: 500;
}

.btn-remove-item:hover {
    color: var(--primary);
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    background-color: var(--cream);
}

.quote-summary-note {
    font-size: 0.825rem;
    color: #666;
    line-height: 1.5;
    text-align: center;
}

/* ==========================================================================
   Modals (General, QuickView, Checkout Simulation)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

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

.modal-container,
.checkout-modal-container {
    background-color: var(--white);
    width: 90%;
    max-width: 800px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transform: scale(0.9);
    transition: var(--transition-normal);
}

.modal-overlay.active .modal-container,
.modal-overlay.active .checkout-modal-container {
    transform: scale(1);
}

.checkout-modal-container {
    max-width: 520px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 1.75rem;
    color: var(--primary);
    cursor: pointer;
    z-index: 100;
    transition: var(--transition-fast);
}

.modal-close:hover {
    transform: scale(1.15);
    color: var(--black);
}

.modal-body {
    padding: 40px;
}

/* Quick View Dynamic Design */
.quickview-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.quickview-img-wrapper {
    background-color: #F8F8F8;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-md);
    padding: 20px;
}

.quickview-img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.quickview-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quickview-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.quickview-desc {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 24px;
}

.quickview-meta-box {
    margin-bottom: 24px;
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.quickview-actions {
    display: flex;
    gap: 16px;
}

/* Checkout Simulation Form & Success Flow */
.checkout-flow {
    position: relative;
    min-height: 400px;
}

.checkout-step {
    padding: 40px;
    display: none;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.checkout-step.active {
    display: flex;
}

.checkout-intro {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.form-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 0px;
}

#checkoutPayForm .input-group {
    margin-bottom: 16px;
}

/* Success Checkmark Draw Animation */
.success-checkmark-wrapper {
    margin: 0 auto 30px auto;
    width: 80px;
    height: 80px;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: var(--accent);
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px var(--accent);
    animation: fillCheck 0.4s ease-in-out 0.4s forwards, scaleCheck 0.3s ease-in-out 0.9s forwards;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--accent);
    fill: none;
    animation: strokeCheck 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: var(--black);
    stroke-linecap: round;
    stroke-width: 3;
    animation: strokeCheck 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes strokeCheck {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes fillCheck {
    100% {
        box-shadow: inset 0px 0px 0px 40px var(--accent);
    }
}

@keyframes scaleCheck {

    0%,
    100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

#stepSuccess h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

#stepSuccess p {
    text-align: center;
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

#stepSuccess .btn {
    align-self: center;
    min-width: 200px;
}

/* ==========================================================================
   Hacienda Page Redesign (Hacienda Esmeralda Style)
   ========================================================================== */
.hacienda-page .main-header {
    background-color: transparent;
}

.hacienda-page .main-header.scrolled {
    background-color: rgba(96, 7, 14, 0.95);
}

.hacienda-hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--black);
    color: var(--white);
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hacienda-hero .hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(15, 15, 15, 0.3) 0%, rgba(15, 15, 15, 0.85) 90%);
    z-index: 2;
}

.hacienda-hero .hero-container {
    position: relative;
    z-index: 3;
    max-width: var(--max-width);
    padding: 0 24px;
    text-align: center;
    margin: 0 auto;
}

.hacienda-hero .hero-subtitle {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
}

.hacienda-hero .hero-title {
    font-size: 3.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.15;
}

.hacienda-hero .hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 38px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hacienda-detail-section {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.terroir-bg {
    background-color: var(--cream);
}

.hacienda-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-lead-left {
    font-size: 1.15rem;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.7;
}

.hacienda-body-text {
    font-size: 1rem;
    color: #4A4A4A;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.hacienda-body-text:last-child {
    margin-bottom: 0;
}

.image-premium-frame {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    background-color: var(--white);
    aspect-ratio: 1 / 1;
}

.img-premium {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-normal);
}

.image-premium-frame:hover .img-premium {
    transform: scale(1.03);
}

.frame-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 20px 12px 20px;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--white);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    text-align: center;
    z-index: 2;
    pointer-events: none;
}

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

.dark-bg .section-title {
    color: var(--white);
}

.variedades-carousel-wrapper {
    position: relative;
    width: 100%;
    margin-top: 40px;
}

.variedades-carousel-container {
    overflow: hidden;
    width: 100%;
}

.variedades-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.variedades-track .variedad-card {
    flex: 0 0 calc(25% - 18px); /* 4 cards per page by default */
    box-sizing: border-box;
}

.carousel-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.carousel-nav-btn {
    background-color: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.carousel-nav-btn:hover:not(:disabled) {
    background-color: var(--accent);
    color: var(--black);
    transform: scale(1.05);
}

.carousel-nav-btn:disabled {
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.15);
    cursor: not-allowed;
}

.carousel-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    padding: 0;
}

.carousel-dot.active {
    background-color: var(--accent);
    width: 20px;
    border-radius: 4px;
}

.variedad-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    padding: 30px 24px;
    transition: var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.variedad-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.v-badge {
    display: inline-block;
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 3px 8px;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 16px;
}

.variedad-card h3 {
    font-size: 1.35rem;
    color: var(--white);
    margin-bottom: 12px;
    font-family: var(--font-heading);
}

.variedad-card p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 0;
}

.agri-regenerativa-box {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    margin-top: 60px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.agri-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 45px;
    align-items: center;
}

.agri-text h3 {
    font-size: 1.6rem;
    color: var(--accent);
    margin-bottom: 18px;
    font-family: var(--font-heading);
}

.agri-text p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 20px;
}

.agri-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.agri-list li {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
}

.agri-list li::before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
}

.agri-list li strong {
    color: var(--white);
    font-weight: 600;
}

.img-rounded {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
    position: relative;
}

.process-step {
    border-top: 2px solid var(--border-color);
    padding-top: 24px;
    position: relative;
    transition: var(--transition-normal);
}

.process-step:hover {
    border-top-color: var(--primary);
}

.step-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.process-step h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0;
    font-family: var(--font-body);
}

.process-step p {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

.community-bg {
    background-color: var(--cream);
}

.img-premium-shadow {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border-color);
}

.quality-pillars {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 35px;
}

.pillar-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.pillar-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.pillar-content h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--black);
    margin-bottom: 6px;
}

.pillar-content p {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

.gallery-dark-bg {
    background-color: #121212;
    border-bottom: none;
}

/* ==========================================================================
   Responsive Grid & Breakpoints
   ========================================================================== */

/* Tablet Viewports */
@media (max-width: 992px) {
    .hero-container {
        padding-top: 60px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hacienda-layout,
    .cacao-layout,
    .hacienda-grid-2,
    .agri-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .process-timeline {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .variedades-track .variedad-card {
        flex: 0 0 calc(50% - 12px);
    }

    .quesos-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .brew-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .brew-timer-panel {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--border-color);
        padding-top: 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-panel {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

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

    .footer-links ul {
        justify-content: center;
    }

    .supermarkets-logos {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile Viewports */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--black);
        z-index: 99;
        transition: var(--transition-normal);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        padding: 40px 24px;
        gap: 24px;
        align-items: center;
    }

    .nav-link {
        font-size: 1.15rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.85rem;
    }

    .process-timeline {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .variedades-track .variedad-card {
        flex: 0 0 100%;
    }

    .hacienda-hero .hero-title {
        font-size: 2.5rem;
    }

    .agri-text {
        text-align: center;
    }

    .agri-list {
        text-align: left;
    }

    .altitude-features-grid {
        flex-direction: column;
    }

    .altitude-detail-display {
        padding: 30px 24px;
    }

    .cart-drawer {
        width: 100%;
        right: -100%;
    }

    .quickview-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .quickview-img-wrapper {
        height: 240px;
    }

    .brew-tabs {
        grid-template-columns: 1fr 1fr;
    }

    .brew-tab {
        border-bottom: 1px solid var(--border-color);
        border-right: 1px solid var(--border-color);
    }

    .brew-tab:nth-child(even) {
        border-right: none;
    }

    .calc-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .calc-operator {
        padding: 10px 0;
    }
}

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

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

/* ==========================================================================
   Under Construction / Coming Soon Gate
   ========================================================================== */
.gate-locked {
    overflow: hidden !important;
}

.gate-locked body {
    overflow: hidden !important;
    height: 100vh !important;
}

.construction-gate {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    background: radial-gradient(circle at center, #3A070B 0%, #160203 70%, #0B0102 100%);
    overflow-y: auto;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    opacity: 1;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.gate-locked .construction-gate {
    display: flex;
}

.construction-container {
    max-width: 580px;
    width: 100%;
    margin: auto;
    position: relative;
    z-index: 2;
}

.construction-card {
    background: rgba(20, 2, 4, 0.85);
    border: 1px solid rgba(204, 157, 79, 0.4);
    border-radius: var(--border-radius-lg);
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(96, 7, 14, 0.35);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    animation: fadeInUp 0.7s ease;
}

.construction-badge {
    display: inline-block;
    background: rgba(204, 157, 79, 0.15);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 24px;
}

.construction-logo {
    height: 70px;
    width: auto;
    margin: 0 auto 16px auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.construction-subtitle {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.construction-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.2;
}

.construction-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 28px;
}

.construction-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(204, 157, 79, 0.3), transparent);
    margin: 0 auto 26px auto;
    width: 80%;
}

.construction-auth-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    padding: 24px;
    margin-bottom: 20px;
}

.auth-box-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 14px;
}

.construction-form {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.construction-form .input-wrapper {
    flex: 1;
}

.construction-form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(204, 157, 79, 0.3);
    border-radius: var(--border-radius-sm);
    color: var(--white);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

.construction-form input[type="password"]:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 10px rgba(204, 157, 79, 0.25);
}

.btn-gate {
    padding: 12px 24px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.gate-error-msg {
    margin-top: 12px;
    font-size: 0.82rem;
    color: #FF6B6B;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.2);
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
}

.construction-footer {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 10px;
}

@keyframes gateShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

.gate-shake {
    animation: gateShake 0.4s ease;
}

@media (max-width: 600px) {
    .construction-card {
        padding: 32px 20px;
    }
    .construction-title {
        font-size: 1.85rem;
    }
    .construction-form {
        flex-direction: column;
    }
    .btn-gate {
        width: 100%;
    }
}