/* RECETAS EN PAUSA: config.js agrega recipes-enabled al reactivar la pagina y sus accesos.
   Se usa !important para que los estilos de botones/menus no muestren los enlaces ocultos. */
html:not(.recipes-enabled) [data-feature="recipes"],
html:not(.recipes-enabled) .recipes-page {
  display: none !important;
}

/* PAGINA SOCIAL EN PAUSA: conserva el resumen del home, pero oculta pagina y accesos internos. */
html:not(.social-page-enabled) [data-feature="social-page"],
html:not(.social-page-enabled) .social-page {
  display: none !important;
}

/*
  GUIA DE EDICION - ESTILOS / styles.css
  - :root: colores globales, sombras y tamanos editables del titulo del hero.
  - Reset/base: reglas generales para body, imagenes, enlaces y botones.
  - Menu/nav: barra superior, logo, enlaces, menu celular.
  - Hero principal: portada del home, imagen, titulo, boton, indicadores y beneficios.
  - Secciones generales: ancho, espaciado, titulos y cabeceras.
  - Nosotros/estadisticas: bloque de historia y numeros animados.
  - Objetivo social home: carrusel social, metricas y tarjetas de apoyo.
  - Productos: filtros, carrusel, tarjetas y botones de detalle/consulta.
  - Canales: tabs y panel interactivo.
  - Registro: tarjetas de cliente y formulario modal.
  - Recetas: pagina recetas.html, grilla y modal de receta.
  - Objetivo social pagina: objetivo-social.html.
  - Modales: pop ups de productos y formularios.
  - Responsive: ajustes tablet y celular al final del archivo.
*/

:root {
  /* COLORES GENERALES DE MARCA: cambia estos valores para ajustar la paleta global de la web. */
  --pink: #e4137c;
  --blue: #1263ad;
  --navy: #062f61;
  --teal: #0fa4aa;
  --yellow: #ffc529;
  --orange: #f36b21;
  --green: #348a3b;
  --ink: #15304e;
  --muted: #64758a;
  --soft: #f5f8fc;
  --cream: #fff8e6;
  --white: #ffffff;
  --line: #dfe8f1;
  --shadow: 0 18px 48px rgba(8, 52, 96, 0.14);

  /* HERO PRINCIPAL - TITULO: modifica estos tamaños para cambiar solo el titulo del banner. */
  --banner-title-size-desktop: clamp(3.8rem, 3.5vw, 7rem);
  --banner-title-size-tablet: clamp(3.2rem, 9vw, 5.8rem);
  --banner-title-size-mobile: clamp(2.8rem, 14vw, 4.4rem);

  /* HERO PRINCIPAL - BOTON: modifica estos colores para cambiar solo el boton del slider principal. */
  --hero-button-bg: var(--green);
  --hero-button-text: var(--white);
  --hero-button-shadow: rgba(52, 138, 59, 0.28);
}

/* BASE GENERAL: normaliza caja, scroll, tipografia, fondos y bloqueo de scroll cuando hay modales. */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--white);
}

body.menu-open,
body.dialog-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  min-height: 100svh;
}

/* MENU / NAV: controla barra superior, logo, enlaces, CTA de WhatsApp y menu hamburguesa. */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px max(16px, calc((100vw - 1180px) / 2));
  color: var(--white);
  transition: background 220ms ease, box-shadow 220ms ease, padding 220ms ease, color 220ms ease;
}

.nav.is-scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(8, 52, 96, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 142px;
  height: auto;
}

