/* variables de marca */
:root {
  --yellow: #f8d90f;
  --yellow-dark: #d9b800;
  --green: #3fae3a;
  --green-dark: #1f6b25;
  --green-deep: #0b2a0f;
  --black: #111111;
  --ink: #1d1d1f;
  --gray-900: #1a1a1a;
  --gray-700: #3a3a3c;
  --gray-500: #6e6e73;
  --gray-200: #e8e8ea;
  --gray-100: #f5f5f4;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.05;
  letter-spacing: .3px;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.center { text-align: center; margin-top: 2.5rem; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .8rem;
}

/* botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .95rem 1.7rem;
  background: var(--yellow);
  color: var(--black);
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid var(--yellow);
  transition: transform .2s, background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(248, 217, 15, .35); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .35); }
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); box-shadow: none; }
.btn--dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn--dark:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.btn--sm { padding: .55rem 1.2rem; font-size: .9rem; }

/* barra superior */
.topbar { background: var(--green-dark); color: var(--white); font-size: .82rem; font-weight: 500; }
.topbar__inner { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; }

/* header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: flex; align-items: center; gap: .6rem; color: var(--white); }
.logo__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  border-radius: 10px;
  transform: skewX(-8deg);
}
.logo__text { font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; letter-spacing: 1px; }
.logo__text strong { color: var(--yellow); font-weight: 800; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) { color: var(--gray-700); font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav a:not(.btn):hover { color: var(--green); }

.nav-toggle { display: none; }
.nav-burger { display: none; cursor: pointer; width: 32px; height: 24px; position: relative; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--black);
  transition: .3s;
}
.nav-burger span { top: 11px; }
.nav-burger span::before { content: ""; top: -9px; }
.nav-burger span::after { content: ""; top: 9px; }

/* hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 25%, rgba(63, 174, 58, .28), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(248, 217, 15, .10), transparent 40%),
    linear-gradient(160deg, var(--green-deep) 0%, #0a0a0a 60%);
  color: var(--white);
  padding: 6rem 0 7rem;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; position: relative; z-index: 2; }
.hero .hl { color: var(--yellow); }
.hero__lead { margin: 1.5rem 0 2.2rem; font-size: 1.12rem; color: rgba(255, 255, 255, .72); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__stats { display: flex; gap: 2.5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.hero__stats strong { display: block; font-family: var(--font-head); font-size: 2.4rem; color: var(--yellow); line-height: 1; }
.hero__stats span { font-size: .85rem; color: rgba(255, 255, 255, .6); }

.hero__media { position: relative; }
.hero__img-wrap {
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
  aspect-ratio: 4 / 3.4;
}
.hero__img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute;
  left: -28px;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: .8rem;
  background: var(--white);
  color: var(--ink);
  padding: .9rem 1.2rem;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.hero__badge-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
}
.hero__badge strong { display: block; font-size: .92rem; }
.hero__badge small { color: var(--gray-500); font-size: .78rem; }

/* franjas de seguridad decorativas */
.hero__stripes {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: linear-gradient(90deg, var(--green) 0 33%, var(--yellow) 33% 66%, var(--black) 66%);
}

/* secciones */
.section { padding: 6.5rem 0; }
.section--alt { background: var(--gray-100); }
.section--dark { background: var(--black); color: var(--white); }
.section__head { max-width: 680px; margin: 0 auto 3.5rem; text-align: center; }
.section__head p { margin-top: 1rem; color: var(--gray-500); font-size: 1.05rem; }
.section__head--light p { color: rgba(255, 255, 255, .65); }

/* tarjetas de servicios */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  position: relative;
  padding: 2.2rem 2rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 4px;
  width: 0;
  background: var(--green);
  transition: width .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::after { width: 100%; }
.card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(63, 174, 58, .12);
  margin-bottom: 1.4rem;
}
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--green-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--gray-500); font-size: .96rem; }

/* pasos */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.step {
  padding: 2rem 1.6rem;
  border-radius: var(--radius);
  background: var(--gray-900);
  border: 1px solid rgba(255, 255, 255, .07);
  border-top: 3px solid var(--green);
  position: relative;
}
.step__num { font-family: var(--font-head); font-size: 3rem; font-weight: 800; color: var(--yellow); line-height: 1; }
.step h3 { margin: .8rem 0 .5rem; }
.step p { color: rgba(255, 255, 255, .62); font-size: .95rem; }

