/* ==========================================================================
   Del Origen — estilos
   ========================================================================== */

/* fonts:start — generado por scripts/build-assets.mjs (tarea "fonts"); no editar a mano */
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-condensed-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/caveat-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/nunito-sans-400-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* fonts:end */

:root {
  --bordo: #5F2235;
  --bordo-dark: #4A1A29;
  --crema: #F4EDB3;
  --beige: #F7F1E3;
  --beige-2: #EFE5CF;
  --papel: #FBF7EE;
  --miel: #C8922A;          /* solo decorativo sobre fondos claros */
  --miel-texto: #8A5A12;    /* miel con contraste AA sobre beige */
  --miel-claro: #E0B55A;    /* miel para texto sobre bordó */
  --oliva: #6B7A3A;
  --oliva-texto: #5A6630;
  --texto: #2B1B1E;
  --texto-suave: #5E4A4E;

  --f-title: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-script: "Caveat", "Comic Sans MS", cursive;
  --f-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px -12px rgba(74, 26, 41, .28);
  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 120px);
  /* Pestaña de Instagram: el contenido le deja lugar solo si el margen natural no alcanza.
     (100vw - 1200px) / 2 es el margen que queda fuera del .container en pantallas anchas. */
  --ig-w: 60px;
  --content-pad-right: max(var(--gutter), calc(var(--ig-w) + 12px - max(0px, (100vw - 1200px) / 2)));
}
@media (max-width: 699px), (pointer: coarse) {
  :root { --ig-w: 30px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--texto);
  background-color: var(--beige);
  /* textura de papel sugerida: grano muy suave generado en SVG */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .37 0 0 0 0 .2 0 0 0 0 .1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: var(--bordo); text-underline-offset: .18em; }
a:hover { color: var(--bordo-dark); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--f-title);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: .01em;
  color: var(--bordo);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); text-transform: uppercase; }
h2 { font-size: clamp(2.3rem, 5.4vw, 3.8rem); text-transform: uppercase; }
h3 { font-size: clamp(1.9rem, 4vw, 2.8rem); text-transform: uppercase; }
h4 { font-size: 1.45rem; font-weight: 600; margin-bottom: .3em; }

.script { font-family: var(--f-script); font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--miel);
  outline-offset: 3px;
  border-radius: 6px;
}
.mayoristas :focus-visible, .site-footer :focus-visible, .hero :focus-visible, .line-choco :focus-visible { outline-color: var(--crema); }

[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--bordo); color: var(--crema); padding: 10px 18px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--crema); }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter) var(--content-pad-right); }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--bordo); --btn-fg: var(--crema); --btn-bd: var(--bordo);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.4em;
  font-family: var(--f-body); font-size: 1rem; font-weight: 800; line-height: 1.2; letter-spacing: .01em;
  text-decoration: none; text-align: center;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 2px solid var(--btn-bd); border-radius: 999px;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn-primary:hover { --btn-bg: var(--bordo-dark); --btn-bd: var(--bordo-dark); }
