:root {
    --primary-brown: #a06c3f;
    --dark-brown: #78451a;
    --light-wood: #D7CCC8;
    --accent-gold: #FFC107;
    --white: #ffffff;
    --off-white: #ffffff;
    --text-main: #3E2723;
    --text-light: #5D4037;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-soft: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #78451a;
    --footer-text: #D7CCC8;
    --texture-overlay: rgba(255, 255, 255, 0.9);
}

/* Dark Mode Variables */
.dark-mode {
    --primary-brown: #a06c3f;
    --dark-brown: #D7CCC8; /* Lighter text for dark headers */
    --light-wood: #3E2723;
    --accent-gold: #FFD54F;
    --white: #121212; /* Background dark */
    --off-white: #1e1e1e; /* Secondary dark bg */
    --text-main: #EFEBE9;
    --text-light: #BCAAA4;
    --glass-bg: rgba(30, 30, 30, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-soft: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --nav-bg: rgba(18, 18, 18, 0.95);
    --footer-bg: #000000;
    --footer-text: #8D6E63;
    --texture-overlay: rgba(0, 0, 0, 0.7);
}

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

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Raleway', sans-serif;
    background-color: var(--off-white);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.5s ease, color 0.5s ease;
    margin: 0; /* Ensure no margin on body */
    padding: 0;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--dark-brown);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.section-title, .section-title-left {
    font-size: 3rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    color: var(--dark-brown);
}

.section-title, .section-title-left {
    width: 100%;
    text-align: center;
}

.section-title::after, .section-title-left::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--accent-gold);
    margin: 15px auto 0;
}

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

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw; /* Prevent overflow */
    z-index: 1000;
    background: transparent; /* Start transparent */
    border-bottom: 1px solid transparent;
    transition: all 0.5s ease;
    box-sizing: border-box; /* Include padding in width */
}

.glass-nav.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    width: 100%;
    max-width: 100%; /* Ensure it fits parent */
    margin: 0;
    height: 100px; /* Base height */
    transition: height 0.5s ease;
    box-sizing: border-box; /* Include padding in width */
}

.glass-nav.scrolled .nav-container {
    height: 80px; /* Shrink on scroll */
}

.nav-logo {
    height: 100px;
    transition: height 0.5s ease;
    display: block;
    animation: slideInLeft 1s ease-out forwards;
}

.glass-nav.scrolled .nav-logo {
    height: 70px; /* Shrink logo on scroll */
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin-right: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--white); /* White initially */
    position: relative;
    transition: color 0.3s;
}

.glass-nav.scrolled .nav-links a {
    color: var(--text-main); /* Black/Dark when scrolled */
}

/* Dark mode overrides: Always keep readable */
.dark-mode .nav-links a {
    color: var(--text-main);
}

.dark-mode .glass-nav.scrolled .nav-links a {
    color: var(--text-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-gold);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile WhatsApp Icon in Navbar */
.mobile-whatsapp {
    display: none; /* Hidden on Desktop */
}

/* Ensure images don't overflow globally if not restricted */
.mobile-whatsapp img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Theme Switch */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-left: 12px; /* Even more separation */
    gap: 15px; 
}

.theme-icon {
    font-size: 1.5rem;
    color: var(--white); /* White initially */
    transition: color 0.3s;
}

.glass-nav.scrolled .theme-icon {
    color: #000; /* Black when scrolled */
}

.dark-mode .theme-icon {
    color: #fff; /* White in dark mode */
}

.dark-mode .glass-nav.scrolled .theme-icon {
    color: #fff;
}

