/* --- START OF MODIFIED FILE style.css --- */
/* ==================== VARIABLES Y ESTILOS GLOBALES ==================== */
:root {
    --bg-dark: #1a1a1a;
    --bg-light: #F5F5F0;
    --accent-green: #4A6B4C; /* Verde Olivo Oscuro */
    --text-light: #FFFFFF;
    --text-dark: #222222;
    --text-muted: #888888;
    --border-color: rgba(255, 255, 255, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-dark);
    overflow-x: hidden;
}
body.nav-open {
    overflow: hidden;
}

h1, h3 { font-weight: 700; }
h1 { 
    font-size: 3.5rem; 
    color: var(--text-light);
    line-height: 1.2; /* Ajuste para el título de 3 líneas */
}
h2 { font-size: 2.5rem; font-weight: 700; }
p { line-height: 1.7; color: #cecece; }
a { text-decoration: none; color: inherit; }
section { padding: 100px 5%; }

/* ========================================================== */
/* === ESTILOS DE BOTONES UNIFICADOS Y MEJORADOS === */
/* ========================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 30px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    cursor: pointer;
    background-color: transparent;
    border: 2px solid var(--accent-green);
    color: var(--text-light);
    transition: all 0.3s ease-in-out;
}

.btn:hover {
    background-color: var(--accent-green);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 107, 76, 0.25);
}

#contact .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-outline { }
.btn-solid {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
}
.btn-solid:hover {
    background-color: #3b563c;
    border-color: #3b563c;
    box-shadow: none;
}


/* ==================== ESTILOS DE TÍTULOS DE SECCIÓN ==================== */
.centered-title {
    text-align: center; margin-bottom: 60px;
    position: relative; color: var(--text-dark);
}
.centered-title::after {
    content: ''; position: absolute; bottom: -15px; left: 50%;
    transform: translateX(-50%); width: 80px; height: 3px;
    background-color: var(--accent-green);
}
.section-header {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 60px; gap: 30px;
}
.header-line { height: 3px; background-color: var(--accent-green); flex-grow: 1; }
.section-header h2 { flex-shrink: 0; }
#works .section-header h2 { color: var(--text-dark); }
#contact .section-header h2 { color: var(--text-light); }

/* ==================== HEADER / NAV ==================== */
.main-header {
    position: absolute; top: 0; left: 0; width: 100%;
    display: flex; justify-content: space-between;
    align-items: center; padding: 20px 5%; z-index: 1000;
}
.logo { display: flex; align-items: center; gap: 15px; font-size: 0.8rem; color: var(--text-muted); }
.logo img {
    height: 50px; /* Reducido de 60px a 50px */
    width: auto;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.lang-selector {
    display: flex; align-items: center; gap: 30px; 
    color: var(--text-light); font-weight: 500;
}
.lang-selector a {
    color: var(--text-light); 
    transition: color 0.3s;
}
.lang-selector a:hover {
    color: var(--accent-green);
}
.header-controls {
    position: relative;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 15px;
}
.hamburger {
    display: block;
    width: 30px; height: 24px; position: relative;
    background: none; border: none; cursor: pointer;
}
.hamburger span {
    display: block; position: absolute; left: 0;
    width: 100%; height: 3px; background-color: var(--text-light);
    border-radius: 3px; transition: all 0.3s ease-in-out;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }
.hamburger.active span:nth-child(1) { top: 10px; transform: rotate(135deg); }
.hamburger.active span:nth-child(2) { opacity: 0; left: -30px; }
.hamburger.active span:nth-child(3) { top: 10px; transform: rotate(-135deg); }


/* ==================== HERO SECTION ==================== */
.hero-text h1 .cursor {
    display: inline-block;
    color: var(--accent-green);
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

#hero {
    height: 100vh;
    background-image: linear-gradient(to right, rgba(26, 26, 26, 0.9) 30%, rgba(26, 26, 26, 0.1) 100%), url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}
.hero-content { 
    display: flex; 
    align-items: center; 
    gap: 50px; 
    z-index: 2;
}
.social-icons {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
    position: relative;
    padding: 50px 0;
}
.social-icons::before, .social-icons::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    background-color: rgba(255, 255, 255, 0.6);
}
.social-icons::before {
    height: 150px;
    bottom: 100%;
}
.social-icons::after {
    height: 150px;
    top: 100%;
}
.social-icons a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}
.social-icons a:hover {
    color: #FFFFFF;
}
.hero-text { max-width: 550px; }
.hero-text h1 { margin-bottom: 20px; }
.hero-text p { margin-bottom: 30px; font-size: 1.1rem; }
.scroll-down-arrow {
    position: absolute; bottom: 30px; left: 50%;
    color: white; animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -15px); }
    60% { transform: translate(-50%, -7px); }
}

