/*
Theme Name: La Productiva Agropecuaria
Theme URI: https://laproductivaagropecuaria.com
Author: La Productiva Agropecuaria, C.A.
Author URI: https://laproductivaagropecuaria.com
Description: Theme institucional de una sola página (landing) para La Productiva Agropecuaria, C.A. Incluye secciones de Inicio, Productos/Catálogo, Exportación y Contacto, con selector de idioma Español/Inglés y formulario de contacto funcional vía wp_mail().
Version: 1.0
Requires at least: 5.8
Requires PHP: 7.4
Text Domain: la-productiva
*/

:root {
  --forest: #196139;
  --forest-dark: #0f4527;
  --gold: #E9AB3E;
  --cream: #FEF6DF;
  --offwhite: #FAF6EA;
  --charcoal: #2A2A2A;
  --gray: #6B6B6B;
  --white: #FFFFFF;
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: Calibri, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
}

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

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

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

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--forest);
  margin: 0 0 16px;
}

h2.section-title {
  font-size: 34px;
  text-align: center;
  margin-bottom: 8px;
}

.section-kicker {
  text-align: center;
  color: var(--gold);
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--gray);
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 17px;
}

section { padding: 80px 0; }

/* ---------- Language toggle ----------
   Every bilingual string in this theme is wrapped in <span data-lang="es|en">.
   These rules use !important because several component classes below
   (.tag, .footer-cols span, etc.) set their own `display` value — without
   !important those rules would win the cascade and show both languages
   at once. Keep !important here; do not remove it when editing styles. */
span[data-lang] { display: none !important; }
html[lang="es"] span[data-lang="es"] { display: inline !important; }
html[lang="en"] span[data-lang="en"] { display: inline !important; }
html[lang="es"] .tag[data-lang="es"] { display: inline-block !important; }
html[lang="en"] .tag[data-lang="en"] { display: inline-block !important; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid #e8dfc4;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-header .brand img {
  height: 56px;
  width: auto;
}
.site-header .brand-name {
  font-family: var(--font-heading);
  font-weight: bold;
  color: var(--forest);
  font-size: 18px;
  line-height: 1.2;
}
.site-header .brand-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: normal;
  color: var(--gray);
  font-size: 11px;
  letter-spacing: 1px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--charcoal);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--gold); color: var(--forest); }

.lang-switch {
  display: flex;
  gap: 6px;
  border: 1px solid var(--forest);
  border-radius: 20px;
  overflow: hidden;
}
.lang-switch button {
  border: none;
  background: transparent;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  color: var(--forest);
  font-family: var(--font-body);
}
.lang-switch button.active {
  background: var(--forest);
  color: var(--cream);
}
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle {
    display: inline-block;
    background: none;
    border: 1px solid var(--forest);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    color: var(--forest);
  }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 16px 24px;
    border-bottom: 1px solid #e8dfc4;
    gap: 16px;
  }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-dark) 100%);
  color: var(--cream);
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  color: var(--gold);
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 16px;
}
.hero h1 {
  color: var(--white);
  font-size: 44px;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero p.lead {
  font-size: 18px;
  color: var(--cream);
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--charcoal); }
.btn-outline { background: transparent; color: var(--cream); border-color: var(--cream); }
.hero-card {
  background: var(--cream);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.hero-card img { width: 100%; height: auto; border-radius: 10px; }
.hero-card p {
  color: var(--charcoal);
  font-size: 14px;
  margin-top: 16px;
  text-align: center;
  font-style: italic;
}

/* ---------- Quienes somos ---------- */
.about {
  background: var(--offwhite);
}
.about .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.about .card {
  background: var(--white);
  border: 1px solid #eee0c0;
  border-radius: 10px;
  padding: 28px;
  text-align: center;
}
.about .card .icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin: 0 auto 16px;
}
.about .card h3 { font-size: 18px; color: var(--forest); margin-bottom: 8px; }
.about .card p { font-size: 14.5px; color: var(--gray); margin: 0; }

.about-facts {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 56px;
  flex-wrap: wrap;
  text-align: center;
}
.about-facts .fact strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--forest);
}
.about-facts .fact span { color: var(--gray); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Productos ---------- */
.products .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.product-card {
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s ease;
}
.product-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
.product-card .swatch {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 40px;
}
.product-card .body { padding: 24px; }
.product-card h3 { font-size: 19px; margin-bottom: 8px; }
.product-card p { font-size: 14.5px; color: var(--gray); margin: 0 0 14px; }
.product-card ul { padding-left: 18px; margin: 0; font-size: 13.5px; color: var(--charcoal); }
.product-card ul li { margin-bottom: 4px; }
.tag {
  display: inline-block;
  background: var(--cream);
  color: var(--forest);
  font-size: 11px;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: .5px;
}

/* ---------- Exportacion ---------- */
.export { background: var(--offwhite); }
.export .steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.step {
  background: var(--white);
  border-radius: 10px;
  padding: 26px 22px;
  border-top: 4px solid var(--gold);
  position: relative;
}
.step .num {
  font-family: var(--font-heading);
  font-size: 34px;
  color: var(--gold);
  margin-bottom: 10px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; color: var(--forest); }
.step p { font-size: 14px; color: var(--gray); margin: 0; }

.export-note {
  margin-top: 48px;
  background: var(--forest);
  color: var(--cream);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: center;
}
.export-note .icon { font-size: 34px; }
.export-note p { margin: 0; font-size: 15px; }
.export-note strong { color: var(--gold); }

/* ---------- Contacto ---------- */
.contact .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}
.contact-info .item {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}
.contact-info .item .ic {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--forest);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-weight: bold;
}
.contact-info .item h4 { margin: 0 0 4px; font-size: 15px; color: var(--forest); }
.contact-info .item p { margin: 0; font-size: 14.5px; color: var(--gray); }

.contact-form {
  background: var(--offwhite);
  border-radius: 12px;
  padding: 32px;
  border: 1px solid #eee0c0;
}
.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: bold;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8cfae;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 14.5px;
  margin-bottom: 18px;
  background: var(--white);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button {
  border: none;
  background: var(--forest);
  color: var(--cream);
  padding: 14px 30px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
}
.contact-form button:hover { background: var(--forest-dark); }
.form-msg {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 18px;
}
.form-msg.success { background: #e4f3e9; color: var(--forest); border: 1px solid #bfe3cc; }
.form-msg.error { background: #fbeaea; color: #a13030; border: 1px solid #f0c6c6; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: #cfcfcf;
  padding: 48px 0 24px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}
.site-footer .brand-name { color: var(--white); font-family: var(--font-heading); font-size: 17px; margin-bottom: 6px; }
.site-footer p { font-size: 13.5px; color: #a9a9a9; max-width: 320px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-cols h4 { color: var(--gold); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.footer-cols a, .footer-cols span { display: block; font-size: 14px; color: #cfcfcf; margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid #444;
  margin-top: 36px;
  padding-top: 20px;
  text-align: center;
  font-size: 12.5px;
  color: #888;
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .about .grid, .products .grid { grid-template-columns: 1fr 1fr; }
  .export .steps { grid-template-columns: 1fr 1fr; }
  .contact .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .about .grid, .products .grid, .export .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  section { padding: 56px 0; }
}
