/* ==========================================================================
   CW Trading — hoja de estilos compartida
   Variables de marca + base + animaciones + carrusel + formulario + componentes.
   Enlazada desde cada página: <link rel="stylesheet" href="./cw.css">
   ========================================================================== */

:root {
  --green: #278c52;       /* verde primario */
  --green-d: #143A24;     /* verde oscuro (secciones/hero) */
  --green-dd: #102e1d;    /* verde más oscuro (footer) */
  --gold: #f9d807;        /* amarillo destacado */
  --olive: #8a7a3e;       /* oliva (eyebrows) */
  --cream: #F2EBDA;       /* fondo crema */
  --ink: #221F16;         /* texto principal */
  --muted: #6e6750;       /* texto secundario */
  --muted-2: #5a5444;     /* texto secundario alt */
  --line: #e6dcc2;        /* bordes claros */
  --line-2: #e3d9be;      /* borde nav */
  --font-sans: 'IBM Plex Sans', sans-serif;
  --font-head: 'Archivo', sans-serif;
}

/* ----------------------------- base ----------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); font-family: var(--font-sans); color: var(--ink); }
a { text-decoration: none; color: inherit; }

/* placeholder visual de maqueta */
.ph { position: relative; overflow: hidden; }
.ph::after {
  content: attr(data-tag); position: absolute; top: 14px; left: 14px;
  font: 600 10px/1 var(--font-sans); letter-spacing: .14em; padding: 5px 9px;
  border-radius: 999px; background: rgba(20, 30, 22, .45); color: #fff; backdrop-filter: blur(2px);
}
/* sin badge cuando el data-tag está vacío (overlays decorativos) */
.ph[data-tag=""]::after, .ph:not([data-tag])::after { content: none; }

/* hover lift de tarjetas */
.card-lift { transition: transform .2s ease, box-shadow .2s ease; }
.card-lift:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgba(20, 40, 28, .45); }

/* ------------------------- navegación --------------------------- */
.cw-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 235, 218, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-2);
}
.cw-nav {
  max-width: 1240px; margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; padding: 14px 32px;
}
.cw-brand { display: flex; align-items: center; }
.cw-brand img { height: 54px; width: auto; display: block; }
.cw-menu { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; color: #4a4632; }

.navlink { position: relative; padding: 6px 0; transition: color .15s; }
.navlink:hover { color: var(--green); }
.navlink::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--green); border-radius: 2px; transition: width .26s ease;
}
.navlink:hover::after { width: 100%; }
.navlink--active { color: var(--green); font-weight: 700; }

.cw-cta {
  background: var(--green); color: #fff; font-weight: 600; padding: 11px 18px;
  border-radius: 8px; box-shadow: 0 8px 18px -10px rgba(39, 140, 82, .7);
}

