/*! Belo — ficha de producto: nombre enorme, bolsa centrada con botánicos y cambio frente ↔ reverso,
 * tira de vistas y fotos, precio, perfil, compra y ficha técnica; píldora de compra en celular;
 * historia del café; el viaje de la cosecha a la taza. Sin 3D. */

/* ───── Producto ───── */
.producto{--c:var(--var);position:relative;background:var(--c);display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;row-gap:0;padding:calc(var(--cab-h) + 30px) var(--m) clamp(70px,9vw,130px);isolation:isolate;overflow:clip}
.migas{justify-self:start;display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:13.5px;font-weight:700}
.migas a{opacity:.7;transition:opacity .25s}
.migas a:hover{opacity:1}
.migas span[aria-hidden]{opacity:.35}

/* Cabecera: región en firma, nombre enorme y el lugar debajo */
.producto__cab{position:relative;z-index:3;display:grid;justify-items:center;text-align:center;gap:4px;margin-top:clamp(18px,3vw,40px);max-width:100%}
.producto .firma{font-size:clamp(34px,4vw,62px);margin-bottom:-.12em;text-wrap:balance}
.producto h1{font-size:clamp(72px,19vw,210px);line-height:.84;overflow-wrap:anywhere;text-wrap:balance}
.producto__lugar{font-size:clamp(15px,1.3vw,19px);font-weight:600;line-height:1.4;opacity:.8;margin-top:10px}