.theme-switch {
    display: inline-block;
    height: 26px;
    position: relative;
    width: 50px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: transparent;
    border: 2px solid var(--white); /* White border initially */
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

.glass-nav.scrolled .slider {
    border-color: #000; /* Black border when scrolled */
}

.dark-mode .slider {
    border-color: #fff; /* White border dark mode */
}

.dark-mode .glass-nav.scrolled .slider {
    border-color: #fff; /* Ensure white border on scroll in dark mode */
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    background-color: var(--white); /* White knob initially */
    bottom: 3px;
    content: "";
    height: 16px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 16px;
    border-radius: 50%;
}

.glass-nav.scrolled .slider.round:before {
    background-color: #000; /* Black knob when scrolled (Light Mode) */
}

.dark-mode .slider.round:before {
    background-color: #fff; /* White knob dark mode */
}

.dark-mode .glass-nav.scrolled .slider.round:before {
    background-color: #fff; /* Ensure white knob on scroll in dark mode */
}

input:checked + .slider {
    background-color: transparent;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Hero Section & Slider */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 6s ease;
    transform: scale(1.05); /* Slight zoom start */
}

.slide.active {
    opacity: 1;
    transform: scale(1); /* Move to normal scale */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff; /* Always white in Hero */
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 5rem;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: transparent; /* Transparent initial bg */
    border: 2px solid #fff; /* Slightly thicker border */
    color: #fff;
    font-size: 1.1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease; /* Smoother transition */
    position: relative;
    overflow: hidden; /* For the fill effect */
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: #fff; /* White fill */
    transition: all 0.4s ease;
    z-index: -1;
    border-radius: 50px; /* Match button radius */
}

.cta-button:hover {
    color: var(--primary-brown); /* Text turns brown */
    border-color: #fff;
    transform: translateY(-3px);
}

.cta-button:hover::before {
    height: 100%; /* Fill up */
}

/* Soul Section (Redesign) */
.soul-section {
    display: flex;
    width: 100%;
    height: 85vh; /* Tall section */
    position: relative;
    overflow: hidden;
    background-color: var(--off-white);
    align-items: stretch;
}

.soul-image-container {
    flex: 1; /* Occupy remaining space */
    position: relative;
    height: 100%;
    overflow: hidden;
}

.soul-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 10s ease; /* Subtle zoom effect */
}

.soul-section:hover .soul-image-container img {
    transform: scale(1.05);
}

/* Blur Gradients */
.soul-overlay-blur {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%; /* Width of the blur transition */
    pointer-events: none;
    z-index: 2;
}

.left-blur {
    right: 0;
    background: linear-gradient(to right, transparent, var(--off-white));
    backdrop-filter: blur(8px);
    -webkit-mask-image: linear-gradient(to right, transparent, black);
    mask-image: linear-gradient(to right, transparent, black);
}

.right-blur {
    left: 0;
    background: linear-gradient(to left, transparent, var(--off-white));
    backdrop-filter: blur(8px);
    -webkit-mask-image: linear-gradient(to left, transparent, black);
    mask-image: linear-gradient(to left, transparent, black);
}

/* Center Content */
.soul-content-container {
    flex: 0 0 35%; /* Fixed width for text */
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: var(--off-white); /* Solid background in center */
    box-shadow: 0 0 50px 50px var(--off-white); /* Soft merge with gradients */
}

.soul-text-wrapper {
    text-align: left;
    max-width: 600px;
}

.soul-text-wrapper .section-title {
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.soul-text-wrapper p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--text-main);
    line-height: 1.8;
}

.signature {
font-weight: bold;   /* negrita */
font-style: italic;  /* cursiva */

}

/* Dark Mode Adjustments for Soul Section */
.dark-mode .soul-section,
.dark-mode .soul-content-container {
    background-color: var(--off-white); /* Updates automatically via variable */
}

.dark-mode .soul-content-container {
    box-shadow: 0 0 50px 50px var(--off-white);
}

.dark-mode .left-blur {
    background: linear-gradient(to right, transparent, var(--off-white));
}

.dark-mode .right-blur {
    background: linear-gradient(to left, transparent, var(--off-white));
}

