/* ============================================
   Primare Ambiental — minimal · modern · slim
   ============================================ */

:root {
  /* palette */
  --ink: #0A1F14;
  --ink-2: #14301F;
  --green: #2D5F3F;
  --lime: #84CC16;
  --lime-2: #65A30D;
  --paper: #FAFAF7;
  --surface: #FFFFFF;
  --line: #E8E8E0;
  --muted: #6B7280;
  --text: #18221C;

  /* type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;

  /* spacing & radius */
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);

  /* motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); font-weight: 600; }
p { margin: 0; }
ul { padding: 0; margin: 0; list-style: none; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 999;
}
.skip:focus { left: 12px; top: 12px; }

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

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,250,247,.7);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(250,250,247,.85);
  border-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.brand__logo {
  display: block;
  height: 52px;
  width: auto;
}
.brand--light { color: #fff; }
.brand--light .brand__logo { height: 44px; }

.nav__panel {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: flex-end;
}
.nav__links {
  display: flex;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 500;
}
.nav__links a {
  color: var(--text);
  opacity: .8;
  transition: opacity .2s var(--ease);
}
.nav__links a:hover { opacity: 1; }

.nav__cta { display: flex; }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  width: 36px; height: 36px;
  padding: 0;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.nav__toggle span {
  width: 20px; height: 1.5px; background: var(--ink); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -.005em;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn--solid {
  background: var(--ink);
  color: var(--paper);
}
.btn--solid:hover { background: var(--ink-2); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); }
.btn--lg { padding: 14px 22px; font-size: 15px; }
.btn--block { width: 100%; justify-content: center; }

/* ============ HERO ============ */
.hero {
  padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 8vw, 96px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(closest-side, rgba(132,204,22,.18), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--green);
  padding: 6px 12px;
  background: rgba(45,95,63,.08);
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow--light {
  color: var(--lime);
  background: rgba(132,204,22,.12);
}
.hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.035em;
  color: var(--ink);
}
.hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--green);
  letter-spacing: -.02em;
}
.lead {
  margin-top: 22px;
  font-size: clamp(15.5px, 1.4vw, 18px);
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.55;
}
.hero__cta {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* hero visual */
.hero__visual { position: relative; }
.hero__card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(10,31,20,.4), 0 10px 30px -15px rgba(10,31,20,.25);
}
.hero__photo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,31,20,.15) 0%, rgba(10,31,20,.8) 100%),
    url("images/hero-transporte.jpg") center/cover;
  filter: saturate(.95);
}
.hero__badge {
  position: absolute;
  bottom: 20px; left: 20px; right: 20px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero__badge-row {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--green); font-weight: 600;
  margin-bottom: 4px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 0 4px rgba(132,204,22,.2);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(132,204,22,.2); }
  50% { box-shadow: 0 0 0 8px rgba(132,204,22,.05); }
}
.hero__badge strong { font-size: 18px; color: var(--ink); letter-spacing: -.015em; }
.hero__badge small { font-size: 12.5px; color: var(--muted); }

/* ============ STATS ============ */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
  background: var(--surface);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat strong {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.03em;
  line-height: 1;
}
.stat strong span { color: var(--lime); font-weight: 500; }
.stat > span:last-child {
  font-size: 13.5px;
  color: var(--muted);
}

/* ============ SECTIONS ============ */
.section {
  padding: clamp(64px, 9vw, 112px) 0;
}
.section--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark {
  background: var(--ink);
  color: rgba(255,255,255,.85);
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section__head {
  max-width: 700px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section__head h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600;
  letter-spacing: -.025em;
}

/* ============ CARDS ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -20px rgba(10,31,20,.18);
}
.card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(45,95,63,.08);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  letter-spacing: -.015em;
}
.card p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* ============ ABOUT ============ */
.about__grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.about__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
}
.about__photo {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 50%, rgba(10,31,20,.3)),
    url("https://images.unsplash.com/photo-1532601224476-15c79f2f7a51?auto=format&fit=crop&w=900&q=80") center/cover;
}
.about__sticker {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--lime);
  color: var(--ink);
  padding: 14px 18px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
  box-shadow: 0 10px 30px -10px rgba(132,204,22,.5);
}
.about__sticker small { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .15em; opacity: .7; }
.about__sticker strong { font-size: 28px; }

.about__copy h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  margin-bottom: 22px;
}
.about__copy p { color: var(--muted); margin-top: 14px; font-size: 16px; }
.about__copy strong { color: var(--ink); font-weight: 600; }

.about__list {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
  font-size: 14.5px;
}
.about__list li {
  display: flex; gap: 10px; align-items: center;
  color: var(--text);
}
.about__list span { color: var(--lime-2); font-weight: 700; }

/* ============ FEATURES ============ */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.feature:hover { border-color: var(--ink); transform: translateY(-3px); }
.feature__num {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--lime-2);
  display: block;
  margin-bottom: 18px;
  letter-spacing: -.02em;
}
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--muted); }

/* ============ CONTACT ============ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.section--dark .section__head h2 { color: #fff; }
.contact__copy h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  margin-bottom: 16px;
  color: #fff;
}
.contact__copy p { color: rgba(255,255,255,.7); }

.contact__info {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact__info li {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,.85); font-size: 15px;
}
.contact__info svg { color: var(--lime); flex-shrink: 0; }
.contact__info a:hover { color: var(--lime); }

/* form */
.contact__form {
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.field input, .field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
  padding: 10px 0;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  resize: none;
  transition: border-color .25s var(--ease);
  border-radius: 0;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.35); }
.field input:focus, .field textarea:focus {
  outline: 0;
  border-bottom-color: var(--lime);
}
.contact__form .btn--solid {
  background: var(--lime);
  color: var(--ink);
  margin-top: 4px;
}
.contact__form .btn--solid:hover { background: #9ae634; }
.form__hint {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  text-align: center;
}
.form__hint a { color: var(--lime); font-weight: 500; }

.is-success {
  text-align: center;
  font-size: 15px;
  color: var(--lime);
  padding: 24px 0;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: clamp(48px, 6vw, 72px) 0 28px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__brand p { margin-top: 14px; font-size: 14px; max-width: 26ch; }
.footer__col {
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px;
}
.footer__col h4 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.5);
  margin-bottom: 6px;
  font-weight: 500;
}
.footer__col a:hover, .footer__bottom a:hover { color: var(--lime); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  flex-wrap: wrap;
  gap: 16px;
}
.footer__social {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.7);
}

/* ============ FLOATING WHATSAPP ============ */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -6px rgba(37,211,102,.55);
  z-index: 40;
  transition: transform .25s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.05); }

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .nav__toggle { display: flex; }

  /* Backdrop over page content when menu is open */
  .nav::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(10, 31, 20, .45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease);
    z-index: -1;
  }
  .nav.is-open::before { opacity: 1; pointer-events: auto; }

  /* Mobile panel: hidden by default, slides down when open */
  .nav__panel {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 20px 40px -12px rgba(10, 31, 20, .25);
    padding: 8px var(--gutter) 20px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease);
  }
  .nav.is-open .nav__panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav__links {
    flex-direction: column;
    gap: 0;
  }
  .nav__links a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    opacity: 1;
  }
  .nav__links a:last-child { border-bottom: 0; }

  .nav__cta { padding-top: 16px; }
  .nav__cta .btn { width: 100%; justify-content: center; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 480px; margin: 0 auto; width: 100%; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 580px) {
  .hero h1 { font-size: clamp(36px, 10vw, 52px); }
  .cards, .features { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .about__list { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .whatsapp-float { width: 52px; height: 52px; bottom: 18px; right: 18px; }
}