.btn-cream { --btn-bg: var(--crema); --btn-fg: var(--bordo); --btn-bd: var(--crema); }
.btn-cream:hover { --btn-bg: #fff8c9; --btn-bd: #fff8c9; }
.btn-outline-cream { --btn-bg: transparent; --btn-fg: var(--crema); --btn-bd: var(--crema); }
.btn-outline-cream:hover { --btn-bg: rgba(244, 237, 179, .14); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--bordo); --btn-bd: var(--bordo); }
.btn-ghost:hover { --btn-bg: rgba(95, 34, 53, .06); }
.btn-sm { min-height: 42px; padding: .5em 1.1em; font-size: .92rem; }
.btn-lg { min-height: 56px; padding: .85em 1.8em; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(247, 241, 227, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { border-color: rgba(95, 34, 53, .12); box-shadow: 0 6px 20px -16px rgba(74, 26, 41, .5); }
.site-header .container { max-width: 1360px; padding-right: var(--gutter); } /* el header está arriba de la pestaña */
.nav-cta { white-space: nowrap; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: block; flex: none; border-radius: 6px; }
.brand img { width: 150px; height: auto; }

.site-nav ul { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
  display: block; padding: .5em .6em; white-space: nowrap; border-radius: 8px;
  font-weight: 700; font-size: .95rem; color: var(--texto); text-decoration: none;
  position: relative;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: .7em; right: .7em; bottom: .25em; height: 2px;
  background: var(--miel); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.site-nav a:not(.btn):hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
.site-nav a.is-active { color: var(--bordo); }

.nav-toggle {
  display: none;
  width: 48px; height: 48px; padding: 12px; margin-right: -8px;
  background: transparent; border: 0; border-radius: 10px; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle-bar { display: block; height: 2.5px; background: var(--bordo); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (min-width: 1181px) {
  .site-nav { display: flex; align-items: center; gap: 10px; }
}
@media (min-width: 1181px) and (max-width: 1320px) {
  .site-nav a:not(.btn) { font-size: .9rem; padding-inline: .45em; }
  .brand img { width: 130px; }
}
@media (max-width: 1180px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    background: var(--beige);
    border-top: 1px solid rgba(95, 34, 53, .12);
    box-shadow: 0 20px 30px -20px rgba(74, 26, 41, .45);
    padding: 12px var(--gutter) 24px;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s ease, transform .25s ease; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a:not(.btn) { font-family: var(--f-title); font-size: 1.6rem; font-weight: 600; padding: .45em 0; border-bottom: 1px solid rgba(95, 34, 53, .1); border-radius: 0; }
  .site-nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 18px; width: 100%; }
}

/* ---------- Secciones genéricas ---------- */
.section { position: relative; padding-block: var(--section-y); }
.eyebrow {
  font-family: var(--f-script); font-weight: 700; font-size: 1.7rem; line-height: 1;
  color: var(--miel-texto); margin-bottom: .35em;
}
.eyebrow-light { color: var(--miel-claro); }
.section-head { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { margin-bottom: .1em; }
.deco-line { width: 180px; height: 12px; margin: 0 auto; color: var(--miel); }

.split { display: grid; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1.1fr; }
  .split-reverse { grid-template-columns: 1.1fr 1fr; }
  .split-top { align-items: start; }
}

.photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--beige-2); }
.photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 900px) {
  .photo-tilt { transform: rotate(-1.6deg); }
  .photo-tilt-r { transform: rotate(1.6deg); }
}

.deco { position: absolute; color: var(--oliva); opacity: .45; pointer-events: none; }
.deco-sprig { width: clamp(120px, 16vw, 220px); height: auto; aspect-ratio: 2 / 1; }
.deco-tr { top: 28px; right: -10px; transform: scaleX(-1) rotate(-8deg); }
.deco-tl { top: 28px; left: -10px; transform: rotate(-8deg); }
.deco-light { color: var(--crema); opacity: .25; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(92vh, 860px);
  display: flex; align-items: center;
  padding-block: clamp(56px, 10vw, 110px);
  color: var(--crema);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--bordo-dark); }

/* Pase de fotos: fundido cruzado (opacity) + zoom lento tipo Ken Burns (transform).
   Cada foto: 1,5 s de entrada + 6 s visible + 1,5 s de salida = 9 s de zoom (js/main.js usa los mismos tiempos). */
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 45%;
  opacity: 0; transform: scale(1);
  transition: opacity 1.5s ease-in-out;
  backface-visibility: hidden;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide.is-active, .hero-slide.is-prev { animation: hero-ken-burns 9s linear forwards; will-change: transform, opacity; }
.hero.is-paused .hero-slide { animation-play-state: paused; }
@keyframes hero-ken-burns { from { transform: scale(1); } to { transform: scale(1.08); } }