/* Escena: bolsa grande y centrada, halo de flor, botánicos alrededor */
.producto__escena{position:relative;width:min(100%,1100px);height:min(74svh,760px);min-height:440px;display:grid;place-items:center;touch-action:pan-y;user-select:none;-webkit-user-select:none;margin-top:clamp(-30px,-2vw,-10px)}
.producto__halo{position:absolute;left:50%;top:48%;width:min(84vw,640px);aspect-ratio:1;translate:-50% -50%;background:color-mix(in oklab,var(--c) 62%,#fff);-webkit-mask:url(../img/flor-cafe.svg) center/contain no-repeat;mask:url(../img/flor-cafe.svg) center/contain no-repeat;opacity:.55;z-index:0;rotate:calc((var(--p,.5) - .5) * 40deg)}
.producto__bolsa{position:relative;z-index:2;height:86%;aspect-ratio:737/1100;outline:none;border-radius:var(--r);perspective:1600px;cursor:grab}
.producto__bolsa:focus-visible{box-shadow:0 0 0 2px var(--tinta)}
.producto__bolsa .cara{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 40px 50px rgba(0,0,0,.24));transition:opacity .55s ease,transform .8s var(--ease);backface-visibility:hidden}
.producto__bolsa .reverso{opacity:0;transform:rotateY(70deg) scale(.96)}
.producto__escena[data-cara="reverso"] .frente{opacity:0;transform:rotateY(-70deg) scale(.96)}
.producto__escena[data-cara="reverso"] .reverso{opacity:1;transform:none}
.producto__escena .sombra{bottom:5%;width:30%;height:24px;z-index:1}
.sello-pts{position:absolute;z-index:4;right:max(2%,calc(50% - 300px));top:10%;width:96px;height:96px;border-radius:50%;background:var(--tinta);color:var(--crema);display:grid;place-content:center;justify-items:center;text-align:center;rotate:-10deg;box-shadow:0 18px 30px -16px rgba(0,0,0,.5)}
.sello-pts b{font-family:"Amsi";font-weight:400;font-size:40px;line-height:.85}
.sello-pts small{font-size:11px;font-weight:700;letter-spacing:.04em;opacity:.75}
.producto__lados{position:absolute;z-index:4;bottom:0;left:50%;translate:-50% 0;display:flex;gap:2px;padding:4px;border-radius:24px;background:rgba(255,255,255,.5);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.producto__lados button{height:38px;padding:0 16px;border-radius:19px;font-weight:700;font-size:13.5px;transition:background-color .3s,color .3s}
.producto__lados button[aria-pressed="true"]{background:var(--tinta);color:var(--crema)}
/* Botánicos: atrás (detrás de la bolsa) y delante en las esquinas de abajo, lejos de la etiqueta */
.producto__escena .flor{z-index:3}
.producto__escena .flor.atras{z-index:1}
.producto .fp1{left:max(-6%,calc(50% - 560px));top:2%;width:min(40vw,400px);--o:20% 90%}
.producto .fp2{right:max(-4%,calc(50% - 540px));top:0;width:min(34vw,340px);--o:70% 90%}
.producto .fp3{right:max(4%,calc(50% - 330px));bottom:4%;width:min(15vw,120px);--o:50% 90%}
.producto .fp4{left:max(4%,calc(50% - 340px));bottom:8%;width:min(18vw,150px);--o:50% 90%}
.producto .fp5{right:max(-2%,calc(50% - 470px));bottom:14%;width:min(22vw,210px);--o:30% 90%}
/* Entrada: los botánicos brotan uno tras otro y la bolsa sube un poco */
.mo .producto__escena .flor{opacity:0;scale:.86;transition:opacity .9s ease var(--e,0s),scale 1.2s var(--ease) var(--e,0s)}
.mo .producto__escena.lista .flor{opacity:1;scale:1}
.mo .producto__escena .producto__bolsa{opacity:0;translate:0 24px;transition:opacity .8s ease,translate 1.1s var(--ease)}
.mo .producto__escena.lista .producto__bolsa{opacity:1;translate:0 0}

/* Tira: tres fotos del café (4:5). En celular se desliza en horizontal. */
.producto__tira{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:min(100%,960px);margin-top:clamp(28px,4vw,48px)}
.tira__foto .foto{--foto-vacio:color-mix(in oklab,var(--c) 72%,#fff)}
@media (max-width:700px){
  .producto__tira{display:flex;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;justify-self:stretch;width:auto;min-width:0;margin-inline:calc(var(--m) * -1);padding-inline:var(--m);scroll-padding-inline:var(--m)}
  .producto__tira::-webkit-scrollbar{display:none}
  .tira__foto{flex:0 0 64vw;scroll-snap-align:start}
}

/* Ficha: compra a la izquierda, datos a la derecha (una columna en celular) */
.producto__ficha{width:min(100%,1100px);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,5vw,80px);align-items:start;margin-top:clamp(36px,5vw,64px)}
.producto__compra{display:grid;gap:16px;justify-items:start}
.producto__precio{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap}
.producto__precio b{font-family:"Amsi";font-weight:400;font-size:clamp(44px,4vw,64px);line-height:.9;font-variant-numeric:tabular-nums}
.producto__precio b.sin{font-family:"Satoshi";font-weight:700;font-size:18px}
.producto__precio span{font-size:14px;font-weight:600;opacity:.7}
.perfil{display:grid;gap:12px;width:100%}
.perfil>div{display:grid;gap:8px}
.perfil__t{font-size:12.5px;font-weight:700;opacity:.65}
.producto .notas{display:flex;flex-wrap:wrap;gap:6px}
.producto .notas span{font-size:14px;font-weight:700;height:34px;display:inline-flex;align-items:center;padding:0 14px;border-radius:17px;background:rgba(255,255,255,.55)}
.producto .notas--cuerpo span{background:var(--tinta);color:var(--crema)}
.producto__comprar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:6px}
.cantidad{display:flex;align-items:center;gap:4px;height:54px;padding:0 6px;border-radius:27px;background:rgba(255,255,255,.55);font-weight:700;font-variant-numeric:tabular-nums}
.cantidad button{width:42px;height:42px;border-radius:21px;background:rgba(255,255,255,.7);font-size:18px;transition:transform .2s,background-color .2s}
.cantidad button:hover{background:#fff}
.cantidad button:active{transform:scale(.88)}
.cantidad output{min-width:30px;text-align:center}
.producto__wa{font-weight:700;font-size:14.5px}
.producto__nota{font-size:13px;font-weight:600;opacity:.7}
.producto__datos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}
.producto__datos div{background:rgba(255,255,255,.5);border-radius:20px;padding:15px 16px 14px;display:grid;gap:5px;align-content:start}
.producto__datos dt{font-size:12.5px;font-weight:700;opacity:.65}
.producto__datos dd{font-family:"Amsi";font-size:clamp(21px,1.7vw,27px);line-height:1;text-transform:uppercase;overflow-wrap:anywhere}

/* Píldora de compra (celular): angosta y despegada del borde, no tiñe la barra de Safari. Aparece
   cuando el botón principal sale de la pantalla y se va al llegar al pie. */
.compra-fija{display:none}
@media (max-width:1023px){
  .compra-fija{position:fixed;z-index:45;left:50%;bottom:max(14px,env(safe-area-inset-bottom));width:min(86vw,520px);display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:10px;padding:6px 6px 6px 8px;border-radius:30px;background:var(--hondo);color:var(--crema);box-shadow:0 20px 40px -18px rgba(0,0,0,.55);
    opacity:0;visibility:hidden;transform:translate(-50%,10px) scale(.96);transition:opacity .35s ease,transform .5s var(--ease),visibility 0s linear .5s}
  .compra-fija.on{opacity:1;visibility:visible;transform:translate(-50%,0);transition:opacity .35s ease,transform .5s var(--ease)}
  html:is(.menu-abierto,.carro-abierto) .compra-fija{opacity:0;visibility:hidden}
  .compra-fija__mini{display:grid;place-items:end center;width:44px;height:48px;border-radius:24px;background:var(--c);overflow:hidden}
  .compra-fija__mini img{height:44px;width:auto;translate:0 6px}
  .compra-fija__txt{display:grid;line-height:1.15;min-width:0}
  .compra-fija__txt b{font-family:"Amsi";font-weight:400;font-size:21px;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .compra-fija__txt small{font-size:13px;font-weight:700;opacity:.75}
  .compra-fija .btn{height:48px;padding:0 18px;font-size:14.5px;--llenado:var(--crema);--llenado-tinta:var(--tinta)}
}

/* ───── Relato ───── */
.relato{position:relative;background:var(--papel);padding:clamp(90px,12vw,160px) var(--m);display:grid;grid-template-columns:1.1fr 1fr;gap:var(--m);align-items:center;overflow:clip}
.relato__txt{position:relative;display:grid;gap:20px}
.relato .firma{font-size:clamp(38px,4.2vw,66px);color:var(--cereza)}
.relato h2{font-size:clamp(52px,6.6vw,108px)}
.relato p{font-size:clamp(16px,1.3vw,19px);line-height:1.6;max-width:56ch}
.relato__ilu{position:relative;border-radius:var(--r);overflow:hidden;background:var(--c)}
.relato__ilu img{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover}
.relato__ilu figcaption{position:absolute;left:10px;right:10px;bottom:10px;border-radius:calc(var(--r) - 10px);background:rgba(251,248,241,.9);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);padding:14px 16px;font-weight:700;font-size:14px}
.relato .f-rel{right:-4%;top:-4%;width:min(18vw,260px);--o:60% 90%;z-index:2}

/* ───── De la cosecha a la taza ───── */
.recorrido{position:relative;background:var(--tinta);color:var(--crema);padding:clamp(90px,12vw,160px) 0;overflow:clip;isolation:isolate}
.recorrido__enc{display:grid;gap:14px;justify-items:start;padding:0 var(--m);margin-bottom:clamp(36px,5vw,64px)}
.recorrido .firma{font-size:clamp(38px,4.2vw,66px);color:var(--c)}
.recorrido h2{font-size:clamp(52px,7vw,116px)}
.recorrido__enc .cordi{font-weight:700;margin-top:6px}
.recorrido__pasos{list-style:none;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;padding:0 var(--m)}
.recorrido__pasos a{display:grid;gap:14px;height:100%;padding:8px 8px 18px;border-radius:var(--r);background:rgba(246,241,231,.06);transition:background-color .35s ease,transform .5s var(--ease)}
.recorrido__pasos a:hover{background:rgba(246,241,231,.11);transform:translateY(-4px)}
.recorrido__img{position:relative;display:block;aspect-ratio:4/5;border-radius:calc(var(--r) - 8px);overflow:hidden;background:color-mix(in oklab,var(--c) 30%,var(--tinta))}
.recorrido__img .foto{position:absolute;inset:0;aspect-ratio:auto;border-radius:0;--foto-vacio:transparent}
.recorrido__img img{transition:transform 1s var(--ease)}
.recorrido__pasos a:hover .recorrido__img img{transform:scale(1.05)}
.recorrido__n{position:absolute;left:8px;top:8px;width:34px;height:34px;border-radius:17px;display:grid;place-items:center;background:var(--c);color:var(--tinta);font-weight:700;font-size:14px}
.recorrido__txt{display:grid;gap:8px;padding:0 8px}
.recorrido__txt b{font-size:clamp(24px,1.9vw,30px);line-height:.95}
.recorrido__dato{font-weight:700;font-size:14px;color:var(--c);line-height:1.35}
.recorrido__gen{font-size:14px;line-height:1.5;opacity:.75}

@media (max-width:1180px){
  .recorrido__pasos{display:flex;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding:0 var(--m);scrollbar-width:none}
  .recorrido__pasos::-webkit-scrollbar{display:none}
  .recorrido__pasos li{flex:0 0 min(64vw,280px);scroll-snap-align:start}
  .mo .recorrido__pasos li.rev{transform:none}
}
@media (max-width:1023px){
  .producto{padding-top:calc(var(--cab-h) + 22px)}
  .producto__escena{height:min(66svh,600px);min-height:400px;margin-top:0}
  .producto__ficha{grid-template-columns:minmax(0,1fr);gap:28px}
  .sello-pts{width:74px;height:74px;right:3%;top:6%}
  .sello-pts b{font-size:32px}
  .relato{grid-template-columns:1fr}
  .relato .f-rel{width:30vw}
}
@media (max-width:700px){
  .producto__bolsa{height:76%}
  .producto .fp1{left:-14%;top:4%;width:52vw}
  .producto .fp2{right:-12%;top:0;width:44vw}
  .producto .fp3{right:4%;bottom:10%;width:17vw}
  .producto .fp4{left:3%;bottom:12%;width:21vw}
  .producto .fp5{right:-10%;bottom:22%;width:28vw}
  .producto__halo{width:96vw}
}
@media (max-width:420px){
  .producto__comprar{width:100%}
  .producto__comprar .btn{flex:1;justify-content:center;padding:0 18px}
}
.producto__datos div:last-child:nth-child(odd){grid-column:1/-1}
.producto__halo{display:none}
/* Sombra de contacto en vez de drop-shadow (Safari recorta el filtro al rectángulo de la imagen) */
.producto__bolsa .cara{filter:none}
.producto__bolsa::after{content:"";position:absolute;z-index:-1;left:8%;right:8%;bottom:-3%;height:9%;border-radius:50%;background:radial-gradient(closest-side,rgba(0,0,0,.30),rgba(0,0,0,.12) 55%,transparent);pointer-events:none}
