/* ======== 1. IMPORTAR FUENTES & VARIABLES ======== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Lato:wght@300;400;700&display=swap');

:root {
    /* Colores */
    --color-primary: #0A6847;
    --color-primary-dark: #085038;
    --color-text: #2C3E50;       /* Gris oscuro elegante */
    --color-text-light: #64748B; /* Gris suave para párrafos */
    --color-bg-light: #F8FAFC;   /* Fondo muy sutil */
    --color-border: #E2E8F0;
    --color-white: #FFFFFF;

    /* Tipografía Premium */
    --font-heading: 'Playfair Display', serif; /* Para Títulos */
    --font-body: 'Lato', sans-serif;           /* Para Texto corrido */
}

/* ======== 2. RESET & BASES ======== */
html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}
*, *:before, *:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
}
/* Bloqueo de scroll */
body.modal-open, body.menu-open { overflow: hidden; }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-text);
    margin: 0;
    letter-spacing: -0.5px;
}
p { color: var(--color-text-light); margin: 0; }

a { text-decoration: none; color: var(--color-primary); transition: 0.3s; }
a:hover { color: var(--color-primary-dark); }

img { max-width: 100%; display: block; }

/* ======== 3. UTILIDADES ======== */
.container {
    max-width: 1200px; /* Un poco más ancho para verse moderno */
    width: 90%;
    margin: 0 auto;
}

/* Grids */
.grid-3-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4-col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    border-radius: 4px; /* Bordes más rectos = más serio */
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}
.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(10, 104, 71, 0.2);
}
.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 104, 71, 0.3);
}
.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}
.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Animaciones Scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.fade-in-left { transform: translateX(-30px); }
.animate-on-scroll.fade-in-right { transform: translateX(30px); }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0) translateX(0); }

/* ======== 4. HEADER & NAV ======== */
.header {
    background-color: var(--color-white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 15px 0;
}
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo-img { max-height: 50px; width: auto; }

.nav { display: flex; gap: 30px; }
.nav-link {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text);
    position: relative;
    padding: 5px 0;
}
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background-color: var(--color-primary); transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.is-active::after { width: 100%; }

