/* Alimentos del NEA — estilos */
:root {
  --blue: #2e3093;
  --blue-hover: #4548b8;
  --ink: #111111;
  --text: #1a1a1a;
  --muted: #555555;
  --line: #d9d9d9;
  --line-soft: #e4e4e4;
  --surface: #f5f5f5;
  --white: #ffffff;
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Instrument Sans", sans-serif;
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 12px 18px; border-radius: 4px; background: var(--blue); color: var(--white); font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container { max-width: var(--max); margin: 0 auto; padding-inline: 32px; }
.section { padding-top: 96px; }

/* Tipografía */
.eyebrow {
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}
.h2 {
  max-width: 760px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.accent { color: var(--blue); }
.accent-link { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.accent-link:hover { color: var(--blue-hover); }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  border: 0;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn--lg { min-height: 52px; padding: 0 30px; font-size: 17px; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; align-self: flex-start; margin-top: 6px; }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-hover); }
.btn--ghost { border: 1.5px solid #888; background: transparent; color: var(--ink); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--ghost img { filter: brightness(0) saturate(100%); opacity: 0.85; }

/* Header */
.header {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 28px 20px;
}
.brand { display: flex; align-items: center; }
.brand__logo { display: block; height: 88px; width: auto; }
.nav { display: flex; align-items: center; gap: 8px 28px; font-weight: 500; font-size: 16px; }
.nav a:not(.btn):hover { color: var(--blue); }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 1.5px solid #888; border-radius: 4px;
  background: transparent; color: var(--ink); cursor: pointer;
}

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 40px 88px; }
.hero__text { flex: 1 1 500px; min-width: 0; }
.hero__text .eyebrow { margin-bottom: 20px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.02em;
}
.hero__lead { margin-top: 26px; max-width: 560px; font-size: 19px; color: var(--text); }
.hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__media {
  flex: 1 1 380px; min-width: 0; width: 100%;
  aspect-ratio: 4 / 5; max-height: 560px;
  background: var(--surface); border-radius: 8px; overflow: hidden;
}
.hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__side { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hero__media--loop { flex: none; aspect-ratio: 16 / 9; max-height: none; background: #0d0f1a; }
.hero__media--loop video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__video-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue, #2e3192); }
.hero__video-link:hover { text-decoration: underline; }
.about-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; }
.about-wrap .about { flex: 1 1 380px; }
.about__video { flex: 1 1 460px; min-width: 0; scroll-margin-top: 24px; }
.video-card { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #0d0f1a; }
.video-card video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; cursor: pointer;
  background: linear-gradient(180deg, rgba(13,15,26,0) 40%, rgba(13,15,26,0.62));
  color: #fff; border: 0; font: inherit; transition: opacity 0.3s ease;
}
.video-play__icon {
  width: 76px; height: 76px; border-radius: 50%; background: var(--blue, #2e3192); color: #fff;
  display: grid; place-items: center; padding-left: 4px;
  box-shadow: 0 0 0 10px rgba(255,255,255,0.28); transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.video-play:hover .video-play__icon, .video-play:focus-visible .video-play__icon { transform: scale(1.08); box-shadow: 0 0 0 14px rgba(255,255,255,0.32); }
.video-play:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.video-play__label { font-weight: 600; font-size: 17px; text-shadow: 0 1px 8px rgba(0,0,0,0.5); }
.video-card.is-playing .video-play { opacity: 0; pointer-events: none; }

/* Cifras */
.stats { display: flex; flex-wrap: wrap; gap: 20px; }
.stat {
  flex: 1 1 240px; min-width: 0; min-height: 220px; padding: 28px;
  border-radius: 24px; background: var(--surface); border: 1px solid var(--line-soft);
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
}
.stat__icon {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--white); border: 1px solid var(--line-soft);
}
.stat__value {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 4.4vw, 60px); line-height: 1; letter-spacing: -0.03em; color: var(--blue);
  white-space: nowrap;
}
.stat__label { margin-top: 10px; font-size: 16px; color: var(--text); }
.stat--featured { background: var(--blue); border-color: var(--blue); color: var(--white); }
.stat--featured .stat__icon { background: rgba(255, 255, 255, 0.16); border-color: transparent; }
.stat--featured .stat__value, .stat--featured .stat__label { color: var(--white); }

/* Marcas */
.logo-grid { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 16px; }
.logo-grid__item {
  flex: 1 1 220px; min-width: 0; height: 130px; padding: 28px 32px; border-radius: 20px;
  background: var(--white); border: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center;
}
.logo-grid__item img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-grid__item--more {
  background: var(--blue); border-color: var(--blue); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 24px;
}
.note { margin-top: 24px; color: var(--muted); font-size: 15px; }

.logo-grid__item--more { padding: 0; }
.more-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 100%; border: 0; border-radius: inherit; background: transparent;
  color: inherit; font: inherit; cursor: pointer;
  transition: background 0.2s ease;
}
.more-btn:hover { background: var(--blue-hover); }
.more-btn svg { transition: transform 0.2s ease; }
.more-btn:hover svg { transform: translateX(4px); }
.more-btn:focus-visible { outline: 3px solid var(--white); outline-offset: -6px; }