/* Responsive Soul Section */
@media (max-width: 900px) {
    .soul-section {
        flex-direction: column;
        height: auto;
    }

    .soul-image-container {
        height: 400px;
        width: 100%;
    }

    .soul-content-container {
        width: 100%;
        padding: 60px 20px;
        box-shadow: none; /* No side shadow needed in stack */
    }

    .soul-overlay-blur {
        display: none; /* Remove horizontal blur on mobile */
    }
    
    /* Add vertical fades for mobile if desired */
    .soul-image-container.left::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100px;
        background: linear-gradient(to bottom, transparent, var(--off-white));
    }

    .soul-image-container.right::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100px;
        background: linear-gradient(to top, transparent, var(--off-white));
    }
}

/* Fabricación Section */
.bg-texture {
    background: linear-gradient(var(--texture-overlay), var(--texture-overlay)), url('content/madera.jpeg');
    background-size: cover;
    background-attachment: fixed;
}

.fabrication-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}

.fabrication-image {
    flex: 1;
}

.fabrication-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    cursor: default; /* Not clickable */
    transition: transform 0.3s;
}

.fabrication-image img:hover {
    transform: scale(1.02);
}

.fabrication-text {
    flex: 1;
}

/* Catálogo Section (Updated Grid) */
.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-top: -1.5rem;
    margin-bottom: 3rem;
    font-weight: 300;
    opacity: 0.9;
    color: var(--text-light);
}

.catalog-grid-centered {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centers items, solving the odd number gap */
    gap: 30px;
}

.barrel-card {
    background: rgba(255, 255, 255, 0.05); /* Always dark mode style bg */
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Always dark mode style border */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    width: 350px;
    max-width: 100%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3); /* Enhanced shadow */
}

.dark-mode .barrel-card {
    background: rgba(255, 255, 255, 0.05);
}

.barrel-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5); /* Stronger shadow on hover */
}

.barrel-image {
    position: relative;
    height: 350px; /* Taller images */
    overflow: hidden;
    cursor: pointer;
}

.barrel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.barrel-card:hover .barrel-image img {
    transform: scale(1.15);
}

.barrel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 20px;
}

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

.barrel-desc {
    color: #fff;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.barrel-card:hover .barrel-desc {
    transform: translateY(0);
}

.barrel-desc h3 {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.barrel-info {
    padding: 15px;
    text-align: center;
    background: var(--primary-brown);
    color: #fff;
}

.barrel-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #fff; /* Always white text for barrel capacity */
}

.barrel-info span {
    font-size: 0.9rem;
    opacity: 0.9;
    color: #eee; /* Lighter white for subtitle */
}

/* Transporte Section Redesigned */
.parallax-logistics {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('content/barriles4.jpeg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.dark-mode .parallax-logistics {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('content/barriles4.jpeg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.logistics-modern-layout {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-top: 40px;
}

.logistics-text-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.logistics-item {
    position: relative;
    padding-left: 30px;
    border-left: 3px solid var(--accent-gold);
    transition: transform 0.3s ease;
}

.logistics-item:hover {
    transform: translateX(10px);
}

.logistics-item h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--dark-brown);
}

.logistics-item p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

.logistics-image-column {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logistics-image-wrapper {
    width: 100%;
    max-width: 500px;
    height: auto; /* Allow height to adapt to content */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    position: relative;
    display: flex; /* Center image */
}

.logistics-image-wrapper img {
    width: 100%;
    height: auto; /* Show full image respecting aspect ratio */
    object-fit: contain;
    transition: transform 0.8s ease;
    cursor: default; /* Removed pointer */
    pointer-events: none; /* Disable all mouse interactions (clicks, drags) */
    display: block;
}

.logistics-image-wrapper:hover img {
    transform: scale(1.05);
}

@media (max-width: 900px) {
    .logistics-modern-layout {
        flex-direction: column;
    }
    .logistics-image-wrapper {
        height: 400px;
    }
}

/* Contacto Section */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
    padding: 40px;
}

