/* =========================================================
   DON MODESTO — Hoja de estilos principal
   Tokens de marca extraídos del Manual de Marca
   ========================================================= */

:root {
  /* Color — paleta oficial de marca */
  --sol: #FFCC00;          /* Sol */
  --campo: #628C29;        /* Verde Campos */
  --florecer: #006838;     /* Verde Florecer */
  --florecer-dark: #04472a;
  --chancleta: #780303;    /* Chancleta */
  --crema: #FFFBEF;        /* fondo cálido tipo grano */
  --tierra: #2A1B12;       /* texto principal, marrón tierra */
  --tierra-suave: #5b4a3f;

  /* Tipografía */
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --max-w: 1180px;
  --radius: 18px;
  --shadow: 0 14px 34px rgba(42, 27, 18, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--tierra);
  background: var(--crema);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 0.5em;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--florecer-dark);
}

h1 { font-weight: 800; }
h2 { font-weight: 800; }
h3 { font-weight: 700; }

p { margin: 0 0 1em; color: var(--tierra-suave); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--florecer);
  background: rgba(98, 140, 41, 0.14);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.eyebrow.on-dark {
  color: var(--sol);
  background: rgba(255, 204, 0, 0.16);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--florecer);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 104, 56, 0.32);
}
.btn-primary:hover { background: var(--florecer-dark); }

.btn-sol {
  background: var(--sol);
  color: var(--tierra);
  box-shadow: 0 10px 24px rgba(255, 204, 0, 0.35);
}
.btn-sol:hover { background: #ffd933; }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--florecer);
  color: var(--florecer);
}
.btn-outline-dark:hover { background: rgba(0,104,56,0.08); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(98, 140, 41, 0.18);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--florecer-dark);
}
.brand img { height: 46px; width: auto; }

.main-nav ul {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--tierra);
  position: relative;
  padding: 6px 0;
}
.main-nav a.active { color: var(--florecer-dark); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  background: var(--sol);
  border-radius: 3px;
}
.main-nav a:hover { color: var(--florecer); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--florecer-dark);
  border-radius: 3px;
}

/* ---------- Grain pattern divider (firma visual) ---------- */
.grain-band {
  height: 46px;
  background-color: var(--campo);
  background-image: url('../assets/img/grain-pattern.svg');
  background-repeat: repeat;
  background-size: 140px;
}
.grain-band.dark { background-color: var(--florecer-dark); }
.grain-band.sol { background-color: var(--sol); }

/* ---------- Hero (página interior, banda corta) ---------- */
.page-hero {
  position: relative;
  padding: 120px 0 90px;
  color: #fff;
  background: linear-gradient(120deg, var(--florecer-dark) 0%, var(--campo) 100%);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
  opacity: 0.32;
  mix-blend-mode: luminosity;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4vw, 3rem); }
.page-hero p { color: rgba(255,255,255,0.88); max-width: 560px; font-size: 1.08rem; }

/* ---------- Hero principal (Inicio) ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: #1c2c12;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../assets/img/hero-arroz-mano.jpg') center 35%/cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(8,30,15,0.93) 0%, rgba(8,30,15,0.78) 32%, rgba(98,140,41,0.55) 62%, rgba(255,204,0,0.38) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 80px 0;
}
.hero-content .wordmark { height: 96px; margin-bottom: 26px; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.2vw, 3.6rem);
  margin-bottom: 14px;
}
.hero .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--sol);
  margin-bottom: 18px;
}
.hero p.lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  max-width: 480px;
}
.hero-ctas { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 86px 0; }
.section-tight { padding: 60px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }

.bg-crema { background: var(--crema); }
.bg-white { background: #fff; }
.bg-florecer { background: var(--florecer-dark); color: #fff; }
.bg-florecer h2, .bg-florecer h3 { color: #fff; }
.bg-florecer p { color: rgba(255,255,255,0.85); }
.bg-campo-grad {
  background: linear-gradient(135deg, var(--campo) 0%, var(--florecer-dark) 100%);
  color: #fff;
}
.bg-campo-grad h2, .bg-campo-grad h3 { color: #fff; }
.bg-campo-grad p { color: rgba(255,255,255,0.88); }

/* ---------- Historia / Intro (Inicio) ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.story-photo {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 50%;
  overflow: hidden;
  border: 9px solid var(--sol);
  box-shadow: var(--shadow);
  max-width: 420px;
}
.story-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Valores cards ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: 0 8px 24px rgba(42,27,18,0.08);
  border-top: 4px solid var(--sol);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.value-card .icon {
  width: 50px; height: 50px;
  margin-bottom: 18px;
}
.value-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.value-card p { font-size: 0.93rem; margin: 0; }

/* ---------- Producto teaser / cards ---------- */
.product-teaser {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.product-teaser img {
  max-height: 460px;
  margin: 0 auto;
  filter: drop-shadow(0 24px 30px rgba(0,0,0,0.35));
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}
.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(42,27,18,0.1);
  display: flex;
  flex-direction: column;
}
.product-card .product-img {
  background: linear-gradient(160deg, var(--crema), #f3ecd6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
  min-height: 320px;
}
.product-card .product-img img { max-height: 320px; width: auto; }
.product-card .product-body { padding: 30px 32px 34px; }
.product-card .tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--chancleta);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.product-card ul {
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
}
.product-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.94rem;
  color: var(--tierra-suave);
  margin-bottom: 10px;
}
.product-card li::before {
  content: "";
  flex-shrink: 0;
  width: 9px; height: 9px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--campo);
}