.brand img {
  width: 100%;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  min-height: 42px;
  padding: 11px 15px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.nav.is-scrolled .nav-links a:hover,
.nav.is-scrolled .nav-links a:focus-visible {
  background: rgba(18, 99, 173, 0.08);
}

.nav-links .nav-cta {
  margin-left: 8px;
  color: var(--white);
  background: var(--green);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.nav.is-scrolled .menu-button {
  border-color: var(--line);
  background: var(--white);
}

.menu-button span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  border-radius: 4px;
  background: currentColor;
}

/* HERO PRINCIPAL - BASE: controla alto, espacio y comportamiento general del banner inicial. */
.hero-banner {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100svh;
  overflow: hidden;
  padding: 110px max(16px, calc((100vw - 1180px) / 2)) 64px;
  color: var(--white);
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  transition: opacity 420ms ease, transform 800ms ease;
}

.hero-banner.is-changing .hero-bg {
  opacity: 0.3;
  transform: scale(1.06);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(6, 47, 97, 0.82) 0%, rgba(6, 47, 97, 0.58) 43%, rgba(6, 47, 97, 0.12) 100%),
    linear-gradient(0deg, rgba(6, 47, 97, 0.35), transparent 35%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1.18;
}

.hero-content p:not(.eyebrow),
.story-copy p,
.visual-copy p,
.cta-band p {
  color: inherit;
  font-size: 1.1rem;
  line-height: 1.65;
}

.hero-content p:not(.eyebrow) {
  max-width: 590px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions,
.section-header,
.carousel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-actions {
  margin-top: 32px;
}

/* BOTONES GENERALES: estilos compartidos para botones de la web. */
.primary-button,
.secondary-button,
.product-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 21px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 16px 32px rgba(52, 138, 59, 0.28);
}

/* HERO PRINCIPAL - BOTON UNICO: cambia las variables --hero-button-* en :root para modificar su color. */
.hero-actions .primary-button {
  color: var(--hero-button-text);
  background: var(--hero-button-bg);
  box-shadow: 0 16px 32px var(--hero-button-shadow);
}

.secondary-button {
  color: var(--navy);
  background: var(--white);
}

.text-link {
  color: var(--blue);
  font-weight: 900;
}

.primary-button:hover,
.secondary-button:hover,
.product-link:hover,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.product-link:focus-visible {
  transform: translateY(-2px);
}

.primary-button.light {
  color: var(--navy);
  background: var(--white);
}

/* HERO PRINCIPAL - PUNTOS DEL SLIDER: posicion y apariencia de los indicadores del banner. */
.hero-controls {
  position: absolute;
  left: max(16px, calc((100vw - 1180px) / 2));
  bottom: 28px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-control {
  width: 44px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.hero-control.active {
  background: var(--yellow);
}

/* SECCIONES GENERALES: ancho maximo, espaciado vertical, titulos y encabezados compartidos. */
.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(72px, 8vw, 116px) 0;
}

.section-title {
  max-width: 710px;
}

.section-title .eyebrow,
.visual-copy .eyebrow,
.products .eyebrow,
.channels .eyebrow {
  color: var(--pink);
}

.section-title.centered {
  margin: 0 auto 32px;
  text-align: center;
}

.section-header {
  justify-content: space-between;
  margin-bottom: 30px;
}

/* NOSOTROS: imagen a la izquierda y relato/valores a la derecha.
   Estas reglas no cambian Canales ni Productos. --band-bg se edita en .home-band-about.
   .story h2 cambia el titulo amarillo; .story-heartword solo la palabra Corazon. */
.story {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  gap: 48px;
  align-items: center;
  padding-top: 54px;
  padding-bottom: 126px;
  scroll-margin-top: 90px;
}

.story-visual {
  position: relative;
  min-width: 0;
  width: 100%;
  max-width: 520px;
  justify-self: center;
  isolation: isolate;
}

/* Circulo amarillo plano detras del personaje, como en la referencia. */
.story-visual::before {
  content: "";
  position: absolute;
  inset: 5% 6% auto;
  z-index: -1;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff3a8;
}

/* Ajuste de los margenes transparentes originales mediante CSS, sin alterar la imagen. */
.story-illustration {
  position: relative;
  aspect-ratio: 1360 / 1339;
  overflow: hidden;
}

.story-illustration img {
  position: absolute;
  top: -5.676%;
  left: -10.809%;
  width: 117.647%;
  max-width: none;
  height: auto;
}

.story-copy {
  display: grid;
  gap: 26px;
  min-width: 0;
  color: #68686b;
}

.story .eyebrow {
  margin-bottom: 8px;
  color: var(--pink);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}

.story h2 {
  color: #eaa900;
  font-size: 2.1rem;
  line-height: 1.1;
  font-weight: 800;
}

.story-heartword {
  display: inline-block;
  margin-left: 6px;
  padding-right: 12px;
  color: var(--pink);
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: 3.1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
}

.story-heart {
  display: inline-block;
  width: 0.9em;
  height: 1em;
  margin-left: 8px;
  color: #eaa900;
  font-size: 0.9em;
  vertical-align: -0.06em;
  transform: rotate(-14deg);
}

/* Escritura: palabra, corazon, pausa y borrado en orden inverso. Cambia 8s en ambas reglas a la vez. */
.story-heartletters { display: inline-block; }
.story-heart path {
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.story-copy.is-visible .story-heartletters {
  animation: story-word-write 8s linear infinite;
}
.story-copy.is-visible .story-heart path {
  animation: story-heart-draw 8s ease-in-out infinite;
}
@keyframes story-word-write {
  0%, 5%, 97%, 100% { clip-path: inset(-12% 100% -12% -6%); }
  38%, 82% { clip-path: inset(-12% -6% -12% -6%); }
}
@keyframes story-heart-draw {
  0%, 38%, 82%, 100% { stroke-dashoffset: 1; }
  53%, 72% { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .story-copy.is-visible .story-heartletters,
  .story-copy.is-visible .story-heart path { animation: none; }
}

.story-copy .story-description {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

/* VALORES: iconos vectoriales y texto real; cuatro columnas en escritorio, dos en celular.
   .story-value-icon cambia tamano/color del icono; h3 el nombre y p la descripcion. */
.story-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 4px 0 0;
  list-style: none;
}

.story-value {
  min-width: 0;
  text-align: center;
}

.story-value-icon {
  display: block;
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  color: var(--pink);
}

.story-value h3 {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 64px;
  margin: 0 0 10px;
  padding-bottom: 12px;
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

.story-value h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: calc(50% - 16px);
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: var(--yellow);
}

.story-value h3 strong {
  color: var(--pink);
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: 1.3rem;
  line-height: 1.3;
}

.story-value-peru h3 strong {
  font-family: inherit;
  font-size: 1.6rem;
  font-weight: 800;
}

.story-copy .story-value p {
  margin: 0;
  color: #73737c;
  font-size: 0.75rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

@media (max-width: 1000px) {
  .story { gap: 30px; }
  .story-visual { max-width: 440px; }
  .story-copy { width: min(600px, 100%); margin-inline: auto; }
}

/* NOSOTROS CELULAR: contenido apilado y valores en dos filas legibles. */
@media (max-width: 600px) {
  .story { padding-top: 36px; padding-bottom: 88px; gap: 26px; }
  .story-visual { max-width: 360px; }
  .story h2 { font-size: 1.5rem; }
  .story-heartword { display: block; margin-left: 0; font-size: 2.5rem; text-align: right; }
  .story-copy { gap: 20px; }
  .story-values { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; gap: 28px 16px; }
  .story-copy .story-value p { max-width: 160px; margin-inline: auto; font-size: 0.8125rem; }
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.stats article {
  padding: 22px;
  background: var(--white);
}

.stats strong {
  display: block;
  color: var(--blue);
  font-size: 2.2rem;
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 750;
}

/* CARRUSEL DE CATEGORIAS ANTIGUO: estilos heredados; usar si reactivas tarjetas de categorias. */
.carousel-window {
  overflow: hidden;
}

.category-carousel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  overflow: hidden;
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(8, 52, 96, 0.07);
  animation: card-in 360ms ease both;
}

.category-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.category-card-body {
  padding: 20px;
}

.category-card h3 {
  margin-bottom: 10px;
}

.category-card p {
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.category-card button {
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: var(--soft);
  font-weight: 850;
  cursor: pointer;
}

/* OBJETIVO SOCIAL HOME - VERSION ANTERIOR: estilos heredados para una composicion imagen/texto. */
.social-objective-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: clamp(30px, 6vw, 70px);
  align-items: center;
}

.social-objective-copy p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.social-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.social-metrics article {
  padding: 18px;
  background: var(--white);
}

.social-metrics strong {
  display: block;
  color: var(--green);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1;
}

.social-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.35;
}

.social-objective-image {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.social-objective-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

/* OBJETIVO SOCIAL HOME: cabecera verde y franja fucsia de ancho completo.
   --social-accent cambia el titulo; --social-band la franja y --social-secondary los textos grises.
   La pagina interna sigue en pausa en config.js y no se publican metas. */
.social-objective {
  width: 100%;
  padding-top: 54px;
  padding-bottom: 80px;
  scroll-margin-top: 90px;
  text-align: center;
  --social-accent: #5c9233;
  --social-band: var(--pink);
  --social-secondary: #6b6b70;
}

.social-objective h2 {
  max-width: 760px;
  margin-inline: auto;
  color: var(--social-accent);
  font-size: 2.6rem;
  line-height: 1.16;
  text-wrap: balance;
}

.social-objective .section-title {
  width: min(860px, calc(100% - 32px));
  max-width: none;
  margin-bottom: 24px;
}

/* ETIQUETA SUPERIOR: tamano, relleno y esquinas del rotulo fucsia. */
.social-objective .section-title > .eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 11px 20px;
  border-radius: 18px 0 18px 0;
  color: var(--white);
  background: var(--social-band);
  font-size: 0.875rem;
  letter-spacing: 0;
  text-transform: none;
}

.social-lead {
  max-width: 760px;
  margin: 10px auto 0;
  color: var(--social-secondary);
  font-size: 1rem;
  line-height: 1.45;
}

/* FRANJA: el pseudo-elemento ocupa todo el viewport; la banda del home recorta el exceso lateral.
   Los 40px de inset vertical dejan que la foto sobresalga sin desplazar el texto. */
.social-objective .social-impact-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  width: min(1180px, calc(100% - 96px));
  gap: 54px;
  align-items: center;
  overflow: visible;
  margin: 26px auto 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.social-impact-shell::before {
  content: "";
  position: absolute;
  inset: 40px auto 40px 50%;
  z-index: -1;
  width: 100vw;
  background: var(--social-band);
  transform: translateX(-50%);
}

.social-objective .social-impact-media {
  position: relative;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 4 / 3;
}

.social-impact-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 64px 0 64px;
}

.social-impact-copy {
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 0;
  padding: 48px 0;
  text-align: center;
}

.social-impact-copy h3 {
  max-width: 560px;
  margin-bottom: 26px;
  color: var(--white);
  font-family: inherit;
  font-size: 2.5rem;
  line-height: 1.15;
}

.social-impact-copy .eyebrow {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 0.875rem;
  letter-spacing: 0;
  text-transform: none;
}

.social-impact-copy p:not(.eyebrow) {
  max-width: 410px;
  margin-bottom: 0;
  color: var(--white);
  font-size: 1rem;
  line-height: 1.5;
}

.social-impact-copy .primary-button {
  margin-top: 10px;
  color: var(--navy);
  background: var(--yellow);
}

.social-slide-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 6px;
  color: var(--yellow);
  background: transparent;
  box-shadow: none;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.social-slide-button.prev {
  left: -42px;
}

.social-slide-button.next {
  right: -42px;
}

.social-slide-button svg {
  width: 26px;
  height: 26px;
  margin: auto;
  fill: currentColor;
}

.social-slide-button.prev svg { transform: rotate(180deg); }

.social-slide-button:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

.social-slide-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.social-slide-dots button {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(6, 47, 97, 0.25);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.social-slide-dots button.active {
  width: 32px;
  background: var(--yellow);
}

.social-metrics-modern {
  max-width: 930px;
  margin: 28px auto 0;
  box-shadow: 0 18px 44px rgba(8, 52, 96, 0.08);
}

.social-metrics-modern article {
  display: grid;
  justify-items: center;
}

.social-objective .social-support-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(960px, calc(100% - 32px));
  gap: 12px;
  margin: 28px auto 0;
}

.social-support-grid article {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-height: 110px;
  padding: 16px 14px;
  border: 1px solid rgba(18, 99, 173, 0.12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(8, 52, 96, 0.06);
}

.social-support-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--pink);
  background: rgba(228, 19, 124, 0.07);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.social-support-grid strong {
  color: var(--social-secondary);
  font-size: 0.875rem;
  line-height: 1.35;
}

/* SOCIAL TABLET: mantiene foto y texto juntos sin titulos demasiado grandes. */
@media (max-width: 1100px) {
  .social-objective .social-impact-shell { gap: 36px; }
  .social-impact-copy h3 { font-size: 2rem; margin-bottom: 18px; }
  .social-impact-copy { padding-block: 42px; }
  .social-impact-copy p:not(.eyebrow) { font-size: 0.9375rem; }
  .social-impact-shell::before { top: 22px; bottom: 22px; }
}

/* SOCIAL CELULAR: foto arriba, mensaje en la franja y apoyos en dos columnas. */
@media (max-width: 760px) {
  .social-objective { padding-top: 40px; padding-bottom: 64px; }
  .social-objective h2 { font-size: 1.9rem; }
  .social-lead { font-size: 0.9375rem; }
  .social-objective .social-impact-shell { grid-template-columns: 1fr; width: calc(100% - 56px); gap: 0; }
  .social-impact-media img { border-radius: 0 42px 0 42px; }
  .social-impact-copy { padding: 30px 0 44px; }
  .social-impact-copy h3 { font-size: 1.8rem; }
  .social-slide-button.prev { left: -29px; }
  .social-slide-button.next { right: -29px; }
  .social-objective .social-support-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
  .social-support-grid article { padding: 14px 10px; }
  .social-support-grid strong { font-size: 0.8125rem; }
}

/* BOTONES DE CARRUSEL: flechas generales usadas en productos y otros carruseles. */
.icon-button {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: var(--white);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

/* BLOQUE VISUAL ABASTECIMIENTO: seccion con texto e imagen grande antes de productos. */
.visual-split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding: clamp(72px, 8vw, 116px) max(16px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(115deg, rgba(18, 99, 173, 0.1), transparent 55%),
    var(--soft);
}

.visual-copy p {
  color: var(--muted);
}

.visual-image {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.visual-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

/* PRODUCTOS HOME - FILTROS Y TARJETAS BASE: afecta botones de categoria, grilla y tarjeta de producto. */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-button,
.channel-tab {
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: var(--white);
  font-weight: 850;
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover,
.filter-button:focus-visible,
.channel-tab.active,
.channel-tab:hover,
.channel-tab:focus-visible {
  color: var(--white);
  border-color: var(--blue);
  background: var(--blue);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(8, 52, 96, 0.07);
}

.product-image {
  height: 220px;
  background: var(--soft);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-content {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 21px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--navy);
  background: rgba(18, 99, 173, 0.09);
  font-size: 0.78rem;
  font-weight: 850;
}

.chip.paused {
  color: #8d4771;
  background: rgba(228, 19, 124, 0.1);
}

.product-content p {
  margin-bottom: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.product-link,
.detail-button {
  min-height: 42px;
  color: var(--white);
  background: var(--navy);
}

.detail-button {
  border: 0;
  cursor: pointer;
}

.ghost-button {
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: var(--white);
  font-weight: 850;
  cursor: pointer;
}

.product-card.inactive {
  opacity: 0.72;
}

.product-card.inactive .product-link {
  pointer-events: none;
  color: var(--muted);
  background: #e8edf3;
}

/* CANALES INTERACTIVOS: tabs y panel que cambia con JavaScript. */
.channel-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.channel-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  gap: 30px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.channel-panel-copy {
  padding: clamp(28px, 4vw, 46px);
}

.channel-panel-copy p {
  color: var(--muted);
  line-height: 1.65;
}

.channel-panel ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.channel-panel li {
  padding-left: 18px;
  border-left: 4px solid var(--yellow);
  color: var(--ink);
  font-weight: 750;
}

.channel-panel img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* REGISTRO CLIENTES: tarjetas de tipo de cliente, modal y formulario emergente. */
.client-register {
  position: relative;
  overflow: hidden;
  padding-top: clamp(54px, 7vw, 84px);
  padding-bottom: clamp(54px, 7vw, 84px);
}

.client-register::before {
  content: "";
  position: absolute;
  inset: 24px auto auto 50%;
  width: min(520px, 52vw);
  height: min(520px, 52vw);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 197, 41, 0.26), transparent 68%);
  transform: translateX(-50%);
  pointer-events: none;
}

.register-intro {
  max-width: 450px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.register-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.register-option {
  display: grid;
  gap: 14px;
  min-height: 238px;
  padding: 24px;
  border: 1px solid rgba(18, 99, 173, 0.12);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px rgba(8, 52, 96, 0.08);
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.register-option:hover,
.register-option:focus-visible {
  border-color: rgba(18, 99, 173, 0.36);
  box-shadow: 0 22px 48px rgba(8, 52, 96, 0.14);
  transform: translateY(-5px);
}

.register-option strong {
  color: var(--navy);
  font-size: 1.18rem;
}

.register-option span:last-child {
  color: var(--muted);
  line-height: 1.55;
}

.register-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--teal));
  font-size: 1.3rem;
  font-weight: 900;
}

.register-option:nth-child(2) .register-icon {
  background: linear-gradient(135deg, var(--blue), var(--teal));
}

.register-option:nth-child(3) .register-icon {
  background: linear-gradient(135deg, var(--orange), var(--yellow));
}

.register-option:nth-child(4) .register-icon {
  background: linear-gradient(135deg, var(--navy), var(--blue));
}

.register-dialog {
  position: fixed;
  inset: 0;
  z-index: 31;
  display: none;
  place-items: center;
  padding: 14px;
  background: rgba(6, 47, 97, 0.68);
}

.register-dialog.is-open {
  display: grid;
}

.register-modal {
  position: relative;
  overflow-y: auto;
  width: min(780px, 100%);
  max-height: calc(100svh - 28px);
  padding: clamp(26px, 5vw, 44px);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(243, 248, 236, 0.94), rgba(255, 255, 255, 0.98)),
    var(--white);
  box-shadow: var(--shadow);
}

.register-modal-head {
  max-width: 620px;
  margin-bottom: 24px;
}

.register-modal h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
}

.register-modal p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.register-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: var(--navy);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(8, 52, 96, 0.12);
  font-size: 1.6rem;
  cursor: pointer;
}

.register-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.register-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 850;
}

