/* ==========================================================
   CampoGroup — estilos base
   Paleta: hex exactos del .ai de identidad
   ========================================================== */
:root {
  --verde-oscuro: #00663A;
  --verde-campo:  #87BC27;
  --amarillo:     #FFD300;
  --ambar:        #F8B100;
  --gris:         #5E5E5E;
  --gris-claro:   #F4F6F1;
  --blanco:       #FFFFFF;
  --negro:        #1A1F17;

  --font: "brandon-grotesque", "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;
  --header-h: 92px;
  --radius: 999px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--negro);
  background: var(--blanco);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3 { font-weight: 500; line-height: 1.1; margin: 0; }

.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9rem 1.8rem;
  border-radius: var(--radius);
  background: var(--amarillo);
  color: var(--verde-oscuro);
  font-weight: 500; font-size: 1rem; letter-spacing: .01em;
  border: 2px solid var(--amarillo);
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); background: var(--ambar); border-color: var(--ambar); }
.btn--ghost { background: transparent; color: var(--blanco); border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: var(--blanco); }
.btn--sm { padding: .55rem 1.2rem; font-size: .95rem; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--verde-oscuro);
  background: var(--blanco);
  box-shadow: 0 1px 0 rgba(0,102,58,.08);
  transition: box-shadow .35s;
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand__iso { height: 64px; width: auto; transition: height .35s var(--ease); }
.brand__name { height: 42px; width: auto; transition: height .35s var(--ease); }
.brand__name--light { display: none; }
.header.menu-open .brand__name--light { display: block; }
.header.menu-open .brand__name--dark { display: none; }

.nav { display: flex; align-items: center; gap: 2rem; font-weight: 400; font-size: 1.05rem; }
.nav a:not(.btn) { position: relative; padding: .3rem 0; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--amarillo); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:not(.btn):hover::after,
.nav a.is-active::after { transform: scaleX(1); }

/* al hacer scroll: solo sombra */
.header.is-scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.08); }
.nav a:not(.btn) { font-weight: 500; }

/* hamburguesa */
.burger {
  display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: inherit;
  flex-direction: column; gap: 5px;
}
.burger span { display: block; width: 26px; height: 2px; background: currentColor; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; margin-top: var(--header-h); min-height: calc(100svh - var(--header-h));
  display: grid; align-items: center;
  color: var(--blanco); overflow: hidden;
  isolation: isolate;
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(1,40,25,.55) 0%, rgba(1,40,25,.25) 40%, rgba(1,60,36,.65) 100%);
}
.hero__content { padding-block: 4rem 5rem; max-width: 820px; }
.hero__eyebrow {
  margin: 0 0 1rem; font-weight: 300; letter-spacing: .25em; text-transform: uppercase; font-size: .85rem;
  color: var(--amarillo);
}
.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 500; letter-spacing: -.02em;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
  max-width: 14ch;
}
.hero__text {
  margin: 1.4rem 0 2.2rem; font-weight: 300;
  font-size: clamp(1.1rem, 2vw, 1.4rem); max-width: 560px; opacity: .95;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* entrada */
.hero__eyebrow, .hero__title, .hero__text, .hero__actions {
  opacity: 0; transform: translateY(18px);
  animation: rise .9s var(--ease) forwards;
}
.hero__title   { animation-delay: .15s; }
.hero__text    { animation-delay: .3s; }
.hero__actions { animation-delay: .45s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* indicador scroll */
.hero__scroll {
  position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.7); border-radius: 14px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--amarillo); border-radius: 2px;
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0%{transform:translateY(0);opacity:1} 70%{transform:translateY(14px);opacity:0} 100%{opacity:0} }