/* Encuadre de cada foto (vertical) en el hero apaisado */
.hero-slide--granola    { object-position: 50% 45%; }
.hero-slide--galletitas { object-position: 50% 60%; }
.hero-slide--chocolate  { object-position: 50% 40%; }
.hero-slide--miel       { object-position: 50% 85%; }
.hero-slide--bowls      { object-position: 50% 35%; }
@media (max-width: 700px) {
  /* en mobile el hero es vertical: se recorta a los costados */
  .hero-slide--granola    { object-position: 60% 50%; }
  .hero-slide--galletitas { object-position: 75% 50%; }
  .hero-slide--chocolate  { object-position: 70% 50%; }
  .hero-slide--miel       { object-position: 70% 50%; }
  .hero-slide--bowls      { object-position: 65% 50%; }
}
/* Sin animaciones: solo la primera foto, fija */
@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none !important; transition: none !important; transform: none; }
  .hero-slide:not(.hero-slide--granola) { display: none; }
  .hero-slide--granola { opacity: 1; }
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(58, 18, 30, .92) 0%, rgba(74, 26, 41, .82) 45%, rgba(74, 26, 41, .35) 100%),
    linear-gradient(0deg, rgba(43, 27, 30, .35), transparent 40%);
}
@media (max-width: 700px) {
  .hero::before { background: linear-gradient(180deg, rgba(58, 18, 30, .78) 0%, rgba(74, 26, 41, .86) 60%, rgba(58, 18, 30, .92) 100%); }
}
.hero-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.hero-content { max-width: 640px; }
.hero-logo { width: clamp(170px, 22vw, 240px); height: auto; margin-bottom: 14px; }
.hero .hero-kicker { font-size: clamp(1.5rem, 2.4vw, 1.9rem); color: var(--miel-claro); margin-bottom: .3em; line-height: 1.1; }
.hero h1 { color: var(--crema); margin-bottom: .4em; }
.hero p:not(.hero-kicker) { font-size: 1.08rem; color: #FBF6DA; max-width: 56ch; }
.hero .btn-row { margin-top: 1.8em; }

/* ---------- Sellos redondos ---------- */
.seal {
  --seal-bg: var(--oliva); --seal-fg: #fff;
  flex: none;
  width: 104px; height: 104px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--seal-bg); color: var(--seal-fg);
  font-family: var(--f-title); font-weight: 700; font-size: .98rem; line-height: 1; letter-spacing: .06em;
  text-transform: uppercase; text-align: center;
  box-shadow: 0 0 0 4px var(--seal-bg), inset 0 0 0 2px var(--seal-bg), inset 0 0 0 3.5px rgba(255, 255, 255, .7);
  transform: rotate(-8deg);
}
.seal .icon { width: 26px; height: 26px; margin-bottom: 3px; }
.seal-olive { --seal-bg: var(--oliva); --seal-fg: #fff; }
.seal-honey { --seal-bg: var(--bordo); --seal-fg: var(--crema); }
.seal-hero {
  --seal-bg: transparent; --seal-fg: var(--crema);
  width: 150px; height: 150px; font-size: 1.25rem;
  box-shadow: inset 0 0 0 2px var(--crema), inset 0 0 0 7px transparent, inset 0 0 0 8.5px rgba(244, 237, 179, .6);
}
.seal-hero .icon { width: 36px; height: 36px; }
@media (max-width: 900px) { .seal-hero { display: none; } }
.seal-float { position: absolute; right: 14px; top: 14px; }

/* ---------- Historia ---------- */
.historia { overflow: hidden; }
.quote {
  margin-top: 1.6em; padding: 1.2em 1.4em;
  border-left: 4px solid var(--miel);
  background: rgba(200, 146, 42, .09); border-radius: 0 var(--radius) var(--radius) 0;
}
.quote p { margin: 0; }
.quote-lead { display: block; font-weight: 800; color: var(--bordo); }
.quote .script { display: block; font-size: clamp(1.8rem, 3.6vw, 2.35rem); line-height: 1.12; color: var(--bordo); }

/* ---------- Productos ---------- */
.productos { background: var(--papel); padding-bottom: 0; }
.product-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.product-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .45em 1.15em;
  border: 2px solid rgba(95, 34, 53, .25); border-radius: 999px;
  font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--bordo);
  background: var(--beige);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.product-nav a:hover { background: var(--bordo); border-color: var(--bordo); color: var(--crema); }

