/* ==========================================
   MexCoffee Premium CSS Design System
   ========================================== */

/* 1. Global Reset & Variables */
:root {
  --bg-primary: #0A0A09;
  --bg-secondary: #131512;
  --bg-tertiary: #1B1E1A;
  
  --accent-gold: #D2AE6D;
  --accent-gold-hover: #F5E093;
  --accent-gold-pale: #E6DFD3;
  --accent-green: #2E5A44;
  --accent-green-light: #4A8F6A;
  --accent-green-bg: rgba(46, 90, 68, 0.08);
  
  --text-primary: #F4F1EA;
  --text-secondary: #A6A4A0;
  --text-muted: #6B6965;
  
  --accent-coffee: #47352E;
  --accent-coffee-hover: #5C463D;
  
  --border-subtle: rgba(223, 213, 198, 0.06);
  --border-hover: rgba(210, 174, 109, 0.35);
  
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius-lg: 24px;
  --border-radius-md: 16px;
  --border-radius-sm: 8px;
  
  --shadow-premium: 0 8px 30px rgba(0, 0, 0, 0.25);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* Scroll-Reveal Animation System (#1) */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Section Divider (#2) */
.section-divider {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #006847 0%, #006847 33.33%, #FFFFFF 33.33%, #FFFFFF 66.66%, #C8102E 66.66%, #C8102E 100%);
  opacity: 0.9;
  border: none;
}

/* Focus States for Accessibility (#12) */
*:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.4);
  outline: none;
}

