/* Solana — una sola página vertical.
   Las proporciones siguen las medidas tomadas a la referencia con Playwright
   (1440 px: contenedor 1360, columnas de 427 + 40, foto de producto 894 × 881,
   fotos de ambiente 660 × 826; a 1920 px el contenedor llega a 1620). */

:root {
  --pop: #ffd23f;
  --ink: #1f4d2b;
  --pale: #dcefc0;
  --text: #2c2c2c;
  --gap: 40px;
  --sans: "Work Sans", system-ui, sans-serif;
  --cond: "Barlow Semi Condensed", "Work Sans", sans-serif;
  --script: "Yellowtail", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font-family: var(--sans); font-weight: 300; line-height: 1.3; overflow-x: hidden; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
p { margin: 0 0 1em; }
h1, h2, h3, figure { margin: 0; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
.defs { position: absolute; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
section[id], [id="contacto"] { scroll-margin-top: 20px; }

/* Contenedor: 1360 a 1440 px, 1620 a 1920 px, como la referencia */
.wrap { width: min(100% - 80px, 1620px); margin-inline: auto; container-type: inline-size; }

/* ---------- Barra fija ---------- */
.pill-top {
  position: fixed; z-index: 40; left: 28px; top: 33px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 26px; border-radius: 999px;
  background: var(--ink); color: #fff; border: 2px dotted #fff; box-shadow: 0 0 0 3px var(--ink);
  font: 500 16px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  transition: transform .2s;
}
.pill-top:hover { transform: translateX(-3px); }
.menu-btn {
  position: fixed; z-index: 60; right: 22px; top: 36px;
  display: inline-flex; align-items: center; gap: 20px;
  background: rgba(255, 255, 255, .86); border: 0; border-radius: 12px; padding: 6px 10px; cursor: pointer; color: var(--ink);
  font: 500 36px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase;
}
.menu-btn__bars { display: grid; gap: 6px; width: 40px; }
.menu-btn__bars i { height: 4px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .2s; }
.menu-btn[aria-expanded="true"] i:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] i:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ---------- Menú superior ---------- */
.menu {
  position: fixed; inset: 0 0 auto 0; z-index: 50; max-height: 100vh; overflow: auto;
  background: #fff; border-bottom: 3px solid var(--ink); padding: 110px 40px 36px;
  transform: translateY(-102%); transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.menu.is-open { transform: none; }
.menu__inner { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; max-width: 1620px; margin: 0 auto; align-items: stretch; }
.menu__card { display: grid; gap: 14px; align-content: start; text-decoration: none; color: var(--ink); text-align: center; }
.menu__card span { font: 500 20px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; }
.menu__card img { height: 230px; width: auto; margin: 0 auto; transition: transform .3s; }
.menu__card:hover img { transform: translateY(-6px) rotate(-4deg); }
.menu__card--txt { align-content: center; border: 2px solid var(--ink); border-radius: 18px; min-height: 120px; transition: background .2s, color .2s; }
.menu__card--txt:hover { background: var(--ink); color: #fff; }

/* ---------- Marca ---------- */
.logo { font: 400 clamp(84px, 7.2vw, 132px)/1 var(--script); color: var(--ink); text-decoration: none; display: inline-block; transform: rotate(-6deg); padding: 0 .1em; }
.logo--sm { font-size: 76px; }

/* ---------- Palabras gigantes ---------- */
.word { margin: 0; font: 900 min(23.1vw, 440px)/.72 var(--sans); letter-spacing: -.02em; text-transform: uppercase; text-align: center; color: var(--pop); user-select: none; white-space: nowrap; }
.word--pale { color: var(--pale); font-size: min(19.1vw, 362px); }
.word--item { font-size: min(13.1vw, 247px); line-height: .8; }
.word--item span { display: block; }

/* ---------- Portada ---------- */
.hero { position: relative; text-align: center; padding-top: 30px; }
.hero .logo { position: relative; z-index: 3; }
.word--hero { margin: -5px -40px 0; }
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: min(-7.2cqw, calc(200px - 21.9cqw)); }
.prod { position: relative; display: block; text-decoration: none; color: var(--text); }
/* caja de 447 × 791 sobre columna de 427, como la referencia */
.prod__box { position: relative; display: block; margin-inline: -10px; aspect-ratio: 447 / 791; }
.prod__img { position: absolute; left: 50%; top: 0; height: 100%; width: auto; max-width: none; transform: translateX(-50%); filter: drop-shadow(0 22px 18px rgba(0, 0, 0, .2)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); transform-origin: 50% 90%; }
.prod:hover .prod__img { transform: translateX(-50%) rotate(-3deg) translateY(-10px); }
.fruit { position: absolute; width: 46%; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .16)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.fruit--a { left: -3%; bottom: 1%; transform: rotate(-12deg); z-index: 1; }
.fruit--b { right: -4%; bottom: 3%; width: 44%; transform: rotate(18deg); z-index: 1; }
.fruit--c { left: 0; bottom: 2%; width: 36%; z-index: 1; }
.prod:hover .fruit { transform: rotate(8deg) scale(1.05); }
.prod__cap { display: block; margin-top: 40px; font: 400 14px/1.4 var(--sans); letter-spacing: .07em; text-transform: uppercase; }

.tag {
  position: absolute; left: 0; top: 34.5%; z-index: 3;
  min-width: 150px; padding: 18px 14px; text-align: center;
  font: 500 26px/1.22 var(--cond); letter-spacing: .13em; text-transform: uppercase; color: var(--ink);
  --r: 11px;
  background:
    radial-gradient(circle at 0 0, transparent var(--r), var(--pop) calc(var(--r) + .5px)) 0 0 / 51% 51% no-repeat,
    radial-gradient(circle at 100% 0, transparent var(--r), var(--pop) calc(var(--r) + .5px)) 100% 0 / 51% 51% no-repeat,
    radial-gradient(circle at 0 100%, transparent var(--r), var(--pop) calc(var(--r) + .5px)) 0 100% / 51% 51% no-repeat,
    radial-gradient(circle at 100% 100%, transparent var(--r), var(--pop) calc(var(--r) + .5px)) 100% 100% / 51% 51% no-repeat;
  transition: transform .3s;
}
.prod:hover .tag { transform: scale(1.06) rotate(-3deg); }

/* ---------- Producto (en la referencia era una página aparte) ---------- */
.item { position: relative; padding-top: 110px; }
.item .word { margin-inline: -40px; }
.item__body { position: relative; z-index: 2; display: grid; grid-template-columns: 65.74cqw 1fr; gap: var(--gap); align-items: start; margin-top: -11cqw; }
/* foto de producto: 894 × 881 */
.trio { position: relative; aspect-ratio: 894 / 881; }
.trio img { position: absolute; width: auto; max-width: none; filter: drop-shadow(0 22px 18px rgba(0, 0, 0, .2)); }
.trio__c { height: 100%; left: 50%; top: 0; transform: translateX(-50%); z-index: 2; }
.trio__l { height: 87%; left: 13%; top: 9%; transform: rotate(-4deg); }
.trio__r { height: 87%; right: 13%; top: 9%; transform: rotate(4deg); }
.trio .trio__f1 { width: 25%; height: auto; left: 0; bottom: 0; z-index: 3; transform: rotate(-10deg); filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .16)); }
.trio .trio__f2 { width: 19%; height: auto; right: 1%; bottom: 2%; z-index: 3; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .16)); }
.badge { position: absolute; left: 0; top: 12%; width: 160px; z-index: 4; animation: gira 22s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

.item__txt { padding-top: 14.8cqw; font-size: 30px; line-height: 1.3; }
.item__txt > p { margin-bottom: .2em; }
.nutri { border-bottom: 1.5px solid var(--ink); padding-bottom: 22px; margin-bottom: 22px; }
.nutri summary { cursor: pointer; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; list-style: none; }
.nutri summary::-webkit-details-marker { display: none; }
.nutri summary::after { content: "+"; display: inline-block; margin-left: .35em; }
.nutri[open] summary::after { content: "–"; }
.nutri table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 17px; }
.nutri caption { text-align: left; font: 400 13px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding-bottom: 8px; color: var(--ink); }
.nutri th, .nutri td { padding: 9px 0; border-top: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); font-weight: 300; text-align: left; }
.nutri td { text-align: right; font-weight: 500; color: var(--ink); }

