/* ════ AGROPET® — styles.css · identidad de marca (verde + teal oscuro) ════ */
:root {
  --green: #5fc06a;
  --green-light: #8ed98e;
  --green-dark: #3e9a4a;
  --teal-900: #0e342d;   /* fondo oscuro de marca (catálogo / ilustraciones) */
  --teal-800: #123f36;
  --teal-700: #18564a;
  --ink: #1c2420;
  --ink-soft: #46524b;
  --bg: #ffffff;
  --bg-alt: #f2f7f2;
  --line: #e2e8e2;
  --radius: 16px;
  --shadow: 0 14px 40px rgba(14, 52, 45, .14);
  --shadow-soft: 0 8px 24px rgba(14, 52, 45, .10);
  --font: 'Archivo', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; background: var(--teal-900); }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.62; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--green-dark); }

.container { width: min(1180px, 92%); margin-inline: auto; }
.container--narrow { width: min(880px, 92%); }
.center { text-align: center; }

h1, h2, h3 { line-height: 1.1; font-weight: 900; letter-spacing: -.025em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.05rem); margin-bottom: .5em; }
h3 { font-size: 1.2rem; }
.accent { color: var(--green); }
.accent-dark { color: var(--green-dark); }

.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .18em;
  font-weight: 700; font-size: .76rem; color: var(--green-dark); margin-bottom: 1em;
}
.eyebrow.center { display: block; }
.eyebrow--light { color: var(--green-light); }
.section-lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 40em; }
.center .section-lead { margin-inline: auto; }

