/* ===== Tokens ===== */
:root {
  --verde: #1DB954;
  --verde-oscuro: #0F6B3A;
  --gris-oscuro: #2B2B2B;
  --gris-claro: #F5F5F5;
  --blanco: #FFFFFF;
  --rojo: #E53935;
  --amarillo: #FFA726;

  --text: #1c2620;
  --muted: #5b6b62;
  --border: #e3e8e4;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 107, 58, 0.12);
  --container: 1140px;

  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; background: var(--blanco); }

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.6;
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand strong { font-family: var(--font-head); line-height: 1.15; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

/* ===== Accessibility ===== */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--verde-oscuro); color: #fff; font-family: var(--font-head);
  font-weight: 700; font-size: .9rem; padding: 12px 20px; border-radius: 10px;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--verde-oscuro);
  outline-offset: 3px;
  border-radius: 4px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--verde-oscuro);
  margin-bottom: 14px;
}
.eyebrow-light { color: #9fe8bd; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 13px 26px; border-radius: 10px; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: var(--verde); color: var(--blanco); box-shadow: 0 8px 20px rgba(29,185,84,.35); }
.btn-primary:hover { background: var(--verde-oscuro); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--verde-oscuro); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--verde); background: rgba(29,185,84,.06); }
.btn-beneficios { margin-top: 24px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 4px 20px rgba(0,0,0,.04); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--blanco); border: 1px solid var(--border); box-shadow: 0 4px 12px rgba(15,107,58,.14);
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.05rem; font-weight: 800; color: var(--gris-oscuro); }
.brand-text em { font-style: normal; font-size: .72rem; color: var(--muted); letter-spacing: .04em; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { position: relative; font-weight: 500; font-size: .95rem; color: var(--gris-oscuro); transition: color .2s ease; }
.main-nav a:hover { color: var(--verde-oscuro); }
.main-nav a.active:not(.nav-cta) { color: var(--verde-oscuro); }
.main-nav a.active:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--verde); border-radius: 2px;
}
.nav-cta { background: var(--verde); color: var(--blanco) !important; padding: 9px 18px; border-radius: 8px; font-weight: 600; }
.nav-cta:hover { background: var(--verde-oscuro); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--gris-oscuro); border-radius: 2px; transition: .25s; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(29,185,84,.14), transparent 60%),
    linear-gradient(180deg, #f3fbf6 0%, #ffffff 70%);
  padding: 72px 0 88px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-title { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; color: var(--gris-oscuro); margin-bottom: 20px; }
.hero-title .hl { color: var(--verde-oscuro); }
.hero-lead { font-size: 1.15rem; color: var(--muted); max-width: 32rem; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats dt { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--verde-oscuro); }
.hero-stats dd { font-size: .85rem; color: var(--muted); }

/* ===== Hero visual card ===== */
.hero-visual { display: flex; justify-content: center; }
.visual-card {
  position: relative; width: 100%; max-width: 400px; min-width: 0;
  background: var(--blanco); border: 1px solid var(--border); border-radius: 24px;
  padding: 40px 34px; box-shadow: 0 30px 60px rgba(15,107,58,.18);
}
.visual-leaf {
  display: grid; place-items: center; width: 84px; height: 84px; border-radius: 22px;
  background: linear-gradient(135deg, var(--verde), var(--verde-oscuro));
  color: var(--blanco); margin-bottom: 22px;
}
.visual-card h3 { font-size: 1.4rem; color: var(--gris-oscuro); margin-bottom: 10px; }
.visual-card > p { color: var(--muted); font-size: 1rem; margin-bottom: 22px; }
.visual-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.visual-list li { display: flex; align-items: center; gap: 12px; font-size: .95rem; color: var(--gris-oscuro); font-weight: 500; }
.visual-list .tick {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(29,185,84,.15); position: relative;
}
.visual-list .tick::after {
  content: ""; position: absolute; left: 7px; top: 4px;
  width: 6px; height: 11px; border: solid var(--verde-oscuro);
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* Evita que las columnas de grid se desborden en pantallas angostas
   (el min-width:auto por defecto de los ítems de grid puede forzar
   un ancho mínimo mayor al disponible cuando un hijo tiene max-width) */
.hero-grid > *, .service-layout > *, .cta-grid > *, .cta-form > * {
  min-width: 0;
}
.field, .field input, .field textarea {
  min-width: 0;
}

/* ===== Marquee: negocios que confían en nosotros ===== */
.marquee-section { background: var(--blanco); padding: 36px 0 40px; border-bottom: 1px solid var(--border); }
.marquee-title {
  text-align: center; font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 16px; width: max-content;
  list-style: none; animation: marquee-scroll 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-chip {
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  background: var(--gris-claro); border: 1px solid var(--border); border-radius: 999px;
  padding: 10px 20px 10px 10px; font-family: var(--font-head); font-weight: 700;
  font-size: .9rem; color: var(--gris-oscuro);
}
.marquee-icon {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  color: var(--blanco); flex-shrink: 0;
}
.marquee-icon svg { width: 15px; height: 15px; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section-alt { background: var(--gris-claro); }
.section-mint { background: #eef9f2; }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 52px; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; color: var(--gris-oscuro); }
.section-lead { color: var(--muted); font-size: 1.08rem; margin-top: 14px; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; }
.step-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(29,185,84,.12); color: var(--verde-oscuro); font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; margin-bottom: 16px; }
.step:nth-child(1) .step-num { background: rgba(59,130,196,.14); color: #3B82C4; }
.step:nth-child(3) .step-num { background: rgba(255,167,38,.18); color: #a6690f; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--gris-oscuro); }
.step p { color: var(--muted); font-size: .95rem; }

/* Servicio: lista de rubros + explicación */
.service-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 86px; align-items: center; max-width: 1000px; margin: 0 auto; }
.service-list-wrap .section-title { margin-bottom: 28px; }
.service-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.service-list li { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--gris-oscuro); }
.service-list li:last-child { border-bottom: 0; }
.service-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: var(--blanco); flex-shrink: 0; }
.service-icon svg { width: 23px; height: 23px; }
.icon-factory { background: #3B82C4; }
.icon-restaurant { background: #E47B39; }
.icon-fastfood { background: #D95763; }
.icon-hotel { background: #8B6BB1; }
.icon-other { background: #D1A437; }
.service-description { background: var(--gris-claro); border: 1px solid var(--border); border-radius: 24px; padding: 42px; }
.service-description-mark { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 22px; border-radius: 17px; background: var(--verde); color: var(--blanco); }
.service-description-mark svg { width: 32px; height: 32px; }
.service-description .section-title { margin-bottom: 14px; }
.service-description .section-lead { margin-top: 0; }
.service-description-note { color: var(--muted); margin: 18px 0 26px; font-size: .96rem; }

/* Suscripción: beneficios de subscribirse a la red */
.subscription-section { background: #fdf3e2; }
.subscription-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.sub-benefit { background: #fff; border: 1px solid #f2e2c2; border-radius: var(--radius); padding: 30px 26px; text-align: center; display: flex; flex-direction: column; }
.sub-benefit p { flex: 1; }
.sub-benefit-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 18px; font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  color: var(--verde-oscuro);
}
.sub-benefit-link span { transition: transform .2s ease; }
.sub-benefit-link:hover { text-decoration: underline; }
.sub-benefit-link:hover span { transform: translateX(3px); }
.sub-benefit-mark {
  display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 18px;
  border-radius: 14px; background: var(--verde); color: var(--blanco);
  font-family: var(--font-head); font-weight: 800; font-size: 1.2rem;
}
.sub-benefit-logo {
  background: #fff; border: 1px solid var(--border); box-shadow: 0 4px 10px rgba(0,0,0,.06);
  overflow: hidden;
}
.sub-benefit-logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.sub-benefit-mark-aseo {
  background: linear-gradient(135deg, #17b8ab, #0f7a8c);
  font-size: 1.05rem; letter-spacing: .02em;
}
.sub-benefit h3 { font-size: 1.05rem; color: var(--gris-oscuro); margin-bottom: 10px; }
.sub-benefit p { color: var(--muted); font-size: .92rem; }

/* Beneficios / impacto del servicio de recolección */
.impact-list {
  list-style: none; margin: 32px auto 0; max-width: 640px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; text-align: left;
}
.impact-list li { position: relative; padding-left: 30px; color: var(--gris-oscuro); font-weight: 500; }
.impact-list li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: rgba(29,185,84,.18); box-shadow: inset 0 0 0 4px var(--verde); }
.impact-cta { text-align: center; margin-top: 32px; }

/* Nosotros (dark) */
.section-dark { background: linear-gradient(135deg, #0f2a1c, var(--verde-oscuro)); color: #eafff2; }
.coop-inner { max-width: 46rem; margin: 0 auto; text-align: center; }
.section-dark .section-title { color: #fff; }
.coop-inner p { color: #cfeeda; font-size: 1.08rem; margin-top: 14px; }

/* CTA */
.cta { background: linear-gradient(135deg, #0f2a1c, var(--verde-oscuro)); }
.cta .section-title { color: #fff; }
.cta-copy > p.text-pretty { color: #cfeeda; margin-top: 12px; margin-bottom: 28px; }
.cta-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }

.cta-checklist { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-bottom: 30px; }
.cta-checklist li { position: relative; padding-left: 30px; font-weight: 500; color: #eafff2; }
.cta-checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(29,185,84,.3);
}
.cta-checklist li::after {
  content: ""; position: absolute; left: 6px; top: 7px; width: 7px; height: 4px;
  border: solid #9fe8bd; border-width: 0 0 2px 2px; transform: rotate(-45deg);
}

.cta-direct { border-top: 1px solid rgba(255,255,255,.16); padding-top: 22px; margin-bottom: 20px; }
.cta-direct-label { font-size: .82rem; font-weight: 700; color: #9fe8bd; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
.cta-direct-item { display: flex; align-items: center; gap: 12px; padding: 7px 0; color: #eafff2; font-weight: 600; }
.cta-direct-item:hover { color: #fff; }
.cta-direct-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.1); color: #9fe8bd; flex-shrink: 0; }
.cta-direct-icon svg { width: 16px; height: 16px; }

.cta-whatsapp-card { margin-top: 6px; }

.cta-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px; padding: 34px;
}
.cta-card .form-msg { color: #9fe8bd; }
.cta-card .field label { color: #eafff2; }
.cta-card .field input, .cta-card .field textarea {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff;
}
.cta-card .field input::placeholder, .cta-card .field textarea::placeholder { color: rgba(255,255,255,.4); }
.cta-card .field input:focus, .cta-card .field textarea:focus { border-color: var(--verde); box-shadow: 0 0 0 3px rgba(29,185,84,.3); }

.cta-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 600; color: var(--gris-oscuro); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--border); border-radius: 10px;
  font-family: var(--font-body); font-size: .95rem; background: #fff; color: var(--text);
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--verde); box-shadow: 0 0 0 3px rgba(29,185,84,.15); }
.cta-form .btn { grid-column: 1 / -1; }
.form-msg { grid-column: 1 / -1; font-size: .9rem; color: var(--verde-oscuro); font-weight: 600; min-height: 1.2em; text-align: center; }

.channel-whatsapp { display: flex; align-items: center; gap: 16px; padding: 14px; background: #fff; border: 1px solid var(--border); border-radius: 14px; text-align: left; transition: transform .2s ease, box-shadow .2s ease; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.channel-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.24); }
.channel-whatsapp img { width: 80px; height: 80px; object-fit: contain; border-radius: 8px; flex-shrink: 0; }
.channel-whatsapp span { display: flex; flex-direction: column; gap: 5px; }
.channel-whatsapp strong { color: var(--gris-oscuro); font-family: var(--font-head); }
.channel-whatsapp small { color: var(--muted); font-size: .86rem; }

/* Botón flotante de WhatsApp */
.whatsapp-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .45), 0 2px 8px rgba(0,0,0,.12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 28px rgba(37, 211, 102, .5), 0 4px 10px rgba(0,0,0,.14);
}
@media (max-width: 560px) {
  .whatsapp-fab { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .whatsapp-fab svg { width: 26px; height: 26px; }
}

/* Footer */
.site-footer { background: var(--gris-oscuro); color: #cfd6d1; padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brand-footer .brand-text strong { color: #fff; }
.brand-footer .brand-text em { color: #9aa5a0; }
.footer-note { font-size: .85rem; color: #9aa5a0; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .channel-whatsapp, .main-nav { transition: none; }
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .subscription-benefits { grid-template-columns: 1fr 1fr; }
  .service-layout { grid-template-columns: 1fr; gap: 42px; max-width: 620px; }
  .cta-grid { grid-template-columns: 1fr; gap: 40px; max-width: 560px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border); padding: 10px 24px 20px;
    transform: translateY(-120%); transition: transform .3s ease; box-shadow: 0 20px 30px rgba(0,0,0,.08);
  }
  .main-nav.open { transform: none; }
  .main-nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-cta { text-align: center; margin-top: 10px; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .steps, .cta-form, .subscription-benefits, .impact-list { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .hero { padding: 40px 0 56px; }
  .hero-actions { margin-bottom: 32px; }
  .section { padding: 60px 0; }
}