/* ---------- Secciones (placeholders para bloques siguientes) ---------- */
.section { padding: 6rem 0; }
.section--alt { background: var(--gris-claro); }
.section--placeholder { min-height: 50vh; display: grid; align-items: center; }
.section--placeholder h2 { color: #C8CFC2; font-size: 1.6rem; font-weight: 400; }
.eyebrow {
  margin: 0 0 .6rem; color: var(--verde-campo); font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; font-size: .85rem;
}

/* ---------- Quiénes somos ---------- */
.about { padding: 7rem 0; }
.about__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
}
.about__media { position: relative; padding-bottom: 4.5rem; }
.about__photo { margin: 0; position: relative; }
.about__photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 24px 24px 24px 120px;
  box-shadow: 0 30px 60px -30px rgba(1,102,60,.45);
}
.about__photo--sec {
  position: absolute; right: -2.5rem; bottom: 0; width: 56%;
}
.about__photo--sec img {
  aspect-ratio: 4 / 3; border-radius: 18px; border: 6px solid var(--blanco);
  box-shadow: 0 24px 50px -24px rgba(0,0,0,.45);
}
.about__photo:not(.about__photo--sec) .about__caption { bottom: auto; top: 1.25rem; }
.about__photo--sec .about__caption { left: 1rem; bottom: 1rem; font-size: .78rem; }
.about__caption {
  position: absolute; left: 1.25rem; bottom: 1.25rem;
  background: rgba(255,255,255,.92); color: var(--verde-oscuro);
  padding: .5rem .9rem; border-radius: var(--radius);
  font-size: .85rem; font-weight: 500; letter-spacing: .02em;
}
.about__title {
  font-size: clamp(2rem, 4vw, 3rem); color: var(--verde-oscuro);
  letter-spacing: -.02em; margin-bottom: 1.4rem; max-width: 18ch;
}
.about__body { position: relative; isolation: isolate; }
.about__mark { position: absolute; right: -2rem; top: -3rem; width: 260px; opacity: .07; pointer-events: none; z-index: -1; }
.about__body .eyebrow { color: var(--verde-campo); font-weight: 500; }
.about__body p:not(.eyebrow) { font-size: 1.1rem; font-weight: 300; color: #3A3F37; margin: 0 0 1rem; max-width: 56ch; }
.about__body p strong { font-weight: 500; color: var(--verde-oscuro); }

.stats {
  list-style: none; margin: 2.5rem 0 0; padding: 2rem 0 0;
  border-top: 2px solid var(--gris-claro);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.stat { display: flex; flex-direction: column; gap: .3rem; }
.stat__num {
  font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1;
  color: var(--verde-campo); letter-spacing: -.02em;
}
.stat__num small { display: block; font-size: .8rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--verde-oscuro); margin-top: .35rem; }
.stat__label { font-size: .95rem; font-weight: 300; color: #5E5E5E; line-height: 1.35; }

/* reveal al hacer scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.about__body .reveal:nth-child(2) { transition-delay: .1s; }
.about__body .reveal:nth-child(3) { transition-delay: .2s; }
.about__body .reveal:nth-child(4) { transition-delay: .3s; }
.about__body .reveal:nth-child(5) { transition-delay: .4s; }

/* ---------- Franja campo (tarjeta en contenedor) ---------- */
.campo { padding: 7rem 0 0; background: var(--blanco); }
.campo__card {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 24px;
  min-height: 460px; display: grid; align-items: end; color: var(--blanco);
  box-shadow: 0 30px 60px -30px rgba(1,102,60,.45);
}
.campo__img {
  position: absolute; left: 0; top: -12%; width: 100%; height: 124%;
  object-fit: cover; z-index: -2; will-change: transform;
}
.campo__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,40,24,.05) 0%, rgba(0,40,24,.2) 50%, rgba(0,60,36,.78) 100%);
}
.campo__content { padding: 3rem; max-width: 720px; }
.campo .eyebrow { color: var(--amarillo); }
.campo__title { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.02em; text-shadow: 0 2px 20px rgba(0,0,0,.3); max-width: 22ch; }
.campo__text { margin: .9rem 0 0; font-weight: 300; font-size: 1.1rem; max-width: 46ch; color: rgba(255,255,255,.92); }