/* ════ Botones ════ */
.btn {
  display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.7em; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; font-size: 1rem; font-family: inherit; line-height: 1;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn--primary { background: var(--green); color: #06251f; }
.btn--primary:hover { background: var(--green-light); }
.btn--secondary { background: var(--teal-800); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost-light { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--light { background: #fff; color: var(--teal-900); }
.btn--light:hover { background: #eef5ed; }
/* Barra "Volver" en páginas de detalle */
.backbar { padding-block: .85rem; border-bottom: 1px solid var(--line); }
.hero .hero__inner--narrow { grid-template-columns: 1fr; max-width: 44rem; margin-inline: auto; text-align: center; }
.hero__inner--narrow .hero__content { min-width: 0; }
.hero__inner--narrow .hero__lead { margin-inline: auto; }
.hero .hero__inner--narrow h1 { font-size: clamp(2.05rem, 4.4vw, 3.2rem); }
.btn--lg { padding: 1.05em 2.1em; font-size: 1.05rem; }
.btn--sm { padding: .6em 1.3em; font-size: .92rem; }

/* ════ Barra de marca ════ */
.topbar { background: var(--teal-900); color: rgba(255,255,255,.8); font-size: .8rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .42rem; }
.topbar__brand { display: inline-flex; align-items: center; gap: .5em; }
.topbar__brand strong { color: #fff; font-weight: 700; }
.topbar__brand svg { display: block; border-radius: 50%; flex-shrink: 0; }
.topbar a { color: rgba(255,255,255,.8); text-decoration: none; }
.topbar a:hover { color: var(--green-light); }
@media (max-width: 640px) { .topbar__contact { display: none; } .topbar__brand { font-size: .74rem; } }

/* ════ Header ════ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--teal-800);
  border-bottom: 1px solid rgba(0,0,0,.18);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 1.2rem; }
.logo-img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.7rem; }
.nav a:not(.btn) {
  text-decoration: none; color: rgba(255,255,255,.85); font-weight: 600; font-size: 1.02rem;
  border-bottom: 2px solid transparent; padding-bottom: 2px; transition: color .15s, border-color .15s;
}
.nav a:not(.btn):hover { color: #fff; border-color: var(--green); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ════ Hero — look oscuro de marca ════ */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(90% 70% at 78% 35%, rgba(95,192,106,.22), transparent 55%),
    linear-gradient(160deg, #155144 0%, #0c2b25 55%, #061613 100%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 70% at 20% 100%, rgba(0,0,0,.45), transparent 60%);
}
.hero__badge {
  display: inline-flex; align-items: center; gap: .6em; padding: .5em 1em;
  border-radius: 999px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18);
  font-weight: 800; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 1.4em; color: #fff;
}
.hero__badge svg { display: block; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.35); flex-shrink: 0; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; padding-block: clamp(2.4rem, 5vw, 4rem); }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 6vw, 4.2rem); font-weight: 900; }
.hero__lead { font-size: 1.18rem; color: rgba(255,255,255,.82); margin: 1.1em 0 1.7em; max-width: 33em; }
.hero__lead strong { color: #fff; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__badges { list-style: none; display: flex; flex-wrap: wrap; gap: .55rem 1.5rem; margin-top: 1.8rem; font-weight: 600; font-size: .92rem; color: rgba(255,255,255,.78); }
.hero__tagline { margin-top: 1.5rem; font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; font-size: .82rem; color: var(--green-light); opacity: .85; }
.hero__badges li::before { content: '✓ '; color: var(--green); font-weight: 800; }
.hero__content { min-width: 0; }
.hero__visual { position: relative; display: grid; place-items: center; min-width: 0; }
/* Glow verde detrás de la bobina: radial que se desvanece a transparente antes del
   borde (sin caja/blur dependiente de CSS), así nunca se ve como un recuadro. */
.hero__visual::before {
  content: ''; position: absolute; inset: -6%; pointer-events: none;
  background: radial-gradient(46% 46% at 50% 46%, rgba(95,192,106,.34), rgba(95,192,106,.05) 56%, transparent 72%);
}
.hero__bobina { position: relative; width: 100%; max-width: 580px; filter: drop-shadow(0 26px 40px rgba(0,0,0,.5)); }

/* ════ Tira de sellos ════ */
.trust { background: var(--teal-900); color: rgba(255,255,255,.85); border-top: 1px solid rgba(255,255,255,.06); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; padding-block: 2.2rem; }
.trust strong { display: block; font-size: clamp(2.9rem, 5.6vw, 4.1rem); font-weight: 900; color: var(--green-light); line-height: 1; letter-spacing: -.02em; }
.trust .counter, .trust .unit { display: inline; }
.trust .unit { font-size: .4em; font-weight: 700; margin-left: .12em; color: var(--green); vertical-align: baseline; }
.trust__grid > div > span { font-size: .92rem; opacity: .8; display: block; margin-top: .6rem; }

/* ════ Secciones ════ */
.section { padding-block: clamp(2.6rem, 5.5vw, 4.2rem); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: linear-gradient(165deg, var(--teal-800), var(--teal-900)); color: #fff; }
.section--dark h2 { color: #fff; }
.section--dark .section-lead { color: rgba(255,255,255,.8); }

.split { display: grid; grid-template-columns: 1fr 1.08fr; gap: 3.5rem; align-items: center; }
.split--rev .split__media { order: 2; }
.split__text p { margin-bottom: 1em; color: var(--ink-soft); }
.section--dark .split__text p { color: rgba(255,255,255,.82); }
.split__media img { width: 100%; }

.checklist { list-style: none; margin: 1.3em 0 1.7em; }
.checklist li { padding-left: 1.9em; position: relative; margin-bottom: .8em; }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: .15em; width: 1.25em; height: 1.25em;
  background: var(--green); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/74% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/74% no-repeat;
}
.checklist strong { color: inherit; }

/* ════ Ventajas — fotos como fondo degradado + texto conciso ════ */
.advantages { display: grid; gap: clamp(2.4rem, 5vw, 4rem); margin-top: 3.2rem; }
.adv { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 3.2rem); align-items: center; }
.adv:nth-child(even) { grid-template-columns: 1fr 1.05fr; }
.adv:nth-child(even) .adv__media { order: 2; }
.adv__media { position: relative; min-width: 0; }
.adv__media img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); display: block;
  -webkit-mask-image: linear-gradient(to right, #000 52%, transparent 100%);
  mask-image: linear-gradient(to right, #000 52%, transparent 100%);
}
.adv:nth-child(even) .adv__media img {
  -webkit-mask-image: linear-gradient(to left, #000 52%, transparent 100%);
  mask-image: linear-gradient(to left, #000 52%, transparent 100%);
}
/* Modificador para invertir una característica suelta (foto a la derecha) */
.adv--rev { grid-template-columns: 1fr 1.05fr; }
.adv--rev .adv__media { order: 2; }
.adv--rev .adv__media img {
  -webkit-mask-image: linear-gradient(to left, #000 52%, transparent 100%);
  mask-image: linear-gradient(to left, #000 52%, transparent 100%);
}
.adv__body { min-width: 0; }
.adv__body h3 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); color: #fff; margin-bottom: .7rem; }
.adv__body p { color: rgba(255,255,255,.82); font-size: 1.06rem; line-height: 1.62; margin-bottom: 1.1rem; max-width: 34em; }
.link-more { display: inline-flex; align-items: center; gap: .35em; color: var(--green-light); font-weight: 700; text-decoration: none; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.link-more:hover { color: #fff; border-color: var(--green); }

/* ════ Showcase (banda visual) ════ */
.showcase { background: linear-gradient(165deg, var(--teal-800), var(--teal-900)); color: #fff; padding-block: clamp(2.6rem, 5.5vw, 4.4rem); }
.showcase__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 2.2rem; }
.showcase__grid figure { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.showcase__grid img { display: block; width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform .4s ease; }
.showcase__grid figure:hover img { transform: scale(1.06); }
.showcase__grid figcaption { position: absolute; inset: auto 0 0 0; padding: 2.2rem 1.1rem 1rem; background: linear-gradient(transparent, rgba(6,22,19,.92)); font-weight: 700; }
.adv__body { max-width: 580px; justify-self: start; }
.adv:nth-child(even) .adv__body { justify-self: end; }
.adv__body h3 { font-size: 1.45rem; margin-bottom: .7rem; }
.adv__body .checklist { margin: 0; }

/* ════ Comparativa ════ */
.table-wrap { overflow-x: auto; margin-top: 2.4rem; }
.compare-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 2.4rem; align-items: center; margin-top: 2.4rem; }
.compare-layout .table-wrap { margin-top: 0; }
.compare-photo { margin: 0; }
.compare-photo img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 860px) { .compare-layout { grid-template-columns: 1fr; gap: 1.6rem; } .compare-photo img { max-height: 280px; } }
.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare caption { caption-side: top; text-align: left; font-weight: 700; padding-bottom: .8rem; color: inherit; }
.compare th, .compare td { padding: .95rem 1.15rem; text-align: left; border-bottom: 1px solid var(--line); font-size: .96rem; }
.compare thead th { background: var(--teal-800); color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.compare thead th.compare__win { background: var(--green-dark); }
.compare td.compare__win { background: #ecf7ee; font-weight: 700; color: var(--green-dark); }
.compare tbody tr:last-child td { border-bottom: 0; }
.note { font-size: .88rem; color: var(--ink-soft); margin-top: .9rem; }
.section--dark .note { color: rgba(255,255,255,.65); }

/* ════ Aplicaciones — fotos reales a sangre ════ */
.apps { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.3rem; margin-top: 2.8rem; }
.app { flex: 0 0 calc((100% - 2.6rem) / 3); position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.app img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .4s ease; }
.app:hover img { transform: scale(1.07); }
.app figcaption { position: absolute; inset: auto 0 0 0; padding: 2.4rem 1.2rem 1rem; background: linear-gradient(transparent, rgba(8,30,26,.9)); color: #fff; font-weight: 700; }

/* ════ Calibres ════ */
.gauge { margin-top: 2.8rem; }
.gauge__visual { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.gauge__tabs { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.gauge__tab {
  padding: .68em 1.6em; border-radius: 999px; border: 2px solid rgba(255,255,255,.25);
  background: transparent; color: #fff; font-weight: 700; font-size: 1rem; cursor: pointer; font-family: inherit;
  transition: all .15s ease;
}
.gauge__tab:hover { border-color: var(--green); }
.gauge__tab.is-active { background: var(--green); border-color: var(--green); color: #06251f; }
.gauge__panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; align-items: center; }
.gauge__img { position: relative; display: grid; place-items: center; }
/* El packshot branded ya trae su propio blob de color; tarjeta blanca redondeada
   para que luzca limpio sobre la sección oscura de calibres. */
.gauge__img img { position: relative; max-width: 300px; width: 100%; background: #fff; border-radius: 18px; box-shadow: 0 20px 40px rgba(0,0,0,.32); }
.gauge__use { color: rgba(255,255,255,.8); margin: .4em 0 1.4em; font-size: 1.05rem; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.7rem; }
.specs div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: .95rem 1.05rem; }
.specs dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.6); }
.specs dd { font-size: 1.4rem; font-weight: 800; color: var(--green-light); }
.gauge .table-wrap { margin-top: 3rem; }
.section--dark .compare { background: rgba(255,255,255,.04); box-shadow: none; border: 1px solid rgba(255,255,255,.1); }
.section--dark .compare th, .section--dark .compare td { color: #fff; border-color: rgba(255,255,255,.1); }
.section--dark .compare thead th { background: rgba(255,255,255,.08); }
.section--dark .compare--specs td:first-child { color: var(--green-light); }

/* ════ Pasos ════ */
.steps { margin: 1.3em 0 1.5em 1.2em; }
.steps li { margin-bottom: .85em; color: var(--ink-soft); }
.section--dark .steps li { color: rgba(255,255,255,.82); }

/* ════ FAQ ════ */
.faq { margin-top: 2.4rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .8rem; overflow: hidden; }
.faq summary { padding: 1.15rem 1.4rem; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.6rem; color: var(--green-dark); transition: transform .2s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.4rem 1.2rem; color: var(--ink-soft); }

/* ════ CTA banner ════ */
.cta-banner {
  background-color: var(--teal-800);
  background-image:
    linear-gradient(120deg, rgba(46,128,60,.90), rgba(14,52,45,.91)),
    url(../img/accion-nudo-dos.webp);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  color: #fff; padding-block: clamp(3rem, 7vw, 4.5rem); text-align: center;
}
.cta-banner p { opacity: .92; margin: .6em 0 1.7em; font-size: 1.12rem; }
.cta-banner .hero__ctas { justify-content: center; }

/* ════ Contacto ════ */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items: start; }
.contact__info > p { color: var(--ink-soft); }
.contact__list { list-style: none; margin-top: 1.8rem; }
.contact__list li { display: flex; gap: 1rem; margin-bottom: 1.3rem; align-items: flex-start; }
.contact__list .ico { flex-shrink: 0; width: 26px; height: 26px; color: var(--green-dark); }
.contact__list strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); }
.contact__list a { font-weight: 600; text-decoration: none; }
.contact__list a:hover { text-decoration: underline; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.form h3 { margin-bottom: 1.2rem; }
.form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 1rem; }
.form input, .form select, .form textarea { width: 100%; padding: .78em .9em; margin-top: .35em; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: #fff; transition: border-color .15s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green-dark); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__legal { display: flex; gap: .6em; align-items: flex-start; font-weight: 400; font-size: .85rem; color: var(--ink-soft); }
.form__legal input { width: auto; margin-top: .25em; }
.form button { width: 100%; margin-top: .4rem; }
.form__status { margin-top: .9rem; font-weight: 600; min-height: 1.4em; }
.form__status.ok { color: var(--green-dark); }
.form__status.error { color: #c0392b; }
.hp { position: absolute !important; left: -9999px !important; height: 0; opacity: 0; }

/* ════ Footer ════ */
.footer { background: var(--teal-900); color: rgba(255,255,255,.72); padding-top: 3.2rem; font-size: .95rem; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer__logo { height: 40px; width: auto; margin-bottom: 1rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--green-light); }
.footer nav { display: flex; flex-direction: column; gap: .6rem; }
.footer__copy { border-top: 1px solid rgba(255,255,255,.1); padding: 1.2rem; text-align: center; font-size: .85rem; opacity: .65; }

/* ════ FAB llamada ════ */
.call-fab { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--green-dark); color: #fff; display: none; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.3); text-decoration: none; -webkit-tap-highlight-color: transparent; outline: none; -webkit-touch-callout: none; }
.call-fab:focus-visible { outline: 3px solid var(--green-light); outline-offset: 2px; }
.call-fab svg { width: 26px; height: 26px; display: block; }

/* ════ Reveal ════ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ════ Responsive ════ */
@media (max-width: 960px) {
  .hero__inner, .split, .split--rev, .gauge__panel, .contact { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .hero__visual { order: -1; }
  .app { flex-basis: calc((100% - 1.3rem) / 2); }
  .showcase__grid { grid-template-columns: 1fr 1fr; }
  .trust__grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
  .footer__inner { grid-template-columns: 1fr; }
  .adv, .adv:nth-child(even) { grid-template-columns: 1fr; gap: 1.1rem; }
  .adv__media, .adv:nth-child(even) .adv__media { order: 0; }
  .adv__media img, .adv:nth-child(even) .adv__media img {
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  }
  .adv__body, .adv:nth-child(even) .adv__body { justify-self: start; max-width: none; }
}
@media (max-width: 700px) {
  .nav { position: fixed; inset: 60px 0 auto 0; background: var(--teal-900); flex-direction: column; padding: 1.4rem; gap: 1.1rem; box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .25s ease; }
  .nav.is-open { transform: none; }
  .nav-toggle { display: block; }
  .app { flex-basis: 100%; }
  .form__row, .specs { grid-template-columns: 1fr; }
  .call-fab { display: flex; }
}

/* ════ Selector de idioma + banner de geolocalización (Fase 5) ════ */
.lang-select { position: relative; margin-inline-start: .4rem; }
.lang-select__btn { display: inline-flex; align-items: center; gap: .35rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #fff; border-radius: 999px; padding: .35rem .7rem; cursor: pointer; font: inherit; font-size: .85rem; line-height: 1; }
.lang-select__btn:hover { background: rgba(255,255,255,.18); }
.lang-select__flag { font-size: 1rem; line-height: 1; }
.lang-select__menu { position: absolute; inset-inline-end: 0; top: calc(100% + .4rem); background: #fff; border: 1px solid rgba(0,0,0,.12); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.18); list-style: none; margin: 0; padding: .4rem; min-width: 12rem; max-height: 60vh; overflow: auto; z-index: 60; }
.lang-select__menu li { margin: 0; }
.lang-select__menu a { display: flex; align-items: center; gap: .5rem; padding: .45rem .6rem; border-radius: 8px; text-decoration: none; color: var(--teal-800,#123f36); font-size: .9rem; }
.lang-select__menu a:hover { background: rgba(95,192,106,.12); }
.lang-select__menu a[aria-current] { font-weight: 700; color: var(--green,#3e9a4a); }

.geo-banner { position: fixed; left: 50%; transform: translateX(-50%); bottom: 1rem; z-index: 80; display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; justify-content: center; background: var(--teal-900,#0e342d); color: #fff; border: 1px solid rgba(255,255,255,.15); border-radius: 14px; padding: .8rem 1rem; box-shadow: 0 12px 44px rgba(0,0,0,.32); max-width: min(92vw, 40rem); animation: geoIn .3s ease both; }
@keyframes geoIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.geo-banner__txt { font-size: .95rem; }
.geo-banner__go { background: var(--green,#5fc06a); color: #06281f; font-weight: 700; text-decoration: none; padding: .45rem .9rem; border-radius: 999px; font-size: .9rem; }
.geo-banner__stay { background: transparent; color: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.25); padding: .45rem .8rem; border-radius: 999px; cursor: pointer; font: inherit; font-size: .9rem; }
@media (max-width: 480px) { .lang-select__code { display: none; } }

/* ════ Banda de certificaciones ISO en el footer (Fase 7) ════ */
.iso-band { display: flex; align-items: center; justify-content: center; gap: .9rem; flex-wrap: wrap; padding: 1.2rem 0 .4rem; border-top: 1px solid rgba(255,255,255,.1); margin-top: 1rem; }
.iso-band__badge { height: 48px; width: auto; }
.iso-band span { font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.85); }

/* ════ Banner de consentimiento de cookies (Consent Mode v2, Fase 8) ════ */
.consent-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: flex; align-items: center; justify-content: center; gap: .9rem; flex-wrap: wrap; background: var(--teal-900,#0e342d); color: #fff; padding: .9rem 1.2rem; box-shadow: 0 -6px 24px rgba(0,0,0,.28); }
.consent-banner__txt { font-size: .9rem; max-width: 42rem; }
.consent-banner__ok { background: var(--green,#5fc06a); color: #06281f; font-weight: 700; border: none; padding: .5rem 1.1rem; border-radius: 999px; cursor: pointer; font: inherit; font-size: .9rem; }
.consent-banner__no { background: transparent; color: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.3); padding: .5rem 1rem; border-radius: 999px; cursor: pointer; font: inherit; font-size: .9rem; }

/* ════ Paginas legales + enlaces legales del footer (Fase legal) ════ */
.legal h2 { margin-top: 1.8rem; font-size: 1.15rem; color: var(--teal-800,#123f36); }
.legal p, .legal li { line-height: 1.65; color: #2f3b37; }
.legal ul { padding-inline-start: 1.2rem; }
.legal a { color: var(--green,#3e9a4a); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: .8rem; padding-top: .9rem; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; justify-content: center; }
.footer-legal a, .footer-legal button { background: none; border: none; color: rgba(255,255,255,.7); font: inherit; font-size: .85rem; cursor: pointer; text-decoration: none; padding: 0; }
.footer-legal a:hover, .footer-legal button:hover { color: #fff; text-decoration: underline; }

/* ════ Carrusel del blog en la home (Fase blog) ════ */
.blog-carousel-section:empty { display: none; }
.bc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.bc-head h2 { margin: 0; }
.bc-head .eyebrow { margin-bottom: .4em; }
.bc-nav { display: flex; gap: .5rem; flex-shrink: 0; }
.bc-arrow { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--teal-800); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.bc-arrow:hover { background: var(--green); color: #06251f; border-color: var(--green); }
/* Vitrina fija (sin barra de scroll): N tarjetas que rotan solas por popularidad. */
.bc-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; transition: opacity .35s ease; }
.bc-track.is-fading { opacity: 0; }
.bc-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.bc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
@media (max-width: 920px) { .bc-track { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bc-track { grid-template-columns: 1fr; } }
.bc-img { display: block; height: 150px; background-size: cover; background-position: center; background-color: var(--bg-alt); }
.bc-body { padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.bc-meta { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--green-dark); font-weight: 800; }
.bc-title { font-weight: 700; color: var(--teal-800); line-height: 1.28; font-size: 1.02rem; }
.bc-more { color: var(--green-dark); font-weight: 700; font-size: .9rem; margin-top: auto; }

/* ════ Blog · listado moderno (índice) ════ */
.blog-index .bi-h1 { margin-bottom: .55rem; }
.blog-index .bi-lead { max-width: 62ch; margin-left: auto; margin-right: auto; color: var(--ink-soft); }

/* Post destacado */
.bi-featured {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: stretch;
  margin: 2.8rem 0 2rem; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #fff; text-decoration: none; color: inherit;
  box-shadow: var(--shadow-soft); transition: transform .2s ease, box-shadow .2s ease;
}
.bi-featured:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.bi-featured__media { overflow: hidden; min-height: 320px; }
.bi-featured__img { display: block; width: 100%; height: 100%; min-height: 320px;
  background-size: cover; background-position: center; background-color: var(--bg-alt);
  transition: transform .5s ease; }
.bi-featured:hover .bi-featured__img { transform: scale(1.05); }
.bi-featured__body { padding: 2.4rem; display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
.bi-featured__title { margin: 0; color: var(--teal-900); line-height: 1.13;
  font-size: clamp(1.55rem, 1rem + 1.7vw, 2.2rem); }
.bi-featured__desc { margin: 0; color: var(--ink-soft); font-size: 1.06rem; line-height: 1.55; }

/* Rejilla del resto de posts */
.bi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }
.bi-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.bi-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.bi-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.bi-card__media { overflow: hidden; }
.bi-card__img { display: block; height: 196px; background-size: cover; background-position: center;
  background-color: var(--bg-alt); transition: transform .5s ease; }
.bi-card:hover .bi-card__img { transform: scale(1.06); }
.bi-card__body { padding: 1.35rem 1.45rem 1.55rem; display: flex; flex-direction: column; gap: .65rem; flex: 1; }
.bi-card__title { margin: 0; color: var(--teal-800); font-size: 1.2rem; line-height: 1.27; }
.bi-card__desc { margin: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Chips / meta comunes */
.bi-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.bi-tag { background: var(--bg-alt); color: var(--green-dark); font-weight: 800; font-size: .68rem;
  text-transform: uppercase; letter-spacing: .05em; padding: .3em .75em; border-radius: 999px; line-height: 1; }
.bi-date { color: var(--ink-soft); font-size: .78rem; font-weight: 600; }
.bi-more { color: var(--green-dark); font-weight: 700; font-size: .92rem; margin-top: auto; padding-top: .35rem; }

@media (max-width: 760px) {
  .bi-featured { grid-template-columns: 1fr; margin-top: 2rem; }
  .bi-featured__media, .bi-featured__img { min-height: 200px; }
  .bi-featured__img { height: 200px; }
  .bi-featured__body { padding: 1.6rem 1.4rem; }
}

/* ════ Componente: imagen con branding AGROPET® (sello en esquina, RTL-aware) ════ */
.branded-img { position: relative; display: block; overflow: hidden; }
.branded-img > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.branded-img__seal {
  position: absolute; inset-block-end: 12px; inset-inline-end: 12px;
  width: clamp(94px, 13%, 128px); aspect-ratio: 297 / 76;
  background: rgba(255, 255, 255, .9); border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .28); pointer-events: none;
}
.branded-img__seal::after {
  content: ''; position: absolute; inset: 5px 9px;
  background: url('/assets/img/logo.png') center/contain no-repeat;
}

/* ════ Blog · artículo (post) moderno ════ */
.post-hero { position: relative; min-height: clamp(320px, 46vh, 460px); display: flex; align-items: flex-end; overflow: hidden; background: var(--teal-900); }
.post-hero__media { position: absolute; inset: 0; }
.post-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 30, 26, .12) 0%, rgba(8, 30, 26, .32) 45%, rgba(8, 30, 26, .86) 100%); }
.post-hero__inner { position: relative; z-index: 1; color: #fff; padding-block: 2.4rem 2.6rem; display: flex; flex-direction: column; gap: .85rem; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 600; }
.crumbs a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span[aria-hidden] { color: rgba(255, 255, 255, .5); }
.crumbs__current { color: #fff; }
/* Breadcrumbs sobre fondo claro (índice del blog) */
.crumbs--center { justify-content: center; margin-bottom: .8rem; }
.crumbs--center a { color: var(--green-dark); }
.crumbs--center a:hover { color: var(--teal-800); }
.crumbs--center span[aria-hidden] { color: #b8c5bd; }
.crumbs--center .crumbs__current { color: var(--ink-soft); }
.post-hero__tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.post-hero .bi-tag { background: rgba(255, 255, 255, .18); color: #fff; }
.post-hero__title { margin: 0; color: #fff; max-width: 22ch; line-height: 1.08; font-size: clamp(1.8rem, 1rem + 3vw, 3rem); text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.post-hero__meta { margin: 0; color: rgba(255, 255, 255, .85); font-weight: 600; font-size: .92rem; }

.post-body { padding-top: 2.6rem; }
.post-lead { font-size: 1.25rem; line-height: 1.55; color: var(--teal-800); font-weight: 500; margin: 0 0 1.6rem; }
.post-body h2 { margin: 2.2rem 0 .8rem; color: var(--teal-900); font-size: clamp(1.35rem, 1rem + 1.2vw, 1.75rem); }
.post-body > p { line-height: 1.72; color: var(--ink-soft); margin: 0 0 1.1rem; }
.post-body ul { line-height: 1.7; color: var(--ink-soft); margin: 0 0 1.2rem; padding-inline-start: 1.2rem; }
.post-body li { margin-bottom: .4rem; }
.post-credit { font-size: .8rem; color: #8a958f; margin-top: 1.4rem; font-style: italic; }

.post-cta { margin: 2.6rem 0 1rem; padding: 1.8rem 2rem; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap; }
.post-cta .eyebrow { margin-bottom: .25rem; }
.post-cta h2 { margin: 0; color: var(--teal-900); font-size: 1.3rem; }

@media (max-width: 640px) {
  .post-cta { flex-direction: column; align-items: flex-start; }
  .post-hero__inner { padding-block: 1.8rem; }
}