.register-form input,
.register-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.register-form input:focus,
.register-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(18, 99, 173, 0.12);
  outline: 0;
}

.full-field,
.register-form-actions {
  grid-column: 1 / -1;
}

.register-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 4px;
}

.register-form .register-privacy { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; font-weight: 400; }
.register-form .register-privacy input { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; padding: 0; accent-color: var(--pink); }
.register-privacy a { color: var(--navy); text-decoration: underline; }
.register-modal .register-status { margin: 0; overflow-wrap: anywhere; font-size: 0.875rem; }
.register-status:empty { display: none; }
.register-form [type="submit"]:disabled { opacity: 0.65; cursor: default; }

/* CTA Y FOOTER: franja final de contacto y pie de pagina. */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto clamp(60px, 8vw, 96px);
  padding: clamp(30px, 5vw, 52px);
  border-radius: 8px;
  color: var(--white);
  background:
    radial-gradient(circle at 92% 5%, rgba(255, 197, 41, 0.55), transparent 15rem),
    linear-gradient(135deg, var(--navy), var(--blue));
}

.cta-band h2,
.cta-band p,
.cta-band .eyebrow {
  color: var(--white);
}

.cta-band p {
  max-width: 640px;
  margin-bottom: 0;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
}

.footer .brand {
  width: 118px;
}

