/* Leggumbres La Escoba - Cosecha Orgánica Agro Style */
:root {
  --primary-color: #2e7d32;
  --primary-dark: #1b5e20;
  --lime-accent: #4caf50;
  --lime-light: #e8f5e9;
  --bg-agro: #f8faf6;
  --card-bg: #ffffff;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --radius: 16px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--bg-agro);
  color: var(--text-dark);
  line-height: 1.6;
}

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

/* Navbar */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-dark);
}

.logo-icon { font-size: 2.2rem; }
.brand-name { font-size: 1.35rem; font-weight: 800; color: var(--primary-dark); letter-spacing: -0.5px; }
.brand-sub { font-size: 0.65rem; letter-spacing: 2px; color: var(--text-muted); display: block; font-weight: 700; }

.nav-menu { display: flex; gap: 24px; }
.nav-link { text-decoration: none; color: var(--text-dark); font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--primary-color); }

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

.cart-btn {
  background: var(--lime-light);
  border: 1px solid #c8e6c9;
  color: var(--primary-dark);
  padding: 10px 20px;
  border-radius: 24px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cart-btn:hover {
  background: #c8e6c9;
}

.cart-count {
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  padding: 2px 8px;
  font-size: 0.8rem;
  margin-left: 6px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary { background: var(--primary-color); color: #fff; box-shadow: 0 4px 14px rgba(46, 125, 50, 0.25); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

.btn-outline { background: transparent; border: 2px solid var(--primary-color); color: var(--primary-color); }
.btn-outline:hover { background: var(--primary-color); color: #fff; }

.btn-outline-danger { background: transparent; border: 2px solid #d32f2f; color: #d32f2f; }
.btn-outline-danger:hover { background: #d32f2f; color: #fff; }

.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; text-align: center; }

/* Views */
.view-section { display: none; }
.view-section.active { display: block; }

.section-padding { padding: 80px 0; }
.bg-light { background: #ffffff; }

.section-title { margin-bottom: 48px; }
.section-title h2 { font-size: 2.5rem; font-weight: 800; color: var(--primary-dark); letter-spacing: -0.5px; }
.section-title p { color: var(--text-muted); font-size: 1.1rem; }
.text-center { text-align: center; }

/* Grid Layouts */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .nav-menu { display: none; }
}

/* Cards */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  padding: 32px;
  box-shadow: var(--shadow);
}

/* Hero */
.hero-section {
  background: linear-gradient(180deg, #e8f5e9 0%, #f8faf6 100%);
  padding: 90px 0 110px 0;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
}

.hero-badge {
  background: #c8e6c9;
  color: var(--primary-dark);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 24px;
}

.hero-text h1 { font-size: 3.2rem; font-weight: 800; line-height: 1.2; margin-bottom: 24px; color: var(--primary-dark); letter-spacing: -1px; }
.hero-text p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 36px; max-width: 600px; }
.hero-buttons { display: flex; gap: 18px; flex-wrap: wrap; }
.hero-image img { width: 100%; border-radius: var(--radius); box-shadow: 0 12px 30px rgba(0,0,0,0.1); object-fit: cover; max-height: 380px; }

/* Steps Seed to Kitchen */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card { background: #ffffff; padding: 32px; border-radius: var(--radius); border: 1px solid var(--border-color); text-align: center; }
.step-num { background: var(--primary-color); color: #fff; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; margin: 0 auto 20px auto; font-size: 1.2rem; }

/* Farmers Grid */
.farmers-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.farmer-card { display: flex; gap: 20px; align-items: center; padding: 24px; }
.farmer-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid #c8e6c9; }
.farmer-info h3 { font-size: 1.2rem; color: var(--primary-dark); font-weight: 700; margin-bottom: 4px; }
.farmer-info p { font-size: 0.9rem; color: var(--text-muted); margin-top: 8px; font-style: italic; }

/* Catalog Header & Filters */
.catalog-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; flex-wrap: wrap; gap: 16px; }
.catalog-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-chip {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.filter-chip.active, .filter-chip:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

/* Product Cards */
.prod-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--border-color);
}
.prod-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(46, 125, 50, 0.12);
}
.prod-img-wrapper {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #f1f5f9;
}
.prod-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.prod-card:hover .prod-img-wrapper img {
  transform: scale(1.05);
}
.prod-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-dark);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.prod-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.prod-body h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.prod-origin {
  font-size: 0.8rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 8px;
}
.prod-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
  line-height: 1.4;
}
.prod-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
}
.prod-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-dark);
}

/* Modals */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-card { background: #fff; border-radius: var(--radius); width: 100%; max-width: 560px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); overflow: hidden; }
.modal-sm { max-width: 420px; }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 28px; max-height: 75vh; overflow-y.auto; }
.modal-footer { padding: 20px 24px; border-top: 1px solid var(--border-color); background: #f9f9f9; display: flex; justify-content: flex-end; gap: 12px; }
.close-btn { background: none; border: none; font-size: 1.8rem; cursor: pointer; }
.hidden { display: none !important; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; border-radius: 8px; border: 1px solid var(--border-color); font-size: 0.95rem; }

/* Badges */
.badge { display: inline-block; padding: 6px 12px; border-radius: 14px; font-size: 0.75rem; font-weight: 700; }
.badge-success { background: var(--lime-light); color: var(--primary-dark); }
.badge-warning { background: #fff3e0; color: #ef6c00; }
.badge-info { background: #e3f2fd; color: #1565c0; }

/* PQRS & Success */
.pqrs-box { max-width: 720px; margin: 0 auto; }
.radicado-box { background: var(--lime-light); padding: 20px; border-radius: 8px; margin: 24px 0; text-align: center; }
.radicado-box strong { display: block; font-size: 1.8rem; color: var(--primary-dark); }
.success-icon { font-size: 3.5rem; margin-bottom: 16px; }

/* Footer */
.footer { background: #1b5e20; padding: 48px 0; color: #e8f5e9; }
.footer-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