/* chips de productos */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; max-width: 900px; margin: 0 auto; }
.chips li {
  padding: .7rem 1.3rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-weight: 500;
  font-size: .95rem;
  transition: background .2s, border-color .2s;
}
.chips li:hover { background: var(--green); border-color: var(--green); color: var(--white); }
.link-arrow { font-weight: 600; color: var(--green-dark); border-bottom: 2px solid var(--yellow); padding-bottom: 2px; }

/* nosotros */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 4rem; align-items: center; }
.about__text p { color: var(--gray-700); margin-top: 1rem; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: 1.8rem; }
.checks li { position: relative; padding-left: 1.8rem; font-weight: 500; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .3rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 4px;
  background: var(--green);
}
.about__card {
  padding: 2.8rem;
  border-radius: 20px;
  background: var(--gray-100);
  text-align: center;
  border: 1px solid var(--gray-200);
}
.about__logo { max-height: 90px; width: auto; margin: 0 auto 1.4rem; }
.about__card p { color: var(--gray-700); margin-bottom: 1.6rem; }

/* llamado a la accion */
.cta { background: linear-gradient(120deg, var(--green-dark), var(--green)); padding: 3.5rem 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cta h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: var(--white); max-width: 680px; }

/* contacto */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: stretch; }
.contact__list { margin-top: 2rem; display: grid; gap: 1.1rem; }
.contact__list li { display: flex; flex-direction: column; padding-bottom: 1.1rem; border-bottom: 1px solid var(--gray-200); }
.contact__label { font-size: .75rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gray-500); font-weight: 600; }
.contact__list a { font-weight: 500; font-size: 1.05rem; transition: color .2s; }
.contact__list a:hover { color: var(--green); }
.hours { margin-top: 2rem; padding: 1.5rem; background: var(--gray-100); border-radius: var(--radius); border-left: 4px solid var(--green); }
.hours h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.hours p { font-size: .93rem; color: var(--gray-700); }
.contact__map { border-radius: 20px; overflow: hidden; min-height: 420px; box-shadow: var(--shadow); }
.contact__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.3); }

/* footer */
.footer { background: var(--black); border-top: 4px solid var(--green); color: rgba(255, 255, 255, .65); padding-top: 3.5rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding-bottom: 2.5rem; }
.footer__tag { margin-top: .8rem; font-size: .9rem; max-width: 360px; }
.footer__social { display: flex; gap: .8rem; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .15);
  transition: background .2s, border-color .2s;
}
.footer__social a:hover { background: var(--yellow); border-color: var(--yellow); }
.footer__social a:hover svg { stroke: var(--black); }
.footer__social a:hover svg .fill { fill: var(--black); }
.footer__social svg { width: 20px; height: 20px; fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linejoin: round; }
.footer__social svg .fill { fill: var(--white); stroke: none; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .85rem;
}
.footer__bottom a:hover { color: var(--green); }

/* boton flotante */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 10px 25px rgba(37, 211, 102, .45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: var(--white); }

/* logo recortado de la imagen original de dozermaq */
.brand-logo {
  display: block;
  height: 52px;
  aspect-ratio: 823 / 435;
  background: url("https://agro-costa.com/wp-content/uploads/2024/04/Diseno-sin-titulo-20-1.png") no-repeat;
  background-size: 161.97% auto;
  background-position: 95.1% 3.83%;
}
.brand-logo--footer { height: 70px; }
.footer__logo-wrap { display: inline-block; background: var(--white); padding: .6rem .9rem; border-radius: 12px; }

/* responsive tablet */
@media (max-width: 980px) {
  .hero__inner, .about, .contact { grid-template-columns: 1fr; }
  .hero { padding: 4rem 0 5rem; }
  .hero__media { max-width: 560px; }
  .hero__badge { left: 16px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cta__inner { flex-direction: column; text-align: center; }
}

/* responsive movil */
@media (max-width: 760px) {
  .topbar__inner span { display: none; }
  .topbar__inner { justify-content: center; }
  .nav-burger { display: block; }
  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .nav a { width: 100%; text-align: center; padding: 1rem; }
  .nav a.btn { width: auto; margin: .5rem 0 1.2rem; padding: .7rem 2rem; }
  .nav-toggle:checked ~ .nav { max-height: 400px; }
  .nav-toggle:checked + .nav-burger span { background: transparent; }
  .nav-toggle:checked + .nav-burger span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle:checked + .nav-burger span::after { top: 0; transform: rotate(-45deg); }

  .section { padding: 4.5rem 0; }
  .services, .steps { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.5rem; }
  .hero__stats strong { font-size: 2rem; }
  .checks { grid-template-columns: 1fr; }
  .footer__inner, .footer__bottom { flex-direction: column; text-align: center; align-items: center; }
}
