/* ==========================================================
   GRUPO ADVENTOR – Estilos de la página principal
   Para cambiar colores, medidas o tipografía, edita :root.
   ========================================================== */

:root {
  /* Colores de marca (tomados del logo) */
  --navy: #26325e;          /* azul oscuro del logo */
  --blue: #3b5ca0;          /* azul claro del logo */
  --blue-soft: #eef2fa;     /* fondo de secciones alternas */

  /* Acento por sector */
  --agri: #3f8f4e;          /* Feed & Agri */
  --metal: #6b7688;         /* Metalmecánica */
  --safety: #f2b705;        /* Salud y Seguridad */

  /* Neutros */
  --text: #222838;
  --muted: #5d6478;
  --line: #dde2ee;
  --white: #ffffff;
  --bg: #ffffff;
  --whatsapp: #25d366;

  /* Tipografía (fuentes del sistema, sin descargas) */
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Medidas */
  --container: 1200px;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(38, 50, 94, .10);
  --shadow-lg: 0 16px 40px rgba(38, 50, 94, .18);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--safety); outline-offset: 3px; }

.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico--fill { fill: currentColor; stroke: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 8px; border: 2px solid var(--blue);
  background: var(--blue); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--navy); border-color: var(--navy); transform: translateY(-2px); }