.form-group {
    margin-bottom: 25px; /* Increased separation between fields */
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--text-main); /* Dark border in light mode */
    border-radius: 8px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.3);
    color: var(--text-main);
    transition: border-color 0.3s, background 0.3s;
}

.dark-mode .form-group input,
.dark-mode .form-group textarea {
    border-color: #fff; /* White border in dark mode */
    color: #fff !important; /* Force white text */
    background: rgba(255, 255, 255, 0.05);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-brown);
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-main) !important; /* Force dark text on light focus bg */
}

.dark-mode .form-group input:focus,
.dark-mode .form-group textarea:focus {
    background: rgba(255, 255, 255, 0.15); /* Keep it dark-ish but visible */
    color: #fff !important; /* Keep text white */
    border-color: var(--accent-gold);
}

.submit-btn {
    background: var(--primary-brown);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background: var(--dark-brown);
}

/* Contacto Map Switcher Redesign */
.map-section-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    padding: 20px; /* Add padding to prevent shadow clipping */
}

.map-container {
    flex: 1;
    background: transparent;
    min-height: 400px;
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 20px; /* Rounded corners for the whole container */
    /* Removed overflow: hidden to allow shadow */
    box-shadow: 8px 8px 13px rgba(0,0,0,0.1); /* Very soft and diffuse shadow */
}

.map-switcher-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px; /* Space between switch and map */
}

.map-switcher {
    display: flex;
    background: rgba(0, 0, 0, 0.4); /* Dark background for Light Mode */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: fit-content;
    gap: 0;
}

.map-btn {
    padding: 10px 30px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--white); /* White text for Light Mode */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 40px;
    position: relative;
    overflow: hidden;
}

.map-btn.active {
    background: var(--primary-brown);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-brown);
}

.map-frame-wrapper {
    flex: 1;
    width: 100%;
    height: 100%;
    border-radius: 20px; /* Match container */
    overflow: hidden; /* Keep content clipped here */
}

.map-frame-wrapper iframe {
    transition: opacity 0.5s ease;
}

/* Dark mode map switcher styles */
.dark-mode .map-switcher {
    background: rgba(0, 0, 0, 0.4); /* Dark background to contrast white text */
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .map-btn {
    color: #ffffff; /* Explicit white text */
}

.dark-mode .map-btn.active {
    background: var(--primary-brown);
    color: #ffffff; /* Explicit white text */
}

.dark-mode .map-btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-brown);
}

/* Footer */
.main-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 30px;
    text-align: center;
    transition: background-color 0.5s;
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-logos {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.footer-logo-img {
    height: 70px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Force white icons */
    opacity: 0.9;
    transition: opacity 0.3s, transform 0.3s;
}

.footer-logo-img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-social {
    display: flex;
    gap: 25px;
    margin: 10px 0;
}

.social-icon {
    font-size: 1.8rem;
    color: #fff; /* White icons */
    transition: transform 0.3s, color 0.3s;
    display: inline-block;
}

.footer-social a:hover .social-icon {
    /* No color change */
    transform: translateY(-5px) scale(1.1); /* Slight lift and zoom */
}

.footer-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.footer-details p {
    font-size: 0.95rem;
    color: #fff;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-details i {
    color: #FFD54F;
    width: 20px;
    text-align: center;
}

.footer-info p {
    font-size: 0.9rem;
    opacity: 0.7;
    color: #fff;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 80px; /* Increased size */
    height: 80px;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
    display: block; /* Just show the image */
    transition: transform 0.3s ease;
    background: transparent; /* No background */
    box-shadow: none; /* No shadow */
    border-radius: 0; /* No border radius needed */
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: transparent; /* Ensure no bg on hover */
}

.whatsapp-icon-img {
    width: 100%; /* Fill container */
    height: 100%;
    object-fit: contain;
    /* Removed filter to show original image */
}

/* Modal Open State - Block Background Scroll */
body.modal-open {
    overflow: hidden !important;
    height: 100vh; /* Lock height to viewport */
}

/* Barrel Modal Styles */
.barrel-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

/* Force hidden unless active */
body:not(.barrel-modal-active) .barrel-modal {
    display: none !important;
}

body.barrel-modal-active .barrel-modal {
    display: block !important;
}

.barrel-modal-content {
    background-color: var(--off-white);
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 1100px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    animation: modalSlideUp 0.4s ease-out;
}

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

.close-barrel-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--dark-brown);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.close-barrel-modal:hover {
    color: var(--primary-brown);
}