/* ==================== SERVICES SECTION ==================== */
#services { background-color: var(--bg-light); }
.services-container { display: flex; justify-content: space-around; gap: 30px; flex-wrap: wrap; }
.service-card { flex-basis: 22%; text-align: center; padding: 20px; }
.service-card svg {
    color: var(--accent-green);
    margin-bottom: 20px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.service-card:hover svg {
    transform: scale(1.15) rotate(-8deg);
}

.service-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.service-card p { color: var(--text-dark); font-size: 0.9rem; }

/* ==================== ABOUT SECTION ==================== */
.about-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.about-content {
    display: flex;
    gap: 60px;
    align-items: center;
}
.about-text {
    flex: 1.2;
}
.about-text h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}
.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
}
.about-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 20px;
}
.stat-item {
    text-align: center;
}
.stat-item .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-green);
    display: inline-block;
}
.stat-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}
.about-images-container {
    flex: 1;
    position: relative;
    min-height: 550px; 
    cursor: pointer; 
}

.image-card {
    position: absolute;
    border-radius: 8px;
    overflow: hidden;
    background-color: #333;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-card-1 {
    width: 85%;
    height: 85%;
    bottom: 0;
    left: 0;
    z-index: 1;
    filter: grayscale(100%);
    border: none;
}

.image-card-2 {
    width: 75%;
    height: 80%;
    top: 0;
    right: 0;
    z-index: 2;
    filter: grayscale(0%);
    border: 6px solid var(--bg-light);
}

.about-images-container.swapped .image-card-1 {
    width: 75%;
    height: 80%;
    top: 0;
    right: 0;
    z-index: 2;
    filter: grayscale(0%);
    border: 6px solid var(--bg-light);
}

.about-images-container.swapped .image-card-2 {
    width: 85%;
    height: 85%;
    bottom: 0;
    left: 0;
    z-index: 1;
    filter: grayscale(100%);
    border: none;
}

.about-images-container:hover .image-card-1 {
    transform: translate(-5px, 5px) scale(1.02);
}
.about-images-container:hover .image-card-2 {
    transform: translate(5px, -5px) scale(1.02);
}

/* ==================== WORKS (PRODUCTS) SECTION ==================== */
#works { 
    background-color: var(--bg-light); 
    padding-bottom: 100px;
}

.products-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.product-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    flex-basis: 300px;
    flex-grow: 1;
    max-width: 350px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.product-card img {
    max-width: 100%;
    height: 250px;
    object-fit: contain;
    margin: 0 auto 20px auto;
}

.product-card h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.product-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1; /* Párrafo ocupa el espacio disponible */
}

/* ==================== CONTACT SECTION ==================== */
#contact {
  background: radial-gradient(ellipse at center, #2a2a2a 0%, var(--bg-dark) 70%);
    overflow: hidden; 
}
#contact .section-header h2 {
    color: var(--text-light);
}
#contact .whatsapp-cta {
    margin-top: 20px; 
}
.whatsapp-cta {
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
}
.whatsapp-cta p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* ==================== FOOTER ==================== */
.main-footer {
    background-color: #0c0c0c;
    color: var(--text-muted);
    padding: 80px 5% 20px;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}