.btn--sm { padding: 9px 20px; font-size: .95rem; }
.btn--block { width: 100%; }
.btn--light { background: #fff; border-color: #fff; color: var(--navy); }
.btn--light:hover { background: transparent; color: #fff; border-color: #fff; }
.btn--outline { background: transparent; color: var(--blue); }
.btn--outline:hover { color: #fff; }
.btn--whatsapp { background: var(--whatsapp); border-color: var(--whatsapp); }
.btn--whatsapp:hover { background: #1ebe5a; border-color: #1ebe5a; }
.btn .ico { width: 20px; height: 20px; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--navy); color: #d8def0; font-size: .88rem; }
.topbar__inner { display: flex; align-items: center; gap: 24px; min-height: 40px; flex-wrap: wrap; }
.topbar__item { display: flex; align-items: center; gap: 8px; margin: 0; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar__social { margin-left: auto; }
.topbar__social a { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.12); }
.topbar__social a:hover { background: var(--blue); }

/* ---------- Encabezado ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.header.is-scrolled { box-shadow: 0 4px 20px rgba(38,50,94,.10); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { width: 190px; height: auto; }

.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link, .submenu a { text-decoration: none; color: var(--text); font-weight: 600; }
.nav__link { display: block; padding: 10px 14px; border-radius: 6px; }
.nav__link:hover, .nav__link.is-current { color: var(--blue); }
.nav__cta { margin-left: 10px; }

.has-sub { position: relative; display: flex; align-items: center; }
.has-sub .nav__link { padding-right: 4px; }
.sub-toggle { background: none; border: 0; padding: 6px; cursor: pointer; color: var(--text); display: grid; place-items: center; }
.sub-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.5; transition: transform .2s; }
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff; border-radius: 10px;
  box-shadow: var(--shadow-lg); padding: 8px; border-top: 3px solid var(--blue);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.submenu a { display: block; padding: 10px 14px; border-radius: 6px; font-weight: 500; }
.submenu a:hover { background: var(--blue-soft); color: var(--blue); }
@media (min-width: 1025px) {
  .has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.is-open .submenu { opacity: 1; visibility: visible; transform: none; }
  .has-sub:hover .sub-toggle svg, .has-sub.is-open .sub-toggle svg { transform: rotate(180deg); }
}

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero / carrusel ---------- */
.hero { position: relative; height: clamp(520px, 78vh, 700px); overflow: hidden; background: var(--navy); }
.hero__slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; display: flex; align-items: center; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease; }
.slide.is-active .slide__bg { transform: scale(1); }
/* Las fotos del hero ya vienen oscurecidas: el degradado solo refuerza el lado del texto */
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,27,55,.78) 0%, rgba(20,27,55,.35) 55%, rgba(20,27,55,0) 100%); }
/* Fotos nuevas (Midjourney) sin oscurecer de origen: degradado más fuerte para que el texto se lea */
.slide--foto-clara::after { background: linear-gradient(90deg, rgba(20,27,55,.88) 0%, rgba(20,27,55,.6) 45%, rgba(20,27,55,.1) 100%); }
.slide__content { position: relative; z-index: 1; color: #fff; padding-bottom: 40px; }
.slide__content > * { max-width: 640px; }
.slide__eyebrow { display: inline-block; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; padding: 6px 14px; border-radius: 999px; background: var(--accent, var(--blue)); color: #fff; }
.slide[data-accent="safety"] .slide__eyebrow { color: var(--navy); }
.slide__title { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3.2rem); margin: .4em 0 .5em; }
.slide__text { font-size: 1.12rem; color: #e3e8f5; }
.slide__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.slide.is-active .slide__content > * { animation: rise .8s ease both; }
.slide.is-active .slide__content > *:nth-child(2) { animation-delay: .1s; }
.slide.is-active .slide__content > *:nth-child(3) { animation-delay: .2s; }
.slide.is-active .slide__content > *:nth-child(4) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

[data-accent="agri"] { --accent: var(--agri); }
[data-accent="metal"] { --accent: var(--metal); }
[data-accent="safety"] { --accent: var(--safety); }

.hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.1); color: #fff; cursor: pointer; display: grid; place-items: center;
  transition: background .2s;
}
.hero__arrow:hover { background: var(--blue); border-color: var(--blue); }
.hero__arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.hero__arrow--prev { left: 20px; }
.hero__arrow--next { right: 20px; }
.hero__dots { position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 10px; }
.hero__dot { width: 12px; height: 12px; border-radius: 999px; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; transition: width .3s, background .3s; }
.hero__dot[aria-selected="true"] { width: 34px; background: #fff; }

/* ---------- Compra fácil (promesas comerciales, se superpone al hero) ---------- */
.promises { position: relative; z-index: 3; margin-top: -56px; }
.promises__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; border-top: 4px solid var(--agri); }
.promise { display: flex; align-items: center; gap: 14px; padding: 24px 22px; border-right: 1px solid var(--line); }
.promise:last-child { border-right: 0; }
.promise__icon { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: #edf6ef; }
.promise__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--agri); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.promise h3 { font-size: 1rem; margin: 0 0 .15em; }
.promise p { margin: 0; color: var(--muted); font-size: .88rem; }
.clients { text-align: center; color: var(--muted); margin-top: 22px; margin-bottom: 0; font-size: .98rem; }
.clients strong { color: var(--navy); }
.section--tight { padding: 56px 0 72px; }

/* ---------- Valores ---------- */
.values__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.value { padding: 30px 26px; text-align: center; border-right: 1px solid var(--line); transition: background .25s; }
.value:last-child { border-right: 0; }
.value:hover { background: var(--blue-soft); }
.value__icon { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--blue)); }
.value__icon svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.value h3 { font-size: 1.02rem; margin-bottom: .35em; }
.value p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--blue-soft); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.eyebrow { color: var(--blue); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; margin-bottom: .5em; }
.lead { color: var(--muted); font-size: 1.08rem; }

/* Texto + imagen */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 9 / 7; object-fit: cover; }
.split__text > p { color: var(--muted); }
.checklist { margin: 8px 0 28px; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .8rem; font-weight: 700; display: grid; place-items: center; }
.badge-year { position: absolute; right: -18px; bottom: -18px; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 18px 24px; box-shadow: var(--shadow-lg); text-align: center; }
.badge-year strong { display: block; font-size: 2rem; line-height: 1; }
.badge-year span { font-size: .85rem; opacity: .85; }