/* badges row */
.badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-top: 14px;
}
.badge-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid rgba(98,140,41,0.25);
  border-radius: 999px;
  padding: 10px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--florecer-dark);
}
.badge-pill svg { width: 22px; height: 22px; }

/* ---------- Quote / filosofía band ---------- */
.quote-band {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.quote-band p.big-quote {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: #fff;
  line-height: 1.4;
}

/* ---------- Equipo / legado (Nosotros) ---------- */
.legacy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 600px;
  margin: 0 auto;
}
.legacy-photo { text-align: center; }
.legacy-photo .ph {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  overflow: hidden;
  border: 7px solid var(--campo);
  margin-bottom: 14px;
}
.legacy-photo .ph img { width: 100%; height: 100%; object-fit: cover; }
.legacy-photo span {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--florecer-dark);
}

/* ---------- Pillars (Nosotros) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.pillar {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--crema);
  border: 1px solid rgba(98,140,41,0.2);
}
.pillar h3 { font-size: 1.1rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(110deg, var(--sol) 0%, #ffe066 100%);
  border-radius: 28px;
  padding: 56px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 6px; font-size: 1.7rem; }
.cta-band p { margin: 0; color: var(--tierra-suave); }

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}
.contact-info-card {
  background: var(--florecer-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
}
.contact-info-card h3 { color: var(--sol); font-size: 1.1rem; margin-bottom: 22px; }
.contact-info-card .row {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  align-items: flex-start;
}
.contact-info-card .row svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; color: var(--sol); }
.contact-info-card .row strong { display: block; font-family: var(--font-display); margin-bottom: 2px; }
.contact-info-card .row span, .contact-info-card .row a { color: rgba(255,255,255,0.82); font-size: 0.94rem; }
.social-row { display: flex; gap: 12px; margin-top: 28px; }
.social-row a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.social-row a:hover { background: var(--sol); color: var(--florecer-dark); }
.social-row svg { width: 18px; height: 18px; }

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 8px 26px rgba(42,27,18,0.08);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 7px;
  color: var(--florecer-dark);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(98,140,41,0.3);
  font-family: var(--font-body);
  font-size: 0.96rem;
  background: var(--crema);
  color: var(--tierra);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--florecer);
  box-shadow: 0 0 0 3px rgba(0,104,56,0.14);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note {
  font-size: 0.82rem;
  color: var(--tierra-suave);
  margin-top: 10px;
}
.form-success {
  display: none;
  background: rgba(98,140,41,0.14);
  border: 1px solid var(--campo);
  color: var(--florecer-dark);
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.92rem;
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 600;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 50px;
  box-shadow: 0 8px 26px rgba(42,27,18,0.1);
}
.map-wrap iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--florecer-dark);
  color: rgba(255,255,255,0.78);
  padding: 64px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 40px; }
.footer-brand span { font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 1.1rem; }
.site-footer h4 {
  color: var(--sol);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer p { color: rgba(255,255,255,0.68); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; font-size: 0.93rem; }
.site-footer a:hover { color: var(--sol); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .story-grid, .product-teaser, .contact-grid { grid-template-columns: 1fr; }
  .story-photo { margin: 0 auto; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav { position: fixed; top: 78px; left: 0; right: 0; background: var(--crema); flex-direction: column; padding: 10px 28px 26px; box-shadow: 0 14px 24px rgba(0,0,0,0.1); transform: translateY(-130%); opacity: 0; transition: all 0.25s ease; }
  .main-nav.open { transform: translateY(0); opacity: 1; }
  .main-nav ul { flex-direction: column; gap: 16px; }
  .nav-toggle { display: block; }
  .header-cta .btn-sol-desktop { display: none; }
  .values-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .legacy-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- WhatsApp link (contacto) ---------- */
.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 18px;
  background: #25D366;
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.02rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.whatsapp-link:hover { background: #1da851; transform: translateY(-2px); }
.whatsapp-link svg { width: 22px; height: 22px; }

/* ---------- Recuadro destacado salud / BIOL ---------- */
.highlight-box {
  background: var(--florecer);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px 32px;
  border-left: 6px solid var(--sol);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.highlight-box .eyebrow { color: var(--sol); background: rgba(255,255,255,0.12); }
.highlight-box h3 { color: #fff; font-size: 1.3rem; margin: 6px 0 12px; }
.highlight-box p { margin: 0; color: #fff; font-size: 1rem; line-height: 1.7; }
.highlight-box strong { color: var(--sol); font-weight: 700; }


/* ---------- WhatsApp por ciudad ---------- */
.whatsapp-block { margin-top: 6px; }
.wa-title { font-weight: 600; margin: 0 0 12px; color: inherit; }
.whatsapp-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.whatsapp-grid .whatsapp-link { margin-top: 0; }
.whatsapp-grid .whatsapp-link span { display: inline-flex; flex-direction: column; line-height: 1.15; }
.whatsapp-grid .whatsapp-link .wa-city { font-size: 0.78rem; font-weight: 700; opacity: 0.9; }
.wa-presence { margin: 16px 0 0; font-size: 0.92rem; opacity: 0.9; color: inherit; }