/* Ventana de más marcas */
.brands-dialog { width: min(860px, calc(100% - 32px)); }
.brands-dialog .map-dialog__head { position: sticky; top: 0; z-index: 2; background: var(--white); }
.brands-dialog__body { padding: 0 32px 32px; }
.brands-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.brands-grid__item {
  height: 150px; padding: 22px 26px; border-radius: 16px;
  background: var(--white); border: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center;
}
.brands-grid__item img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brands-grid__item--tall { padding: 10px; }
.brands-dialog__note { margin-top: 24px; }
.brands-group + .brands-group { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.brands-group__title { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin-bottom: 18px; }
@media (max-width: 720px) { .brands-group__title { font-size: 19px; } }
@media (prefers-reduced-motion: no-preference) {
  .brands-dialog[open] .brands-grid__item { animation: brand-in 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(min(var(--i), 8) * 80ms + 120ms); }
  @keyframes brand-in { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }
}
@media (max-width: 720px) {
  .brands-dialog__body { padding: 0 20px 24px; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .brands-grid__item { height: 110px; padding: 14px; }
  .brands-grid__item--tall { padding: 6px; }
  .brands-grid__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Marca propia */
.brand-card {
  margin-top: 40px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  display: flex; flex-wrap: wrap;
}
.brand-card__media { flex: 1 1 440px; min-width: 0; min-height: 380px; position: relative; }
.brand-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-card__body {
  flex: 1 1 380px; min-width: 0; padding: 44px;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
.badge {
  align-self: flex-start; padding: 6px 14px; border-radius: 999px;
  background: var(--blue); color: var(--white);
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.logo-slot {
  display: flex; align-items: center; justify-content: center;
  height: 140px; padding: 12px; border-radius: 12px; background: var(--white);
  border: 1px solid var(--line-soft);
}
.logo-slot img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 28px; }
.brand-card p { color: var(--text); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--blue); font-weight: 600; }
.link-arrow:hover { color: var(--blue-hover); }

/* Beneficios */
.benefits { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 20px; }
.benefit {
  flex: 1 1 280px; min-width: 0; padding: 32px;
  border: 1px solid var(--line); border-radius: 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.benefit h3 { font-family: var(--font-display); font-weight: 700; font-size: 23px; }
.benefit p { color: var(--text); }
.benefit .btn--sm { margin-top: auto; }
.benefit p + .btn { margin-top: auto; }

/* Cómo ser cliente */
.steps { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 20px; counter-reset: step; }
.step {
  flex: 1 1 260px; min-width: 0; padding: 32px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 12px;
}
.step__num {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  font-family: var(--font-display); font-weight: 800; font-size: 20px;
}
.step h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.step p { color: var(--text); }
.steps__cta { margin-top: 32px; }

/* Quiénes somos */
.about { max-width: 760px; }
.about > p:not(.eyebrow) { margin-top: 20px; color: var(--text); }
.about .h2 { max-width: none; }
.pillars { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 20px; }
.pillar {
  flex: 1 1 300px; min-width: 0; padding: 32px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 16px;
}
.pillar h3 { font-family: var(--font-display); font-weight: 700; font-size: 26px; }
.pillar p { color: var(--text); }
.pillar__tags { display: flex; flex-wrap: wrap; gap: 10px; }
.pillar__tags li {
  padding: 8px 16px; border-radius: 999px; background: var(--white);
  border: 1px solid var(--line); font-weight: 500; font-size: 15px;
}

/* Preguntas frecuentes */
.faq { margin-top: 40px; max-width: 860px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; flex: none; font-family: var(--font-body); font-weight: 400; font-size: 28px; color: var(--blue);
  transition: transform 0.15s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .faq__item summary::after { transition: none; } }
.faq__item summary:hover { color: var(--blue); }
.faq__item p { padding: 0 0 22px; max-width: 680px; color: var(--text); }

/* Instagram */
.ig { padding: 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line-soft); }
.ig__head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.ig__avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--line); background: var(--white); }
.ig__id { flex: 1 1 260px; min-width: 0; }
.ig__name { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.1; }
.ig__bio { margin-top: 4px; color: var(--text); font-size: 16px; }
.ig-feed { margin-top: 24px; }
.ig-feed:empty { display: none; }
.ig-feed iframe, .ig-feed > * { max-width: 100%; border-radius: 12px; }
/* El widget de EmbedSocial vive en un iframe: no se puede editar por dentro.
   Subimos el iframe para recortar su cabecera ("Latest Updates" + Follow).
   Si queda un hueco o se corta de más, ajustá este número (-80px). */
.ig-feed { overflow: hidden; border-radius: 12px; }
.ig-feed iframe { display: block; margin-top: -80px; }
.ig-feed:not(:empty) ~ .ig-fallback { display: none; }
.ig-fallback {
  margin-top: 24px; padding: 32px 24px; border-radius: 16px; background: var(--white); border: 1px dashed var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; color: var(--text);
}
@media (max-width: 720px) { .ig { padding: 20px; } .ig__follow { width: 100%; } }

/* Contacto */
.contact { display: flex; flex-wrap: wrap; gap: 56px; padding-block: 96px 112px; }
.contact__info { flex: 1 1 380px; min-width: 0; }
.contact__info .h2 { max-width: none; }
.contact__info > p { margin-top: 22px; max-width: 440px; color: var(--text); }
.contact__list { margin-top: 32px; display: flex; flex-direction: column; gap: 18px; color: var(--text); }
.contact__list li { display: flex; flex-direction: column; gap: 2px; }
.contact__label { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.form {
  flex: 1 1 440px; min-width: 0; padding: 36px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  display: flex; flex-direction: column; gap: 20px;
}
.form__note { font-size: 14px; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 500; }
.field input, .field textarea {
  padding: 0 14px; background: var(--white); border: 1px solid #bdbdbd; border-radius: 4px;
  color: var(--ink); font: inherit;
}
.field input { height: 48px; }
.field textarea { padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.field select {
  height: 48px; padding: 0 14px; background: var(--white);
  border: 1px solid #bdbdbd; border-radius: 4px; color: var(--ink); font: inherit;
}

.form__status { padding: 12px 16px; border-radius: 8px; font-size: 15px; font-weight: 500; }
.form__status.is-ok { background: #e6f4ea; color: #14532d; border: 1px solid #a7d7b5; }
.form__status.is-error { background: #fdecea; color: #7a1c14; border: 1px solid #f1b5af; }
.form__status a { text-decoration: underline; font-weight: 600; }
.btn[disabled] { opacity: 0.65; cursor: wait; }


/* Cartel de confirmación al enviar */
.form.is-sent > *:not(.form__status),
.supplier-form.is-sent > *:not(.form__status) { display: none; }
.form__status.is-ok {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 40px 24px; text-align: center; font-size: 17px; font-weight: 400;
  background: #e6f4ea; color: #14532d; border: 2px solid #5fb67a; border-radius: 16px;
}
.form__status.is-ok strong { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.1; }
.form__check {
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%; background: #1f8f4e;
}
.form__sent-actions { margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.form__sent-actions .btn { margin-top: 0; align-self: auto; }
@media (prefers-reduced-motion: no-preference) {
  .form__status.is-ok { animation: sent-pop 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
  @keyframes sent-pop { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
}

/* Footer */
.footer { border-top: 1px solid var(--line); }
.footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 32px; color: var(--muted); font-size: 15px;
}
.footer__social { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.footer__social a:hover { color: var(--blue); }

/* Links tipo botón */
.link-btn {
  padding: 0; border: 0; background: none;
  font: inherit; font-weight: 600; color: var(--blue);
  text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}
.link-btn:hover { color: var(--blue-hover); }
.link-btn--inline { display: inline; }
.link-btn--footer { font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; }
.link-btn--footer:hover { color: var(--blue); }

/* Ventanas (mapa, proveedor, privacidad) */
body:has(dialog[open]) { overflow: hidden; }
.map-dialog {
  width: min(960px, calc(100% - 32px)); max-height: calc(100% - 32px);
  padding: 0; border: 0; border-radius: 24px; background: var(--white); color: var(--ink);
  overflow: auto;
}
.map-dialog::backdrop { background: rgba(17, 17, 17, 0.55); }
.map-dialog__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 28px 32px 20px;
}
.map-dialog__head .eyebrow { margin-bottom: 6px; }
.map-dialog__title { font-family: var(--font-display); font-weight: 700; font-size: 32px; line-height: 1.1; letter-spacing: -0.015em; }
.map-dialog__close {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--white); color: var(--ink); cursor: pointer;
}
.map-dialog__close:hover { border-color: var(--blue); color: var(--blue); }
.map-dialog__body { display: flex; flex-wrap: wrap; gap: 24px; padding: 0 32px 32px; }
.map-dialog__map { flex: 2 1 460px; min-width: 0; }
#delivery-map { height: 440px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.map-dialog__list { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.map-dialog__lead { color: var(--text); }
.map-dialog__list .note { margin-top: 0; }
.towns { display: flex; flex-direction: column; gap: 10px; }
.towns__item { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.towns__item small { color: var(--muted); font-weight: 400; font-size: 14px; }
.towns__dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); }
.towns__item--origin .towns__dot { width: 16px; height: 16px; box-shadow: 0 0 0 4px rgba(46, 48, 147, 0.2); }
.towns__item--more { color: var(--muted); font-weight: 400; }
.towns__item--more .towns__dot { background: transparent; border: 2px solid var(--blue); }

/* Pines y etiquetas del mapa (Leaflet) */
.map-pin { background: none; border: 0; }
.map-label {
  padding: 4px 10px; border: 0; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-family: var(--font-body); font-weight: 600; font-size: 13px; color: var(--ink);
}
.map-label--origin { background: var(--blue); color: var(--white); }
.map-label--origin::before, .map-label::before { display: none; }

/* Privacidad */
.terms { display: flex; flex-direction: column; gap: 20px; padding: 0 32px 32px; counter-reset: term; }
.terms li { counter-increment: term; padding-left: 44px; position: relative; }
.terms li::before {
  content: counter(term); position: absolute; left: 0; top: 0;
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue); color: var(--white); font-weight: 600; font-size: 14px;
}
.terms h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin-bottom: 4px; }
.terms p { color: var(--text); }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--text); }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); }