.footer div span,
.footer div strong {
  display: block;
}

.footer div span {
  margin-top: 4px;
  color: var(--muted);
}

.footer a:not(.brand) {
  color: var(--navy);
  font-weight: 850;
}

/* PAGINA RECETAS: portada, grilla 3 columnas y pop up de receta. */
.recipes-page {
  background: #fbf7fb;
}

.recipes-hero {
  padding: 132px 16px 72px;
  color: var(--navy);
  background:
    radial-gradient(circle at 86% 22%, rgba(52, 138, 59, 0.18), transparent 16rem),
    linear-gradient(135deg, #f3f8ec, #ffffff 72%);
}

.recipes-hero-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.recipes-hero h1 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.95;
}

.recipes-hero p:not(.eyebrow) {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

.recipe-blog {
  display: grid;
  gap: 24px;
}

.recipe-card {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.2fr);
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(8, 52, 96, 0.08);
}

.recipe-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  background: var(--soft);
}

.recipe-card > div {
  padding: clamp(26px, 5vw, 46px);
}

.recipe-card h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.recipe-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.recipe-card ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.recipe-card li {
  padding-left: 18px;
  border-left: 4px solid var(--yellow);
  color: var(--ink);
  font-weight: 750;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.recipe-tile {
  display: grid;
  overflow: hidden;
  min-height: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(8, 52, 96, 0.08);
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.recipe-tile:hover,
.recipe-tile:focus-visible {
  box-shadow: 0 24px 54px rgba(8, 52, 96, 0.14);
  transform: translateY(-5px);
}

.recipe-tile img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: var(--soft);
}

.recipe-tile span,
.recipe-tile strong,
.recipe-tile small {
  margin-right: 18px;
  margin-left: 18px;
}

.recipe-tile span {
  margin-top: 18px;
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.recipe-tile strong {
  margin-top: 8px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.15;
}

.recipe-tile small {
  margin-top: 14px;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 850;
}

.recipe-dialog {
  position: fixed;
  inset: 0;
  z-index: 32;
  display: none;
  place-items: center;
  padding: 14px;
  background: rgba(6, 47, 97, 0.68);
}

.recipe-dialog.is-open {
  display: grid;
}

.recipe-modal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  overflow: hidden;
  width: min(980px, 100%);
  max-height: calc(100svh - 28px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.recipe-modal > img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  background: var(--soft);
}

.recipe-modal-copy {
  overflow-y: auto;
  padding: clamp(26px, 5vw, 44px);
}

.recipe-modal-copy h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.recipe-time {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  margin: 10px 0 24px;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--navy);
  background: rgba(18, 99, 173, 0.09);
  font-weight: 900;
}

.recipe-detail-grid {
  display: grid;
  gap: 16px;
}

.recipe-detail-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.recipe-detail-grid strong {
  display: block;
  margin-bottom: 12px;
  color: var(--navy);
}

.recipe-detail-grid ul,
.recipe-detail-grid ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.5;
}

