:root {
    --color-bg: #F9F6F0; 
    --color-text: #2C1E16; 
    --color-accent: #8D6E52; 
    --font-heading: 'Playfair Display', serif; 
    --font-body: 'Montserrat', sans-serif;   
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.text-center { text-align: center; }
.mb-50 { margin-bottom: 50px; }
.mt-100 { margin-top: 100px; }
.mt-50 { margin-top: 50px; }
.mt-20 { margin-top: 20px; }
.pl-50 { padding-left: 50px; }

/* --- NAVEGACIÓN --- */
.navbar {
    padding: 15px 5%; background-color: #fff; width: 100%; position: sticky;
    top: 0; z-index: 1000; box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.container-nav { display: flex; justify-content: center; align-items: center; }
.logo-img { height: 60px; width: auto; }

/* --- HERO --- */
.hero-bg {
    height: 80vh; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 0 20px;
    background: linear-gradient(rgba(44, 30, 22, 0.4), rgba(44, 30, 22, 0.8)), 
                url('assets/metodo-cafe.webp') center/cover fixed no-repeat;
    color: #F9F6F0;
}
.hero-content h1 {
    font-family: var(--font-heading); font-size: 4rem; font-weight: 700;
    line-height: 1.1; margin-bottom: 25px; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); 
}
.hero-content p { font-size: 1.2rem; max-width: 600px; margin: 0 auto 35px auto; }

/* --- BOTONES --- */
.cta-group { display: flex; justify-content: center; gap: 20px; }
.btn {
    display: inline-block; padding: 15px 35px; text-decoration: none; font-weight: 700;
    transition: all 0.3s ease; cursor: pointer; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1.5px;
}
.btn-primary { background-color: var(--color-accent); color: #fff; border: 1px solid var(--color-accent); }
.btn-primary:hover { background-color: var(--color-text); border-color: var(--color-text); }
.btn-secondary { background-color: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid #fff; backdrop-filter: blur(5px); }
.btn-secondary:hover { background-color: #fff; color: var(--color-text); }
.full-width { width: 100%; text-align: center; }

/* --- SECCIONES BASE --- */
.info-section, .interactive-section { padding: 100px 0; }
.dark-section { background-color: var(--color-text); color: var(--color-bg); }
.bg-light { background-color: #fff; }
.text-light { color: #fff !important; }
.text-accent { color: var(--color-accent) !important; }

h2 { font-family: var(--font-heading); font-size: 3.2rem; font-weight: 700; margin-bottom: 20px; color: var(--color-text); }
.dark-section h2 { color: var(--color-accent); }
p { font-size: 1.1rem; }

/* --- IMÁGENES NÍTIDAS Y ANTI-ESTIRAMIENTO --- */
.split-section { display: flex; align-items: center; gap: 40px; }
.split-text, .split-image { flex: 1; }
.img-fluid { width: 100%; display: block; object-fit: cover; }
.sharp-img { height: 500px; }

/* FIX MOLINOS: Deja que la altura sea natural, no fuerza 500px */
.natural-img { height: auto; max-height: 500px; }

.shadow-right { box-shadow: 20px 20px 0px var(--color-accent); }
.shadow-left { box-shadow: -20px 20px 0px var(--color-text); }

/* --- ESENCIA (MISIÓN, VISIÓN, VALORES) --- */
.grid-3 {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px; margin-top: 40px;
}
.card-esencia {
    background: #fff; padding: 40px 30px;
    border-top: 4px solid var(--color-accent); box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.card-esencia h3 { font-family: var(--font-heading); color: var(--color-accent); font-size: 1.5rem; margin-bottom: 15px; }

/* --- GANCHO INTERACTIVO (QUIZ) --- */
.flavor-buttons { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-bottom: 40px; }
.flavor-btn {
    background: transparent; color: #fff; border: 1px solid var(--color-accent);
    padding: 12px 25px; font-family: var(--font-body); font-weight: 700;
    cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; font-size: 0.9rem;
}
.flavor-btn:hover, .flavor-btn.active-btn { background: var(--color-accent); color: #fff; }

.results-container { min-height: 150px; }
.result-card {
    display: none; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    padding: 30px; max-width: 600px; margin: 0 auto; animation: fadeIn 0.5s ease;
}
.result-card h3 { font-family: var(--font-heading); color: var(--color-accent); margin-bottom: 15px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- MENÚ DESTACADO --- */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.menu-item { background-color: #fff; box-shadow: 0 10px 20px rgba(0,0,0,0.05); transition: transform 0.3s ease; }
.menu-item:hover { transform: translateY(-5px); }
.menu-item img { width: 100%; height: 220px; object-fit: cover; }
.menu-info { padding: 25px; text-align: left; }
.menu-info h3 { font-family: var(--font-heading); font-size: 1.5rem; color: var(--color-accent); margin-bottom: 10px; }
.menu-info p { font-size: 0.95rem; color: #555; margin-bottom: 0; }

/* --- GLOSARIO INTERACTIVO DE MÉTODOS --- */
.methods-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.method-item { width: 100%; }
.method-card { background: #fff; border: 1px solid #eaeaea; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(0,0,0,0.02); }
.method-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }

.card-front { display: flex; align-items: center; gap: 20px; padding: 20px; }
.card-front img { width: 70px; height: 70px; object-fit: cover; }
.card-info { flex: 1; text-align: left; position: relative; }
.card-info h3 { font-family: var(--font-heading); color: var(--color-accent); font-size: 1.3rem; margin-bottom: 5px;}
.card-info .resumen { font-size: 0.9rem; color: #777; margin-bottom: 0; }
.expand-icon { position: absolute; top: 5px; right: 10px; font-size: 1.5rem; font-weight: 700; color: var(--color-accent); transition: transform 0.3s ease; }

.card-back { display: none; padding: 0 20px 20px 20px; text-align: left; animation: fadeInGlossary 0.5s ease; border-top: 1px solid #eaeaea; margin-top: 10px; padding-top: 15px;}
.card-back p { font-size: 0.95rem; color: #444; margin-bottom: 0; }

.method-card.expanded { background: #fafafa; border-color: var(--color-accent); }
.method-card.expanded .card-back { display: block; }
.method-card.expanded .expand-icon { transform: rotate(45deg); color: var(--color-text); }
@keyframes fadeInGlossary { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* --- EQUIPO --- */
.hero-style-img { width: 100%; height: 60vh; object-position: center 20%; }

/* --- SECCIONES INMERSIVAS --- */
.immersive-section { position: relative; padding: 120px 20px; display: flex; align-items: center; justify-content: center; }
.eventos-bg { background: url('assets/maridaje-raices.webp') center/cover fixed no-repeat; }
.ubicacion-bg { background: url('assets/raices-home.webp') center/cover fixed no-repeat; }

.glass-card {
    background: rgba(26, 18, 13, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1); padding: 50px; width: 100%; max-width: 600px;
    text-align: center; color: #fff; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.glass-card h2 { color: var(--color-accent); }
.light-glass { background: rgba(249, 246, 240, 0.9); color: var(--color-text); }
.light-glass h2 { color: var(--color-text); }

.event-form { margin-top: 25px; display: flex; flex-direction: column; gap: 15px; }
.event-form input, .event-form textarea {
    padding: 15px; border: 1px solid rgba(255,255,255,0.3); background-color: rgba(255,255,255,0.05);
    color: #fff; font-family: var(--font-body); font-size: 1rem;
}
.event-form input::placeholder, .event-form textarea::placeholder { color: #ccc; }
.event-form input:focus, .event-form textarea:focus { outline: none; border-color: var(--color-accent); background-color: rgba(0,0,0,0.2); }

.location-text { font-size: 1.3rem; font-weight: 700; margin: 20px 0; }
.horarios p { font-size: 1.1rem; margin-bottom: 5px; }
.badge { display: inline-block; padding: 6px 15px; font-size: 0.85rem; font-weight: 700; margin-top: 20px; }
.badge.open { background-color: #2C1E16; color: #fff; }
.badge.closed { background-color: #ccc; color: #333; }

/* --- FOOTER --- */
footer { padding: 50px 20px; background-color: #110c08; color: #fff; }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.social-links a { color: #fff; text-decoration: none; margin-left: 20px; text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem;}

/* --- RESPONSIVO --- */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.8rem; }
    .hero-bg { background-attachment: scroll; } 
    .cta-group { flex-direction: column; gap: 15px; }
    
    h2 { font-size: 2.4rem; }
    .split-section { flex-direction: column; gap: 40px; text-align: center; }
    .reverse-mobile { flex-direction: column-reverse; }
    .pl-50 { padding-left: 0; }
    .shadow-right, .shadow-left { box-shadow: none; border-bottom: 5px solid var(--color-accent); }
    
    /* En celulares, la imagen del molino y v60 no se estiran */
    .sharp-img { height: auto; max-height: 400px; } 
    .natural-img { height: auto; max-height: 400px; }
    
    .methods-container { grid-template-columns: 1fr; gap: 20px; }
    .card-front { padding: 15px; }
    
    .eventos-bg, .ubicacion-bg { background-attachment: scroll; padding: 60px 15px; }
    .glass-card { padding: 30px 20px; }
    
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
    .social-links a { margin: 0 10px; }
}