.item__btns { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  flex: 1 1 150px; display: inline-flex; justify-content: center; align-items: center; min-height: 46px;
  padding: 10px 22px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink);
  font: 500 17px/1.2 var(--sans); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; text-align: center;
  transition: background .2s, color .2s;
}
.btn:hover, .btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: #fff; color: var(--ink); }
.btn--solid { text-transform: none; letter-spacing: .02em; }

/* fotos de ambiente: dos de 660 × 826 */
.feed { margin-top: 56px; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); padding: 32px 0 40px; }
.feed h3, .where h3 { font: 500 20px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text); margin-bottom: 40px; }
.feed__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.feed figure { position: relative; overflow: hidden; border-radius: 22px; aspect-ratio: 660 / 826; background: #f1f1f1; }
.feed img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.feed figure:hover img { transform: scale(1.04); }
.feed__seal { position: absolute; right: 6%; bottom: 6%; display: grid; place-items: center; width: 118px; aspect-ratio: 1; border-radius: 50%; background: #fff; color: var(--ink); text-align: center; font: 600 17px/1.15 var(--cond); letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Fresco / pack ---------- */
.fresh { padding-top: 100px; text-align: center; }
.fresh .word { margin-inline: -40px; }
.pack { position: relative; z-index: 2; display: block; width: 92.6cqw; margin: -1cqw 0 0 -20px; text-decoration: none; color: var(--text); }
.pack img { width: 100%; mix-blend-mode: multiply; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.pack:hover img { transform: scale(1.02); }
.pack .prod__cap { margin: 0 0 0 20px; width: 100cqw; font-size: 18px; }

/* ---------- Nosotros ---------- */
.about { padding-top: 120px; }
.about .word { margin-inline: -40px; }
.about__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: 56px; font-size: 22px; }
.lead { font-size: clamp(26px, 2.7vw, 44px); line-height: 1.2; color: var(--ink); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 56px; }
.steps li { border-top: 1.5px solid var(--ink); padding-top: 22px; }
.steps b { font: 900 clamp(46px, 6vw, 96px)/.9 var(--sans); letter-spacing: -.03em; color: var(--pale); }
.steps h3 { margin: 12px 0 8px; font: 500 22px/1.2 var(--cond); letter-spacing: .13em; text-transform: uppercase; color: var(--ink); }
.steps p { font-size: 18px; margin: 0; }

/* ---------- Dónde / contacto ---------- */
.where { padding-top: 90px; }
.where__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); padding: 32px 0 44px; }
.where h3 { margin-bottom: 26px; }
.list li { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; padding: 18px 0; border-top: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); font-size: 18px; }
.list li:first-child { border-top: 0; padding-top: 0; }
.list b { font: 500 20px/1.25 var(--cond); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.note { margin: 26px 0 0; font-size: 14px; opacity: .7; }

/* ---------- Pie ---------- */
.foot { display: flex; align-items: center; gap: 40px; padding: 90px 0 100px; }
.foot__nav { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.foot__nav .btn { padding-inline: 10px; }
.foot__social { display: flex; gap: 25px; align-items: center; color: var(--ink); padding: 0 44px 0 45px; }

/* ---------- Aparición al desplazar ---------- */
.js .reveal { opacity: 0; transform: translateY(46px); transition: opacity .8s, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Tableta y móvil (referencia a 390 px: título 110 px, foto 308 × 545, ambiente 350 × 438) ---------- */
@media (max-width: 900px) {
  :root { --gap: 20px; }
  .wrap { width: calc(100% - 40px); }
  .pill-top { left: 10px; top: 20px; padding: 8px 14px; font-size: 13px; }
  .menu-btn { right: 8px; top: 14px; }
  .menu-btn__txt { display: none; }
  .menu { padding: 84px 20px 28px; }
  .menu__inner { grid-template-columns: repeat(3, 1fr); gap: 18px 12px; }
  .menu__card img { height: 150px; }
  .menu__card span { font-size: 16px; }
  .menu__card--txt { min-height: 64px; }

  .hero { padding-top: 78px; }
  .word { font-size: 26vw; }
  .word--hero, .item .word, .fresh .word, .about .word { margin-inline: -20px; }
  .word--pale { font-size: 23vw; }
  .word--item { font-size: 21vw; }
  .hero__grid { grid-template-columns: 1fr; gap: 56px; margin-top: -8cqw; }
  .prod__box { width: 88%; margin-inline: auto; aspect-ratio: 308 / 545; }
  .prod__cap { margin-top: 26px; }
  .tag { left: 0; top: 30%; min-width: 0; padding: 16px 14px; font-size: 23px; }

  .item { padding-top: 90px; }
  .item__body { grid-template-columns: 1fr; gap: 34px; margin-top: -16cqw; }
  .trio { width: 100%; }
  .trio__l { left: 2%; }
  .trio__r { right: 2%; }
  .badge { width: 80px; top: 6%; }
  .item__txt { padding-top: 0; font-size: 18px; }
  .feed { margin-top: 44px; }
  .feed h3 { margin-bottom: 28px; }
  .feed__grid { grid-template-columns: 1fr; gap: 40px; }
  .feed__seal { width: 92px; font-size: 14px; }

  .fresh { padding-top: 80px; }
  .pack { width: 100cqw; margin: 0; }
  .pack .prod__cap { margin: 8px 0 0; font-size: 14px; }
  .about { padding-top: 90px; }
  .about__cols, .where__grid { grid-template-columns: 1fr; gap: 28px; font-size: 18px; }
  .steps { grid-template-columns: 1fr; }
  .list li { grid-template-columns: 1fr; gap: 4px; }

  .foot { flex-direction: column; gap: 30px; padding: 70px 0 80px; }
  .foot__nav { width: 100%; grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .badge { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .menu, .prod__img, .fruit, .tag, .pack img, .feed img { transition: none; }
}