/* Menú Hamburguesa */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1001; }
.nav-toggle span { display: block; width: 25px; height: 2px; background: var(--color-text); margin: 6px 0; transition: 0.3s; }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ======== 5. HERO SECTION ======== */
.hero { padding: 100px 0; background-color: var(--color-bg-light); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-text h1 { font-size: 56px; line-height: 1.1; margin-bottom: 25px; color: var(--color-primary-dark); }
.hero-text p { font-size: 18px; margin-bottom: 35px; max-width: 450px; }
.hero-image img { border-radius: 8px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

/* ======== 6. TARJETAS PREMIUM (Zoom Effect) ======== */
.product-card, .catalog-card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden; /* CRUCIAL PARA EL ZOOM */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

/* Imagen con efecto zoom lento */
.product-card img, .catalog-card-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hover de la tarjeta */
.product-card:hover, .catalog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.product-card:hover img, .catalog-card:hover .catalog-card-img {
    transform: scale(1.1); /* Zoom al pasar el mouse */
}

/* Contenido de la tarjeta */
.product-card h3, .catalog-card-content h3 {
    font-size: 22px;
    margin: 0;
    padding: 20px 0 5px 0;
    text-align: center;
}
.catalog-card-content { padding: 25px; text-align: center; }
.catalog-card-content p { font-size: 15px; margin-bottom: 20px; }
.catalog-card-content .btn-outline { width: 100%; }

/* Sección general */
.features, .burgers-section, .testimonials, .catalog-section, .contact-section { padding: 80px 0; }
.burgers-section h2 { font-size: 42px; text-align: center; margin-bottom: 15px; }
.burgers-section p { text-align: center; max-width: 600px; margin: 0 auto 50px auto; }

/* Features Icons */
.feature-card { text-align: center; padding: 30px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: 8px; }
.feature-icon { width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 50%; object-fit: cover; }

/* Stats */
.stats { background: var(--color-primary); color: var(--color-white); text-align: center; padding: 60px 0; }
.stat-number { display: block; font-size: 50px; font-weight: 700; font-family: var(--font-heading); }
.stat-label { font-size: 16px; opacity: 0.9; color: #fff;}

/* Testimonios */
.testimonial-card { background: var(--color-bg-light); padding: 30px; border-radius: 8px; font-style: italic; position: relative; }
.stars { color: #D4AF37; margin-bottom: 10px; }
.author { display: block; margin-top: 15px; font-weight: 700; font-style: normal; color: var(--color-primary); }

/* ======== 7. CATÁLOGO & FILTROS ======== */
.catalog-wrapper { display: grid; grid-template-columns: 250px 1fr; gap: 40px; }
.catalog-sidebar { position: sticky; top: 100px; align-self: start; }
.catalog-sidebar h4 { font-size: 18px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--color-primary); }
.catalog-filters { list-style: none; padding: 0; }
.catalog-filters li { margin-bottom: 8px; }
.filter-link {
    display: block; padding: 10px 15px; border-radius: 4px;
    color: var(--color-text-light); font-weight: 600; font-size: 14px;
}
.filter-link:hover, .filter-link.is-active {
    background-color: var(--color-primary); color: var(--color-white);
}
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

/* ======== 8. MODAL PREMIUM (2 Columnas) ======== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: 0.3s;
    padding: 20px;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }

.modal-content {
    background: var(--color-white);
    width: 100%; max-width: 900px;
    border-radius: 8px;
    overflow: hidden; /* Para imagen */
    position: relative;
    transform: translateY(20px); transition: 0.3s;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.modal-overlay.is-open .modal-content { transform: translateY(0); }

.modal-grid { display: grid; grid-template-columns: 1fr 1fr; }

.modal-img-container { background: #f0f0f0; height: 100%; min-height: 400px; }
.modal-img-container img { width: 100%; height: 100%; object-fit: cover; }

.modal-info { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.modal-close {
    position: absolute; top: 15px; right: 20px;
    background: none; border: none; font-size: 30px; cursor: pointer;
    color: var(--color-text-light); z-index: 10;
}
.modal-info h3 { font-size: 32px; margin-bottom: 10px; color: var(--color-primary); }

/* Specs Técnicos */
.modal-specs {
    font-family: monospace;
    background: var(--color-bg-light);
    padding: 10px;
    border-left: 3px solid var(--color-primary);
    margin: 15px 0 20px 0;
    font-size: 14px;
    color: var(--color-text);
}

/* ======== 9. FOOTER & CONTACTO ======== */
.footer-complex { background: #1a1a1a; color: #ccc; padding: 80px 0 20px; }
.footer-complex h4 { color: #fff; font-family: var(--font-body); text-transform: uppercase; font-size: 14px; letter-spacing: 1px; border-bottom: 1px solid #333; padding-bottom: 15px; margin-bottom: 20px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #999; font-size: 14px; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #333; margin-top: 50px; padding-top: 20px; text-align: center; font-size: 13px; }

/* Formulario Contacto */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; background: var(--color-white); box-shadow: 0 10px 40px rgba(0,0,0,0.05); border-radius: 8px; overflow: hidden; }
.contact-info { background: var(--color-primary); color: #fff; padding: 50px; }
.contact-info h2, .contact-info p, .contact-info a, .contact-info svg { color: #fff; }
.contact-form { padding: 50px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; font-size: 13px; text-transform: uppercase; margin-bottom: 8px; }
.form-group input, .form-group textarea { width: 100%; padding: 15px; border: 1px solid var(--color-border); border-radius: 4px; font-family: inherit; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--color-primary); outline: none; }

/* ======== 10. RESPONSIVE ======== */
@media (max-width: 992px) {
    .catalog-wrapper { grid-template-columns: 1fr; }
    .catalog-sidebar { position: static; margin-bottom: 30px; }
    .catalog-filters { display: flex; flex-wrap: wrap; gap: 10px; }
    .catalog-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-text h1 { font-size: 42px; }
}

@media (max-width: 768px) {
    .header-flex { padding: 0 20px; }
    .nav-toggle { display: block; }
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: rgba(255,255,255,0.98); display: flex; justify-content: center;
        align-items: center; transition: 0.4s;
    }
    .nav-menu.is-active { right: 0; }
    .nav { flex-direction: column; text-align: center; }
    
    .hero-grid, .grid-3-col, .grid-4-col, .modal-grid, .contact-wrapper { grid-template-columns: 1fr; }
    .hero { padding: 50px 0; text-align: center; }
    .hero-text { order: 2; } .hero-image { order: 1; }
    
    .modal-img-container { min-height: 250px; }
    .modal-info { padding: 25px; }
}