/*
Theme Name: ECOPAMPA
Author: ECOPAMPA
Description: Sitio institucional B2B bilingue con panel de contenido y cotizaciones.
Version: 1.1.0
Requires PHP: 7.4
Text Domain: ecopampa
*/
:root {
  --ink: #10231d;
  --muted-ink: #5e6a64;
  --green: #244d35;
  --green-soft: #dfe8df;
  --wheat: #d8b46f;
  --cream: #f7f3ea;
  --clay: #a35d3a;
  --navy: #17324a;
  --white: #ffffff;
  --line: rgba(16, 35, 29, 0.14);
  --shadow: 0 24px 60px rgba(15, 34, 28, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 54px);
  background: rgba(247, 243, 234, 0.9);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 12px 30px rgba(16, 35, 29, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 188px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(135deg, var(--green), var(--navy));
  border-radius: 50%;
  box-shadow: 0 10px 18px rgba(16, 35, 29, 0.18);
}

.brand strong {
  display: block;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--muted-ink);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  font-size: 14px;
  color: #1c332b;
}

.site-nav a {
  white-space: nowrap;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 750;
}

.nav-cta,
.button.primary {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 12px 28px rgba(36, 77, 53, 0.22);
}

.button.ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.lang-toggle,
.menu-toggle {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  cursor: pointer;
}

.lang-toggle {
  min-width: 46px;
  height: 38px;
  border-radius: 6px;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 6px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 118px clamp(18px, 6vw, 80px) 64px;
}

.hero-img,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-img {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(16, 35, 29, 0.92) 0%, rgba(16, 35, 29, 0.72) 37%, rgba(16, 35, 29, 0.12) 78%),
    linear-gradient(0deg, rgba(16, 35, 29, 0.24), rgba(16, 35, 29, 0.08));
}

.hero-content {
  position: relative;
  max-width: 760px;
  color: var(--white);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--wheat);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-strip div {
  min-height: 148px;
  padding: 30px clamp(18px, 3vw, 38px);
  background: var(--white);
}

.intro-strip strong {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 20px;
}

.intro-strip span {
  color: var(--muted-ink);
  line-height: 1.5;
}

.section {
  padding: clamp(72px, 10vw, 128px) clamp(18px, 6vw, 80px);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(300px, 1.15fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: start;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

p {
  line-height: 1.65;
}

.text-stack p,
.section-heading p,
.quote-copy p,
.contact-section > div > p {
  color: var(--muted-ink);
  font-size: 18px;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.facts-grid article,
.brand-grid article,
.product-panel,
.service-list article,
.contact-cards article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.facts-grid article {
  padding: 22px;
}

.facts-grid span {
  color: var(--clay);
  font-weight: 850;
}

.facts-grid strong {
  display: block;
  margin-top: 8px;
}

.facts-grid p {
  margin-bottom: 0;
  color: var(--muted-ink);
  font-size: 14px;
}

.muted {
  background: #edf1e7;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 34px;
}

.section-heading.compact {
  max-width: 760px;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.brand-grid article {
  min-height: 245px;
  padding: 28px;
  background: var(--white);
  box-shadow: 0 16px 36px rgba(16, 35, 29, 0.08);
}

.brand-chip {
  display: inline-flex;
  margin-bottom: 36px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 850;
}

.brand-grid p,
.product-panel p,
.service-list p {
  color: var(--muted-ink);
}

.product-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.product-panel {
  min-height: 186px;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(216, 180, 111, 0.18), rgba(255, 255, 255, 0.72)),
    var(--white);
}

.split-band {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(300px, 0.9fr);
  gap: clamp(32px, 7vw, 88px);
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--navy));
}

.split-band p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.process-list {
  display: grid;
  gap: 12px;
}

.process-list div {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.process-list span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--wheat);
  font-weight: 850;
}

.process-list p {
  margin: 0;
}

.service-list {
  display: grid;
  gap: 14px;
}

.service-list article {
  padding: 24px;
  background: var(--white);
}

.quote-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(32px, 7vw, 90px);
  align-items: start;
  padding: clamp(72px, 10vw, 128px) clamp(18px, 6vw, 80px);
  background:
    linear-gradient(90deg, rgba(247, 243, 234, 0.95), rgba(247, 243, 234, 0.78)),
    radial-gradient(circle at 85% 20%, rgba(216, 180, 111, 0.34), transparent 32%);
}

.form-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  font-weight: 760;
}

label.full,
.form-note,
.form-card .button.full {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(16, 35, 29, 0.22);
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fbfaf6;
  font: inherit;
}

textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--muted-ink);
  font-size: 14px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(32px, 7vw, 90px);
  background: var(--white);
}

.contact-cards {
  display: grid;
  gap: 14px;
}

.contact-cards article {
  padding: 22px;
  background: var(--cream);
}

.contact-cards span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-ink);
  font-size: 14px;
}

.contact-cards a {
  color: var(--green);
  font-size: 20px;
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 6vw, 80px);
  color: rgba(255, 255, 255, 0.82);
  background: #10231d;
}

.site-footer p {
  margin: 0;
  font-weight: 850;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 1020px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    inset: 72px 18px auto 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(247, 243, 234, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a,
  .site-nav button {
    width: 100%;
  }

  .intro-strip,
  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-col,
  .split-band,
  .quote-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .facts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 86svh;
    padding-top: 104px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(16, 35, 29, 0.92), rgba(16, 35, 29, 0.68));
  }

  .intro-strip,
  .brand-grid,
  .product-layout,
  .form-card {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

.lang-toggle { display:inline-flex; align-items:center; justify-content:center; }
.ecopampa-honeypot { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.form-status { grid-column:1/-1; padding:12px; border:1px solid var(--green); }
body.admin-bar .site-header { top:32px; }
section[id] { scroll-margin-top:96px; }
.contact-cards a { overflow-wrap:anywhere; }
@media(max-width:1250px) and (min-width:1021px) { .site-nav { gap:10px; font-size:12px; } .site-header { gap:12px; padding-left:18px; padding-right:18px; } }
@media(max-width:782px) { body.admin-bar .site-header { top:46px; } }
@media(max-width:600px) { body.admin-bar .site-header { position:absolute; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }

.whatsapp-contact { position:fixed; right:24px; bottom:24px; z-index:19; min-height:48px; display:inline-flex; align-items:center; justify-content:center; padding:0 20px; color:#fff; background:#157b40; border:1px solid rgba(255,255,255,.5); border-radius:8px; box-shadow:0 4px 18px rgba(0,0,0,.2); font-size:16px; font-weight:750; }
.whatsapp-contact:hover { background:#116433; }
.whatsapp-contact:focus-visible { outline:3px solid var(--wheat); outline-offset:3px; }
.site-footer { padding-bottom:96px; }
@media(max-width:680px) { .whatsapp-contact { right:16px; bottom:calc(16px + env(safe-area-inset-bottom)); min-height:44px; padding:0 16px; } }