.recipe-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: var(--navy);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(8, 52, 96, 0.12);
  font-size: 1.6rem;
  cursor: pointer;
}

/* PAGINA OBJETIVO SOCIAL: portada interna, indicadores, ejes, galeria y espaciados. */
.social-page {
  background: #fbfcf8;
}

.social-page .nav {
  min-height: 72px;
  align-items: center;
}

.social-page .nav-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  height: auto;
}

.social-page .nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
}

.social-page .section {
  padding-top: clamp(54px, 6vw, 84px);
  padding-bottom: clamp(54px, 6vw, 84px);
}

.social-hero-page {
  padding: 112px 16px 52px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 197, 41, 0.22), transparent 16rem),
    linear-gradient(135deg, #f3f8ec, #ffffff 70%);
}

.social-hero-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(30px, 6vw, 72px);
  align-items: center;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.social-hero-page h1 {
  max-width: 760px;
  margin-bottom: 20px;
  color: #11331f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.94;
}

.social-hero-page p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.68;
}

.social-hero-page-grid > img {
  width: 100%;
  height: clamp(320px, 38vw, 480px);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.social-page .cta-band {
  margin-bottom: 28px;
}

.social-page .footer {
  padding-top: 24px;
  padding-bottom: 30px;
}

.impact-ledger-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.impact-ledger-grid article {
  min-height: 170px;
  padding: 24px;
  background: var(--white);
}

.impact-ledger-grid strong {
  display: block;
  color: var(--green);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.impact-ledger-grid span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

.aid-pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.aid-pillar-grid article {
  padding: 24px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(8, 52, 96, 0.08);
}

.aid-pillar-grid span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--white);
  background: var(--green);
  font-weight: 900;
}

.aid-pillar-grid h3 {
  margin-top: 18px;
}

.aid-pillar-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.social-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.social-gallery article {
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(8, 52, 96, 0.08);
}

.social-gallery img {
  width: 100%;
  height: 270px;
  object-fit: cover;
}

.social-gallery div {
  padding: 20px;
}

.social-gallery strong,
.social-gallery span {
  display: block;
}

.social-gallery strong {
  color: var(--navy);
  font-size: 1.12rem;
}

.social-gallery span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