/* 2. Reusable Atoms */
.badge {
  display: block;
  width: fit-content;
  padding: 6px 18px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #F4F1EA;
  background: linear-gradient(135deg, #1C3F2D 0%, #2E5A44 100%);
  border: none;
  border-radius: 100px;
  margin-bottom: 24px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.section-header .badge,
.text-center .badge {
  margin-left: auto;
  margin-right: auto;
}

.badge-red {
  background: linear-gradient(135deg, #8B0000 0%, #C8102E 100%);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 100px;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--bg-primary);
  border: 1px solid var(--accent-gold);
}

.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  border-color: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(210, 174, 109, 0.25);
}

.btn-secondary {
  background-color: var(--accent-coffee);
  color: var(--text-primary);
  border: 1px solid var(--accent-coffee);
  margin-left: 16px;
}

.btn-secondary:hover {
  background-color: var(--accent-coffee-hover);
  border-color: var(--accent-coffee-hover);
  transform: translateY(-2px);
}

/* 3. Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  z-index: 1000;
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F5F3 100%);
  border-bottom: 1px solid #E4E4E1;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo a span {
  color: var(--accent-gold);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu a {
  font-size: 0.9rem;
  font-weight: 600;
  color: #4A4A48;
  text-decoration: none;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #006847 0%, #006847 33.33%, #FFFFFF 33.33%, #FFFFFF 66.66%, #C8102E 66.66%, #C8102E 100%);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}

.nav-menu a:hover {
  color: #1A1A1A;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a.active {
  color: var(--accent-green);
}

.nav-menu a.nav-cta {
  padding: 8px 20px;
  border-radius: 100px;
  background: var(--accent-coffee);
  color: #FFFFFF;
  font-weight: 600;
}

.nav-menu a.nav-cta:hover {
  background: var(--accent-coffee-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #1A1A1A;
  transition: var(--transition-smooth);
}

/* 4. Hero Section */
.hero {
  padding: 160px 0 120px 0;
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden; /* Prevent background movement showing borders */
}

.hero-bg {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  background-image: url('images/hero_coffee.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  transform: scale(1.05);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10, 10, 9, 0.95) 40%, rgba(10, 10, 9, 0.65) 75%, rgba(10, 10, 9, 0.3) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-fg-left,
.hero-fg-right {
  position: absolute;
  top: -30px;
  height: calc(100% + 30px);
  width: auto;
  object-fit: cover;
  pointer-events: none;
  z-index: 3;
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-fg-left {
  left: 0;
  transform: scale(1.1);
  transform-origin: left center;
}

.hero-fg-right {
  right: 0;
  transform: scale(1.1);
  transform-origin: right center;
}

@media (max-width: 991px) {
  .hero-fg-left,
  .hero-fg-right {
    display: none;
  }
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 5;
}

.hero-content {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 6;
}

/* Floating Dust Particles */
.dust-particle {
  position: absolute;
  background: rgba(244, 241, 234, 0.7);
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  filter: blur(0.5px);
  animation: float-dust infinite linear;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

@keyframes float-dust {
  0% {
    transform: translate(0, 0) translateY(0) scale(0.8);
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  85% {
    opacity: 0.9;
  }
  100% {
    transform: translate(120px, -240px) translateY(-50px) scale(1.3);
    opacity: 0;
  }
}

.hero-title {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text-primary) 50%, var(--accent-gold-pale) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight-red {
  color: #C8102E;
  -webkit-text-fill-color: #C8102E;
  background: transparent;
  -webkit-background-clip: initial;
  background-clip: initial;
}

/* Logo styles */
.logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.footer-logo {
  height: 44px;
  margin-bottom: 16px;
}

.highlight-gold {
  color: var(--accent-gold);
  -webkit-text-fill-color: var(--accent-gold);
  background: transparent;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.highlight-large {
  font-size: 1.2em;
  display: inline-block;
  line-height: 1.25;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
}

.hero-visual {
  width: 100%;
}

.visual-container {
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: var(--border-radius-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-premium);
}

.visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition-smooth);
}

.visual-container:hover .visual-img,
.product-card:hover .visual-img {
  transform: scale(1.05);
}

.placeholder-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  background: linear-gradient(180deg, rgba(20, 18, 16, 0.4) 0%, rgba(10, 9, 8, 0.95) 100%);
}

.placeholder-icon {
  width: 48px;
  height: 48px;
  color: var(--accent-green-light);
  margin-bottom: 16px;
  opacity: 0.7;
}

.placeholder-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  max-width: 280px;
}

/* Statement / Quote Section */
.statement-section {
  background-color: var(--bg-primary);
  padding: 64px 24px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}

.statement-container {
  max-width: 900px;
  margin: 0 auto;
}

.statement-quote {
  font-family: var(--font-title);
  font-size: 1.85rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
  color: var(--accent-gold);
  margin-bottom: 16px;
  position: relative;
  padding: 0 48px;
}

.statement-quote::before {
  content: '\201C';
  position: absolute;
  top: -30px;
  left: -10px;
  font-size: 8rem;
  line-height: 1;
  font-family: var(--font-title);
  color: var(--accent-gold);
  opacity: 0.08;
  pointer-events: none;
}

.statement-quote::after {
  content: '\201D';
  position: absolute;
  bottom: -60px;
  right: -10px;
  font-size: 8rem;
  line-height: 1;
  font-family: var(--font-title);
  color: var(--accent-gold);
  opacity: 0.08;
  pointer-events: none;
}

.statement-author {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-green-light);
  font-style: normal;
  display: block;
}

/* Section Title Underline (#10) */
.section-title {
  position: relative;
  display: block;
}

.section-header .section-title::after {
  content: '';
  display: block;
  width: 90px;
  height: 4px;
  background: linear-gradient(90deg, #006847 0%, #006847 33.33%, #FFFFFF 33.33%, #FFFFFF 66.66%, #C8102E 66.66%, #C8102E 100%);
  margin: 20px auto 0 auto;
  border-radius: 4px;
}

/* 5. Bento Grid Section */
.nosotros-section {
  position: relative;
  background-image: url('images/about_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  border-top: 1px solid rgba(74, 143, 106, 0.15);
  border-bottom: 1px solid rgba(74, 143, 106, 0.15);
  padding: 96px 0;
  width: 100%;
  scroll-margin-top: 72px;
}

.nosotros-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  margin-bottom: 48px;
  max-width: 700px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Base section-title font styles (position/display is set above with ::after) */
.section-title {
  font-family: var(--font-title);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 24px;
}

.bento-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.bento-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 40px rgba(212, 175, 55, 0.06), inset 0 1px 0 rgba(212, 175, 55, 0.1);
}

.card-history {
  grid-column: span 2;
  grid-row: span 2;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  justify-content: flex-start;
  gap: 24px;
}

.card-history h3 {
  font-family: var(--font-title);
  font-size: 1.75rem;
  color: var(--accent-gold);
}

.card-history p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.history-extra {
  font-size: 0.95rem;
  opacity: 0.8;
  border-left: 2px solid var(--accent-green);
  padding-left: 16px;
}

.card-metric {
  grid-column: span 1;
  grid-row: span 1;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 85%;
  align-self: center;
}

.metric-num {
  font-family: var(--font-title);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.metric-lbl {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.card-regions {
  grid-column: span 1;
  grid-row: span 1;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.card-regions-logo {
  height: 3.5rem;
  width: auto;
  display: block;
  margin-bottom: 4px;
}

.card-regions h4 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  margin: 4px 0 8px 0;
}

.card-regions p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.card-visual-triple {
  grid-column: span 3;
  grid-row: span 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card-visual-triple .visual-container {
  height: 100%;
}

/* Bento Triple Parallax Prep (#8) */
.card-visual-triple .visual-container {
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-visual-triple .visual-container:nth-child(1) { --parallax-speed: 0.03; }
.card-visual-triple .visual-container:nth-child(2) { --parallax-speed: 0.06; }
.card-visual-triple .visual-container:nth-child(3) { --parallax-speed: 0.09; }

/* 6. Sostenibilidad Section */
.sostenibilidad-section {
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F5F3 100%);
  border-top: 1px solid #E4E4E1;
  border-bottom: 1px solid #E4E4E1;
  padding: 96px 0;
  scroll-margin-top: 72px;
}

.sostenibilidad-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.sostenibilidad-content .section-title {
  color: #1A1A1A;
}

.sostenibilidad-content p {
  color: #4A4A48;
  font-size: 1.1rem;
  margin: 20px 0 32px 0;
}

.benefit-tag {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: #FFFFFF;
  border-radius: var(--border-radius-md);
  border-left: 4px solid #006847;
  border-top: 1px solid #E4E4E1;
  border-right: 1px solid #E4E4E1;
  border-bottom: 1px solid #E4E4E1;
}

.benefit-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
}

.benefit-tag p {
  font-size: 0.95rem;
  margin: 0;
  color: #1A1A1A;
}

.sostenibilidad-visual .visual-container {
  aspect-ratio: 16 / 10;
  border: none;
  box-shadow: none;
}

/* 7. Proceso (Timeline Modular) */
.proceso-section {
  position: relative;
  background-image: linear-gradient(rgba(10, 10, 9, 0.75), rgba(10, 10, 9, 0.55)), url('images/quality_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  border-top: 1px solid rgba(74, 143, 106, 0.15);
  border-bottom: 1px solid rgba(74, 143, 106, 0.15);
  padding: 96px 0;
  width: 100%;
  scroll-margin-top: 72px;
}

.proceso-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

.proceso-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.proceso-minicard {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  padding: 24px 28px;
  position: relative;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.proceso-minicard:hover {
  border-color: var(--accent-gold);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.proceso-minicard h4 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: var(--text-primary);
  margin: 0;
}

.proceso-minicard p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* 8. Productos Grid */
.productos-section {
  position: relative;
  background: linear-gradient(135deg, #090E0B 0%, #122118 50%, #060907 100%);
  border-top: 1px solid rgba(74, 143, 106, 0.15);
  border-bottom: 1px solid rgba(74, 143, 106, 0.15);
  padding: 96px 0;
  width: 100%;
  scroll-margin-top: 72px;
}

.productos-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.product-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  overflow: visible;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  margin-bottom: 48px;
}

.product-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.product-card.highlighted {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.05);
}

.product-visual {
  aspect-ratio: 16 / 10;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  border-top-left-radius: calc(var(--border-radius-lg) - 1px);
  border-top-right-radius: calc(var(--border-radius-lg) - 1px);
}

.product-tag-pill {
  align-self: center;
  position: relative;
  z-index: 10;
  margin-top: -17px;
  margin-bottom: -10px;
  display: inline-block;
  padding: 6px 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-green-light);
  background-color: var(--bg-tertiary);
  border: 1px solid rgba(74, 143, 106, 0.4);
  border-radius: 100px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.product-info {
  padding: 32px 32px 48px 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
  align-items: center;
}

.product-card h3 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.product-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 12px;
  flex-grow: 1;
}

.btn-product-action {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  white-space: nowrap;
  padding: 12px 28px;
  font-size: 0.85rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.product-card:hover .btn-product-action {
  background-color: var(--accent-gold-hover);
  border-color: var(--accent-gold-hover);
  color: var(--bg-primary);
  transform: translate(-50%, 50%) scale(1.03);
  box-shadow: 0 10px 20px rgba(210, 174, 109, 0.35);
}

/* 9. Footer (#6 enriched) */
.footer {
  background-color: #FFFFFF;
  border-top: 1px solid #E4E4E1;
  padding: 64px 0 32px 0;
  position: relative;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 48px;
}

.footer-brand {
  max-width: 350px;
}

.footer-brand h2 {
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-brand h2 span {
  color: var(--accent-gold);
}

.footer-brand p {
  color: #4A4A48;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-brand .footer-tagline {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #888886;
  font-style: italic;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-links h4 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: #1A1A1A;
}

.footer-links a, .footer-links p {
  display: block;
  color: #4A4A48;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 8px;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--accent-coffee);
  transform: translateX(3px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 48px auto 0 auto;
  padding: 24px 24px 0 24px;
  border-top: 1px solid #E4E4E1;
  text-align: center;
  color: #888886;
  font-size: 0.8rem;
}

/* 10. Responsive Breakpoints */
@media (max-width: 1199px) {
  .hero-container {
    gap: 32px;
  }
  .hero-title {
    font-size: 3rem;
  }
  .bento-grid {
    grid-auto-rows: 200px;
  }
}

@media (max-width: 991px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(180px, auto);
  }
  .card-history {
    grid-column: span 2;
    grid-row: span 2;
  }
  .card-visual-triple {
    grid-column: span 2;
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }
  .sostenibilidad-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .proceso-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .menu-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background: var(--bg-primary);
    flex-direction: column;
    padding: 48px 24px;
    gap: 24px;
    transform: translateY(-120%);
    transition: var(--transition-smooth);
  }
  .nav-menu.active {
    transform: translateY(0);
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .card-history {
    grid-column: span 1;
    grid-row: span 1;
  }
  .card-visual-triple {
    grid-column: span 1;
    grid-template-columns: 1fr;
    grid-auto-rows: 180px;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .btn-secondary {
    margin-left: 0;
  }
}

/* 9. Contacto Section */
.contacto-section {
  padding: 96px 0;
  width: 100%;
  scroll-margin-top: 72px;
}

.contacto-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  margin-top: 48px;
  align-items: start;
}

.contacto-form-container {
  background-color: #FFFFFF;
  border: none;
  border-radius: var(--border-radius-lg);
  padding: 48px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row-split {
  display: flex;
  gap: 16px;
  width: 100%;
}

.col-60 {
  flex: 0 0 calc(60% - 8px);
  width: calc(60% - 8px);
}

.col-40 {
  flex: 0 0 calc(40% - 8px);
  width: calc(40% - 8px);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.form-group label {
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-green);
}

.form-group input,
.form-group textarea {
  background-color: #F8F8F7;
  border: 1px solid #D8D8D5;
  border-radius: var(--border-radius-sm);
  padding: 10px 14px;
  color: #1A1A1A;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 10px rgba(46, 90, 68, 0.15);
  background-color: #FFFFFF;
}

.btn-submit {
  width: 100%;
  margin-top: 12px;
}

.contacto-info-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.info-card {
  background-color: #FFFFFF;
  border: none;
  border-radius: var(--border-radius-lg);
  padding: 42px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.info-item {
  display: flex;
  gap: 20px;
  text-align: left;
}

.info-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.info-item h4 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: #1A1A1A;
}

.info-item p {
  color: #4A4A48;
}

.info-item a {
  color: var(--accent-green);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.info-item a:hover {
  color: var(--accent-coffee);
}

.redes-sociales {
  text-align: center;
}

.redes-sociales h4 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.info-icon-svg {
  width: 28px;
  height: 28px;
  display: block;
}

.social-links a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #FFFFFF;
  border: 1px solid #E4E4E1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4A4A48;
  transition: var(--transition-smooth);
}

.social-links a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Social Brand Colors on Hover (#7) */
.social-links a[aria-label='Instagram']:hover {
  background: linear-gradient(135deg, #833AB4, #E1306C, #F77737);
  border-color: transparent;
  color: #FFFFFF;
}

.social-links a[aria-label='LinkedIn']:hover {
  background-color: #0A66C2;
  border-color: transparent;
  color: #FFFFFF;
}

.social-links a[aria-label='Facebook']:hover {
  background-color: #1877F2;
  border-color: transparent;
  color: #FFFFFF;
}

.social-links a[aria-label='YouTube']:hover {
  background-color: #FF0000;
  border-color: transparent;
  color: #FFFFFF;
}

.social-icon {
  width: 20px;
  height: 20px;
}

/* Counter Animation (#5) */
@keyframes count-up-glow {
  0% { opacity: 0.5; text-shadow: none; }
  50% { opacity: 1; text-shadow: 0 0 20px rgba(212, 175, 55, 0.3); }
  100% { opacity: 1; text-shadow: none; }
}

.metric-num.counted {
  animation: count-up-glow 0.6s ease-out;
}

@media (max-width: 991px) {
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 767px) {
  .form-row-split {
    flex-direction: column;
    gap: 20px;
  }
  .col-60, .col-40 {
    flex: 0 0 100%;
    width: 100%;
  }
}