/* Soy proveedor */
.supplier-dialog { width: min(720px, calc(100% - 32px)); }
.supplier-dialog .map-dialog__head { background: var(--blue); color: var(--white); padding-bottom: 28px; }
.supplier-dialog .eyebrow { color: rgba(255, 255, 255, 0.8); }
.supplier-dialog__lead { margin-top: 10px; color: rgba(255, 255, 255, 0.9); font-size: 16px; }
.supplier-dialog .map-dialog__head > div { flex: 1; min-width: 0; }
.supplier-dialog .map-dialog__close { background: transparent; border-color: rgba(255, 255, 255, 0.5); color: var(--white); }
.supplier-dialog .map-dialog__close:hover { background: var(--white); border-color: var(--white); color: var(--blue); }
.supplier-form { padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 20px; }
.form-row { display: flex; flex-wrap: wrap; gap: 20px; }
.form-row .field { flex: 1 1 240px; min-width: 0; }

/* Botón flotante de WhatsApp */
.whatsapp-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: #0f7a40; color: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, background 0.15s ease;
}
.whatsapp-fab__icon { display: block; filter: brightness(0) invert(1); }
.whatsapp-fab:hover { background: #0c6a37; transform: translateY(-2px); }

/* Movimiento al scrollear (solo si hay JS y el usuario no pidió reducir animaciones) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--d, 0ms);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }

  .stat, .benefit, .step, .pillar, .logo-grid__item, .brand-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, opacity 0.7s ease;
  }
  .js .reveal.is-visible.stat:hover, .js .reveal.is-visible.benefit:hover,
  .js .reveal.is-visible.step:hover, .js .reveal.is-visible.pillar:hover,
  .js .reveal.is-visible.logo-grid__item:hover {
    transform: translateY(-6px); box-shadow: 0 14px 32px rgba(46, 48, 147, 0.12);
    transition-delay: 0ms;
  }
  .hero__media img { transition: transform 0.8s ease; }
  .hero__media:hover img { transform: scale(1.04); }
}

/* Tablet / mobile */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 32px; right: 32px; z-index: 40;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 16px;
    background: var(--white); border: 1px solid var(--line); border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { display: flex; align-items: center; min-height: 48px; padding: 0 8px; }
  .nav .btn { width: 100%; margin-top: 4px; }
}

@media (max-width: 720px) {
  .container { padding-inline: 20px; }
  .nav { left: 20px; right: 20px; }
  .header { padding-block: 20px 12px; }
  .brand__logo { height: 64px; }
  .hero { padding-block: 24px 64px; gap: 36px; }
  .hero__media { aspect-ratio: 4 / 3; }
  .video-play__icon { width: 60px; height: 60px; }
  .video-play__label { font-size: 15px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .section { padding-top: 72px; }
  .stat { min-height: 0; }
  .contact { padding-block: 72px; gap: 40px; }
  .form { padding: 24px; }
  .brand-card__body { padding: 28px; }
  .benefit, .step, .pillar { padding: 24px; }
  .map-dialog__head { padding: 20px 20px 16px; }
  .map-dialog__title { font-size: 26px; }
  .map-dialog__body { padding: 0 20px 24px; }
  #delivery-map { height: 340px; }
  .terms { padding: 0 20px 24px; }
  .supplier-form { padding: 20px; }
  .whatsapp-fab { right: 16px; bottom: 16px; }
  .faq__item summary { font-size: 18px; }
}
