/* =========================================================
   KOCOSTAR — capa de movimiento (noviembre 2026)
   No cambia colores ni tipografías de la guía: solo cómo aparecen y responden las cosas.
   Se apoya en lux.js. Para quitarla: borra las dos líneas de lux.css / lux.js en build.py.
   ========================================================= */
:root { --lux: cubic-bezier(.16, 1, .3, 1); --d0: 0s; }
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Paso entre páginas: fundido corto en vez de salto (navegadores que lo admiten) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .15s ease both; }
::view-transition-new(root) { animation: vt-in .3s var(--lux) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Telón de entrada (una vez por visita) ---------- */
html.intro { --d0: .45s; }
html.intro::before { content: ''; position: fixed; inset: 0; z-index: 998; background: var(--white); pointer-events: none; animation: intro-panel .55s var(--lux) .45s forwards; }
html.intro::after {
  content: ''; position: fixed; left: 50%; top: 50%; z-index: 999; width: min(56vw, 250px); aspect-ratio: 455 / 53; translate: -50% -50%;
  background: var(--black); pointer-events: none;
  -webkit-mask: url('/assets/img/logo.png') center / contain no-repeat; mask: url('/assets/img/logo.png') center / contain no-repeat;
  animation: intro-logo .75s var(--lux) forwards;
}
@keyframes intro-panel { to { transform: translateY(-100%); visibility: hidden; } }
@keyframes intro-logo { 0% { opacity: 0; clip-path: inset(0 100% 0 0); } 45%, 68% { opacity: 1; clip-path: inset(0); } 100% { opacity: 0; clip-path: inset(0); transform: translateY(-18px); visibility: hidden; } }

/* ---------- Cabecera de cristal ---------- */
.header { transition: border-color .3s, background .3s; }
.header.is-solid { background: rgba(255, 255, 255, .96); }

/* ---------- Hero: entra por capas ---------- */
.js .hero__title span, .js .hero__title strong, .js .hero__lead, .js .hero__cta { animation: rise .7s var(--lux) both; }
.js .hero__title span { animation-delay: calc(var(--d0) + .04s); }
.js .hero__title strong { animation-delay: calc(var(--d0) + .1s); }
.js .hero__lead { animation-delay: calc(var(--d0) + .18s); }
.js .hero__cta { animation-delay: calc(var(--d0) + .26s); }
.js .hero__photo { animation: settle 1.2s var(--lux) var(--d0) both; }
.js .pagehead > *, .js .pdp__info > *, .js .crumbs { animation: rise .55s var(--lux) both; }
.js .pagehead > :nth-child(2), .js .pdp__info > :nth-child(2) { animation-delay: .04s; }
.js .pagehead > :nth-child(3), .js .pdp__info > :nth-child(3) { animation-delay: .08s; }
.js .pdp__info > :nth-child(4) { animation-delay: .12s; }
.js .pdp__info > :nth-child(5) { animation-delay: .16s; }
.js .pdp__info > :nth-child(n+6) { animation-delay: .2s; }
.js .pdp__stage { animation: stage-in .7s var(--lux) both; }
.js .pdp__stage .pdp__img { animation: settle .9s var(--lux) both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes settle { from { opacity: 0; scale: 1.07; } }
@keyframes stage-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }

/* ---------- Títulos que suben palabra a palabra ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .16em; margin-bottom: -.16em; }
.w > span { display: inline-block; transform: translateY(108%); transition: transform .65s var(--lux); transition-delay: calc(var(--w, 0) * 28ms); will-change: transform; }
.is-split-in .w > span { transform: none; }

/* ---------- Rejillas: las piezas llegan una tras otra ---------- */
.lux .stag > * { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--lux), transform .55s var(--lux); transition-delay: var(--sd, 0ms); }
.lux .stag > .is-in { opacity: 1; transform: none; }

/* ---------- Fotos: se descubren como una cortina ---------- */
.lux .wipe { clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--lux), opacity .7s var(--ease), transform .7s var(--ease); }
.lux .wipe.is-wiped { clip-path: inset(0); }
.lux .wipe img { scale: 1.16; transition: scale 1.1s var(--lux); will-change: translate; }
.lux .wipe.is-wiped img { scale: 1.1; }
.lux .xmas__media:hover img { transform: none; }
.lux .hero--photo .hero__photo { will-change: translate; }