.line { padding-bottom: clamp(56px, 8vw, 96px); margin-bottom: clamp(56px, 8vw, 96px); border-bottom: 2px dashed rgba(95, 34, 53, .15); }
.line:last-of-type { border-bottom: 0; margin-bottom: 0; }
.line > .btn { margin-top: 32px; }
.line-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; max-width: 860px; margin-bottom: 28px; }
.line-head p { max-width: 62ch; }
.list-intro { font-size: 1.75rem; color: var(--miel-texto); margin: 8px 0 18px; }
.lead-script { font-size: 1.8rem; line-height: 1.15; color: var(--bordo); margin-bottom: .5em; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tag, .mini-tag {
  display: inline-block; padding: .25em .8em; border-radius: 999px;
  font-family: var(--f-title); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--crema); color: var(--bordo); border: 1.5px solid rgba(95, 34, 53, .3);
}
.tag { font-size: 1.05rem; }
.mini-tag { font-size: .78rem; padding: .15em .6em; vertical-align: .2em; margin-left: .2em; }

.flavor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2.4vw, 24px); }
@media (min-width: 700px) { .flavor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .flavor-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.flavor {
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 6px 20px -14px rgba(74, 26, 41, .5);
  transition: transform .25s ease, box-shadow .25s ease;
}
.flavor:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.flavor img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; }
.flavor-body { padding: 14px 16px 18px; }
.flavor-body h4 { font-size: clamp(1.2rem, 2.6vw, 1.45rem); }
.flavor-body p { font-size: .95rem; line-height: 1.5; color: var(--texto-suave); margin: 0; }

.xxl {
  display: flex; align-items: center; gap: clamp(20px, 4vw, 44px);
  margin-top: clamp(32px, 5vw, 48px); padding: clamp(24px, 4vw, 40px);
  background: var(--bordo); color: var(--crema); border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
}
.xxl::after {
  content: ""; position: absolute; inset: 10px; border: 1.5px dashed rgba(244, 237, 179, .35); border-radius: calc(var(--radius-lg) - 8px); pointer-events: none;
}
.xxl-badge {
  flex: none; margin: 0;
  font-family: var(--f-title); font-weight: 700; font-size: clamp(4rem, 12vw, 7.5rem); line-height: .85;
  color: var(--miel-claro);
}
.xxl h4 { color: var(--crema); font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 700; text-transform: uppercase; margin-bottom: .1em; }
.xxl-sub { font-size: 1.7rem; line-height: 1.15; color: var(--miel-claro); margin-bottom: .5em; }
.xxl-list { margin: 0; }
.xxl-list span { font-weight: 800; }
@media (max-width: 560px) { .xxl { flex-direction: column; align-items: flex-start; } }

.variety-grid { display: grid; gap: clamp(20px, 3vw, 32px); }
@media (min-width: 760px) { .variety-grid { grid-template-columns: 1fr 1fr; } }
.variety { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 6px 20px -14px rgba(74, 26, 41, .5); display: flex; flex-direction: column; }
.variety-media { position: relative; }
.variety-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.variety-body { padding: 22px 24px 26px; }
.variety-body h4 { font-size: clamp(1.45rem, 2.8vw, 1.8rem); }
.variety-body p { margin-bottom: .6em; }
.variety-body p:last-child { margin-bottom: 0; }

.presentations {
  display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: center;
  margin-top: 32px; padding: 20px; border-radius: var(--radius-lg);
  background: var(--beige); border: 1.5px solid rgba(95, 34, 53, .12);
}
.presentations-img { width: 120px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }
.presentations p { margin-bottom: .6em; }
@media (min-width: 700px) {
  .presentations { grid-template-columns: 180px 1fr; padding: 24px 32px 24px 24px; }
  .presentations-img { width: 180px; }
}
@media (max-width: 480px) {
  .presentations { grid-template-columns: 1fr; }
  .presentations-img { width: 100%; aspect-ratio: 16 / 9; }
}
.sizes { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 18px; }
.sizes li {
  font-family: var(--f-title); font-weight: 700; font-size: 1.5rem; line-height: 1;
  padding: .35em .75em; border-radius: 12px;
  background: var(--crema); color: var(--bordo); border: 2px solid var(--bordo);
}
.sizes-light li { background: transparent; color: var(--crema); border-color: var(--crema); }