/* WHATSAPP FLOTANTE: boton fijo inferior derecho de contacto permanente. */
.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 18;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 17px;
  border-radius: 999px;
  color: var(--white);
  background: #1faa59;
  box-shadow: 0 16px 34px rgba(31, 170, 89, 0.26);
  font-weight: 900;
}

/* MODAL PRODUCTO: pop up de detalle, galeria, miniaturas, listas y botones. */
.product-dialog {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  padding: 14px;
  background: rgba(6, 47, 97, 0.62);
}

.product-dialog.is-open {
  display: grid;
}

.dialog-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
  overflow: hidden;
  width: min(920px, 100%);
  max-height: calc(100svh - 28px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.dialog-card img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}

.dialog-gallery {
  position: relative;
  display: grid;
  min-height: 390px;
  background: var(--soft);
}

.dialog-gallery > img {
  min-height: 390px;
}

.dialog-gallery-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 26px rgba(8, 52, 96, 0.16);
  font-size: 1.8rem;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

#dialog-gallery-prev {
  left: 14px;
}

#dialog-gallery-next {
  right: 14px;
}

.dialog-thumbnails {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
}

.dialog-thumbnails button {
  flex: 0 0 auto;
  overflow: hidden;
  width: 56px;
  height: 42px;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0;
  background: var(--white);
  cursor: pointer;
}

.dialog-thumbnails button.active {
  border-color: var(--green);
}

.dialog-thumbnails img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.dialog-copy {
  overflow-y: auto;
  padding: clamp(26px, 5vw, 44px);
}

.product-dialog h3 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.product-dialog p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.dialog-specs {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.dialog-specs article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.dialog-specs strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy);
}

.dialog-specs ul {
  display: grid;
  gap: 7px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.dialog-specs li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.dialog-specs li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: var(--navy);
  background: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

/* AJUSTES VISUALES ACTUALES DEL HOME: estos bloques refinan y sobreescriben estilos anteriores. */
.site-header {
  min-height: auto;
  background: #f3f8ec;
}

.nav {
  color: var(--navy);
}

.nav:not(.is-scrolled) {
  background: rgba(243, 248, 236, 0.86);
  backdrop-filter: blur(12px);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(18, 99, 173, 0.08);
}

/* HERO PRINCIPAL - DISENO ACTUAL: este bloque define el estilo visible del banner del home. */
.hero-banner {
  min-height: 100svh;
  padding-bottom: 112px;
  color: var(--navy);
  background:
    radial-gradient(circle at 84% 18%, rgba(52, 138, 59, 0.14), transparent 16rem),
    linear-gradient(135deg, #f3f8ec 0%, #fffdf2 62%, #ffffff 100%);
}

.hero-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(440px, 1.14fr);
  gap: clamp(24px, 6vw, 72px);
  align-items: center;
  justify-items: center;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hero-content {
  justify-self: center;
}

.hero-content p:not(.eyebrow) {
  color: var(--muted);
}

.hero-content .eyebrow {
  color: var(--green);
}

/* HERO PRINCIPAL - TITULO VISIBLE: usa las variables --banner-title-size-* para editar el tamano. */
.hero-title {
  max-width: 9.5ch;
  color: #11331f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: var(--banner-title-size-desktop);
  line-height: 0.94;
}

.hero-visual {
  position: relative;
  align-self: end;
  justify-self: center;
}

.hero-visual img {
  width: min(760px, 100%);
  height: auto;
  aspect-ratio: 1600 / 1549;
  margin: 0 auto;
  filter: drop-shadow(0 24px 34px rgba(6, 47, 97, 0.12));
  transition: opacity 260ms ease, transform 420ms ease;
}

.hero-banner.is-changing .hero-visual img {
  opacity: 0.35;
  transform: translateX(18px) scale(0.98);
}


.hero-mini-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
  color: #243f32;
  font-size: 0.94rem;
  font-weight: 850;
}

.hero-mini-benefits span {
  position: relative;
  padding-left: 18px;
}

.hero-mini-benefits span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.hero-leaf {
  position: absolute;
  z-index: 1;
  width: 54px;
  height: 28px;
  border-radius: 70% 0 70% 0;
  background: rgba(52, 138, 59, 0.34);
  filter: blur(0.2px);
  animation: leaf-float 7s ease-in-out infinite;
}

.leaf-one {
  top: 18%;
  left: 48%;
}

.leaf-two {
  top: 36%;
  right: 8%;
  animation-delay: 1.2s;
}

.leaf-three {
  bottom: 24%;
  left: 38%;
  animation-delay: 2.1s;
}

/* HERO PRINCIPAL - INDICADORES ACTUALES: centra los puntos sobre la barra de beneficios. */
.hero-controls {
  left: 50%;
  bottom: 62px;
  transform: translateX(-50%);
  justify-content: center;
  z-index: 6;
}

.hero-control {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(6, 47, 97, 0.22);
  background: rgba(255, 255, 255, 0.72);
  transition: width 180ms ease, background 180ms ease, border-color 180ms ease;
}

.hero-control.active {
  width: 34px;
  border-color: var(--green);
  background: var(--green);
}

.benefit-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 32px));
  margin: -34px auto 0;
  position: relative;
  z-index: 4;
  overflow: hidden;
  border: 1px solid #e4eddc;
  border-radius: 8px;
  background: #e4eddc;
  box-shadow: 0 18px 40px rgba(6, 47, 97, 0.08);
}

.benefit-strip article {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 96px;
  padding: 20px;
  background: #fbfdf4;
}

.benefit-strip svg {
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit-strip strong,
.benefit-strip span {
  display: block;
}

.benefit-strip strong {
  color: #173321;
  font-size: 0.96rem;
  line-height: 1.15;
}

.benefit-strip span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.25;
}

.products {
  position: relative;
}

.products::before {
  content: "";
  position: absolute;
  inset: 0 50% 0 auto;
  width: 100vw;
  z-index: -1;
  background: #fbf7fb;
}