/* ---------- Botones: el color sube desde abajo ---------- */
.btn, .add { position: relative; overflow: hidden; isolation: isolate; }
.btn::before, .add::before { content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .35s var(--lux); }
.btn--dark::before { background: var(--white); }
.btn--outline::before, .btn--ghost::before, .btn--light::before, .add::before { background: var(--black); }
@media (hover: hover) {
  .btn--dark:hover { background: var(--black); border-color: var(--black); color: var(--black); }
  .btn--outline:hover, .btn--ghost:hover { background: transparent; color: var(--white); }
  .btn--light:hover { background: var(--white); color: var(--white); }
  .add:hover { background: transparent; color: var(--white); }
  .btn:hover::before, .add:hover::before { transform: none; }
}
.add.is-done { background: var(--black); color: var(--white); }
.btn { transition: background .25s, color .35s, border-color .25s, opacity .25s, translate .5s var(--lux); }

/* ---------- Tarjetas: el producto se levanta y pasa un brillo ---------- */
.card__media::after, .cat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .5) 50%, transparent 62%); transform: translateX(-120%); pointer-events: none; }
.card__media img { transition: transform .5s var(--lux), filter .5s var(--lux); }
.card__name a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--lux); padding-bottom: 2px; }
@media (hover: hover) {
  .card__media:hover img { transform: translateY(-8px) scale(1.06) rotate(-1.5deg); filter: drop-shadow(0 26px 26px rgba(0, 0, 0, .18)); }
  .card__media:hover::after, .cat:hover::after { transform: translateX(120%); transition: transform .7s var(--lux); }
  .card:hover .card__name a { background-size: 100% 1px; text-decoration: none; }
  .cat img { transition: transform .9s var(--lux); }
  .cat:hover img { transform: translateY(-10px) scale(1.04); }
  .cat__label span { transition: translate .5s var(--lux); }
  .cat:hover .cat__label span { translate: 6px 0; }
}

/* ---------- Franja editorial «I'm your mask» ---------- */
.band { margin-top: clamp(56px, 8vw, 112px); padding: clamp(18px, 2.4vw, 30px) 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); overflow: hidden; }
.band__track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.band__group { display: flex; align-items: center; gap: clamp(28px, 4vw, 64px); padding-right: clamp(28px, 4vw, 64px); font: 600 clamp(2rem, 5.6vw, 4.6rem)/1 var(--head); letter-spacing: -.02em; color: var(--black); white-space: nowrap; }
.band__group i { font-style: normal; font-weight: 400; color: transparent; -webkit-text-stroke: 1px var(--black); }
.band__group b { width: clamp(10px, 1.2vw, 16px); aspect-ratio: 1; border-radius: 50%; background: var(--taupe); flex: none; }

/* ---------- Sello giratorio sobre la foto de marca ---------- */
.story__media { position: relative; }
.seal { position: absolute; right: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 24px); width: clamp(84px, 9vw, 124px); aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .86); display: grid; place-items: center; z-index: 2; }
.seal svg { position: absolute; inset: 6%; width: 88%; height: 88%; animation: spin 22s linear infinite; }
.seal text { font: 600 9.4px var(--head); letter-spacing: .21em; text-transform: uppercase; fill: var(--black); }
.seal span { font: 600 clamp(.9rem, 1.3vw, 1.2rem)/1 var(--head); color: var(--black); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Detalles ---------- */
.eyebrow::after { transform-origin: left; transition: transform .7s var(--lux) .1s; }
.lux [data-reveal]:not(.is-in) .eyebrow::after { transform: scaleX(0); }
.js [data-reveal] { transition-duration: .6s; transition-timing-function: var(--lux); transform: translateY(16px); }
.js [data-reveal].is-in { transform: none; }
.acc__body { animation: rise .5s var(--lux); }
.cart-btn__count.has { animation: pop .5s var(--lux); }
@keyframes pop { 50% { scale: 1.35; } }

@media (prefers-reduced-motion: reduce) {
  html.intro::before, html.intro::after { display: none; }
  .w > span, .lux .stag > *, .lux .wipe, .lux .wipe img { transform: none !important; opacity: 1 !important; clip-path: none !important; scale: 1 !important; }
  .js [data-reveal] { transform: none; }
  .band__track, .seal svg { animation: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* =========================================================
   Dirección «premium» (propuesta 21-11, pendiente del visto bueno de Barbara)
   1) títulos con serifa  2) portada con menos piezas  3) productos sobre un mismo fondo
   Para volver a la guía tal cual: borra este bloque.
   ========================================================= */
