/* --- VARIABLES & RESET --- */
:root {
    --color-primary: #052b18;
    --color-accent: #a1b000;
    --color-accent-hover: #008f40;
    --color-gold: #D4AF37;
    --color-silver: #C0C0C0;
    --color-white: #ffffff;
    --color-light-gray: #f4f7f6;
    --color-dark-gray: #333333;
    --nav-height: 120px;
    --whatsapp-green: #25d366;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, rgba(231, 239, 235, 0.689) 100%, rgba(0, 26, 15, 0.245) 100%), url("img/fondo2.png");
    color: var(--color-gold);
    line-height: 2;
    overflow-x: hidden;
    padding-top: var(--nav-height);
}

/* --- UTILIDADES --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 25px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
}

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

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
}

/* --- NAVIGATION --- */
nav {
    background-color: rgba(175, 186, 17, 0.95);
    height: var(--nav-height);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    backdrop-filter: blur(5px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 24px;
}

.logo-link {
    display: flex;
    align-items: center;
    height: 90%;
    flex-shrink: 0;
}

.logo-img {
    height: 95px;
    width: auto;
    transition: transform 0.3s;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

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

.nav-links a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.nav-links a:hover { color: var(--color-primary); }

.language-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.lang-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.lang-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

.lang-btn.active {
    background: rgba(255,255,255,0.28);
    border-color: rgba(255,255,255,0.55);
    box-shadow: 0 0 0 2px rgba(5, 43, 24, 0.15);
}

.lang-flag {
    font-size: 1.35rem;
    line-height: 1;
}

/* --- HERO --- */
header {
    height: calc(100vh - var(--nav-height));
    background: linear-gradient(135deg, rgba(5, 43, 24, 0) 0%, rgba(0, 26, 15, 0.17) 100%), url("img/fondo1.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 50%);
    opacity: 0.1;
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.hero-content h1 {
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    line-height: 1.05;
    color: var(--color-white);
    margin-bottom: 18px;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.hero-content p {
    color: rgba(255,255,255,0.95);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

/* --- SECTIONS GENERAL --- */
section { padding: 100px 0; }

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-card {
    background: var(--color-light-gray);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    border-bottom: 4px solid var(--color-primary);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.info-card i { font-size: 2.5rem; color: var(--color-accent); margin-bottom: 20px; }
.info-card h3 { color: var(--color-primary); margin-bottom: 15px; }
.info-card p { color: var(--color-dark-gray); }

/* --- PRODUCTOS --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.product-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
}

.product-img-container {
    height: 220px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #eee;
}

.product-img {
    width: 85%;
    height: 85%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info h3 { font-size: 1.3rem; margin-bottom: 10px; }
.product-info p { margin-bottom: 20px; font-size: 0.95rem; line-height: 1.5; }

#propios {
    background: linear-gradient(135deg, rgba(5, 43, 24, 0) 0%, rgba(0, 26, 15, 0.17) 100%), url("img/fondo3.jpg");
}

#propios .section-title { color: var(--color-gold); }
#propios .section-title::after { background: var(--color-blue); }

.card-gold { border: 1px solid #333; background: #252525; }
.card-gold .product-info h3 { color: var(--color-gold); }
.card-gold .product-info p { color: #bbb; }
.btn-gold {
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    background: transparent;
    align-self: start;
    font-size: 0.8rem;
}
.btn-gold:hover { background: var(--color-gold); color: #000; }

#representados {
    background: linear-gradient(135deg, rgba(5, 43, 24, 0) 0%, rgba(0, 26, 15, 0.17) 100%), url("img/fondo4.jpg");
}

#representados .section-title { color: #e5d244; }
#representados .section-title::after { background: var(--color-silver); }

.card-silver { border: 1px solid #eee; }
.card-silver:hover { border-color: var(--color-silver); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.btn-silver {
    background: var(--color-dark-gray);
    color: #fff;
    align-self: start;
    font-size: 0.8rem;
}
.btn-silver:hover { background: var(--color-silver); color: #000; }

/* --- CONTACTO --- */
#contacto { background-color: var(--color-primary); color: var(--color-white); }
#contacto .section-title { color: var(--color-white); }
.contact-wrapper { display: flex; flex-wrap: wrap; gap: 60px; }
.contact-info, .contact-form { flex: 1; min-width: 320px; }

.social-links { margin-top: 40px; }
.social-links h4 { margin-bottom: 20px; font-weight: 600; color: var(--color-accent); }
.social-icons { display: flex; gap: 15px; }
.social-btn {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
}
.social-btn:hover { background: var(--color-accent); transform: translateY(-3px); }

form input, form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
}

form textarea { resize: vertical; min-height: 130px; }
form button { width: 100%; font-weight: 800; letter-spacing: 1px; }

footer {
    background: #021a0e;
    color: #666;
    text-align: center;
    padding: 30px;
    font-size: 0.9rem;
}

/* --- BOTÓN FLOTANTE WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: var(--whatsapp-green);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0px 5px 15px rgba(37, 211, 102, 0.4);
}

@media (max-width: 992px) {
    .nav-container {
        gap: 12px;
    }

    .nav-right {
        gap: 14px;
    }

    .nav-links {
        gap: 18px;
    }

    .nav-links a {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 100px;
    }

    .nav-links {
        display: none;
    }

    .nav-container {
        justify-content: space-between;
    }

    .nav-right {
        margin-left: auto;
    }

    .language-switcher {
        gap: 8px;
        padding: 6px 8px;
    }

    .lang-btn {
        width: 38px;
        height: 38px;
    }

    .logo-img {
        height: 72px;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}
