/* ==========================================================================
   1. VARIABLES Y BASE
   ========================================================================== */
:root {
  --white: #FAFAF7;
  --ink: #1C1C1A;
  --olive: #5B6346;
  --olive-dark: #3F4530;
  --parchment: #E6E4DC;
  --gray-light: #F0EFEA;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Outfit', sans-serif;
  --nav-h: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* Corregido */
}

html {
  scroll-behavior: smooth;
  background-color: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  width: 100%;
}

/* ==========================================================================
   2. NAVEGACIÓN (Navbar Fijo y Seguro)
   ========================================================================== */
nav {
  position: fixed;
  top: 0; 
  left: 0; 
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  border-bottom: 1px solid var(--parchment);
  background-color: var(--white);
}

.nav-content {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

.nav-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.nav-logo-img {
  max-height: 45px; /* Altura máxima controlada */
  width: auto;
  object-fit: contain;
}

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

.nav-links a {
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  transition: color 0.3s;
}

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

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

.nav-cta {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--ink);
  padding: 10px 22px;
  text-decoration: none;
  transition: background 0.3s;
}

.nav-cta:hover { 
  background: var(--olive-dark); 
}

/* ==========================================================================
   3. HERO
   ========================================================================== */
.hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 40px) 40px 60px;
  background: var(--white);
  max-width: 1400px;
  margin: 0 auto;
}

.hero-inner {
  max-width: 800px;
}

.hero-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--olive);
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero-title em {
  font-style: italic;
}

.hero-desc {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
  font-weight: 300;
  color: #4A4A45;
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   4. BOTONES Y TITULOS
   ========================================================================== */
.btn-primary {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--white);
  background: var(--ink);
  padding: 16px 32px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-primary:hover { background: var(--olive-dark); }

.btn-ghost {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink);
  background: transparent;
  padding: 16px 32px;
  text-decoration: none;
  border: 1px solid var(--parchment);
  transition: background 0.3s;
}

.btn-ghost:hover { background: var(--gray-light); }

.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--olive);
  margin-bottom: 12px;
  font-weight: 500;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 32px;
}

.section-title em { font-style: italic; }

/* ==========================================================================
   5. BANDA DE ORIGEN
   ========================================================================== */
.origin-band {
  background: var(--gray-light);
  padding: 50px 40px;
  border-top: 1px solid var(--parchment);
  border-bottom: 1px solid var(--parchment);
}

.origin-band-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #706F69;
  text-align: center;
  margin-bottom: 24px;
}

.origin-facts {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.origin-fact { text-align: center; }

.origin-val {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2vw, 30px);
  color: var(--ink);
  margin-bottom: 4px;
}

.origin-key {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--olive);
}

.origin-divider {
  width: 1px;
  height: 35px;
  background: var(--parchment);
}

/* ==========================================================================
   6. SECCIÓN HISTORIA
   ========================================================================== */
#cafe {
  padding: 100px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-body {
  font-size: 15px;
  line-height: 1.7;
  color: #4A4A45;
  margin-bottom: 20px;
  font-weight: 300;
}

.about-tag-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.about-tag {
  font-size: 10px;
  letter-spacing: 0.1em;
  background: var(--gray-light);
  padding: 6px 14px;
  border: 1px solid var(--parchment);
}

.about-card-big {
  background: var(--ink);
  color: var(--white);
  padding: 50px;
  position: relative;
}

.about-quote-mark {
  font-family: var(--font-serif);
  font-size: 80px;
  color: var(--olive);
  position: absolute;
  top: 0px;
  left: 30px;
  opacity: 0.3;
}

.about-quote {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.5;
  font-style: italic;
  position: relative;
  z-index: 2;
  margin-bottom: 24px;
}

.about-attr {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--parchment);
}

/* ==========================================================================
   7. PRODUCTOS
   ========================================================================== */
.products {
  padding: 100px 40px;
  background: var(--gray-light);
  border-top: 1px solid var(--parchment);
  border-bottom: 1px solid var(--parchment);
}

.products-header {
  max-width: 1400px;
  margin: 0 auto 40px;
}

.products-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--parchment);
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.product-image-box {
  width: 100%;
  height: 250px;
  background: #F4F3EE;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-box img {
  max-height: 80%;
  max-width: 80%;
  object-fit: contain;
}

.bg-vintage { background-color: var(--parchment) !important; }

.product-weight {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 4px;
}

.product-unit {
  font-size: 11px;
  color: #8A8982;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.product-name {
  font-family: var(--font-serif);
  font-size: 22px;
  margin-bottom: 12px;
}

.product-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #5A5952;
  margin-bottom: 20px;
  flex-grow: 1;
}

.product-notes {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.product-notes .note {
  font-size: 9px;
  text-transform: uppercase;
  border: 1px solid var(--parchment);
  padding: 3px 8px;
  color: #706F69;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--parchment);
  padding-top: 20px;
}

.product-price {
  font-family: var(--font-serif);
  font-size: 22px;
}

.btn-add {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--white);
  background: var(--ink);
  padding: 10px 22px;
  text-decoration: none;
}

.btn-add:hover { background: var(--olive); }

/* ==========================================================================
   8. PROCESO
   ========================================================================== */
#proceso {
  padding: 100px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

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

.process-step {
  border-top: 1px solid var(--ink);
  padding-top: 20px;
}

.process-num {
  font-family: var(--font-serif);
  font-size: 15px;
  font-style: italic;
  color: var(--olive);
  margin-bottom: 12px;
}

.process-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.process-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #5A5952;
}

/* ==========================================================================
   9. CTA & FOOTER
   ========================================================================== */
.cta-section {
  background: var(--ink);
  color: var(--white);
  padding: 100px 40px;
  text-align: center;
}

.cta-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--olive);
  margin-bottom: 16px;
}

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 56px);
  margin-bottom: 24px;
}

.cta-title em { font-style: italic; }

.cta-sub {
  font-size: 15px;
  color: var(--parchment);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta-primary {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink);
  background: var(--white);
  padding: 16px 32px;
  text-decoration: none;
}

.btn-cta-ghost {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--white);
  padding: 16px 32px;
  text-decoration: none;
  border: 1px solid rgba(230, 228, 220, 0.4);
}

footer {
  background: var(--white);
  padding: 60px 40px 30px;
  border-top: 1px solid var(--parchment);
}

.footer-top {
  max-width: 1400px;
  margin: 0 auto 40px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 20px;
  margin-bottom: 12px;
}

.footer-logo span { font-style: italic; color: var(--olive); }

.footer-tagline {
  font-size: 13px;
  color: #706F69;
  max-width: 300px;
}

.footer-col-title {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 16px;
}

.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-links a {
  font-size: 13px;
  color: #5A5952;
  text-decoration: none;
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid var(--parchment);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #8A8982;
}

/* ==========================================================================
   10. RESPONSIVE DESIGN (Móviles y Tablets)
   ========================================================================== */
@media (max-width: 850px) {
  .left-links, .right-links {
    display: none; /* Ocultamos links extra en pantallas pequeñas para no romper el menú */
  }

  .nav-content {
    padding: 0 20px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .origin-divider {
    display: none;
  }

  .origin-facts {
    flex-direction: column;
  }

  .hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  #cafe, .products, #proceso, .cta-section, footer {
    padding-left: 20px;
    padding-right: 20px;
  }
}