/* 1. Definición de la Paleta de Colores y Fuentes */
:root {
  --color-background: #faf8f1;
  --color-text-primary: #2e1d38;
  --color-accent-purple: #5d3a6f;
  --color-accent-green: #a8d8b9;
  --color-accent-peach: #f8c9a7;
  --color-header-bg: #211522;
  --font-primary: "Noto Sans", sans-serif;
}

/* 2. Estilos Globales y Reseteo */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body {
  font-family: var(--font-primary);
  background-color: var(--color-background);
  color: var(--color-text-primary);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* 3. HEADER Y NAVEGACIÓN */
.main-header {
  background-color: var(--color-header-bg);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky; /* Menú Fijo */
  top: 0;
  z-index: 1000;
  width: 100%;
}
.main-header .logo-container img { height: 45px; }
.main-nav ul { display: flex; align-items: center; gap: 2rem; }
.main-nav li { position: relative; } /* Para el dropdown */
.main-nav a {
  color: #fff;
  font-weight: 500;
  padding: 0.5rem 0.2rem;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
  display: block;
}
.main-nav a:hover, .main-nav .active a {
  color: var(--color-accent-peach);
  border-bottom-color: var(--color-accent-peach);
}
.main-nav .cta-button a {
  background-color: var(--color-accent-peach);
  color: var(--color-text-primary);
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  border-bottom: none;
  font-weight: 700;
}
.main-nav .cta-button a:hover {
  background-color: #fff;
  color: var(--color-text-primary);
  border-bottom-color: transparent;
}
/* Estilos del Dropdown */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--color-header-bg);
  min-width: 280px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 0 0 8px 8px;
  padding: 0.5rem 0;
  list-style: none;
}
.dropdown-content a {
  padding: 0.8rem 1.2rem;
  border-bottom: none;
  color: #fff;
  font-weight: 400;
}
.dropdown-content a:hover {
  background-color: var(--color-accent-purple);
  color: #fff;
}
/* Mostrar dropdown al hacer hover en desktop */
.dropdown:hover .dropdown-content { display: block; }

.mobile-nav-toggle { display: none; }
.dropdown-toggle i { margin-left: 0.5rem; transition: transform 0.3s; }

/* 4. Contenedores y Layout General */
.content-container { max-width: 1200px; margin: 0 auto; padding: 4rem 1.5rem; }
.full-width-section {
  width: 100%;
  padding-top: 5rem; 
  padding-bottom: 5rem;
}
.section-title { font-size: 2.8rem; color: var(--color-accent-purple); margin-bottom: 3rem; text-align: center; }
.section-subtitle { text-align: center; max-width: 700px; margin: -2rem auto 3rem; font-size: 1.1rem; }
.section-title-left { font-size: 2.2rem; color: var(--color-accent-purple); margin-bottom: 2rem; border-bottom: 2px solid var(--color-accent-peach); padding-bottom: 0.5rem; display: inline-block; }

/* 5. HERO SECTIONS */
.hero-title-container {
    padding: 4rem 1.5rem; text-align: center;
    background-color: var(--color-accent-green);
}
h1 .main-title { font-size: clamp(3rem, 10vw, 6rem); font-weight: 900; color: var(--color-accent-purple); text-transform: uppercase; display: block; letter-spacing: 1px; line-height: 0.9; }
h1 .separator { display: block; width: 80px; height: 3px; background-color: var(--color-accent-peach); margin: 2rem auto; }
h1 .subtitle { font-size: clamp(1.2rem, 4vw, 1.75rem); font-style: italic; font-weight: 400; color: var(--color-text-primary); }