.modal-layout {
    display: flex;
    overflow: hidden;
    border-radius: 15px;
}

.modal-gallery {
    flex: 1.5;
    background: #000;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#modal-main-img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px;
}

.modal-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    width: 100%;
    justify-content: center;
    padding-bottom: 10px;
}

.modal-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s, transform 0.3s;
    border: 2px solid transparent;
}

.modal-thumb:hover, .modal-thumb.active {
    opacity: 1;
    border-color: var(--accent-gold);
    transform: scale(1.05);
}

.modal-info {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--off-white);
}

.modal-info h3 {
    font-size: 2.5rem;
    color: var(--dark-brown);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 10px;
    display: inline-block;
}

.modal-info p {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 30px;
    line-height: 1.8;
}

.modal-specs {
    list-style: none;
    margin-bottom: 40px;
}

.modal-specs li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.modal-specs li::before {
    content: "•";
    color: var(--accent-gold);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.modal-cta {
    width: 100%;
    margin-top: 20px;
    background: var(--primary-brown);
    color: #fff;
    border-color: var(--primary-brown);
    text-align: center; /* Center text inside button */
    display: block; /* Ensure it takes full width or behaves like block for margin auto */
}

.modal-cta:hover {
    background: var(--dark-brown);
    border-color: var(--dark-brown);
    color: var(--primary-brown);
}

/* Responsive Modal */
@media (max-width: 900px) {
    /* Modal Mobile Redesign */
    .barrel-modal-content {
        margin: 0; /* Full screen feel */
        width: 100%;
        height: 100%;
        max-width: none;
        border-radius: 0;
        overflow-y: auto; /* Allow scrolling inside modal */
    }

    .modal-layout {
        flex-direction: column;
        height: auto; /* Allow content to dictate height */
        min-height: 100%;
    }

    .modal-gallery {
        flex: 0 0 auto; /* Don't stretch */
        height: 55vh; /* Increased height for more prominence */
        max-height: none;
        padding: 0; /* Remove padding to use full width */
        background: #000;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #modal-main-img {
        max-height: 100%;
        width: 100%;
        max-width: 100%;
        object-fit: cover; /* Fill the area nicely */
        margin-bottom: 0; /* Remove bottom margin */
    }

    .modal-thumbnails {
        position: absolute;
        bottom: 10px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.6);
        padding: 10px;
        justify-content: center;
        gap: 10px;
        backdrop-filter: blur(4px);
    }

    .modal-thumb {
        width: 50px;
        height: 50px;
        border: 2px solid rgba(255, 255, 255, 0.5);
        border-radius: 4px;
    }

    .modal-thumb.active {
        border-color: var(--accent-gold);
        transform: scale(1.1);
    }

    .modal-info {
        padding: 30px 20px;
        flex: 1 0 auto; /* Allow expansion */
        background: var(--off-white);
    }

    .modal-info h3 {
        font-size: 1.8rem;
        margin-top: 10px;
    }

    .modal-specs li {
        font-size: 0.95rem;
    }

    .close-barrel-modal {
        top: 15px;
        right: 15px;
        font-size: 30px;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(5px);
        border-radius: 50%;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff; /* White X on dark image bg */
        z-index: 20; /* Above image */
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }
}

/* Lightbox */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

/* Force hidden on load if JS fails or flashes */
body:not(.lightbox-active) .lightbox {
    display: none !important;
}