.footer-column {
    flex: 1;
    min-width: 250px;
}
.footer-column h3 {
    color: var(--text-light);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}
.footer-about .footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}
.footer-about p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}
.footer-nav ul, .footer-contact ul {
    list-style: none;
    padding: 0;
}
.footer-nav ul li, .footer-contact ul li {
    margin-bottom: 15px;
}
.footer-nav ul a, .footer-contact ul span {
    color: var(--text-muted);
    transition: color 0.3s ease;
}
.footer-nav ul a:hover {
    color: var(--text-light);
}
.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 15px;
}
.footer-contact svg {
    width: 18px;
    height: 18px;
    fill: var(--text-muted);
}
.footer-socials {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}
.footer-socials a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}
.footer-socials a:hover {
    color: var(--text-light);
}
.footer-socials svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}
.footer-copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-copyright p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========================================================== */
/* === RESPONSIVE DESIGN === */
/* ========================================================== */

@media (max-width: 1024px) {
    .services-container {
        justify-content: center;
    }
    .service-card {
        flex-basis: 45%;
        margin-bottom: 40px;
    }
}

@media (max-width: 992px) {
    .hamburger { display: block; }
    .main-nav {
        position: fixed; top: 0; right: -100%;
        left: auto; 
        transform: none;
        width: 100%; height: 100vh;
        background-color: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(5px);
        display: flex; flex-direction: column;
        align-items: center; justify-content: center;
        gap: 40px; transition: right 0.4s ease-in-out;
        z-index: 1000;
    }
    .main-nav.active { right: 0; }
    .lang-selector { flex-direction: column; font-size: 1.5rem; }
    
    h1 { 
        font-size: 2.8rem;
        line-height: 1.25; 
    }
    h2 { font-size: 2rem; }
    
    #hero {
        justify-content: center;
    }

    .hero-content { 
        flex-direction: column-reverse; 
        text-align: center; 
        gap: 40px; 
        padding: 160px 5% 100px;
        width: 100%;
        box-sizing: border-box;
    }
    .social-icons { 
        flex-direction: row;
        padding: 0;
        gap: 30px;
        justify-content: center;
    }
    .social-icons::before, .social-icons::after { 
        display: none; 
    }
    
    .about-content { flex-direction: column; }
    .about-images-container {
        width: 90%;
        margin-top: 80px; 
        min-height: 40vh;
    }
    .product-card {
        flex-basis: 45%;
    }
}

@media (min-width: 993px) {
    .hamburger { display: none; }
}

@media (max-width: 768px) {
    section { padding: 80px 5%; }
    .service-card { flex-basis: 100%; }
    
    /* === INICIO DE LA CORRECCIÓN AÑADIDA === */
    #hero {
        background-position: 65% center; /* Ajuste fino para centrar la botella y la zona clara */
    }
    /* === FIN DE LA CORRECCIÓN AÑADIDA === */
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-about .footer-logo {
        display: inline-block;
    }
    .footer-contact ul li {
        justify-content: center;
    }
    .footer-socials {
        justify-content: center;
    }

    .section-header { flex-direction: column; text-align: center; }
    .header-line { width: 80px; }
    
    .hero-text { 
        margin-top: 0;
    }
    .about-stats {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    #contact { background-attachment: scroll; }
    
    h1 {
        font-size: clamp(2.2rem, 9.5vw, 2.8rem);
        line-height: 1.25;
    }
    .product-card {
        flex-basis: 80%;
        max-width: 400px;
    }
}
@media (max-height: 700px) {
    .scroll-down-arrow {
        display: none;
    }
}

/* ========================================================== */
/* === ESTILOS PARA TRANSICIÓN DE PÁGINA === */
/* ========================================================== */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
    z-index: 10000;
    transform-origin: bottom;
    transform: scaleY(0);
    pointer-events: none;
}