/* ---------- Proceso (paneles expandibles) ---------- */
.process { background: var(--verde-oscuro); color: var(--blanco); padding: 7rem 0; }
.process__head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: end; margin-bottom: 3rem; }
.process__head .eyebrow { color: var(--amarillo); font-weight: 500; }
.process__title { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.02em; }
.process__intro { margin: 0 0 .4rem; font-weight: 300; font-size: 1.1rem; color: rgba(255,255,255,.8); }

.panels { list-style: none; margin: 0; padding: 0; display: flex; gap: .75rem; height: 560px; }
.panel {
  position: relative; flex: 1; min-width: 0; overflow: hidden; border-radius: 22px; cursor: pointer;
  transition: flex .7s var(--ease); outline: none;
}
.panel:focus-visible { box-shadow: 0 0 0 3px var(--amarillo); }
.panel.is-active { flex: 3.2; }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: brightness(.75); }
.panel.is-active img { transform: scale(1.03); filter: brightness(.9); }
.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,40,24,.1) 40%, rgba(0,40,24,.85)); }

.panel__side {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 1.25rem 0; transition: opacity .4s var(--ease);
}
.panel__side .panel__vname { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 500; font-size: 1.35rem; letter-spacing: .02em; }
.panel.is-active .panel__side { opacity: 0; pointer-events: none; }
.panel__num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--amarillo); color: var(--verde-oscuro); font-weight: 500; font-size: .95rem; }
.panel__content {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 2rem;
  opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease) .2s, transform .5s var(--ease) .2s;
}
.panel.is-active .panel__content { opacity: 1; transform: none; }
.panel__name { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: .9rem 0 .5rem; letter-spacing: -.01em; }
.panel__text { margin: 0; font-weight: 300; font-size: 1.1rem; max-width: 46ch; color: rgba(255,255,255,.9); }