/* Show when active class added by JS */
body.lightbox-active .lightbox {
    display: block !important;
}

/* Animations Classes */
.fade-in { opacity: 0; transition: opacity 1s ease-out; }
.fade-in-up { opacity: 0; transform: translateY(30px); transition: opacity 1s ease-out, transform 1s ease-out; }
.fade-in-left { opacity: 0; transform: translateX(-30px); transition: opacity 1s ease-out, transform 1s ease-out; }
.fade-in-right { opacity: 0; transform: translateX(30px); transition: opacity 1s ease-out, transform 1s ease-out; }

.visible { opacity: 1; transform: translate(0); }

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 3rem; }
    .about-grid, .fabrication-layout, .transport-layout { grid-template-columns: 1fr; display: flex; flex-direction: column; }
    .nav-links { display: none; }
    /* Contact Mobile */
    .contact-wrapper {
        flex-direction: column;
    }
    
    .map-container {
        min-height: 400px; /* Explicit height */
        height: 400px; /* Force height */
        width: 100%; /* Ensure full width */
        margin-top: 20px;
    }

    .map-frame-wrapper {
        height: 100% !important; /* Force wrapper to fill container */
        display: block;
    }

    .map-frame-wrapper iframe {
        height: 100% !important; /* Force iframe to fill wrapper */
        min-height: 400px; /* Redundant safety */
        width: 100%;
        display: block; /* Remove inline-block gap */
        border: none; /* Clean border */
    }

    /* Footer Mobile */
    .footer-content {
        gap: 40px;
    }
    .footer-logos {
        flex-direction: column; /* Stack logos vertically */
        gap: 20px;
        align-items: center;
    }

    .about-image-wrapper { height: 400px; margin-top: 30px; width: 100%; }
    .logo-link { margin-right: 0; }
    
    /* Navbar Mobile */
    .nav-container {
        padding: 10px 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box; /* Critical for preventing overflow */
    }

    .nav-actions {
        order: 2; /* Middle item */
        margin-right: 5px; /* Reduced right margin */
        margin-left: auto;
        display: flex; /* Ensure flex behavior */
        align-items: center; /* Vertically align items */
        height: 100%; /* Match container height */
        gap: 0; /* No gap at all */
    }

    .mobile-whatsapp {
        display: flex !important; /* Use flex for alignment */
        align-items: center;
        justify-content: center;
        z-index: 1001; /* Ensure on top */
        padding: 0; /* Remove padding */
        margin-right: -5px; /* Negative margin to pull closer if needed */
    }

    .mobile-whatsapp img {
        width: 55px !important; /* Even larger size */
        height: 55px !important;
        max-width: none; /* Prevent CSS reset interference */
    }

    .theme-switch {
        display: none; /* Hide toggle slider on mobile */
    }

    .theme-icon {
        font-size: 1.8rem; /* Larger icon for tapping */
        cursor: pointer; /* Make it clickable */
        padding: 5px; /* Increase touch area */
        width: 40px; /* Fixed width to prevent jumping */
        text-align: center; /* Center the icon in the fixed width */
        display: inline-block; /* Ensure width is respected */
    }

    /* Hide floating button on mobile */
    .whatsapp-float {
        display: none;
    }

    .social-icon {
        font-size: 2rem; /* Larger touch targets */
    }
    .footer-details {
        align-items: center; /* Center the block itself */
        width: 100%;
        padding: 0 20px;
        display: flex;
        flex-direction: column;
    }
    .footer-details p {
        flex-direction: row; /* Keep icon next to text */
        text-align: left; /* Keep text left-aligned for readability */
        gap: 15px;
        margin-bottom: 15px;
        width: fit-content; /* Shrink to content width to allow centering */
        justify-content: flex-start;
        max-width: 100%; /* Prevent overflow */
    }
    .footer-details i {
        min-width: 25px; /* Fixed width for icon alignment */
        margin-top: 3px; /* Align with first line of text */
    }
}
