:root {
    --primary: #c5a059;
    /* Gold */
    --primary-dark: #a68542;
    --secondary: #2c3e2d;
    /* Deep Olive Green */
    --bg-dark: #0f140f;
    --bg-light: #f9f7f2;
    --text-light: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #666666;
    --accent: #e8e1d5;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(15, 20, 15, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

header.scrolled .nav-links a {
    color: var(--text-light);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
#hero {
    height: 100vh;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 2;
    color: var(--text-light);
    max-width: 600px;
}

.subtitle {
    display: block;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

#hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

#hero p {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-dark);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--text-light);
    transform: translateY(-3px);
}

.btn-secondary {
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    z-index: 1;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Stats Section */
#stats {
    background-color: var(--secondary);
    display: flex;
    justify-content: space-around;
    padding: 4rem 10%;
    color: var(--text-light);
}

.stat-item {
    text-align: center;
}

.stat-item .number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-item .label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 400;
}

/* History Section */
#historia {
    padding: 10rem 0;
}

.history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.history-text h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--secondary);
}

.history-text p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.history-image img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.link-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--primary);
    padding-bottom: 5px;
    transition: var(--transition);
}

.link-more:hover {
    letter-spacing: 2px;
}

/* Products Section */
#productos {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--accent);
    font-weight: 300;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    text-align: center;
}

.product-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.product-img img {
    max-width: 100%;
    height: 300px;
    object-fit: contain;
    margin-bottom: 2rem;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.product-info p {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.price {
    display: block;
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.btn-add {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.8rem 2rem;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

/* Proceso Section */
#proceso {
    padding: 10rem 0;
}

.proceso-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.proceso-image img {
    width: 100%;
    border-radius: 5px;
}

.proceso-text h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
}

.step {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.step-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.5;
}

.step-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 6rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--accent);
    font-size: 0.9rem;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links ul a:hover {
    color: var(--primary);
}

.footer-contact p {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Reveal Animations */
.reveal-init {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Specific delays for children */
.reveal .product-card:nth-child(1) {
    transition-delay: 0.1s;
}

.reveal .product-card:nth-child(2) {
    transition-delay: 0.2s;
}

.reveal .product-card:nth-child(3) {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 1024px) {
    #hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
        height: auto;
        padding-bottom: 4rem;
    }

    #hero h1 {
        font-size: 3rem;
    }

    .hero-image {
        margin-top: 4rem;
    }

    .history-grid,
    .proceso-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0 2rem;
    }

    .nav-links {
        display: none;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}