/* HOME HERO */
.hero-home-section {
    min-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.hero-content h1 { font-size: clamp(2.5rem, 6vw, 4rem); text-transform: uppercase; }
.hero-content p { font-size: 1.25rem; max-width: 600px; margin: 1rem auto 2rem; }

/* 6. OTROS COMPONENTES */
.btn { display: inline-block; padding: 1rem 2.5rem; border-radius: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; transition: all 0.3s ease; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background-color: var(--color-accent-purple); color: #fff; }
.btn-primary:hover { background-color: var(--color-text-primary); }
.btn-secondary { background-color: transparent; color: var(--color-accent-purple); border-color: var(--color-accent-purple); }
.btn-secondary:hover { background-color: var(--color-accent-purple); color: #fff; }

.hidden { opacity: 0; transform: translateY(50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.visible { opacity: 1; transform: translateY(0); }

/* SECCIÓN COMPROMISO (HOME/NOSOTROS) */
.commitment-section { display: flex; flex-wrap: wrap; }
.commitment-column-left { flex: 1 1 50%; background-size: cover; background-position: center; display: flex; justify-content: center; align-items: center; padding: 2rem; min-height: 450px; }
.commitment-title-box { background-color: rgba(250, 248, 241, 0.9); padding: 2.5rem 3.5rem; text-align: center; border-radius: 8px; }
.commitment-title-box h2 { font-size: 2.5rem; color: var(--color-accent-purple); }
.commitment-column-right { flex: 1 1 50%; display: flex; flex-direction: column; justify-content: center; padding: 4rem; }
.commitment-column-right p { font-size: 1.2rem; line-height: 1.7; }
.commitment-column-right p strong { color: var(--color-accent-purple); }


/* PRODUCTOS TEASER (HOME) */
.products-teaser-section {}
.product-teaser-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.product-teaser-card { background-color: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,0.07); text-align: center; padding-bottom: 1.5rem; }
.product-teaser-card h3 { margin: 1.5rem 1rem 0.5rem; color: var(--color-text-primary); }
.product-teaser-card p { margin: 0 1.5rem 1.5rem; font-size: 0.95rem;}
.teaser-link { font-weight: 700; color: var(--color-accent-purple); }

/* REWARDS SECTION (HOME) */
.rewards-section { background-color: var(--color-accent-green); text-align: center; }
.rewards-content { max-width: 800px; margin: auto; }
.rewards-logo { max-width: 150px; margin: 0 auto 1.5rem; }

/* PÁGINA TARO FRITO */
.flavor-grid-section { background-color: var(--color-background); }
.filter-controls { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.filter-btn { padding: 0.75rem 1.5rem; border: 2px solid var(--color-accent-purple); background-color: transparent; color: var(--color-accent-purple); border-radius: 50px; font-weight: 700; cursor: pointer; transition: all 0.3s ease; }
.filter-btn:hover, .filter-btn.active { background-color: var(--color-accent-purple); color: #fff; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.product-card { border-radius: 12px; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,0.07); transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: pointer; }
.product-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1/1; }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 12px 25px rgba(0,0,0,0.12); }
.card-content { padding: 1.5rem; background-color: #fff; text-align: center; }
.card-content h3 { color: var(--color-text-primary); font-size: 1.25rem; }
.product-card.hide { display: none; }

/* SECCIÓN CALIDAD (NOSOTROS) */
.quality-section {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  text-align: center;
}
.quality-text-container { display: flex; flex-wrap: wrap; gap: 2rem; max-width: 1100px; margin: auto; }
.quality-text-box { background-color: rgba(46, 29, 56, 0.8); padding: 2rem; border-radius: 8px; flex: 1; min-width: 300px; }

/* SECCIÓN PILARES (NOSOTROS) */
.pillars-section { background-color: #fff; }
.pillars-container { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.pillar-column { flex: 1; min-width: 300px; max-width: 400px; padding: 2.5rem; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.08); text-align: center; }
.pillar-column.legacy { background: #f1ede4; }
.pillar-column.innovation { background: var(--color-accent-green); }
.pillar-title { margin-bottom: 2.5rem; }
.pillar-main-title { font-size: 2.2rem; font-weight: 700; color: var(--color-text-primary); display: block; line-height: 1.2; }
.pillar-subtitle { font-size: 1.1rem; font-weight: 400; color: var(--color-text-primary); display: block; margin-top: 0.25rem; }
.pillar-column ul li { display: flex; flex-direction: column; line-height: 1.3; margin-bottom: 2rem; }
.pillar-column .hitos-title { font-size: 2.5rem; font-weight: 700; color: var(--color-accent-purple); }
.pillar-column .hitos-subtitle { font-size: 1.1rem; font-weight: 400; color: var(--color-text-primary); margin-top: 0.25rem; }

/* SECCIÓN CTA FINAL */
.final-cta-section { text-align: center; }
.final-cta-section p { max-width: 600px; margin: -2rem auto 2.5rem; font-size: 1.1rem; }
.cta-buttons { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }

/* PÁGINA BENEFICIOS SOCIOS */
.benefits-hero { background-size: cover; background-position: center; color: #fff; text-align: center; padding: 6rem 2rem; }
.benefits-hero h1 { font-size: 3.5rem; }
.benefits-hero p { font-size: 1.3rem; max-width: 800px; margin: 1rem auto 0; }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; margin-top: 3rem; }
.benefit-card { background-color: #fff; padding: 2.5rem; border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,0.07); text-align: center; }
.benefit-card i { font-size: 3rem; color: var(--color-accent-purple); margin-bottom: 1.5rem; }
.benefit-card h3 { font-size: 1.5rem; color: var(--color-text-primary); margin-bottom: 1rem; }
.empower-section { background-color: var(--color-accent-green); }

/* PÁGINA CONTACTO */
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: flex-start;}
.contact-info h2, .contact-form-container h2 { font-size: 1.8rem; color: var(--color-text-primary); margin-bottom: 1.5rem; }
.contact-info h3 { margin-top: 2rem; margin-bottom: 1rem; }
.contact-info ul li { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.contact-info i { color: var(--color-accent-purple); font-size: 1.2rem; margin-top: 0.2rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.form-group input, .form-group textarea { width: 100%; padding: 0.8rem; border: 1px solid #ccc; border-radius: 5px; font-family: var(--font-primary); }
.distributor-section { background-color: var(--color-accent-green); }
.distributor-card { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; background: #fff; padding: 2rem; border-radius: 12px; align-items: center; }
.distributor-details .address { display: flex; gap: 1rem; margin: 1.5rem 0; align-items: flex-start;}
.distributor-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.distributor-map iframe { border-radius: 8px; height: 350px; width: 100%; }

/* PÁGINA BLOG */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; margin-bottom: 4rem; }
.blog-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,0.07); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.blog-card:hover { transform: translateY(-8px); box-shadow: 0 12px 25px rgba(0,0,0,0.12); }
.blog-card-content { padding: 1.5rem; }
.blog-card-content h3 { font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--color-text-primary); }
.blog-card-content p { font-size: 0.95rem; margin-bottom: 1rem; }
.blog-card-content span { font-weight: 700; color: var(--color-accent-purple); }
.blog-post-banner { width: 100%; height: 400px; object-fit: cover; }
.blog-post-content { max-width: 800px; margin: 2rem auto; }
.blog-post-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.blog-post-content p, .blog-post-content li { margin-bottom: 1.5rem; line-height: 1.8; }
.blog-post-content ul { padding-left: 1.5rem; list-style: disc; }

/* MODAL DE PRODUCTOS */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); display: flex; justify-content: center; align-items: center; z-index: 2000; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease; }
.modal-overlay.visible { opacity: 1; visibility: visible; }
.modal-content { background: #fff; padding: 2rem; border-radius: 12px; max-width: 900px; width: 90%; max-height: 90vh; overflow-y: auto; position: relative; transform: scale(0.9); transition: transform 0.4s ease; }
.modal-overlay.visible .modal-content { transform: scale(1); }
.modal-close-btn { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 2rem; color: #888; cursor: pointer; }
.modal-body { display: flex; gap: 2rem; }
.modal-image { flex: 1 1 40%; }
.modal-image img { width: 100%; border-radius: 8px; aspect-ratio: 1/1; object-fit: cover; }
.modal-details { flex: 1 1 60%; }
.modal-details h2 { font-size: 2.5rem; color: var(--color-accent-purple); margin-bottom: 1rem; }
.modal-details p { margin-bottom: 2rem; }
.modal-pairings { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; }
.modal-pairings h4 { font-size: 1.1rem; color: var(--color-text-primary); border-bottom: 2px solid var(--color-accent-peach); padding-bottom: 0.5rem; margin-bottom: 1rem; }
.modal-pairings ul { list-style: disc; padding-left: 1.2rem; }
.modal-pairings ul li { margin-bottom: 0.5rem; }

/* FOOTER */
.main-footer { background-color: var(--color-header-bg); color: #ccc; padding: 4rem 2rem 2rem; }
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding-bottom: 3rem; border-bottom: 1px solid #444; gap: 2rem; }
.footer-column { flex: 1; min-width: 200px; }
.footer-column.logo-column { flex-basis: 100%; max-width: 300px; }
.footer-column h4 { color: #fff; font-size: 1.1rem; margin-bottom: 1.5rem; }
.footer-column ul li { margin-bottom: 0.8rem; }
.footer-column a:hover { color: #fff; }
.logo-column img { width: 100px; margin-bottom: 1rem; }
.social-icons a { font-size: 1.5rem; margin-right: 1rem; transition: color 0.3s; }
.social-icons a:hover { color: var(--color-accent-peach); }
.footer-bottom { text-align: center; padding-top: 2rem; font-size: 0.85rem; color: #888; }
.footer-bottom strong { color: #ccc; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .main-nav {
    display: none; position: fixed; top: 0; right: 0;
    height: 100vh; width: 80%; max-width: 320px;
    background-color: var(--color-header-bg);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    flex-direction: column; padding-top: 6rem;
    align-items: flex-start;
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
  }
  .main-nav.mobile-visible { display: flex; transform: translateX(0); }
  .mobile-nav-toggle {
    display: block; background: none; border: none;
    color: #fff; font-size: 1.5rem; cursor: pointer; z-index: 1001;
  }
  .main-nav ul { flex-direction: column; align-items: flex-start; width: 100%; gap: 0; }
  .main-nav li { width: 100%; }
  .main-nav a { padding: 1rem 1.5rem; border-bottom: 1px solid #444; width: 100%; }
  .main-nav .cta-button a { margin: 1rem 1.5rem; width: auto; }
  /* Dropdown en móvil */
  .dropdown .dropdown-content {
    display: none;
    position: static;
    background-color: #33243a;
    box-shadow: none;
    padding-left: 1.5rem;
  }
  .dropdown .dropdown-content a { padding: 0.8rem 1.5rem; font-size: 0.9rem; border-bottom: none; }
  .dropdown.open .dropdown-content { display: block; }
  .dropdown.open .dropdown-toggle i { transform: rotate(180deg); }
  
  .commitment-column-right { padding: 3rem; text-align: center; }
  .contact-container, .distributor-card { grid-template-columns: 1fr; }
  .quality-section { background-attachment: scroll; }
  .modal-body { flex-direction: column; }
}

@media (min-width: 901px) {
    .dropdown .dropdown-toggle i { display: none; } /* Ocultar flecha en desktop */
}