.product-window {
  overflow: hidden;
}

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  position: relative;
  border: 0;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(8, 52, 96, 0.08);
  cursor: pointer;
  animation: card-in 360ms ease both;
}

.product-card::before {
  content: "-20%";
  position: absolute;
  top: 16px;
  left: 0;
  z-index: 2;
  padding: 5px 11px;
  color: var(--white);
  background: var(--orange);
  font-size: 0.76rem;
  font-weight: 900;
}

.product-card.inactive::before {
  content: "OFF";
  background: var(--muted);
}

.product-favorite {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--pink);
  background: var(--white);
  font-size: 1.05rem;
  line-height: 1;
}

.product-image {
  height: 210px;
  padding: 12px;
  background: #fbfcf8;
}

.product-image img {
  border-radius: 8px;
}

.product-content h3 {
  min-height: 3em;
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
}

.product-content p {
  min-height: 4.6em;
  font-size: 0.94rem;
}

.product-link,
.detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--green);
  font-weight: 900;
}

.detail-button {
  color: var(--navy);
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--line);
}

.ghost-button {
  display: none;
}

/* CANALES / COMPOSICION ABIERTA: opciones a la izquierda, foto al centro y texto a la derecha.
   --channel-accent cambia titulos y opcion activa; --band-bg se edita en .home-band-channels.
   grid-template-columns ajusta el ancho de las opciones y de la pareja imagen/texto. */
.channels {
  --channel-accent: #f2571b;
  scroll-margin-top: 90px;
  padding-top: 56px;
  padding-bottom: 116px;
}

.channels .section-title {
  max-width: 800px;
}

.channels h2 {
  color: var(--channel-accent);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.1;
  text-wrap: balance;
}

.channels .interactive-showcase {
  display: grid;
  grid-template-columns: minmax(200px, 0.7fr) minmax(0, 2fr);
  gap: 56px;
  align-items: center;
  margin-top: 30px;
}

.channels .interactive-showcase .channel-tabs {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: stretch;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.channels .interactive-showcase .channel-tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  min-height: 46px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  text-align: left;
  box-shadow: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.channels .interactive-showcase .channel-tab.active,
.channels .interactive-showcase .channel-tab:hover {
  color: var(--white);
  background: var(--channel-accent);
}

.channels .interactive-showcase .channel-tab:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 4px;
}

.channels .interactive-showcase .channel-tab::after {
  content: "›";
  font-size: 1.5rem;
  line-height: 1;
}