.line-choco {
  background: var(--bordo); color: var(--crema);
  border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 64px);
  border-bottom: 0;
  background-image: radial-gradient(circle at 90% 10%, rgba(200, 146, 42, .18), transparent 40%), linear-gradient(var(--bordo), var(--bordo-dark));
}
.line-choco h3 { color: var(--crema); }
.line-choco p { color: #FBF6DA; }
.choco-grid { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (min-width: 900px) { .choco-grid { grid-template-columns: 1fr 1fr; } }
.choco-media { position: relative; padding-right: 18%; padding-bottom: 12%; }
.choco-main { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.choco-detail {
  position: absolute; right: 0; bottom: 0; width: 42%; aspect-ratio: 1; object-fit: cover;
  border-radius: 50%; border: 6px solid var(--bordo); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
}

.features { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-bottom: 28px; }
.features li {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .5em 1em .5em .8em; border-radius: 999px;
  background: rgba(107, 122, 58, .12); color: var(--oliva-texto);
  font-weight: 800; font-size: .95rem;
}
.features .icon { width: 1.4em; height: 1.4em; }

.nut-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 20px); }
@media (min-width: 640px) { .nut-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .nut-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.nut { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 20px -14px rgba(74, 26, 41, .5); background: var(--beige-2); }
.nut img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .5s ease; }
.nut:hover img { transform: scale(1.04); }
.nut span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 36px 14px 12px;
  font-family: var(--f-title); font-weight: 700; font-size: 1.3rem; line-height: 1.05; text-transform: uppercase; letter-spacing: .02em;
  color: var(--crema);
  background: linear-gradient(0deg, rgba(58, 18, 30, .9), rgba(58, 18, 30, 0));
}
.line#frutos-secos .list-intro { margin-top: 36px; }

/* Catálogos: banda con trama tipo arpillera */
.catalogs {
  margin-top: clamp(56px, 8vw, 96px);
  padding-block: clamp(40px, 6vw, 64px);
  background-color: #E6D3AA;
  background-image:
    repeating-linear-gradient(0deg, rgba(95, 34, 53, .07) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(95, 34, 53, .07) 0 1px, transparent 1px 5px);
}
.catalogs-inner { display: grid; gap: 24px 40px; align-items: center; }
@media (min-width: 980px) { .catalogs-inner { grid-template-columns: auto 1fr; } .catalogs-wholesale { grid-column: 1 / -1; } }
.catalogs h3 { margin-bottom: .1em; }
.catalogs-inner > div > p { margin: 0; font-weight: 600; }
.catalog-list { display: grid; gap: 12px; }
@media (min-width: 640px) { .catalog-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.catalog {
  display: flex; align-items: center; gap: 14px; height: 100%;
  padding: 16px 18px; border-radius: var(--radius);
  background: var(--papel); color: var(--texto); text-decoration: none;
  border: 2px solid transparent; box-shadow: 0 6px 18px -14px rgba(74, 26, 41, .6);
  transition: border-color .2s ease, transform .2s ease;
}
.catalog:hover { border-color: var(--bordo); transform: translateY(-2px); color: var(--texto); }
.catalog .icon { width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--bordo); color: var(--crema); }
.catalog strong { display: block; font-family: var(--f-title); font-size: 1.3rem; font-weight: 600; line-height: 1.05; color: var(--bordo); }
.catalog small { font-size: .85rem; color: var(--texto-suave); font-weight: 700; }
.catalogs-wholesale {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  padding: 18px 22px; border-radius: var(--radius); background: rgba(251, 247, 238, .7);
}
.catalogs-wholesale p { margin: 0; font-weight: 800; color: var(--bordo); font-size: 1.08rem; }