.process__cta {
  margin-top: 3rem; padding: 1.75rem 2.25rem; border-radius: 20px; border: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.process__cta { position: relative; overflow: hidden; }
.process__cta-mark { position: absolute; left: -1.5rem; bottom: -2.5rem; width: 170px; opacity: .12; pointer-events: none; }
.process__cta p { margin: 0; font-size: 1.3rem; max-width: 34ch; position: relative; padding-left: 3.5rem; }

/* ---------- Contacto ---------- */
.contact { padding: 7rem 0; }
.contact__head { max-width: 760px; margin-bottom: 3.5rem; }
.contact__head .eyebrow { color: var(--verde-campo); font-weight: 500; }
.contact__title { font-size: clamp(2rem, 4vw, 3rem); color: var(--verde-oscuro); letter-spacing: -.02em; margin-bottom: 1rem; }
.contact__intro { margin: 0; font-size: 1.1rem; font-weight: 300; color: #3A3F37; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }

.info { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.5rem; }
.info__item { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 1rem; align-items: start; }
.info__icon { grid-row: 1 / span 2; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--gris-claro); color: var(--verde-oscuro); }
.info__label { font-size: .8rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--verde-campo); }
.info__value { font-size: 1.1rem; font-weight: 400; color: var(--negro); line-height: 1.4; }
a.info__value:hover { color: var(--verde-oscuro); text-decoration: underline; text-underline-offset: 3px; }
.pend { display: block; font-size: .75rem; color: #B06A00; font-weight: 500; }
.map { border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px -30px rgba(1,102,60,.45); }
.map iframe { width: 100%; height: 320px; display: block; }

.form { background: var(--gris-claro); border-radius: 24px; padding: 2.25rem; display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field span { font-size: .85rem; font-weight: 500; color: var(--verde-oscuro); letter-spacing: .03em; }
.field input, .field textarea {
  font: inherit; font-weight: 300; color: var(--negro); background: var(--blanco);
  border: 1.5px solid #DDE3D6; border-radius: 12px; padding: .8rem 1rem; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--verde-campo); box-shadow: 0 0 0 3px rgba(135,188,39,.2); }
.field textarea { resize: vertical; min-height: 130px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__submit { justify-self: start; }
.form__note { margin: 0; font-size: .95rem; font-weight: 300; color: #5E5E5E; }
.form__note a { color: var(--verde-oscuro); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.form__status { margin: 0; font-weight: 500; min-height: 1.4em; color: var(--verde-oscuro); }
.form__status.is-error { color: #B00020; }

/* ---------- Footer ---------- */
.footer { background: var(--verde-oscuro); color: rgba(255,255,255,.85); font-weight: 300; font-size: .95rem; }
.footer__top { padding: 3rem 0 2rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,.15); }
.footer__brand { display: flex; align-items: center; gap: .7rem; }
.footer__name { height: 28px; width: auto; }
.footer__nav { display: flex; gap: 1.75rem; font-weight: 400; }
.footer__nav a:hover, .footer__social a:hover { color: var(--amarillo); }
.footer__social { display: flex; gap: 1rem; }
.footer__social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; transition: border-color .25s, color .25s; }
.footer__social a:hover { border-color: var(--amarillo); }
.footer__bottom { padding: 1.5rem 0 2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer__bottom p { margin: 0; }
.footer__credit { opacity: .75; }
.footer__credit a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .brand__name { height: 30px; }
  .brand__iso { height: 50px; }
  .burger { display: flex; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 2rem;
    background: var(--verde-oscuro); color: var(--blanco); font-size: 1.5rem;
    opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
  }
  .header.menu-open .nav { opacity: 1; pointer-events: auto; }
  .header.menu-open { color: var(--blanco); background: var(--verde-oscuro); box-shadow: none; }
  .nav { top: 0; }
  .hero__content { padding-bottom: 7rem; }
  .about { padding: 4.5rem 0; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { padding-bottom: 0; display: grid; gap: 1rem; }
  .about__photo img { aspect-ratio: 4 / 3; border-radius: 20px 20px 20px 80px; }
  .about__photo--sec { position: static; width: 100%; }
  .about__photo:not(.about__photo--sec) .about__caption { top: auto; bottom: 1.25rem; }
  .about__photo--sec img { aspect-ratio: 16 / 9; border: 0; border-radius: 20px; }
  .stats { grid-template-columns: 1fr; gap: 1.25rem; }
  .campo { padding-top: 4.5rem; }
  .campo__card { min-height: 380px; border-radius: 18px; }
  .campo__content { padding: 1.5rem; }
  .campo__text { font-size: 1rem; }
  .process { padding: 4.5rem 0; }
  .process__head { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2rem; }
  .panels { flex-direction: column; height: auto; gap: 1rem; }
  .panel, .panel.is-active { flex: none; height: 300px; border-radius: 18px; }
  .panel__side { display: none; }
  .panel__content { opacity: 1; transform: none; padding: 1.5rem; }
  .panel img { filter: brightness(.85); }
  .panel__text { font-size: 1rem; }
  .process__cta { padding: 1.5rem; margin-top: 2.5rem; }
  .process__cta p { font-size: 1.15rem; padding-left: 0; }
  .process__cta-mark { width: 120px; left: auto; right: -1.5rem; bottom: -2rem; }
  .about__mark { width: 180px; right: -1rem; top: -1.5rem; }
  .contact { padding: 4.5rem 0; }
  .contact__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form { padding: 1.5rem; border-radius: 18px; }
  .form__row { grid-template-columns: 1fr; }
  .form__submit { justify-self: stretch; }
  .map iframe { height: 260px; }
  .footer__top { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .footer__bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__eyebrow, .hero__title, .hero__text, .hero__actions { animation: none; opacity: 1; transform: none; }
  .hero__scroll span { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .campo__img { transform: none !important; }
}