.channels .channel-panel {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 36px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.channels .channel-panel-copy {
  order: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 320px;
  padding: 0;
}

.channels .channel-panel img {
  order: 1;
  /* Foto cuadrada completa; esquinas opuestas curvas como en la referencia. */
  height: auto;
  aspect-ratio: 1;
  max-width: 520px;
  justify-self: center;
  object-fit: contain;
  clip-path: none;
  border-radius: 56px 0 56px 0;
  animation: channel-content-in 300ms ease both;
}

.channels .channel-panel h3 {
  margin-bottom: 20px;
  color: var(--channel-accent);
  font-family: inherit;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.channels .channel-panel-copy p {
  margin-bottom: 0;
  color: #63635c;
  font-size: 1.125rem;
  line-height: 1.5;
}

@keyframes channel-content-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* CANALES TABLET: opciones en una fila; imagen y texto permanecen juntos. */
@media (max-width: 1100px) {
  .channels .interactive-showcase { grid-template-columns: 1fr; gap: 28px; }
  .channels .interactive-showcase .channel-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .channels .channel-panel { gap: 30px; }
  .channels h2 { font-size: 2.75rem; }
  .channels .channel-panel h3 { font-size: 2.5rem; }
}

/* CANALES CELULAR: dos opciones por fila y foto antes del texto, sin desplazamiento lateral. */
@media (max-width: 700px) {
  .channels { padding-top: 40px; padding-bottom: 80px; }
  .channels h2 { font-size: 2rem; line-height: 1.15; }
  .channels .interactive-showcase .channel-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .channels .interactive-showcase .channel-tab { font-size: 0.875rem; padding: 10px 14px; }
  .channels .channel-panel { grid-template-columns: 1fr; gap: 26px; }
  .channels .channel-panel img { max-width: 380px; border-radius: 40px 0 40px 0; }
  .channels .channel-panel-copy { min-height: 270px; justify-content: flex-start; }
  .channels .channel-panel h3 { font-size: 2rem; margin-bottom: 14px; }
  .channels .channel-panel-copy p { font-size: 1rem; line-height: 1.6; }
}

@media (prefers-reduced-motion: reduce) {
  .channels .channel-panel img { animation: none; }
  .channels .interactive-showcase .channel-tab { transition: none; }
}

/* ANIMACIONES: movimiento de hojas, entrada de bloques y entrada de tarjetas. */
@keyframes leaf-float {
  0%,
  100% {
    transform: translateY(0) rotate(-12deg);
  }
  50% {
    transform: translateY(-18px) rotate(10deg);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1000px) {
  /* RESPONSIVE GENERAL TABLET: convierte varias grillas a menos columnas. */
  .story,
  .visual-split,
  .channel-panel,
  .social-objective-grid,
  .social-impact-shell,
  .social-hero-page-grid {
    grid-template-columns: 1fr;
  }

  .category-carousel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recipe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .impact-ledger-grid,
  .aid-pillar-grid,
  .social-gallery,
  .social-support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-impact-media {
    min-height: 380px;
  }

  .register-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-panel img {
    height: auto;
  }
}

@media (max-width: 720px) {
  /* RESPONSIVE GENERAL CELULAR: menu hamburguesa, grillas a una columna y modales verticales. */
  .nav {
    padding: 14px 12px;
  }

  .brand {
    width: 118px;
  }

  .menu-button {
    display: block;
    color: currentColor;
  }

  .nav-links {
    position: fixed;
    inset: 70px 12px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--navy);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .recipes-page .nav-links,
  .social-page .nav-links {
    position: static;
    inset: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .recipes-page .nav-links a:not(.nav-cta),
  .social-page .nav-links a:not(.nav-cta) {
    display: none;
  }

  .nav-links a {
    text-align: center;
  }

  .nav-links .nav-cta {
    margin-left: 0;
  }

  .hero-banner {
    padding: 96px 12px 58px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(6, 47, 97, 0.88), rgba(6, 47, 97, 0.52));
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-actions,
  .primary-button,
  .secondary-button,
  .section-header {
    width: 100%;
  }

  .section,
  .cta-band,
  .footer {
    width: min(100% - 24px, 1180px);
  }

  .stats,
  .category-carousel,
  .product-grid,
  .social-metrics,
  .register-grid,
  .register-form {
    grid-template-columns: 1fr;
  }

  .register-option {
    min-height: auto;
  }

  .register-form-actions {
    flex-direction: column-reverse;
  }

  .register-form-actions .primary-button,
  .register-form-actions .secondary-button {
    width: 100%;
    justify-content: center;
  }

  .visual-split {
    padding: 64px 12px;
  }

  .visual-image img {
    height: 330px;
  }

  .channel-panel img {
    height: auto;
  }

  .cta-band,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer {
    padding-bottom: 84px;
  }

  .dialog-card {
    grid-template-columns: 1fr;
  }

  .recipe-modal {
    grid-template-columns: 1fr;
  }

  .recipe-modal > img {
    min-height: 240px;
    height: 240px;
  }

  .dialog-card img,
  .dialog-gallery,
  .dialog-gallery > img {
    min-height: 240px;
    height: 240px;
  }

  .social-objective-image img {
    height: 330px;
  }

  .dialog-actions,
  .dialog-actions .primary-button,
  .dialog-actions .secondary-button {
    width: 100%;
  }

  .recipe-card {
    grid-template-columns: 1fr;
  }

  .recipe-grid {
    grid-template-columns: 1fr;
  }

  .impact-ledger-grid,
  .aid-pillar-grid,
  .social-gallery,
  .social-support-grid {
    grid-template-columns: 1fr;
  }

  .social-impact-media {
    min-height: 300px;
  }

  .social-impact-shell {
    margin-top: 26px;
  }

  .social-slide-button {
    width: 40px;
    height: 40px;
  }

  .social-hero-page-grid > img {
    height: 330px;
  }

  .social-page .nav {
    min-height: 64px;
  }

  .recipe-card img {
    min-height: 240px;
    height: 240px;
  }
}

@media (max-width: 1000px) {
  /* RESPONSIVE TABLET: ajustes del hero y secciones cuando baja el ancho de pantalla. */
  .hero-stage,
  .interactive-showcase {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    max-width: 720px;
    margin: 0 auto;
  }

  .hero-title {
    max-width: 12ch;
    font-size: var(--banner-title-size-tablet);
  }

  .benefit-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
  }

  .hero-banner {
    padding-bottom: 104px;
  }

  .hero-controls {
    bottom: 34px;
  }

  .channel-panel {
    grid-template-columns: 1fr;
  }

  .channel-panel-copy,
  .channel-panel img {
    order: initial;
  }
}

@media (max-width: 720px) {
  /* RESPONSIVE CELULAR: ajustes principales para que el hero y botones no se monten. */
  .hero-banner {
    padding-top: 92px;
    padding-bottom: 88px;
  }

  .hero-controls {
    bottom: 28px;
  }

  .hero-title {
    font-size: var(--banner-title-size-mobile);
  }

  .hero-mini-benefits {
    gap: 12px;
  }

  .hero-badge {
    width: 108px;
    height: 108px;
    top: 2%;
    right: 2%;
    padding: 12px;
  }

  .benefit-strip {
    grid-template-columns: 1fr;
    width: min(100% - 24px, 1180px);
  }

  .benefit-strip article {
    min-height: 80px;
  }

  .interactive-showcase .channel-tabs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .interactive-showcase .channel-tab {
    flex: 0 0 auto;
    min-width: 220px;
  }
}

/* BANDAS Y ONDAS DEL HOME: solo afectan las cinco secciones principales de index.html.
   --band-bg cambia el fondo completo; --band-next debe coincidir con el fondo siguiente.
   La altura de .section-wave controla la ondulacion, sin aumentar el espacio entre bloques. */
.home-band {
  --band-bg: #ffffff;
  --band-next: #ffffff;
  position: relative;
  isolation: isolate;
  overflow: clip;
  background-color: var(--band-bg);
}

.home-band-about { --band-bg: #f7f7f7; }
.home-band-products { --band-bg: #ffffff; --band-next: #fffadd; }
.home-band-channels { --band-bg: #fffadd; }
.home-band-social { --band-bg: #ffffff; --band-next: #fff8da; }
.home-band-register { --band-bg: #fff8da; }

.section-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 36px;
  fill: var(--band-next);
  pointer-events: none;
}

.home-band-channels .visual-split {
  background: transparent;
}

/* CANALES: altura de la unica ola amplia, independiente de las demas divisiones. */
.home-band-channels > .section-wave { height: 96px; }
.home-band-about > .section-wave { height: 96px; }

@media (max-width: 720px) {
  .section-wave { height: 24px; }
  .home-band-channels > .section-wave { height: 52px; }
  .home-band-about > .section-wave { height: 60px; }
}

/* CATALOGO / MODAL: mantiene cuadrada la foto ampliada y respeta las proporciones del envase. */
.product-dialog .dialog-gallery {
  align-self: center;
  aspect-ratio: 1;
  min-height: 0;
  height: auto;
}

.product-dialog .dialog-gallery > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 25px 25px 80px;
  object-fit: contain;
}