/* ---------- Cómo elaboramos ---------- */
.elaboracion { overflow: hidden; }
.badge-line {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 18px; border-radius: var(--radius);
  background: rgba(107, 122, 58, .12); color: var(--oliva-texto); font-weight: 800;
}
.badge-line .icon { width: 28px; height: 28px; margin-top: 1px; }
.reels-title { font-size: 2rem; color: var(--miel-texto); margin: clamp(48px, 7vw, 80px) 0 16px; }
.reels {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 62vw);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding-bottom: 12px; margin-inline: calc(var(--gutter) * -1) calc(var(--content-pad-right) * -1);
  padding-inline: var(--gutter) var(--content-pad-right);
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--miel) transparent;
}
@media (min-width: 700px) { .reels { grid-auto-columns: minmax(200px, 36vw); } }
@media (min-width: 1000px) {
  .reels { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; }
}
.reel { position: relative; scroll-snap-align: start; }
.reel video {
  width: 100%; aspect-ratio: 576 / 952; object-fit: cover;
  border-radius: var(--radius-lg); background: var(--beige-2); box-shadow: var(--shadow);
}
.reel-caption { margin: 10px 4px 0; font-weight: 800; color: var(--bordo); font-size: .98rem; }
.reel-toggle {
  position: absolute; right: 12px; top: 12px;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(43, 27, 30, .55); color: #fff;
  display: grid; place-items: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.reel-toggle:hover { background: rgba(43, 27, 30, .75); }
.reel-icon { width: 14px; height: 16px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); margin-left: 3px; }
.reel.is-playing .reel-icon { clip-path: none; width: 13px; margin-left: 0; background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65%); }