/* ---------- Sectores ---------- */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.sector { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; border-bottom: 4px solid var(--accent); }
.sector:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.sector__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.sector__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.sector__body p { color: var(--muted); flex: 1; }
.sector__link { font-weight: 700; text-decoration: none; color: var(--blue); }
.sector__link span { display: inline-block; transition: transform .2s; }
.sector__link:hover span { transform: translateX(4px); }

/* ---------- Fotos oscuras heredadas de gadventor.com ---------- */
/* Varias fotos originales vienen oscurecidas; este filtro las aclara en tarjetas. */
.foto-aclarar { filter: brightness(1.4) saturate(1.08); }
.foto-aclarar--mas { filter: brightness(1.9) saturate(1.1); }

/* ---------- Detalle de sectores ---------- */
.section__head--left { text-align: left; margin-left: 0; max-width: 760px; }
.eyebrow--accent { color: var(--accent, var(--blue)); }
[data-accent="safety"] .eyebrow--accent { color: #b58800; }
.section__cta { text-align: center; margin: 40px 0 0; }

/* Servicios metalmecánica */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.service__body { padding: 24px 26px 28px; border-top: 4px solid var(--metal); }
.service__body p { color: var(--muted); margin: 0; }

/* Catálogo Feed & Agri */
.catalog { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.cat { display: grid; grid-template-columns: 42% 1fr; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cat img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.cat__body { padding: 24px; }
.cat__body h3 { display: flex; align-items: center; gap: 10px; }
.cat__body h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--agri); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .86rem; padding: 5px 12px; border-radius: 999px; background: #edf6ef; color: #245a31; border: 1px solid #d3e9d8; }

/* Catálogo EPP */
.epp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.epp__item { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--navy); }
.epp__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.epp__item:hover img { transform: scale(1.06); }
.epp__item > span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; color: #fff; font-weight: 700; background: linear-gradient(transparent, rgba(20,27,55,.9)); }
.epp__item > span::before { content: ""; display: block; width: 28px; height: 3px; background: var(--safety); margin-bottom: 8px; border-radius: 2px; }
.epp__item--cta { background: var(--safety); }
.epp__item--cta a { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 20px; color: var(--navy); text-decoration: none; }
.epp__item--cta strong { font-size: 1.15rem; line-height: 1.3; }
.epp__item--cta span { font-weight: 700; }
.epp__item--cta:hover { background: #ffc81f; }

/* Sector destacado (Feed & Agri) */
.sector { position: relative; }
.sector--featured { outline: 3px solid var(--agri); outline-offset: -3px; }
.sector__badge { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--agri); color: #fff; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 5px 10px; border-radius: 6px; }

/* Promesas en píldoras */
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pills li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: .9rem; font-weight: 600; color: var(--navy); box-shadow: 0 2px 8px rgba(38,50,94,.06); }

/* Indicación "toca un producto" */
.tap-hint { display: flex; align-items: center; gap: 8px; color: #1a7f45; font-weight: 600; font-size: .95rem; margin: -20px 0 22px; }
.tap-hint .ico { width: 20px; height: 20px; color: var(--whatsapp); }

/* Productos como enlaces a WhatsApp (los crea script.js) */
.chip-link { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.chips li:has(.chip-link) { padding: 0; }
.chips .chip-link { padding: 5px 12px; border-radius: 999px; transition: background .2s, color .2s; }
.chips .chip-link::after { content: "↗"; font-size: .75em; opacity: .55; }
.chips .chip-link:hover, .chips .chip-link:focus-visible { background: var(--agri); color: #fff; }
.epp__link { position: absolute; inset: 0; z-index: 2; border-radius: var(--radius); }
.epp__link:focus-visible { outline-offset: -4px; }
.epp__item:not(.epp__item--cta) > span::after { content: "Cotizar →"; display: block; font-size: .78rem; font-weight: 600; color: var(--safety); margin-top: 2px; opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; }
.epp__item:hover > span::after, .epp__item:focus-within > span::after { opacity: 1; transform: none; }
.service__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; color: #1a7f45; text-decoration: none; }
.service__cta .ico { width: 18px; height: 18px; }
.service__cta:hover { text-decoration: underline; }

/* Llamados dentro de cada sector */
.feed-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 36px; padding: 26px 30px; border-radius: var(--radius); background: linear-gradient(120deg, #edf6ef, #fff); border: 1px solid #d3e9d8; }
.feed-cta h3 { margin-bottom: .25em; }
.feed-cta p { margin: 0; color: var(--muted); }
.feed-cta--metal { background: linear-gradient(120deg, #eef0f4, #fff); border-color: var(--line); }

/* Preguntas frecuentes */
.faq { max-width: 820px; }
.faq__item { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden; }
.faq__item summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; gap: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--blue); transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* Misión y visión */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 28px; }
.mv__item { background: #fff; border-radius: var(--radius); padding: 20px; border-left: 4px solid var(--blue); box-shadow: var(--shadow); }
.mv__item h3 { margin-bottom: .3em; }
.mv__item p { color: var(--muted); font-size: .95rem; margin: 0; }
.btn .ico { stroke-width: 2.2; }

/* ---------- Marca propia (inicio) ---------- */
.own-brand { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; margin: 8px 0 48px; align-items: stretch; }
.own-brand__photo { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); min-height: 320px; }
.own-brand__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.own-brand__photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 20px; color: #fff; background: linear-gradient(transparent, rgba(20,27,55,.9)); }
.own-brand__photo figcaption strong { display: block; font-size: 1.15rem; line-height: 1.3; }
.own-brand__tag { display: inline-block; background: var(--agri); color: #fff; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; border-radius: 6px; margin-bottom: 8px; }
.own-brand__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.own-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; border-top: 4px solid var(--agri); }
.own-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: #fff; }
.own-card__body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.own-card__body h3 { font-size: 1.02rem; margin-bottom: .2em; }
.own-card__body > p { color: var(--muted); font-size: .9rem; }
.own-card__body .btn { margin-top: auto; }

/* Datos de producto reutilizables */
.product__pres { font-weight: 700; color: var(--navy) !important; font-size: .9rem; margin-bottom: .5em; }
.product__species { font-size: .82rem !important; color: #245a31 !important; background: #edf6ef; border-radius: 8px; padding: 6px 10px; }
.product__comp { font-size: .82rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 10px; }
.price { display: grid; gap: 2px; margin: 4px 0 14px; padding: 10px 12px; border-radius: 10px; background: #fff8e1; border: 1px dashed #f2b705; }
.price__regular { font-size: .85rem; color: var(--muted); }
.price__promo { font-weight: 800; color: #9a6b00; font-size: 1.02rem; }

/* Acceso al catálogo de control de plagas (inicio) */
.pest-teaser { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: center; margin-top: 36px; padding: 24px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.pest-teaser img { width: 100%; border-radius: 10px; }
.pest-teaser__text p { color: var(--muted); }
.pest-teaser__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Página de catálogo ---------- */
.page-hero { background: linear-gradient(120deg, var(--navy), var(--blue)); color: #fff; padding: 48px 0; }
.page-hero__inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .3em; }
.page-hero .lead { color: #dfe6f7; }
.page-hero__img { width: 100%; max-width: 340px; justify-self: end; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-lg); }
.breadcrumb { font-size: .88rem; margin-bottom: 12px; color: #c9d3ee; }
.breadcrumb a { color: #fff; }
.pills--dark li { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: #fff; box-shadow: none; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.filter { border: 1.5px solid var(--line); background: #fff; color: var(--navy); font-weight: 600; font-size: .92rem; padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: all .2s; }
.filter:hover { border-color: var(--blue); }
.filter.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.filters__count { color: var(--muted); font-size: .9rem; margin-bottom: 24px; }

.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product { position: relative; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.product:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product[hidden] { display: none; }
.product img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-bottom: 1px solid var(--line); }
.product__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.product__body h3 { font-size: 1.02rem; margin-bottom: .2em; }
.product__body > p { font-size: .88rem; color: var(--muted); }
.product__cat { font-size: .75rem !important; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--blue) !important; margin-bottom: .3em; }
.product__body .btn { margin-top: auto; }
.product__badge { position: absolute; top: 10px; left: 10px; z-index: 1; background: var(--navy); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 4px 9px; border-radius: 6px; }
.product__badge--agri { background: var(--agri); }
.product--own { border: 2px solid var(--agri); }
.product--vet { border-top: 4px solid var(--agri); }
.product__name { text-transform: uppercase; letter-spacing: .02em; }
.product__more { font-size: .84rem; color: var(--muted); margin-bottom: .8em; }
.product__more summary { cursor: pointer; font-weight: 600; color: var(--blue); }
.product__more p { margin-top: .4em; }
.notice { margin-top: 32px; padding: 16px 20px; border-radius: 10px; background: #fff8e1; border-left: 4px solid var(--safety); color: var(--text); font-size: .92rem; }

/* ---------- También atendemos (líneas secundarias, bloque discreto) ---------- */
.also { padding: 36px 0 40px; border-top: 1px solid var(--line); background: #fafbfd; }
.also__title { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 16px; }
.also__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.also__card { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.also__card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.also__icon { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--navy); }
.also__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.also__text { flex: 1; font-size: .92rem; color: var(--muted); line-height: 1.4; }
.also__text strong { display: block; color: var(--navy); font-size: .98rem; }
.also__more { flex: none; font-weight: 600; font-size: .88rem; color: var(--blue); white-space: nowrap; }

/* ---------- Planes de alimentación ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.plan { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--agri); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; display: flex; flex-direction: column; }
.plan h3 { font-size: 1.15rem; margin-bottom: .2em; }
.plan__sub { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.plan__list { list-style: none; margin: 0 0 18px; padding: 0; }
.plan__list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.plan__list li:last-child { border-bottom: 0; }
.plan__stage { font-weight: 700; color: var(--navy); }
.plan__data { color: var(--muted); text-align: right; }
.plan .btn { margin-top: auto; }

/* ---------- Cotización ---------- */
.quote { background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 100%); color: #fff; padding: 72px 0; position: relative; overflow: hidden; }
.quote::before { content: ""; position: absolute; right: -80px; top: -60px; width: 360px; height: 360px; background: url("assets/img/logo/isotipo-blanco.png") center / contain no-repeat; opacity: .07; }
.quote__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; position: relative; }
.quote h2 { color: #fff; margin-bottom: .3em; }
.quote p { margin: 0; color: #dfe6f7; font-size: 1.1rem; }
.quote__eyebrow { font-weight: 700; color: var(--safety) !important; text-transform: uppercase; letter-spacing: .1em; font-size: .9rem !important; margin-bottom: .4em !important; }
.quote__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Noticias ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-grid:has(> .news:only-child) { grid-template-columns: minmax(0, 440px); justify-content: center; }   /* una sola noticia: centrada */
.news { position: relative; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.news:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.news__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.news__body p { color: var(--muted); font-size: .95rem; flex: 1; }
.news time { font-size: .85rem; color: var(--blue); font-weight: 600; margin-bottom: 6px; }
.news__link { font-weight: 700; text-decoration: none; }
.news__tag { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--accent, var(--blue)); color: #fff; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; border-radius: 6px; }
.news[data-accent="safety"] .news__tag { color: var(--navy); }
.news__source { font-size: .82rem !important; color: var(--muted); font-style: italic; flex: 0 !important; margin-bottom: .6em; }
.tag-provisional { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--safety); color: var(--navy); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 6px; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .93rem; color: var(--navy); }
.form input, .form select, .form textarea { font: inherit; color: var(--text); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: #fbfcfe; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,92,160,.18); background: #fff; }
.form [aria-invalid="true"] { border-color: #c62828; }
.form__error { color: #c62828; margin: 0; font-weight: 600; font-size: .92rem; }
.form__note { margin: 0; font-size: .85rem; color: var(--muted); text-align: center; }
.form__optional { font-weight: 400; color: var(--muted); }
.info__note { margin-top: 6px !important; font-size: .88rem; color: #fff; opacity: .8; }

.info { background: var(--navy); color: #dbe1f2; border-radius: var(--radius); padding: 32px; display: grid; gap: 24px; box-shadow: var(--shadow-lg); }
.info h3 { color: #fff; font-size: 1rem; margin-bottom: .4em; text-transform: uppercase; letter-spacing: .06em; }
.info a { color: #fff; text-decoration: none; }
.info a:hover { text-decoration: underline; }
.info p { margin: 0; }
.info__list { display: grid; gap: 4px; }
.hours { width: 100%; border-collapse: collapse; font-size: .93rem; }
.hours th, .hours td { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.12); text-align: left; font-weight: 400; }
.hours td { text-align: right; color: #fff; font-weight: 600; }

/* ---------- Pie de página ---------- */
.footer { background: #1a2345; color: #b9c2dc; padding-top: 64px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.footer ul { display: grid; gap: 8px; }
.footer a { color: #b9c2dc; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__brand img { width: 170px; margin-bottom: 16px; }
.footer__social { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); }
.footer__social:hover { background: var(--blue); }
.footer__social .ico { width: 18px; height: 18px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: .85rem; }
.footer__bottom p { margin: 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }

/* ---------- Barra fija en celular ---------- */
.mobile-cta { display: none; }
@media (max-width: 720px) {
  .mobile-cta {
    display: grid; grid-template-columns: 1fr auto; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 210;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); box-shadow: 0 -6px 20px rgba(38,50,94,.15);
  }
  .mobile-cta a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
  .mobile-cta .ico { width: 20px; height: 20px; }
  .mobile-cta__wa { background: var(--whatsapp); color: #fff; }
  .mobile-cta__tel { background: var(--navy); color: #fff; }
  body .wa { display: none; }       /* en celular, la barra reemplaza al botón flotante */
  body { padding-bottom: 76px; }
}

/* ---------- WhatsApp flotante ---------- */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wa__btn { width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--whatsapp); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .2s; animation: pulse 2.4s infinite; }
.wa__btn:hover { transform: scale(1.08); }
.wa__btn svg { width: 34px; height: 34px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.wa__panel { width: min(320px, calc(100vw - 40px)); background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.wa__head { background: #075e54; color: #fff; padding: 16px 18px; display: flex; justify-content: space-between; gap: 12px; }
.wa__head p { margin: 0; line-height: 1.4; }
.wa__head span { font-size: .85rem; opacity: .85; }
.wa__close { background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.wa__list { padding: 8px; }
.wa__list a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; text-decoration: none; color: var(--text); }
.wa__list a:hover { background: #f0f7f3; }
.wa__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--whatsapp); color: #fff; display: grid; place-items: center; flex: none; }
.wa__avatar svg { width: 24px; height: 24px; }
.wa__list strong { display: block; color: var(--navy); }
.wa__list small { color: var(--muted); }

/* ---------- Animación de aparición ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ================= ADAPTABLE ================= */

/* Tablet y menú móvil */
@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: var(--shadow-lg);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav.is-open { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; }
  .nav__link { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .has-sub { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .has-sub .nav__link { flex: 1; border-bottom: 0; }
  .sub-toggle { padding: 12px; }
  .has-sub.is-open .sub-toggle svg { transform: rotate(180deg); }
  .submenu { position: static; flex-basis: 100%; box-shadow: none; border: 0; padding: 0 0 8px 12px; opacity: 1; visibility: visible; transform: none; display: none; min-width: 0; }
  .has-sub.is-open .submenu { display: block; }
  .nav__cta { margin: 16px 0 0; }
  .nav__cta .btn { width: 100%; }

  .products { grid-template-columns: repeat(3, 1fr); }
  .own-brand { grid-template-columns: 1fr; }
  .own-brand__photo { min-height: 280px; }
  .promises__grid { grid-template-columns: repeat(2, 1fr); }
  .promise:nth-child(2) { border-right: 0; }
  .promise:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .values__grid { grid-template-columns: repeat(2, 1fr); }
  .value:nth-child(2) { border-right: 0; }
  .value:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .sectors, .news-grid, .services { grid-template-columns: repeat(2, 1fr); }
  .catalog { grid-template-columns: 1fr; }
  .epp { grid-template-columns: repeat(3, 1fr); }
  .mv { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__media { order: 0; }
  .split__media img { aspect-ratio: 16 / 10; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; }
}

/* Móvil */
@media (max-width: 720px) {
  :root { --header-h: 66px; }
  .brand img { width: 150px; }
  .topbar__hide-sm { display: none; }
  .topbar__inner { gap: 12px; }
  .section { padding: 64px 0; }
  .hero { height: auto; min-height: 560px; }
  .slide__content { padding: 60px 0 110px; }
  .slide::after { background: linear-gradient(180deg, rgba(20,27,55,.75), rgba(20,27,55,.9)); }
  .hero__arrow { display: none; }
  .hero__dots { bottom: 76px; }
  .products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product__body { padding: 12px; }
  .product__body > p:not(.product__cat):not(.product__pres) { display: none; }   /* en celular: tarjeta compacta */
  .product__body > p.product__comp { display: none; }
  .product__body h3 { font-size: .92rem; }
  .product .btn { padding: 9px 10px; font-size: .85rem; }
  .price { padding: 8px; }
  .own-brand__cards { grid-template-columns: 1fr; }
  .own-card img { aspect-ratio: 1; }
  .pest-teaser { grid-template-columns: 1fr; padding: 18px; }
  .pest-teaser img { max-width: 260px; margin: 0 auto; }
  .page-hero__inner { grid-template-columns: 1fr; }
  .page-hero__img { display: none; }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-right: -16px; }
  .filter { flex: none; }
  .promises { margin-top: -40px; }
  .promises__grid { grid-template-columns: 1fr 1fr; }
  .promise { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 14px; }
  .promise h3 { font-size: .92rem; }
  .promise p { font-size: .8rem; }
  .promise__icon { width: 40px; height: 40px; }
  .feed-cta { padding: 22px; }
  .feed-cta .btn { width: 100%; }
  .tap-hint { margin-top: -12px; font-size: .9rem; }
  .values__grid { grid-template-columns: 1fr; }
  .value { border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; gap: 0 16px; text-align: left; padding: 20px; }
  .value:last-child { border-bottom: 0; }
  .value__icon { grid-row: span 2; margin: 0; width: 52px; height: 52px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__media { order: 0; }
  .badge-year { right: 12px; bottom: -16px; padding: 12px 18px; }
  .sectors, .news-grid, .services { grid-template-columns: 1fr; }
  .cat { grid-template-columns: 1fr; }
  .cat img { min-height: 0; aspect-ratio: 16 / 9; }
  .epp { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .epp__item > span { font-size: .9rem; padding: 30px 12px 10px; }
  .epp__item--cta strong { font-size: 1rem; }
  .mv { grid-template-columns: 1fr; }
  .quote__inner { flex-direction: column; align-items: flex-start; }
  .form { padding: 22px; }
  .form__row { grid-template-columns: 1fr; }
  .info { padding: 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}
