/* ============================================================
   PRIMAN AGRICULTURE — Sistema de Diseño Moderno
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&display=swap');

:root {
  --primary: #2C3E2B;
  --primary-light: #3D543C;
  --primary-dark: #1B291A;
  --accent: #C8A261;
  --accent-hover: #B58F4E;
  --bg-light: #F9F8F3;
  --bg-card: #FFFFFF;
  --text-dark: #1C211B;
  --text-muted: #5A6359;
  --border-light: rgba(44, 62, 43, 0.1);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(249, 248, 243, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 700;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}

.btn-nav {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: 30px;
  font-weight: 600 !important;
}

.btn-nav::after { display: none !important; }
.btn-nav:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 62, 43, 0.2);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background-color: var(--primary-dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(200, 162, 97, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background-color: #FFFFFF;
  color: var(--primary-dark);
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-dark {
  background-color: var(--primary);
  color: #FFFFFF;
}

.btn-dark:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(44, 62, 43, 0.25);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #FFFFFF;
  padding: 100px 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27, 41, 26, 0.88) 0%, rgba(27, 41, 26, 0.6) 60%, rgba(0, 0, 0, 0.4) 100%);
}

.hero .container {
  position: relative;
  z-index: 2;
}

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

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  line-height: 1.12;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.hero-lede {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 36px;
  max-width: 540px;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Glass Stat Cards */
.hero-stats {
  display: grid;
  gap: 16px;
}

.stat-card-glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 24px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.stat-card-glass:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(6px);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

/* Section Styling */
section {
  padding: 96px 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px auto;
}

.section-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  color: var(--primary-dark);
  margin-top: 10px;
  line-height: 1.2;
}

.section-head p.subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 14px;
}

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

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

.card-modern {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.card-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card-modern:hover .card-img-wrapper img {
  transform: scale(1.08);
}

.card-body {
  padding: 28px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}

.card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Feature Band / Stats */
.stats-band {
  background: var(--primary-dark);
  color: #FFFFFF;
  padding: 70px 0;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stats-grid .stat-num {
  font-size: 2.2rem;
  color: var(--accent);
}

.stats-grid .stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 8px;
}

/* Process Steps */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-card {
  background: var(--bg-card);
  padding: 32px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition);
}

.process-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.process-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(200, 162, 97, 0.3);
  position: absolute;
  top: 20px;
  right: 24px;
  line-height: 1;
}

.process-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.process-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Banner CTA */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #FFFFFF;
  padding: 80px 0;
  border-radius: 20px;
  margin: 40px auto;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #FFFFFF;
  max-width: 600px;
}

/* Contact Page Layout */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}

.contact-card-box {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.form-group {
  margin-bottom: 22px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

input, select, textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid rgba(44, 62, 43, 0.18);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  background-color: var(--bg-light);
  color: var(--text-dark);
  transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(200, 162, 97, 0.15);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

.info-list {
  list-style: none;
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.info-icon {
  width: 44px;
  height: 44px;
  background: rgba(200, 162, 97, 0.15);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.info-content h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.info-content p, .info-content a {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--primary-dark);
}

/* Map Mock Block */
.map-block {
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background-image: url('https://images.unsplash.com/photo-1524661135-423995f22d0b?auto=format&fit=crop&w=800&q=80');
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-light);
  margin-top: 24px;
}

.map-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 41, 26, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 70px 0 30px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 12px;
}

.footer-col a {
  transition: var(--transition);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid, .contact-wrapper { grid-template-columns: 1fr; }
  .grid-4, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--bg-light);
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow-md);
    clip-path: circle(0% at 100% 0);
    transition: clip-path 0.4s ease-in-out;
  }
  .nav-links.open {
    clip-path: circle(140% at 100% 0);
  }
  .grid-4, .process-grid, .stats-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; text-align: center; }
}

/* ============================================================
   Phase Pages & Linkable Cards
   ============================================================ */

.card-link {
  text-decoration: none;
  color: inherit;
}

.phase-content {
  padding: 80px 0 40px;
}

.phase-content section,
.phase-intro,
.phase-steps,
.phase-crops {
  margin-bottom: 64px;
}

.phase-intro h2,
.phase-steps h2,
.phase-crops h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.phase-intro p {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.7;
  max-width: 820px;
}

.phase-navigation {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid var(--border-light);
}

.phase-navigation .btn-outline {
  color: var(--primary-dark);
  border-color: var(--border-light);
}

.phase-navigation .btn-outline:hover {
  background-color: var(--primary-dark);
  color: #fff;
  border-color: var(--primary-dark);
}

@media (max-width: 768px) {
  .phase-navigation {
    flex-direction: column;
  }
  .phase-navigation .btn {
    width: 100%;
  }
}
/* Convenio destacado en Fase 03 */
.agreement-card {
  max-width: 820px;
}

.agreement-card .card-img-wrapper {
  height: 300px;
}

.agreement-link-text {
  display: inline-block;
  margin-top: auto;
  padding-top: 18px;
  font-weight: 700;
  color: var(--accent);
}

@media (max-width: 768px) {
  .agreement-card .card-img-wrapper {
    height: 220px;
  }
}

