/* ===== Paulin Premium Fruits — colores y tipografías del manual de marca ===== */
@font-face {
  font-family: "Rammetto One";
  src: url(fonts/RammettoOne.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url(fonts/Archivo.woff2) format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --papel: #f2f2f2;
  --blanco: #ffffff;
  --tinta: #2b2926;
  --gris: #919191;
  --verde: #3fa34d;
  --verde-osc: #2f7f3b;
  --amarillo: #ffc72c;
  --mostaza: #d9a328;
  --naranja: #e94e1b;
  --ladrillo: #c0421c;

  --display: "Rammetto One", "Arial Black", sans-serif;
  --body: "Archivo", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --r-lg: 28px;
  --r-sm: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--body);
  font-stretch: 112%;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--naranja); outline-offset: 3px; border-radius: 4px; }

[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--tinta); color: var(--papel); padding: 8px 14px; }

.display, .h2, h3, .who__q, .story__year {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.02;
  margin-block: 0;
}
.display { font-size: clamp(42px, 6.2vw, 84px); }
.h2 { font-size: clamp(32px, 4.4vw, 58px); }
h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.15; }
.lead { font-size: clamp(18px, 1.6vw, 21px); max-width: 34em; margin: 28px 0 0; }
.muted { color: #5c5852; max-width: 38em; }

section { padding: clamp(64px, 9vw, 128px) var(--gutter); }
section > * { max-width: var(--max); margin-inline: auto; }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 700;
  font-stretch: 118%;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 15px 28px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--ink { background: var(--tinta); color: var(--papel); }
.btn--orange { background: var(--naranja); color: #fff; }
.btn--orange:hover { background: var(--ladrillo); }
.btn--green { background: var(--verde); color: #fff; }
.btn--green:hover { background: var(--verde-osc); }
.btn--line { border-color: var(--tinta); background: transparent; }
.btn--line:hover { background: var(--tinta); color: var(--papel); }
.count {
  display: inline-grid; place-items: center;
  min-width: 26px; height: 26px; padding: 0 7px;
  border-radius: 999px; background: var(--amarillo); color: var(--tinta);
  font-size: 14px;
}
.linkish { background: none; border: 0; text-decoration: underline; cursor: pointer; color: #5c5852; padding: 8px; }
.icon-btn { background: none; border: 0; font-size: 22px; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; }
.icon-btn:hover { background: var(--papel); }

/* ===== Header ===== */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 32px;
  padding: 12px var(--gutter);
  background: var(--papel);
}
.top__logo img { height: 52px; width: auto; }
.top__nav { display: flex; gap: 28px; margin-left: auto; font-weight: 600; }
.top__nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.top__nav a:hover { border-color: var(--naranja); }

/* ===== Hero: el tucán construido con fotos y cuartos de círculo ===== */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-top: clamp(40px, 6vw, 88px);
}
.hero > * { margin: 0; max-width: none; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero__toucan {
  --s: min(21vw, 270px);
  display: grid;
  grid-template-columns: var(--s) var(--s);
  grid-template-rows: var(--s) var(--s);
  justify-content: center;
}
.tk { position: relative; overflow: clip; }
.tk img { width: 100%; height: 100%; object-fit: cover; }
.tk--photo { border-top-left-radius: 100%; background: var(--tinta); }
.tk--beak { border-top-right-radius: 100%; background: var(--naranja); }
.tk--beak span {
  position: absolute; left: 0; bottom: 0;
  width: 62%; height: 62%;
  background: var(--amarillo);
  border-top-right-radius: 100%;
}
.tk--beak::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 22%;
  background: linear-gradient(var(--ladrillo) 0 38%, var(--mostaza) 38%);
  z-index: 1;
}
.tk--cheek { border-bottom-left-radius: 100%; background: var(--gris); }
.tk--badge { display: grid; place-items: center; overflow: visible; }
.badge { width: 88%; animation: spin 40s linear infinite; }
.badge text {
  fill: #fff; font-family: var(--body); font-weight: 700; font-stretch: 125%;
  font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
}
.tk .badge__bird { position: absolute; width: 36%; height: auto; object-fit: contain; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Única animación orquestada: las piezas del tucán se ensamblan al cargar */
@media (prefers-reduced-motion: no-preference) {
  .tk { animation: piece .7s cubic-bezier(.2,.8,.2,1) both; }
  .tk--photo { animation-delay: .05s; --from: translate(-24px, -24px); }
  .tk--beak  { animation-delay: .2s;  --from: translate(24px, -24px); }
  .tk--cheek { animation-delay: .35s; --from: translate(-24px, 24px); }
  .tk--badge { animation-delay: .5s;  --from: scale(.6) rotate(-40deg); }
  @keyframes piece { from { opacity: 0; transform: var(--from); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .badge { animation: none; }
}

/* ===== ¿Para quién? ===== */
.who { background: var(--tinta); color: var(--papel); }
.who__q { font-size: clamp(28px, 3.4vw, 44px); color: var(--amarillo); }
.who__tabs { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 10px; }
.who__tabs button {
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  font-family: var(--display); font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1;
  color: #6f6a64;
  text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px;
  text-decoration-color: transparent;
  transition: color .2s;
}
.who__tabs button:hover { color: var(--papel); }
.who__tabs button[aria-selected="true"] { color: var(--papel); text-decoration-color: var(--naranja); }
.who__panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px);
  align-items: center; margin-top: clamp(36px, 5vw, 64px);
}
.who__copy p { max-width: 32em; color: #d9d5cf; }
.who__img { margin: 0; aspect-ratio: 4/3; border-top-right-radius: 50% 66%; overflow: clip; }
.who__img img { width: 100%; height: 100%; object-fit: cover; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px;
  background: var(--verde); border-top-right-radius: 100%;
}

/* ===== Catálogo ===== */
.catalog__head { display: grid; grid-template-columns: auto 1fr; gap: 16px 48px; align-items: end; }
.catalog__head p { margin: 0; justify-self: end; }
.catalog__tools {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  margin-top: 40px; padding-bottom: 20px; border-bottom: 2px solid var(--tinta);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 2px solid var(--tinta); background: transparent; border-radius: 999px;
  padding: 7px 16px; font-weight: 600; cursor: pointer;
}
.chip.is-on { background: var(--tinta); color: var(--papel); }
.search input {
  width: min(360px, 80vw); padding: 11px 18px; border-radius: 999px;
  border: 2px solid #cfcbc5; background: var(--blanco);
}
.search input:focus { border-color: var(--tinta); outline: none; }

.products {
  list-style: none; padding: 0; margin-top: 40px; border-top: 2px solid var(--tinta);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  column-gap: 40px;
}
.product {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid #d8d4ce;
}
.product__token { width: 56px; height: 56px; }
.product__name { font-weight: 700; font-stretch: 118%; line-height: 1.2; }
.product__meta { display: block; font-size: 14px; color: #6b665f; font-weight: 400; }
.product__unit {
  margin-top: 6px; padding: 3px 6px; font-size: 14px;
  border: 1px solid #cfcbc5; border-radius: 8px; background: var(--blanco);
}
.add {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--naranja); color: #fff; font-size: 24px; line-height: 1;
}
.add:hover { background: var(--ladrillo); }
.stepper { display: flex; align-items: center; gap: 2px; background: var(--blanco); border-radius: 999px; padding: 3px; border: 2px solid var(--tinta); }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: none; cursor: pointer; font-size: 20px; }
.stepper button:hover { background: var(--papel); }
.stepper output { min-width: 28px; text-align: center; font-weight: 700; }
.catalog__more { margin-top: 28px; color: #5c5852; }
.catalog__more a { color: var(--tinta); font-weight: 700; }

/* ===== Pasos ===== */
.steps { background: var(--amarillo); }
.steps__list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; }
.steps__n {
  display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 20px;
  font-family: var(--display); font-size: 30px; background: var(--tinta); color: var(--amarillo);
  border-top-left-radius: 100%;
}
.steps__list li:nth-child(2) .steps__n { border-radius: 0 100% 0 0; }
.steps__list li:nth-child(3) .steps__n { border-radius: 0 0 0 100%; }
.steps__list p { margin: 10px 0 0; max-width: 24em; }

/* ===== Negocios ===== */
.biz {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start;
  max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto;
}
.biz > * { margin: 0; max-width: none; }
.biz__img { border-bottom-left-radius: 50% 40%; overflow: clip; position: sticky; top: 100px; }
.biz__img img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; }
.biz__body > p { max-width: 34em; }

.form { display: grid; gap: 16px; margin-top: 28px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.form input, .form select, .form textarea {
  font-weight: 400; font-size: 16px;
  padding: 12px 14px; border-radius: var(--r-sm); border: 2px solid #cfcbc5; background: var(--blanco);
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--tinta); outline: none; }
.form [aria-invalid="true"] { border-color: var(--naranja); }
.form__error { color: var(--ladrillo); font-weight: 600; margin: 0; }
.form .btn { justify-self: start; }

/* ===== Historia ===== */
.story { position: relative; overflow: clip; background: var(--blanco); }
.story__year {
  position: absolute; right: -0.06em; top: 0.1em;
  font-size: clamp(120px, 24vw, 360px); color: var(--papel); line-height: 1;
  pointer-events: none; user-select: none;
}
.story__grid { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.story__text p { max-width: 34em; }
.story__photo { margin: 0; aspect-ratio: 3/4; max-height: 560px; overflow: clip; border-top-left-radius: 100% 75%; }
.story__photo img { width: 100%; height: 100%; object-fit: cover; }

.toucan-note {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  margin-top: clamp(56px, 8vw, 112px);
  background: var(--tinta); color: var(--papel);
  border-radius: 0 var(--r-lg) var(--r-lg) var(--r-lg); overflow: hidden;
}
.toucan-note img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.toucan-note div { padding: 32px clamp(24px, 4vw, 56px) 32px 0; }
.toucan-note h3 { color: var(--amarillo); }
.toucan-note p { color: #d9d5cf; max-width: 32em; }

.values {
  list-style: none; padding: 0; margin-top: clamp(56px, 7vw, 96px);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px;
}
.values li { font-size: 15px; color: #4a4641; }
.values strong { display: block; font-family: var(--display); font-weight: 400; font-size: 21px; color: var(--tinta); margin: 14px 0 6px; }
.v { display: block; width: 44px; height: 44px; }
.v1 { background: var(--naranja); border-top-right-radius: 100%; }
.v2 { background: var(--tinta); border-top-left-radius: 100%; }
.v3 { background: var(--amarillo); border-bottom-right-radius: 100%; }
.v4 { background: var(--gris); border-bottom-left-radius: 100%; }
.v5 { background: var(--verde); border-radius: 0 100% 0 100%; }

/* ===== FAQ ===== */
.faq details { border-bottom: 2px solid var(--tinta); }
.faq .h2 { margin-bottom: 32px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font-weight: 700; font-stretch: 118%; font-size: 19px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  background: var(--naranja); border-top-right-radius: 100%; transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(90deg); }
.faq details p { margin: 0 0 24px; max-width: 40em; }

/* ===== Footer ===== */
.foot { background: var(--tinta); color: var(--papel); padding: clamp(56px, 8vw, 104px) var(--gutter) 28px; }
.foot__grid { max-width: var(--max); margin-inline: auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.foot__brand {
  display: inline-block; background: var(--papel);
  padding: 22px 28px 20px 24px; border-radius: 0 var(--r-lg) var(--r-lg) var(--r-lg);
}
.foot__logo { width: 220px; height: auto; }
.foot__claim { color: #b9b4ad; max-width: 22em; margin-top: 20px !important; }
.foot__h { font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--amarillo); margin: 0 0 12px; }
.foot p { margin: 0 0 8px; }
.foot__big { font-weight: 700; font-size: 20px; }
.foot .foot__fine { max-width: var(--max); margin: 56px auto 0; padding-top: 20px; border-top: 1px solid #4a4641; color: #8f8a83; font-size: 14px; }

/* ===== Pedido (drawer) ===== */
.drawer { position: fixed; inset: 0; z-index: 50; }
.drawer__scrim { position: absolute; inset: 0; background: rgb(43 41 38 / .5); }
.drawer__panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(460px, 100%);
  background: var(--blanco); display: flex; flex-direction: column;
  border-top-left-radius: var(--r-lg);
}
@media (prefers-reduced-motion: no-preference) {
  .drawer:not([hidden]) .drawer__panel { animation: slide .28s cubic-bezier(.2,.8,.2,1); }
  @keyframes slide { from { transform: translateX(100%); } }
}
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid #e5e1db; }
.drawer__head h2 { font-family: var(--display); font-weight: 400; font-size: 26px; margin: 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px 24px; }
.drawer__foot { padding: 16px 24px 24px; border-top: 1px solid #e5e1db; display: grid; gap: 4px; justify-items: center; }
.cart { list-style: none; padding: 0; margin: 0; }
.cart li { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #eee9e3; }
.cart .product__token { width: 40px; height: 40px; }
.cart-empty { text-align: center; padding: 48px 0; color: #5c5852; }
.seg { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.seg legend { font-weight: 600; font-size: 15px; margin-bottom: 6px; padding: 0; }
.seg label { display: flex; align-items: center; gap: 8px; font-weight: 600; border: 2px solid #cfcbc5; border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.seg label:has(input:checked) { border-color: var(--tinta); background: var(--papel); }
.seg input { accent-color: var(--naranja); margin: 0; }

.dock {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; border: 0; border-radius: 999px;
  background: var(--tinta); color: var(--papel); font-weight: 700; cursor: pointer;
  box-shadow: 0 10px 30px rgb(43 41 38 / .3);
}

.toast {
  position: fixed; left: 50%; top: 84px; z-index: 60; transform: translate(-50%, -12px);
  background: var(--tinta); color: var(--papel); padding: 12px 20px; border-radius: 999px;
  font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ===== Responsivo ===== */
@media (max-width: 960px) {
  .top__nav { display: none; }
  .top__cart { margin-left: auto; }
  .hero { grid-template-columns: 1fr; }
  .hero__toucan { --s: min(42vw, 240px); justify-content: start; }
  .who__panel, .biz, .story__grid, .toucan-note { grid-template-columns: 1fr; }
  .biz__img { position: static; }
  .toucan-note div { padding: 0 24px 32px; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .steps__list { grid-template-columns: 1fr; gap: 28px; }
  .foot__grid { grid-template-columns: 1fr; }
  .catalog__head { grid-template-columns: 1fr; }
  .catalog__head p { justify-self: start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top { gap: 12px; }
  .top__logo img { height: 40px; }
  .top__cart { padding: 8px 14px; }
  .form__row { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .hero__ctas .btn { width: 100%; }
  .products { grid-template-columns: 1fr; }
  .foot { padding-bottom: 96px; }
}

/* ==========================================================
   ANIMACIÓN — intro del tucán y efectos de scroll
   Todo vive bajo .motion (JS activo y sin "reducir movimiento")
   ========================================================== */

/* ----- Intro "Comelón" ----- */
.intro-screen { display: none; }
.intro body { overflow: hidden; }
/* Sigue visible durante el barrido aunque la página ya haya empezado sus animaciones */
.intro .intro-screen, .intro-screen.is-out { display: block; position: fixed; inset: 0; z-index: 200; overflow: hidden; }
.intro-bg { position: absolute; inset: 0; display: grid; place-items: center; background: var(--papel); }
.intro-logo { width: min(80vw, 760px); max-height: 80vh; overflow: visible; }
@media (max-aspect-ratio: 1/1) { .intro-logo { width: min(88vw, 460px); } }
.intro-logo * { transform-box: fill-box; }
.intro-logo g[transform] { transform-box: view-box; transform-origin: 0 0; }
.intro-logo .word, .intro-logo .leaf, .intro-logo .row, .intro-logo .crumbs { opacity: 0; }

/* El tucán aparece pieza por pieza */
.intro-logo .pc { animation: pc .45s cubic-bezier(.3,1.5,.5,1) both; animation-delay: calc(var(--d) * .06s); transform-origin: 50% 50%; }
.intro-logo .pupil { transform-origin: 50% 50%; animation: pc .4s cubic-bezier(.3,1.6,.5,1) .5s both, blink .3s 3.25s; }
@keyframes pc { from { transform: scale(0); } }
@keyframes blink { 50% { transform: scaleY(.1); } }

/* Las frutas avanzan en fila y el pico se las come al ritmo */
.intro-logo .row { opacity: 1; animation: belt 1.78s linear .7s forwards; }
@keyframes belt { to { transform: translateX(-2100px); } }
.intro-logo .row > g { transform-origin: 50% 50%; animation: eaten .1s forwards; animation-delay: calc(1.01s + var(--i) * .28s); }
@keyframes eaten { to { transform: scale(0); } }
.intro-logo .beak { transform-origin: 0% 100%; animation: munch .28s .73s 6 both; }
@keyframes munch {
  0% { transform: none; }
  45% { transform: rotate(-26deg); }
  85% { transform: rotate(-26deg); animation-timing-function: cubic-bezier(.8,0,1,.6); }
  100% { transform: none; }
}
.intro-logo .crumbs { opacity: 1; }
.intro-logo .crumbs circle { opacity: 0; transform-origin: 50% 50%; animation: burst .28s cubic-bezier(.2,.8,.3,1) 1.01s 6; }
@keyframes burst {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(.3); }
}

/* Saca a Paulin de la boca */
.intro-logo .word { animation: spit .55s cubic-bezier(.3,1.5,.5,1) 2.7s both; transform-origin: 0% 50%; }
.intro-logo .leaf { animation: leaf .6s cubic-bezier(.3,1.6,.5,1) 3.05s both; transform-origin: 0 100%; }
@keyframes spit { from { opacity: 0; transform: scale(.2); } to { opacity: 1; } }
@keyframes leaf { from { opacity: 0; transform: scale(0) rotate(-50deg); } to { opacity: 1; } }

.intro-sound {
  position: absolute; left: 20px; bottom: 20px; z-index: 5;
  background: var(--tinta); color: var(--papel); border: 0; border-radius: 999px;
  padding: 10px 18px; font-weight: 700; cursor: pointer;
}
.intro-sound[aria-pressed="true"] { background: var(--verde); }
.intro-screen.is-out .intro-sound { display: none; }
.intro-skip {
  position: absolute; right: 20px; bottom: 20px; z-index: 5;
  background: none; border: 2px solid var(--tinta); border-radius: 999px;
  padding: 8px 18px; font-weight: 700; cursor: pointer;
}

/* Salida "barrido de pico": se acerca al pico y el arco naranja se retira girando */
.intro-screen.is-out .intro-logo {
  transform-origin: var(--ox) var(--oy);
  animation: dive .6s cubic-bezier(.7,0,.6,1) forwards;
}
@keyframes dive { to { transform: scale(24); } }
.intro-screen.is-out .intro-bg { animation: hide 0s .55s forwards; }
.intro-screen.is-out .intro-skip { display: none; }
.sweep {
  position: absolute; left: 0; bottom: 0; width: 160vmax; aspect-ratio: 1;
  border-top-right-radius: 100%; transform-origin: 0 100%; visibility: hidden; pointer-events: none;
}
.sweep--o { background: var(--naranja); z-index: 3; }
.sweep--y { background: var(--amarillo); z-index: 2; }
.intro-screen.is-out .sweep--o { animation: sweepAway .85s cubic-bezier(.65,0,.35,1) .55s forwards; }
.intro-screen.is-out .sweep--y { animation: sweepAway .85s cubic-bezier(.65,0,.35,1) .68s forwards; }
@keyframes sweepAway { from { visibility: visible; transform: none; } to { visibility: visible; transform: rotate(-100deg); } }
@keyframes hide { to { visibility: hidden; } }

/* Mientras la intro corre, las animaciones del hero esperan */
.intro .tk, .intro .hero .w > span, .intro .hero .rv { animation-play-state: paused; transition: none; }

/* ----- Barra de progreso con los colores del tucán ----- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 40; pointer-events: none; }
.progress span {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--tinta) 0 25%, var(--ladrillo) 25% 50%, var(--naranja) 50% 75%, var(--amarillo) 75%);
}

/* ----- Header que se esconde al bajar y vuelve al subir ----- */
.top { transition: transform .35s ease, box-shadow .35s ease; }
.top.is-hidden { transform: translateY(-100%); }
.top.is-scrolled { box-shadow: 0 1px 0 rgb(43 41 38 / .08); }

/* ----- Cinta de productos ----- */
.ribbon { background: var(--naranja); color: #fff; overflow: hidden; padding: 18px 0; }
.ribbon__track { display: flex; gap: 48px; padding-right: 48px; width: max-content; animation: marquee 45s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ribbon__item {
  display: flex; align-items: center; gap: 16px; white-space: nowrap;
  font-family: var(--display); font-size: clamp(24px, 3vw, 40px);
}
.ribbon__item svg { width: 1.3em; height: 1.3em; }
.ribbon__item .product__token { background: var(--papel); border-radius: 50%; padding: 5px; }

/* ----- Revelados al hacer scroll ----- */
.motion .rv {
  opacity: 0; transform: translateY(48px);
  transition: opacity .8s ease, transform .9s cubic-bezier(.2,.8,.2,1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.motion .rv-spin {
  opacity: 0; transform: rotate(-120deg) scale(.3);
  transition: opacity .5s ease, transform .9s cubic-bezier(.3,1.5,.5,1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
/* Fotos: se revelan en cuarto de círculo desde una esquina.
   Es una animación (no transición) para que el navegador pueda moverla por su cuenta. */
.motion .rv-mask { clip-path: circle(0% at var(--cx, 0%) var(--cy, 100%)); }
.motion .is-in.rv, .motion .is-in.rv-spin { opacity: 1; transform: none; }
.motion .is-in.rv-mask { animation: maskIn .85s cubic-bezier(.25,.8,.25,1) forwards; }
@keyframes maskIn {
  from { clip-path: circle(0% at var(--cx, 0%) var(--cy, 100%)); }
  to   { clip-path: circle(142% at var(--cx, 0%) var(--cy, 100%)); }
}


/* Títulos: cada palabra sube desde abajo de su línea */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.motion .w > span {
  display: inline-block; transform: translateY(110%);
  transition: transform .9s cubic-bezier(.2,.8,.2,1);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.motion .is-in .w > span { transform: none; }

/* Parallax dentro de los marcos de foto.
   Importante: "overflow: clip" (no "hidden") para no crear un contenedor con scroll propio;
   si no, las animaciones ligadas al scroll de adentro se quedan congeladas. */
.motion .px { overflow: clip; }
.motion .px > img { transform: scale(1.18); }


/* Cambio de pestaña en "Compro para…" */
.motion .who__panel.swap .who__copy > *, .motion .who__panel.swap .who__img img {
  animation: swapIn .6s cubic-bezier(.2,.8,.2,1) both;
}
.motion .who__panel.swap .who__copy > :nth-child(2) { animation-delay: .06s; }
.motion .who__panel.swap .who__copy > :nth-child(3) { animation-delay: .12s; }
@keyframes swapIn { from { opacity: 0; transform: translateY(18px); } }

/* Botón agregar: pequeño rebote al añadir */
.motion .count.bump { animation: bump .45s cubic-bezier(.3,1.8,.5,1); }
@keyframes bump { 40% { transform: scale(1.45); } }

@media (prefers-reduced-motion: reduce) {
  .intro .intro-screen { display: none; }
  .ribbon__track { animation: none; }
}

/* ----- Efectos ligados al scroll sin JavaScript (Chrome, Edge, Arc, Safari 26+) -----
   El navegador los calcula fuera del hilo principal, así que no se traban. */
@supports (animation-timeline: scroll()) {
  .motion .progress span { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

  /* El tucán del inicio se separa en piezas durante la primera pantalla.
     Solo con mouse: en celulares (Safari iOS) este efecto se traba al deslizar con el dedo. */
  @media (hover: hover) and (pointer: fine) {
    .motion .tk--photo { animation: piece .7s cubic-bezier(.2,.8,.2,1) .05s both, apart1 linear both; }
    .motion .tk--beak  { animation: piece .7s cubic-bezier(.2,.8,.2,1) .2s both,  apart2 linear both; }
    .motion .tk--cheek { animation: piece .7s cubic-bezier(.2,.8,.2,1) .35s both, apart3 linear both; }
    .motion .tk--badge { animation: piece .7s cubic-bezier(.2,.8,.2,1) .5s both,  apart4 linear both; }
    .motion .tk { animation-timeline: auto, scroll(root); animation-range: normal, 0 100vh; }
    @keyframes apart1 { to { translate: -11vh -11vh; } }
    @keyframes apart2 { to { translate: 11vh -11vh; } }
    @keyframes apart3 { to { translate: -11vh 11vh; } }
    @keyframes apart4 { to { translate: 11vh 11vh; } }
  }

  /* Profundidad dentro de las fotos */
  .motion .px > img { animation: depth linear both; animation-timeline: view(); }
  @keyframes depth { from { translate: 0 8%; } to { translate: 0 -8%; } }

  /* El 1985 gigante se desliza de lado */
  .motion .story__year { animation: slideYear linear both; animation-timeline: view(); }
  @keyframes slideYear { from { translate: 18vw 0; } to { translate: -18vw 0; } }
}
