/* ── SHARED STYLES — Coterra Agrobusiness ── */

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

:root {
  --cream: #F5F0E8;
  --cream-light: #FAF7F2;
  --green-dark: #1E3A2F;
  --green-mid: #2D5A3D;
  --green-accent: #3D7A50;
  --gold: #C9A84C;
  --gold-light: #E8C96A;
  --text-dark: #1A1A1A;
  --text-muted: #6B6B6B;
  --white: #FFFFFF;
  --card-bg: #FFFFFF;
  --border: rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ── ANIMATIONS ── */
@keyframes navIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  animation: navIn 0.6s ease forwards;
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 40px; width: auto; display: block; transition: opacity 0.3s, transform 0.3s; }
.nav-logo:hover img { opacity: 0.85; transform: scale(1.03); }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 400;
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--green-dark);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: right;
}
.nav-links a:hover { color: var(--green-dark); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.btn-primary {
  background: var(--green-dark);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 11px 22px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}
.btn-primary:hover {
  background: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30,58,47,0.3);
}
.btn-primary:active { transform: translateY(0); }

.btn-brochure {
  background: var(--green-dark);
  color: var(--white);
  text-decoration: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35);
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}
.btn-brochure:hover {
  background: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.55), 0 8px 24px rgba(30,58,47,0.25);
}
.btn-brochure:active { transform: translateY(0); }

/* ── MENÚ MÓVIL (oculto en escritorio) ── */
.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  margin-left: 12px;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px;
  height: 2px; background: var(--green-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile { display: none; }
.nav-mobile-brochure {
  margin-top: 16px;
  justify-content: center;
  background: var(--green-dark) !important;
  color: var(--white) !important;
  border-radius: 10px;
  padding: 14px 20px;
  text-align: center;
  border-bottom: none !important;
}

/* ── FOOTER ── */
.footer-new {
  background: var(--green-dark);
  padding: 0 48px;
}
.footer-new-inner { max-width: 1140px; margin: 0 auto; }
.footer-new-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1.4fr;
    gap: 60px;
    padding-top: 80px;
    padding-bottom: 48px;
    align-items: start;
}
.footer-new-logo { height: 56px; width: auto; display: block; }
.footer-new-heading {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-new-address-wrap { display: flex; gap: 24px; align-items: center; }
.footer-new-office-img {
  width: 200px; min-width: 200px; height: 200px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #2d5a3d 0%, #1e3a2f 100%);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.footer-new-office-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.footer-new-address-wrap p { font-size: 14px; line-height: 1.8; color: rgba(255,255,255,0.7); }
.footer-new-address-wrap p:first-child { color: var(--white); font-weight: 600; margin-bottom: 2px; }
.footer-new-maps-link {
  font-size: 12px; color: var(--gold); text-decoration: none;
  display: inline-block; margin-top: 6px; transition: color 0.3s;
}
.footer-new-maps-link:hover { color: var(--gold-light); }
.footer-new-phone {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 600; color: var(--white); margin-bottom: 28px;
}
.footer-new-socials { display: flex; gap: 12px; }
.social-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}
.social-btn:hover { background: rgba(255,255,255,0.2); transform: translateY(-3px); }
.footer-new-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.footer-new-bottom a {
  font-size: 12px; color: rgba(255,255,255,0.45); text-decoration: none;
  letter-spacing: 0.04em; transition: color 0.3s;
}
.footer-new-bottom a:hover { color: var(--white); }
.footer-new-bottom span { color: rgba(255,255,255,0.2); font-size: 12px; }

/* ── FIDEICOMISO (dentro del footer) ── */
.footer-fid {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #FAF7F2;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 32px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  text-align: center;
}
.footer-fid-text {
  font-size: 12px; line-height: 1.8; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--green-dark);
}
.footer-fid-text strong { color: var(--green-dark); font-weight: 700; margin-right: 14px; }
.footer-fid-text span { display: inline-block; }
.footer-fid-text span + span::before { content: '·'; color: var(--gold); margin: 0 12px; }
@media (max-width: 768px) {
  .footer-fid-text { font-size: 11px; letter-spacing: 0.04em; }
  .footer-fid-text span + span::before { margin-right: 10px; }
}

/* ── COMMON COMPONENTS ── */
.benefits-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 50px;
  padding: 7px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ── CONTACT CTA (footer form) ── */
.contact-cta {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
}
.contact-cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 60%, rgba(30,80,15,0.55) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 20%, rgba(15,60,10,0.45) 0%, transparent 50%),
    linear-gradient(150deg, #040d03 0%, #0a1e07 25%, #12290c 50%, #0f2009 75%, #061204 100%);
}
.contact-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.65) 100%);
}
.contact-cta-inner {
  position: relative; z-index: 1;
  max-width: 1140px; margin: 0 auto;
  padding: 80px 48px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}
.contact-cta-title {
  font-family: 'Montserrat', serif;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
  text-align: left;
}
.contact-cta-title em { 
  /* font-style: italic;  */
  color: var(--gold-light); 
}
.contact-cta-desc {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255,255,255,0.78);
  text-align: left;
  margin: 0 auto;
}
.contact-form { display: flex; flex-direction: column; gap: 0; }
.contact-form-row { display: grid; grid-template-columns: 1fr 1fr; }
.contact-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  padding: 16px 6px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: var(--white);
  outline: none;
  width: 100%;
  transition: border-color 0.3s;
}
.contact-input::placeholder { 
  color: rgba(255,255,255,0.5); 
  /* font-style: italic;  */
}
.contact-input:focus { border-bottom-color: var(--gold); }
.contact-phone-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  transition: border-color 0.3s;
}
.contact-phone-row:focus-within { border-bottom-color: var(--gold); }
.contact-phone-prefix {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  padding: 16px 8px 16px 6px;
  font-family: 'Roboto', sans-serif;
  white-space: nowrap;
}
.contact-input-phone { border: none; flex: 1; padding: 16px 6px; }
.btn-contact-submit {
  background: var(--gold);
  color: var(--text-dark);
  border: none;
  padding: 15px 40px;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  align-self: flex-start;
  margin-top: 32px;
  border-radius: 4px;
  transition: background 0.3s, transform 0.2s;
}
.btn-contact-submit:hover { background: var(--gold-light); transform: translateY(-2px); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  html, body { overflow-x: hidden; }
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .btn-brochure { display: none; }
  .nav-toggle { display: block; }
  nav.menu-open .nav-mobile { display: flex; }
  .nav-mobile {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: rgba(245, 240, 232, 0.98);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    padding: 8px 24px 24px;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .nav-mobile a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
  }
  .footer-new-address-wrap { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-new-office-img { width: 100%; min-width: 0; height: 200px; }
  .footer-fid { padding: 28px 24px; }
  .footer-new { padding: 48px 24px 0; }
  .footer-new-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-cta-inner { grid-template-columns: 1fr; gap: 40px; padding: 60px 24px; }
  .contact-form-row { grid-template-columns: 1fr; }
}