/* ---------- Por qué ---------- */
.porque { background: var(--beige-2); }
.reasons { display: grid; gap: 20px; }
@media (min-width: 640px) { .reasons { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .reasons { grid-template-columns: repeat(4, 1fr); } }
.reason {
  padding: 28px 24px; border-radius: var(--radius-lg); background: var(--papel); text-align: center;
  box-shadow: 0 6px 20px -16px rgba(74, 26, 41, .5);
}
.reason-icon {
  display: inline-grid; place-items: center; width: 76px; height: 76px; margin-bottom: 14px;
  border-radius: 50%; color: var(--bordo);
  background: var(--crema); box-shadow: 0 0 0 6px var(--papel), 0 0 0 7.5px rgba(200, 146, 42, .6);
}
.reason-icon .icon { width: 36px; height: 36px; }
.reason h3 { font-size: 1.55rem; font-weight: 600; }
.reason p { margin: 0; color: var(--texto-suave); font-size: .98rem; }

/* ---------- Dónde ---------- */
.contact-list { display: grid; gap: 12px; margin: 0 0 1.4em; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .icon { width: 24px; height: 24px; color: var(--bordo); margin-top: 2px; }
.contact-list a { font-weight: 800; }
.map {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  background: var(--beige-2); border: 6px solid var(--papel);
  aspect-ratio: 4 / 3.4;
}
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- Mayoristas ---------- */
.mayoristas {
  background: var(--bordo); color: var(--crema); text-align: center; overflow: hidden;
  background-image: radial-gradient(circle at 15% 110%, rgba(200, 146, 42, .22), transparent 45%), radial-gradient(circle at 90% -10%, rgba(244, 237, 179, .1), transparent 40%);
}
.mayoristas-inner { max-width: 820px; }
.mayoristas h2 { color: var(--crema); }
.mayoristas p:not(.eyebrow) { color: #FBF6DA; font-size: 1.1rem; }
.mayoristas .btn { margin-top: 1.2em; }

/* ---------- Contacto ---------- */
.form-card {
  background: var(--papel); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 40px);
  box-shadow: var(--shadow); border: 1.5px solid rgba(95, 34, 53, .1);
}
.form-intro { font-weight: 700; color: var(--bordo); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 800; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--texto);
  padding: .75em .9em; min-height: 48px;
  background: #fff; border: 2px solid rgba(95, 34, 53, .28); border-radius: 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F2235' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8em center; background-size: 20px; padding-right: 2.6em;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--bordo); box-shadow: 0 0 0 4px rgba(200, 146, 42, .35); }
.field [aria-invalid="true"] { border-color: #A3202E; }
.field-error { color: #A3202E; font-weight: 700; font-size: .92rem; margin: 6px 0 0; }
.form-note { margin: 12px 0 0; font-size: .9rem; color: var(--texto-suave); text-align: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bordo-dark); color: var(--crema); text-align: center;
  padding-top: 56px;
  /* lugar para los dos botones flotantes apilados: al final de la página no tapan nada */
  padding-bottom: calc(var(--float-bottom) + var(--float-size) * 2 + var(--float-gap) + 24px);
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-logo { width: 190px; height: auto; }
.footer-tag { font-size: 1.05rem; margin: 0; }
.footer-tag .script { font-size: 1.7rem; color: var(--miel-claro); }
.footer-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 6px; }
.footer-social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--crema); font-weight: 700; text-decoration: none; }
.footer-social a:hover { color: #fff; text-decoration: underline; }
.footer-copy { font-size: .88rem; opacity: .85; margin: 8px 0 0; }

/* ---------- Botones flotantes: Compartir (arriba) y WhatsApp (abajo) ---------- */
:root {
  --float-size: 58px;
  --float-gap: 12px;
  --float-right: max(16px, env(safe-area-inset-right));
  --float-bottom: max(16px, env(safe-area-inset-bottom));
}
.wa-float, .share-float {
  position: fixed; right: var(--float-right); z-index: 90;
  width: var(--float-size); height: var(--float-size); border-radius: 50%;
  display: grid; place-items: center;
  /* aro crema: los dos se distinguen también sobre el hero y el footer bordó */
  box-shadow: 0 0 0 2px var(--crema), 0 10px 24px -8px rgba(0, 0, 0, .45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float .icon { width: 30px; height: 30px; }
.share-float .icon { width: 27px; height: 27px; }
/* WhatsApp: bordó con ícono crema */
.wa-float { bottom: var(--float-bottom); background: var(--bordo); color: var(--crema); }
/* Compartir: invertido para diferenciarlo, crema con ícono y borde bordó */
.share-float {
  bottom: calc(var(--float-bottom) + var(--float-size) + var(--float-gap));
  background: var(--crema); color: var(--bordo);
  border: 2px solid var(--bordo); padding: 0; cursor: pointer;
}
/* mismo hover y foco para los dos */
.wa-float:hover, .share-float:hover {
  transform: scale(1.07);
  box-shadow: 0 0 0 2px var(--crema), 0 14px 28px -8px rgba(0, 0, 0, .55);
}
.wa-float:hover { color: var(--crema); }
.wa-float:focus-visible, .share-float:focus-visible { outline: 3px solid var(--miel); outline-offset: 4px; }

/* Tooltip "Compartir": al pasar el mouse o con foco de teclado */
.float-tip {
  position: absolute; right: calc(100% + 10px); top: 50%;
  padding: .35em .75em; border-radius: 8px;
  background: var(--texto); color: #fff; font-size: .85rem; font-weight: 700; white-space: nowrap;
  opacity: 0; pointer-events: none; transform: translate(4px, -50%);
  transition: opacity .15s ease, transform .15s ease;
}
.share-float:hover .float-tip, .share-float:focus-visible .float-tip { opacity: 1; transform: translate(0, -50%); }
.share-float[aria-expanded="true"] .float-tip { opacity: 0; }

/* Panel para PC (sin navigator.share) */
.share-panel {
  position: fixed; z-index: 95;
  right: calc(var(--float-right) + var(--float-size) + var(--float-gap));
  bottom: calc(var(--float-bottom) + var(--float-size) + var(--float-gap));
  width: 230px; padding: 10px;
  background: var(--papel); border: 1.5px solid rgba(95, 34, 53, .15); border-radius: var(--radius);
  box-shadow: 0 20px 40px -16px rgba(43, 27, 30, .5);
}
.share-panel-title { margin: 4px 8px 8px; font-family: var(--f-title); font-weight: 700; font-size: 1.2rem; text-transform: uppercase; color: var(--bordo); }
.share-option {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px 10px;
  border: 0; border-radius: 10px; background: transparent;
  font: inherit; font-weight: 700; font-size: .98rem; color: var(--texto); text-decoration: none; text-align: left; cursor: pointer;
}
.share-option:hover, .share-option:focus-visible { background: rgba(95, 34, 53, .08); color: var(--bordo); }
.share-option .icon { width: 22px; height: 22px; color: var(--bordo); }

/* Aviso "¡Enlace copiado!" */
.share-toast {
  position: fixed; z-index: 95; margin: 0;
  right: calc(var(--float-right) + var(--float-size) + var(--float-gap));
  bottom: calc(var(--float-bottom) + var(--float-size) + var(--float-gap) + 10px);
  padding: .55em 1em; border-radius: 10px;
  background: var(--texto); color: #fff; font-weight: 700; font-size: .92rem; white-space: nowrap;
  opacity: 0; pointer-events: none; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease;
}
.share-toast.is-visible { opacity: 1; transform: none; }

/* ---------- Pestaña fija de Instagram ---------- */
.ig-tab {
  position: fixed; top: 50%; right: 0; z-index: 85; /* debajo del header (100): el menú mobile abierto la tapa */
  transform: translateY(-50%);
  display: flex; align-items: center;
  min-width: var(--ig-w); height: 52px;
  padding: 0 calc((var(--ig-w) - 24px) / 2); padding-right: max(calc((var(--ig-w) - 24px) / 2), env(safe-area-inset-right));
  background: var(--bordo); color: var(--crema);
  border-radius: 14px 0 0 14px;
  /* borde crema (como el aro de los botones flotantes): se ve también sobre el hero y el footer bordó */
  border: 2px solid var(--crema); border-right: 0;
  box-shadow: -3px 6px 18px -6px rgba(43, 27, 30, .45);
  font-weight: 800; font-size: .95rem; text-decoration: none; white-space: nowrap;
}
.ig-tab:hover, .ig-tab:focus-visible { color: var(--crema); background: var(--bordo-dark); }
.ig-tab:focus-visible { outline: 3px solid var(--miel); outline-offset: 2px; border-radius: 14px 0 0 14px; }
.ig-tab .icon { width: 24px; height: 24px; }
.ig-tab-text { max-width: 0; overflow: hidden; opacity: 0; transition: max-width .3s ease, opacity .2s ease, margin .3s ease; }
/* Con mouse: se despliega hacia la izquierda al pasar o con foco de teclado */
@media (hover: hover) and (pointer: fine) {
  .ig-tab:hover .ig-tab-text, .ig-tab:focus-visible .ig-tab-text { max-width: 180px; opacity: 1; margin-left: 10px; margin-right: 4px; }
}
/* Pantallas táctiles / chicas: solo el ícono, compacta */
@media (max-width: 699px), (pointer: coarse) {
  .ig-tab { height: 44px; padding-inline: 5px; padding-right: max(5px, env(safe-area-inset-right)); border-radius: 12px 0 0 12px; }
  .ig-tab .icon { width: 20px; height: 20px; }
}
/* Pantallas muy bajas (celular apaisado): sube para no chocar con los botones de abajo */
@media (max-height: 460px) {
  .ig-tab { top: calc(var(--header-h) + 16px); transform: none; }
}

/* ---------- Animaciones de aparición ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .flavor-grid .reveal:nth-child(4n+2), .js .nut-grid .reveal:nth-child(5n+2), .js .reasons .reveal:nth-child(2) { transition-delay: .08s; }
  .js .flavor-grid .reveal:nth-child(4n+3), .js .nut-grid .reveal:nth-child(5n+3), .js .reasons .reveal:nth-child(3) { transition-delay: .16s; }
  .js .flavor-grid .reveal:nth-child(4n+4), .js .nut-grid .reveal:nth-child(5n+4), .js .reasons .reveal:nth-child(4) { transition-delay: .24s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .photo-tilt, .photo-tilt-r { transform: none; }
}

/* ---------- Ajustes para pantallas chicas ---------- */
@media (max-width: 560px) {
  .line-head { gap: 14px; }
  .line-head .seal { width: 78px; height: 78px; font-size: .8rem; }
  .line-head .seal .icon { width: 20px; height: 20px; }
  .seal-float { width: 84px; height: 84px; font-size: .82rem; }
  .seal-float .icon { width: 20px; height: 20px; }
  .hero .hero-kicker { text-wrap: balance; }
}
@media (max-width: 420px) {
  .btn { font-size: .95rem; padding-inline: 1.1em; }
  .line > .btn, .presentations .btn, .catalogs-wholesale .btn { width: 100%; }
}