/* --------------------------- botones ---------------------------- */
.cw-btn {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px;
  padding: 16px 26px; border-radius: 9px; border: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.cw-btn--primary { background: var(--green); color: #fff; }
.cw-btn--gold { background: var(--gold); color: var(--green-d); box-shadow: 0 14px 30px -14px rgba(239, 192, 42, .8); }
.cw-btn--ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1.5px solid rgba(255, 255, 255, .45); font-weight: 600; }
.cw-btn--ghost-light { background: transparent; color: var(--green-d); border: 1.5px solid #d9cfae; font-weight: 600; }

/* ----------------------------- hero ----------------------------- */
.cw-hero { position: relative; background: var(--green-d); min-height: 88vh; display: flex; align-items: center; overflow: hidden; }
.cw-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.cw-hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,30,20,.82) 0%, rgba(16,30,20,.5) 55%, rgba(16,30,20,.15) 100%); }
.cw-hero__inner { position: relative; max-width: 1240px; margin: 0 auto; padding: 0 32px; width: 100%; }
.cw-hero__content { max-width: 720px; padding: 48px 0 120px; }
.cw-hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 12px/1 var(--font-sans); letter-spacing: .18em; color: var(--gold); text-transform: uppercase; margin-bottom: 26px; }
.cw-hero__eyebrow span { width: 26px; height: 2px; background: var(--gold); }
.cw-hero__title { font: 900 clamp(46px, 6.4vw, 84px)/.95 var(--font-head); color: #fff; margin: 0 0 24px; letter-spacing: -.02em; }
.cw-hero__slogan { font: 800 clamp(19px, 2vw, 26px)/1.3 var(--font-head); color: var(--gold); margin: -8px 0 20px; max-width: 640px; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.cw-hero__lead { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: #e7ecd9; margin: 0 0 36px; max-width: 560px; }
.cw-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* franja de datos del hero */
.cw-stats { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(20, 58, 36, .55); border-top: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(4px); }
.cw-stats__row { max-width: 1240px; margin: 0 auto; padding: 22px 32px; display: flex; gap: 18px 64px; flex-wrap: wrap; }
.cw-stat b { font: 800 22px/1 var(--font-head); color: var(--gold); }
.cw-stat span { font-size: 13px; color: #cdd9cd; margin-left: 14px; }

/* ===================== secciones de contenido ==================== */
.cw-section { padding: 88px 32px; }
.cw-section--white { background: #fff; border-top: 1px solid #ece3cd; }
.cw-section--green { background: var(--green-d); position: relative; overflow: hidden; }

.cw-h2 { font: 800 clamp(32px, 3.6vw, 46px)/1.05 var(--font-head); color: var(--green-d); margin: 0; letter-spacing: -.015em; }
.cw-h2--light { color: #fff; }
.cw-lead { font-size: 16px; line-height: 1.65; color: var(--muted-2); margin: 0; }
.cw-lead--light { color: #bfd0c2; }
.cw-kicker { font: 700 11px/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.cw-link { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-weight: 700; font-size: 14.5px; }
.cw-pill { font: 600 11px/1 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; }
.cw-pill--green { color: var(--green); background: #eaf2ea; }
.cw-pill--olive { color: var(--olive); background: #faf3df; }
.cw-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* encabezado de sección: dividido (eyebrow+h2 | lead) o simple */
.cw-head-split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.cw-head-split__main { max-width: 620px; }
.cw-head-split__aside { max-width: 380px; color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }
.cw-head { max-width: 680px; margin-bottom: 48px; }
.cw-head--narrow { max-width: 640px; margin-bottom: 44px; }
.cw-head .cw-h2, .cw-head--narrow .cw-h2 { margin-bottom: 18px; }

/* tarjetas "¿por qué CW?" */
.cw-cards-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.cw-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px 20px; }
.cw-card__icon { width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.cw-card__icon--green { background: #eaf2ea; }
.cw-card__icon--gold { background: #faf3df; }
.cw-card__title { font: 800 16px/1.15 var(--font-head); color: var(--green-d); margin-bottom: 9px; }
.cw-card__text { font-size: 13.5px; line-height: 1.55; color: var(--muted); }

/* fila de video (validación en campo) */
.cw-videorow { margin-top: 22px; display: grid; grid-template-columns: 300px 1fr; background: var(--green-d); border-radius: 18px; overflow: hidden; }
.cw-videorow__media { position: relative; aspect-ratio: 9/16; max-height: 440px; background: #000; }
.cw-videorow__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cw-videorow__badge { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px; font: 700 10px/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--green-d); background: var(--gold); padding: 6px 10px; border-radius: 999px; pointer-events: none; }
.cw-videorow__body { padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; }
.cw-videorow__title { font: 800 clamp(22px, 2.4vw, 30px)/1.15 var(--font-head); color: #fff; margin: 0 0 12px; letter-spacing: -.01em; }
.cw-videorow__lead { font-size: 15px; line-height: 1.6; color: #bfd0c2; margin: 0; max-width: 480px; }

/* split 2 columnas (nosotros / cta) */
.cw-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cw-about__title { font: 800 clamp(30px, 3.4vw, 44px)/1.06 var(--font-head); color: var(--green-d); margin: 0 0 22px; letter-spacing: -.015em; }
.cw-about__text { font-size: 16px; line-height: 1.65; color: var(--muted-2); margin: 0 0 28px; max-width: 480px; }
.cw-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin-bottom: 32px; }
.cw-feature { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: #2a3a2e; font-weight: 500; }
.cw-feature::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* collage de imágenes */
.cw-collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 170px 170px; gap: 14px; }
.cw-tile { border-radius: 14px; overflow: hidden; display: block; }
.cw-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cw-tile--tall { grid-row: span 2; }

/* productos (tarjetas grandes) */
.cw-prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cw-prod-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.cw-prod-card__img { display: block; width: 100%; height: 260px; object-fit: cover; }
.cw-prod-card__body { padding: 28px 28px 30px; }
.cw-prod-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cw-prod-card__name { font: 800 26px/1 var(--font-head); color: var(--green-d); margin: 0; letter-spacing: -.01em; }
.cw-prod-card__text { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0 0 20px; }

/* casos de éxito */
.cw-cases-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.cw-case-feature { display: block; height: 340px; border-radius: 16px; overflow: hidden; position: relative; }
.cw-case-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cw-case-feature__overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; background: linear-gradient(0deg, rgba(8, 18, 12, .85), transparent); }
.cw-case-feature__row { display: flex; align-items: center; gap: 14px; }
.cw-case-feature__name { font: 800 19px/1.1 var(--font-head); color: #fff; margin-bottom: 4px; }
.cw-case-feature__sub { font-size: 13.5px; color: #cdd9cd; }
.cw-cases-aside { display: flex; flex-direction: column; gap: 22px; }
.cw-cases-card { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; padding: 26px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.cw-cases-card__title { font: 800 18px/1.2 var(--font-head); color: #fff; margin-bottom: 8px; }
.cw-cases-card__text { font-size: 13.5px; color: #bfd0c2; line-height: 1.5; }
.cw-btn--block { justify-content: center; width: 100%; }

/* caja CTA (contacto) */
.cw-cta-box { max-width: 1240px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 56px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; overflow: hidden; }
.cw-cta-box__title { font: 800 clamp(30px, 3.4vw, 42px)/1.07 var(--font-head); color: var(--green-d); margin: 0 0 18px; letter-spacing: -.015em; }
.cw-cta-box__text { font-size: 16px; line-height: 1.65; color: var(--muted-2); margin: 0 0 30px; max-width: 440px; }
.cw-cta-box__img { width: 100%; height: 280px; border-radius: 16px; object-fit: cover; }

/* ===================== híbridos (canola) ======================== */
/* etiquetas de tecnología */
.cw-tag { display: inline-block; max-width: 100%; font: 600 10px/1.35 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.cw-tag--conv { background: #eaf2ea; color: var(--green); }
.cw-tag--tech { background: #faf3df; color: var(--olive); }

/* buscador + filtro de híbridos */
.cw-hybfilter { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.cw-hybfilter__search { position: relative; flex: 1; min-width: 240px; max-width: 440px; }
.cw-hybfilter__search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--olive); pointer-events: none; }
.cw-hybfilter__search input { width: 100%; font: 400 14.5px/1.2 var(--font-sans); color: var(--ink); padding: 12px 16px 12px 42px; border: 1.5px solid #e0d6b8; border-radius: 999px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.cw-hybfilter__search input::placeholder { color: #a89c78; }
.cw-hybfilter__search input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(39, 140, 82, .12); }
.cw-hybfilter__tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.cw-chip { font: 600 13px/1 var(--font-sans); color: var(--muted-2); background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 15px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: background .15s, border-color .15s, color .15s; }
.cw-chip span { font-size: 11px; background: #f0e8d2; color: var(--olive); padding: 2px 7px; border-radius: 999px; transition: background .15s, color .15s; }
.cw-chip:hover { border-color: #d9cfae; }
.cw-chip.is-active { background: var(--green); border-color: var(--green); color: #fff; }
.cw-chip.is-active span { background: rgba(255, 255, 255, .22); color: #fff; }
.cw-hyb-empty { text-align: center; color: var(--muted); font-size: 14.5px; padding: 26px; background: #fff; border: 1px dashed #d9cfae; border-radius: 14px; margin-bottom: 44px; }

/* tabla comparativa */
.cw-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: 44px; -webkit-overflow-scrolling: touch; }
.cw-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 820px; }
.cw-table thead th { background: var(--green-d); color: #fff; font: 700 12px/1.3 var(--font-sans); letter-spacing: .02em; text-align: left; padding: 14px 16px; white-space: nowrap; }
.cw-table tbody td { padding: 13px 16px; border-top: 1px solid #f0e8d2; color: var(--muted-2); vertical-align: middle; }
.cw-table tbody tr:nth-child(even) { background: #faf6ea; }
.cw-table td.cw-table__name { font-family: var(--font-head); font-weight: 800; color: var(--green-d); white-space: nowrap; }

/* en celular la tabla se convierte en cards (sin scroll lateral) */
@media (max-width: 860px) {
  .cw-table-wrap { overflow-x: visible; border: 0; background: transparent; border-radius: 0; margin-bottom: 32px; }
  .cw-table { display: block; width: 100%; min-width: 0; font-size: 13.5px; }
  .cw-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .cw-table tbody { display: flex; flex-direction: column; gap: 12px; }
  .cw-table tbody tr,
  .cw-table tbody tr:nth-child(even) { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 2px 16px 8px; }
  .cw-table tbody td { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 9px 0; text-align: right; }
  .cw-table tbody td::before { content: attr(data-label); flex: 0 0 auto; text-align: left; font: 700 11px/1.35 var(--font-sans); letter-spacing: .04em; text-transform: uppercase; color: var(--olive); }
  .cw-table tbody td.cw-table__name { display: block; padding: 13px 0 9px; border-top: 0; text-align: left; white-space: normal; font-size: 18px; }
  .cw-table tbody td.cw-table__name::before { content: none; }
}

/* acordeón de híbridos (details/summary, sin JS) */
.cw-group-title { font: 700 12px/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--olive); margin: 0 0 14px; }
.cw-hybrids { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.cw-hybrid { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cw-hybrid > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; transition: background .15s; }
.cw-hybrid > summary::-webkit-details-marker { display: none; }
.cw-hybrid > summary:hover { background: #faf6ea; }
.cw-hybrid__name { font: 800 18px/1.2 var(--font-head); color: var(--green-d); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cw-hybrid__brand { font: 500 12px/1 var(--font-sans); color: var(--olive); }
.cw-hybrid__chev { width: 20px; height: 20px; color: var(--olive); transition: transform .25s ease; flex-shrink: 0; }
.cw-hybrid[open] .cw-hybrid__chev { transform: rotate(180deg); }
.cw-hybrid__body { padding: 4px 22px 26px; display: grid; grid-template-columns: 210px 1fr; gap: 30px; align-items: start; }
.cw-hybrid__bag { position: relative; background: #f4efe1; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 14px; min-height: 220px; }
.cw-hybrid__bag::after { content: "Foto de bolsa"; position: absolute; color: #b7ab88; font-size: 12px; letter-spacing: .04em; }
.cw-hybrid__bag img { position: relative; z-index: 1; max-width: 100%; max-height: 240px; object-fit: contain; display: block; }
.cw-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; margin: 0 0 22px; }
.cw-spec { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #f0e8d2; padding-bottom: 8px; font-size: 13.5px; }
.cw-spec > span { color: var(--olive); white-space: nowrap; }
.cw-spec > b { color: var(--ink); font-weight: 600; text-align: right; }
.cw-charac { margin: 0; padding-left: 18px; }
.cw-charac li { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin-bottom: 6px; }

/* diferenciales técnicos con ícono (línea Gran) */
.cw-difflist { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.cw-diff { display: flex; gap: 12px; align-items: flex-start; }
.cw-diff__ic { flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px; background: #eaf2ea; color: var(--green); display: flex; align-items: center; justify-content: center; }
.cw-diff__ic svg { width: 18px; height: 18px; }
.cw-diff > span:last-child { font-size: 13.5px; line-height: 1.45; color: var(--muted-2); align-self: center; }
@media (max-width: 720px) {
  .cw-hybrid__body { grid-template-columns: 1fr; gap: 18px; }
  .cw-hybrid__bag { min-height: 180px; }
  .cw-specs { grid-template-columns: 1fr; }
}

/* -------------------------- utilidades -------------------------- */
.cw-container { max-width: 1240px; margin: 0 auto; }
.cw-eyebrow { font: 700 12px/1 var(--font-sans); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 16px; }
.cw-eyebrow--olive { color: var(--olive); }
.cw-eyebrow--gold { color: var(--gold); }

/* ---------------------------- footer ---------------------------- */
.cw-footer { background: var(--green-dd); color: #cdd9cd; padding: 64px 32px 32px; }
.cw-footer__grid {
  max-width: 1240px; margin: 0 auto; display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.cw-footer__brand { display: inline-flex; align-items: center; background: #fff; border-radius: 10px; padding: 9px 14px; margin-bottom: 18px; }
.cw-footer__brand img { height: 44px; width: auto; display: block; }
.cw-footer__brand-name { font: 800 19px/1 var(--font-head); letter-spacing: .04em; color: #fff; }
.cw-footer__intro { font-size: 14px; line-height: 1.6; color: #9fb3a6; margin: 0; max-width: 300px; }
.cw-footer__title { font: 700 12px/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.cw-footer__links { display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.cw-footer__links a { color: #cdd9cd; }
.cw-footer__muted { color: #9fb3a6; }
.cw-footer__bottom {
  max-width: 1240px; margin: 0 auto; padding-top: 24px; display: flex;
  justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #7d8c80;
}

/* ----------------------- formulario (contacto) ------------------ */
.fld {
  width: 100%; font: 400 15px/1.2 var(--font-sans); color: var(--ink);
  padding: 14px 15px; border: 1.5px solid #e0d6b8; border-radius: 10px; background: #fff;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.fld::placeholder { color: #a89c78; }
.fld:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(39, 140, 82, .12); }
textarea.fld { resize: vertical; min-height: 120px; }
select.fld {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a7a3e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px;
}
.lbl { display: block; font: 600 12.5px/1 var(--font-sans); color: #4a4632; margin-bottom: 8px; }

/* ----------------------- play (casos video) --------------------- */
.play {
  width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .16);
  border: 1.5px solid rgba(255, 255, 255, .55); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.play i {
  width: 0; height: 0; border-left: 15px solid #fff; border-top: 9px solid transparent;
  border-bottom: 9px solid transparent; margin-left: 4px; display: block;
}

/* ------------------ animaciones de entrada (scroll) ------------- */
/* Las secciones arrancan ocultas (el JS agrega .cw-anim en <html> antes de
   pintar) y entran con slide al verse. Como ahora es HTML estático, el JS
   corre al instante: el hero entra de inmediato, sin pantalla en blanco.
   Si el JS no carga, .cw-anim nunca se agrega y todo queda visible. */
html.cw-anim section {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
}
html.cw-anim section.cw-in { opacity: 1; transform: none; }
html.cw-anim .cw-stag {
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.22, .61, .36, 1), transform .6s cubic-bezier(.22, .61, .36, 1);
}
html.cw-anim section.cw-in .cw-stag { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.cw-anim section, html.cw-anim .cw-stag { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* --------------------------- carrusel --------------------------- */
.cw-carousel {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 16px; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--green) #e9e0c7;
}
.cw-carousel::-webkit-scrollbar { height: 8px; }
.cw-carousel::-webkit-scrollbar-track { background: #e9e0c7; border-radius: 999px; }
.cw-carousel::-webkit-scrollbar-thumb { background: var(--green); border-radius: 999px; }
.cw-slide { scroll-snap-align: start; flex: 0 0 auto; transition: transform .22s ease; }
.cw-slide:hover { transform: translateY(-3px) scale(1.015); }

/* ------------------- lightbox (clic para ampliar) --------------- */
picture img, .cw-carousel img { cursor: zoom-in; }
.cw-lb {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  background: rgba(8, 14, 10, .92); opacity: 0; visibility: hidden; transition: opacity .25s ease;
  backdrop-filter: blur(3px); padding: 32px;
}
.cw-lb.is-open { opacity: 1; visibility: visible; }
.cw-lb-img { max-width: 92vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); cursor: default; object-fit: contain; }
.cw-lb-close {
  position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%;
  border: none; background: rgba(255, 255, 255, .12); color: #fff; font-size: 20px; cursor: pointer; transition: background .15s;
}
.cw-lb-close:hover { background: rgba(255, 255, 255, .24); }
.cw-lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%;
  border: none; background: rgba(255, 255, 255, .12); color: #fff; font-size: 30px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.cw-lb-nav:hover { background: var(--gold); color: var(--green-d); }
.cw-lb-prev { left: 20px; }
.cw-lb-next { right: 20px; }
.cw-lb-counter {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #e7ecd9;
  font: 600 13px/1 var(--font-sans); letter-spacing: .04em; background: rgba(0, 0, 0, .35); padding: 7px 14px; border-radius: 999px;
}

/* ------------------- flechas del carrusel ----------------------- */
.cw-carousel-wrap { position: relative; }
.cw-arrow {
  position: absolute; top: calc(50% - 9px); transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .96); color: var(--green-d); cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px -8px rgba(20, 40, 28, .5);
  transition: opacity .2s ease, background .15s, transform .15s; z-index: 4;
}
.cw-arrow:hover { background: var(--green); color: #fff; }
.cw-arrow-prev { left: -10px; }
.cw-arrow-next { right: -10px; }
.cw-arrow.is-hidden { opacity: 0; pointer-events: none; }
@media (max-width: 640px) { .cw-arrow-prev { left: 4px; } .cw-arrow-next { right: 4px; } }

/* ===================== MAXNOLA (fertilizante) =================== */
.cw-nutri { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cw-nutri span { font: 600 12px/1 var(--font-sans); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted-2); background: #fff; }
.cw-nutri span b { color: var(--green); }
.cw-note { background: #eaf2ea; border-left: 3px solid var(--green); border-radius: 8px; padding: 12px 15px; font-size: 13.5px; line-height: 1.5; color: var(--green-d); margin-top: 16px; }

.cw-chart { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px 26px 20px; margin-top: 18px; }
.cw-chart__title { font: 700 13px/1.4 var(--font-sans); color: var(--green-d); margin: 0 0 30px; text-align: center; }
.cw-chart__bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; align-items: end; height: 240px; }
.cw-bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 9px; }
.cw-bar__fill { position: relative; width: 62%; max-width: 46px; background: linear-gradient(180deg, #f9d807, #dfa81c); border-radius: 6px 6px 0 0; min-height: 4px; }
.cw-bar__fill b { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font: 800 12px/1 var(--font-head); color: var(--green-d); white-space: nowrap; }
.cw-bar__x { font-size: 11px; color: var(--muted); white-space: nowrap; }
.cw-bar__x small { display: block; color: #a89c78; font-size: 10px; }
.cw-econ__title { font: 700 13px/1.4 var(--font-sans); color: var(--green-d); margin: 26px 0 0; text-align: center; }
.cw-econ { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 18px; }
.cw-econ__title + .cw-econ { margin-top: 12px; }
.cw-econ__item { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 12px 8px; text-align: center; }
.cw-econ__item b { display: block; font: 800 20px/1 var(--font-head); color: var(--green); }
.cw-econ__item span { font-size: 11px; color: var(--olive); }
.cw-econ__item--best { border-color: var(--green); background: #eaf2ea; }
.cw-econ__item--best b { color: var(--green-d); }
@media (max-width: 720px) {
  .cw-chart__bars { gap: 6px; }
  .cw-bar__x { font-size: 10px; }
  .cw-econ { grid-template-columns: repeat(3, 1fr); }
}

/* MAXNOLA en tema oscuro (como la pieza gráfica original) */
.cw-section--maxnola { background: #21231e; scroll-margin-top: 80px; }
.cw-section--maxnola .cw-eyebrow--olive { color: var(--gold); }
.cw-section--maxnola .cw-h2 { color: #fff; }
.cw-section--maxnola .cw-lead { color: #cfd3c4; }
.cw-section--maxnola .cw-card__title { color: #fff; }
.cw-section--maxnola .cw-prod-card__text { color: #b9bdad; }
.cw-section--maxnola .cw-charac li { color: #c3c7b7; }
.cw-section--maxnola .cw-charac li strong { color: var(--gold); }
.cw-section--maxnola .cw-nutri span { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #d7dbcc; }
.cw-section--maxnola .cw-nutri span b { color: var(--gold); }
.cw-section--maxnola .cw-note { background: rgba(239, 192, 42, .12); border-left-color: var(--gold); color: #f0e8d2; }
.cw-section--maxnola .cw-chart { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); }
.cw-section--maxnola .cw-chart__title { color: #eef1e7; }
.cw-section--maxnola .cw-bar__fill b { color: var(--gold); }
.cw-section--maxnola .cw-bar__x { color: #a9ad9d; }
.cw-section--maxnola .cw-bar__x small { color: #7f8574; }
.cw-section--maxnola .cw-econ__title { color: #eef1e7; }
.cw-section--maxnola .cw-econ__item { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); }
.cw-section--maxnola .cw-econ__item b { color: var(--gold); }
.cw-section--maxnola .cw-econ__item span { color: #a9ad9d; }
.cw-section--maxnola .cw-econ__item--best { background: rgba(239, 192, 42, .14); border-color: var(--gold); }
.cw-section--maxnola .cw-econ__item--best b { color: #fff; }
/* encabezado MAXNOLA con logo a la derecha */
.cw-maxnola-head { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; margin-bottom: 48px; }
.cw-maxnola-head .cw-head { margin-bottom: 0; }
.cw-maxnola-logo { background: #fff; border-radius: 16px; padding: 30px 34px; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .55); }
.cw-maxnola-logo img { display: block; width: 100%; max-width: 320px; height: auto; margin: 0 auto; }
@media (max-width: 820px) {
  .cw-maxnola-head { grid-template-columns: 1fr; gap: 26px; }
  .cw-maxnola-logo { justify-self: start; max-width: 340px; }
}

/* ==========================================================================
   RESPONSIVE — layout general (nav, hero, grids, footer)
   ========================================================================== */

/* botón hamburguesa (oculto en desktop) */
.cw-navtoggle { display: none; }

/* ---------- ≤1024px: tablet ---------- */
@media (max-width: 1024px) {
  .cw-section { padding: 72px 28px; }
  .cw-cards-5 { grid-template-columns: repeat(3, 1fr); }
  .cw-videorow { grid-template-columns: 240px 1fr; }
  .cw-videorow__body { padding: 30px 32px; }
}

/* ---------- ≤860px: nav hamburguesa + colapsos mayores ---------- */
@media (max-width: 860px) {
  .cw-nav { position: relative; padding: 12px 22px; }
  .cw-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(242, 235, 218, .98); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-2); box-shadow: 0 24px 40px -24px rgba(20, 40, 28, .5);
    padding: 6px 22px 18px;
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: max-height .3s ease, opacity .25s ease, visibility .25s;
  }
  .cw-header.is-open .cw-menu { max-height: 460px; opacity: 1; visibility: visible; }
  .cw-menu .navlink { padding: 14px 2px; border-bottom: 1px solid rgba(20, 40, 28, .08); width: 100%; }
  .cw-menu .navlink::after { display: none; }
  .cw-cta { margin-top: 14px; text-align: center; justify-content: center; display: flex; }

  .cw-navtoggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0; border: none; background: transparent; cursor: pointer;
  }
  .cw-navtoggle span { display: block; width: 24px; height: 2px; margin: 0 auto; background: var(--green-d); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
  .cw-header.is-open .cw-navtoggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .cw-header.is-open .cw-navtoggle span:nth-child(2) { opacity: 0; }
  .cw-header.is-open .cw-navtoggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .cw-split { grid-template-columns: 1fr; gap: 36px; }
  .cw-about__text { max-width: none; }
  .cw-prod-grid { grid-template-columns: 1fr; }
  .cw-cases-grid { grid-template-columns: 1fr; }
  .cw-cta-box { grid-template-columns: 1fr; padding: 40px; gap: 30px; }
  .cw-cta-box__img { height: 240px; }
  .cw-videorow { grid-template-columns: 1fr; }
  .cw-videorow__media { aspect-ratio: 9/16; max-width: 300px; width: 100%; margin: 0 auto; max-height: none; }
  .cw-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 28px; }
}

/* ---------- ≤640px: móvil ---------- */
@media (max-width: 640px) {
  .cw-section { padding: 56px 20px; }
  .cw-hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .cw-hero__inner { padding: 0 20px; width: 100%; }
  .cw-hero__content { max-width: none; padding: 40px 0 36px; }
  .cw-hero__title { font: 900 clamp(38px, 11vw, 52px)/1 var(--font-head); }
  .cw-hero__actions { flex-direction: column; align-items: stretch; }
  .cw-hero__actions .cw-btn { width: 100%; justify-content: center; }

  /* franja de datos pasa a flujo normal (no absoluta) para no solapar */
  .cw-stats { position: static; background: rgba(20, 58, 36, .92); }
  .cw-stats__row { padding: 18px 20px; gap: 14px 32px; }

  .cw-cards-5 { grid-template-columns: 1fr 1fr; gap: 14px; }
  .cw-collage { grid-template-rows: 130px 130px; gap: 12px; }
  .cw-prod-card__img { height: 200px; }
  .cw-case-feature { height: 280px; }
  .cw-cta-box { padding: 32px 22px; }
  .cw-actions { flex-direction: column; align-items: stretch; }
  .cw-actions .cw-btn { width: 100%; justify-content: center; }

  .cw-footer { padding: 52px 20px 28px; }
  .cw-footer__bottom { flex-direction: column; gap: 8px; }
}

/* ---------- ≤460px: móvil chico ---------- */
@media (max-width: 460px) {
  .cw-cards-5 { grid-template-columns: 1fr; }
  .cw-feature-grid { grid-template-columns: 1fr; }
  .cw-footer__grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- grids con estilos INLINE (Productos/Nosotros/Casos/Contacto) ----------
   Esas páginas todavía tienen grids en atributos style=""; el CSS externo solo puede
   ganarles con !important. Se colapsan en móvil: galerías siguen responsivas y las
   grillas de 3–4 tarjetas quedan en 2 columnas antes de pasar a 1. */
@media (max-width: 900px) {
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  [style*="repeat(4,1fr)"], [style*="repeat(3,1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
  [style*="auto-fill"] { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important; }
}
@media (max-width: 520px) {
  [style*="repeat(4,1fr)"], [style*="repeat(3,1fr)"] { grid-template-columns: 1fr !important; }
}

/* ------------------------- WhatsApp ----------------------------- */
.cw-wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25D366; box-shadow: 0 10px 26px -6px rgba(37, 211, 102, .6), 0 3px 10px rgba(0, 0, 0, .2);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cw-wa-float svg { width: 33px; height: 33px; fill: #fff; display: block; }
.cw-wa-float:hover { transform: scale(1.07); box-shadow: 0 14px 32px -6px rgba(37, 211, 102, .75), 0 4px 12px rgba(0, 0, 0, .25); }
.cw-wa-float:focus-visible { outline: 3px solid #143A24; outline-offset: 3px; }
@media (max-width: 720px) {
  .cw-wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .cw-wa-float svg { width: 29px; height: 29px; }
}
.cw-wa-btn { background: #25D366 !important; color: #fff !important; }
.cw-wa-btn svg { width: 19px; height: 19px; fill: #fff; }