:root { --serif: 'Playfair Display', Didot, 'Bodoni MT', Georgia, serif; --paper: #F4EFEA; }
.display, .hero__title, .pdp__title, .fit__text h3, .point h3, .cat__label strong, .band__group, .stat__num, .fstat__n { font-family: var(--serif); font-weight: 400; letter-spacing: -.012em; }
.display { font-size: clamp(2rem, 3.7vw, 3.2rem); line-height: 1.08; }
.display em, .hero__title strong, .band__group i { font-style: italic; font-weight: 400; }
.display--md { font-size: clamp(1.4rem, 2.1vw, 1.75rem); }
.footer .display { font-size: clamp(1.5rem, 2.3vw, 2rem); }
.hero__title { font-size: clamp(2.5rem, 4.8vw, 4.5rem); line-height: 1.04; }
.pdp__title { font-size: clamp(2.1rem, 3.6vw, 3.1rem); line-height: 1.08; }
.band__group { font-size: clamp(2.2rem, 6vw, 5rem); }
.band__group i { color: var(--taupe); -webkit-text-stroke: 0; }
.stat__num, .fstat__n { font-variant-numeric: lining-nums; }
.sec-head p, .hero__lead, .xmas__text p:not(.eyebrow), .story__text > p:not(.eyebrow) { font-weight: 300; color: #4A4A4A; }
.sec-head p { font-size: 1.05rem; }
/* más aire entre bloques */
.sec { padding-top: clamp(80px, 11vw, 168px); }
.sec-head { margin-bottom: clamp(36px, 5vw, 72px); }
.sec-more { display: flex; justify-content: center; margin-top: clamp(36px, 5vw, 64px); }
.press { padding-top: clamp(72px, 9vw, 128px); }
.hero--photo .hero__in { min-height: clamp(460px, 37vw, 620px); }
/* todos los productos sobre el mismo papel cálido */
.card__media, .pdp__stage, .pdp__thumb, .fit__media, .cart__thumb, .feature__media, .cat { background: var(--paper); }
.card__media { padding: 14%; }
.card__badge { background: transparent; border: 1px solid var(--black); font-weight: 500; }
.card__badge--xmas { background: #1F5A43; border-color: #1F5A43; }
.card__name { font-weight: 400; font-size: 1.02rem; }
.card__cat { letter-spacing: .16em; }
/* portada: tarjetas calladas (se compra dentro de la ficha) */
.page-home .card .add { display: none; }
.page-home .card { text-align: center; }
.page-home .card__foot { justify-content: center; margin-top: 4px; }
.page-home .price { font-weight: 400; color: var(--text); }
.pdp__thumbs { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
@media (max-width: 600px) { .display { font-size: clamp(1.8rem, 8vw, 2.3rem); } .hero__title { font-size: clamp(2.2rem, 10.4vw, 3rem); } }

/* ---------- Dónde comprar: mapa a color sobre un panel de papel ---------- */
.where { position: relative; }
.where__stats { display: flex; gap: clamp(24px, 4vw, 56px); margin-bottom: clamp(20px, 3vw, 36px); }
.where__stats div { display: grid; gap: 2px; }
.where__stats strong { font: 400 clamp(2.2rem, 4.4vw, 3.6rem)/1 var(--serif); color: var(--black); font-variant-numeric: lining-nums; }
.where__stats span { font: 500 .72rem/1.3 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.where__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.where__chips button { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 99px; font: 500 .82rem/1 var(--head); color: var(--black); background: var(--white); transition: background .25s, color .25s, border-color .25s; }
.where__chips small { font: 500 .7rem/1 var(--body); color: var(--mute); }
.where__chips button:hover { border-color: var(--black); }
.where__chips button.is-on { background: var(--black); border-color: var(--black); color: var(--white); }
.where__chips button.is-on small { color: rgba(255, 255, 255, .7); }
.where__body { padding: clamp(10px, 1.4vw, 18px); border-radius: 18px; background: var(--paper); gap: clamp(10px, 1.4vw, 18px); height: clamp(520px, 76svh, 780px); }
.where__map { border: 0; border-radius: 12px; background: #EDE6DF; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 18px 40px -24px rgba(110, 85, 70, .45); }
.where__map .leaflet-tile-pane { filter: saturate(.92) brightness(1.02); }
.where__list { border: 0; border-radius: 12px; background: transparent; padding-right: 4px; scrollbar-width: thin; scrollbar-color: #CDBFB3 transparent; }
.where__list li + li { border-top: 0; margin-top: 8px; }
.where__list button { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 18px; border-radius: 12px; background: var(--white); border: 1px solid transparent; transition: border-color .25s, transform .35s var(--lux), box-shadow .35s var(--lux); }
.where__list button:hover, .where__list button:focus-visible { background: var(--white); border-color: var(--line); transform: translateX(-3px); box-shadow: 0 12px 24px -18px rgba(0, 0, 0, .35); }
.where__list li.is-on button { border-color: var(--black); }
.where__list em { font: italic 400 1.05rem/1.3 var(--serif); color: var(--taupe); }
.where__list strong { font: 500 .95rem/1.35 var(--head); }
.where__list span { margin-top: 3px; line-height: 1.45; }
.where__list b { align-self: center; padding: 5px 9px; border-radius: 99px; background: var(--paper); font: 600 .7rem/1 var(--body); color: var(--black); white-space: nowrap; }
/* chincheta en forma de gota */
.where__pin i { width: 26px; height: 26px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--taupe); border: 0; box-shadow: 0 6px 10px rgba(60, 40, 30, .35); position: relative; transition: transform .25s var(--lux), background .25s; transform-origin: 30% 70%; }
.where__pin i::after { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: var(--white); }
.where__pin:hover i, .where__pin:focus i, .where__pin.is-hover i { transform: scale(1.25); background: var(--black); }
.where__pin.is-on i { transform: scale(1.35); background: var(--black); }
.where__pin.is-on, .where__pin.is-hover { z-index: 1000 !important; }
.where .leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .4); padding: 4px; }
.where .leaflet-popup-content { margin: 16px 18px; min-width: 200px; }
.where__pop strong { display: block; font: 400 1.2rem/1.2 var(--serif); color: var(--black); }
.where__pop p { margin: 8px 0 12px !important; font-size: .88rem; line-height: 1.5; color: var(--text); }
.where .leaflet-popup-content a.where__go { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 99px; background: var(--black); color: var(--white); text-decoration: none; font: 600 .68rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; }
.where .leaflet-bar a { border-radius: 0; color: var(--black); }
.where .leaflet-bar { border: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .4); }
.where__online { margin-top: clamp(40px, 6vw, 80px); padding: clamp(28px, 4vw, 56px); border-radius: 18px; background: var(--black); color: rgba(255, 255, 255, .78); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.where__online .display { color: var(--white); }
.where__online p { margin-top: .5rem; max-width: 34em; font-weight: 300; }
.where__online .btn--dark { background: var(--white); color: var(--black); border-color: var(--white); }
.where__online .btn--dark::before { background: var(--black); }
@media (hover: hover) { .where__online .btn--dark:hover { background: var(--white); color: var(--white); border-color: var(--white); } }
.where__note { margin-top: 20px; }
@media (max-width: 960px) {
  .where__body { height: auto; padding: 10px; border-radius: 14px; }
  .where__map { height: 60svh; }
  .where__chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gl) * -1) calc(var(--gr) * -1); padding-inline: var(--gl) var(--gr); scrollbar-width: none; }
  .where__chips button { flex: none; }
}

/* foto de marca: ahora es una foto cuadrada de Barbara (Thanaka Fit), no la apaisada de kocostar.com */
.story__media { aspect-ratio: 5 / 4; }
.story__media img { object-position: 50% 30%; }
