/* Portada v3 — cinta de beneficios bajo el menú + carrusel de mesas temáticas + franja "Explora → Personaliza → Cotiza".
   Se apoya en las reglas .hero-full de index.html; quitar este archivo y portada.js revierte a la portada anterior. */

/* ---------- CARRUSEL ---------- */
.hero-full.hero-carrusel{
  height:min(56.25vw, calc(100vh - 150px)); /* 100vh − menú − cinta − nota */
  min-height:500px; max-height:none;
}
.hc-stage{position:absolute; inset:0;}
.hc-track{position:absolute; inset:0; margin:0; padding:0; list-style:none;}
.hc-slide{
  position:absolute; inset:0; margin:0;
  opacity:0; visibility:hidden;
  transition:opacity 1.1s ease, visibility 0s linear 1.1s;
}
.hc-slide.is-active{opacity:1; visibility:visible; transition:opacity 1.1s ease, visibility 0s;}
/* Sin desenfoque al pasar el mouse: en el carrusel lo importante son los productos */
.hero-full.hero-carrusel:hover .hero-bg{filter:brightness(0.97); transform:none;}
.hero-full.hero-carrusel .hero-title{font-size:clamp(34px, 3.9vw, 54px);}

.hc-tema{
  position:absolute; left:24px; bottom:24px; z-index:3;
  background:rgba(244,232,218,0.92); color:var(--wine);
  font-size:12px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase;
  padding:7px 14px; border-radius:100px;
}

.hc-controls{
  position:absolute; left:50%; bottom:22px; transform:translateX(-50%); z-index:3;
  display:flex; align-items:center; gap:6px;
  background:rgba(58,23,53,0.55); padding:5px 8px; border-radius:100px;
  backdrop-filter:blur(4px);
}
.hc-btn{
  width:34px; height:34px; border:none; border-radius:50%;
  background:transparent; color:var(--white); cursor:pointer;
  display:grid; place-items:center;
}
.hc-btn:hover{background:rgba(255,255,255,0.15);}
.hc-btn svg[hidden]{display:none;} /* el atributo hidden no oculta un <svg> en todos los navegadores */
.hc-btn:focus-visible, .hc-dot:focus-visible{outline:2px solid var(--pastel); outline-offset:2px;}
.hc-dots{display:flex; align-items:center;}
.hc-dot{
  width:28px; height:34px; border:none; background:none; cursor:pointer; padding:0;
  display:grid; place-items:center;
}
.hc-dot::before{
  content:""; width:8px; height:8px; border-radius:50%;
  background:rgba(255,255,255,0.5); transition:width .3s ease, background .3s ease;
}
.hc-dot[aria-current="true"]::before{width:20px; border-radius:100px; background:var(--pastel);}

/* Móvil: la foto completa (16:9) arriba y el texto debajo, para no recortar los productos */
@media(max-width:760px){
  .hero-full.hero-carrusel{height:auto; min-height:0; display:block;}
  .hc-stage{position:relative; inset:auto; aspect-ratio:16/9;}
  .hero-full.hero-carrusel .hero-center{
    max-width:none; padding:28px 20px 32px; gap:14px;
    background:var(--wine-deep);
  }
  .hero-full.hero-carrusel .hero-center::before{display:none;}
  .hero-full.hero-carrusel .hero-title{font-size:30px; text-shadow:none;}
  .hero-full.hero-carrusel .hero-note{text-shadow:none;}
  .hc-tema{left:10px; top:10px; bottom:auto; font-size:10px; padding:5px 10px;}
  .hc-controls{bottom:8px; padding:2px 4px; gap:0;}
  .hc-btn{width:32px; height:32px;}
  .hc-dot{width:22px;}
}

/* ---------- CINTA ANIMADA (bajo el menú; 5 pasos en bucle, ~35 px/s, se pausa con el mouse) ---------- */
.kf-cinta{overflow:hidden; padding:10px 0; color:var(--white);}
.kf-cinta-pista{display:flex; width:max-content; animation:kf-cinta 110s linear infinite;}
.kf-cinta:hover .kf-cinta-pista{animation-play-state:paused;}
.kf-cinta-grupo{
  display:flex; list-style:none; margin:0; padding:0;
  font-size:13.5px; font-weight:500; letter-spacing:0.02em; white-space:nowrap;
}
.kf-cinta-grupo li{display:flex; align-items:center;}
/* Separador decorativo después de cada mensaje (también entre el último y el primero del bucle) */
.kf-cinta-grupo li::after{
  content:"✦"; color:var(--pastel); opacity:0.75; font-size:11px; margin:0 56px;
}
.kf-cinta-num{color:var(--pastel); font-size:16px; margin-right:7px; line-height:1;}
/* «Diseño incluido, sin costo adicional»: destacado sutil */
.kf-cinta-destacado{font-weight:700; color:#EFE6FA;}
.kf-cinta-destacado .kf-cinta-num{color:var(--white);}
.kf-cinta-nota{
  margin:0; padding:7px 16px; text-align:center;
  background:var(--beige); color:var(--wine);
  font-size:13px; font-weight:600; letter-spacing:0.01em;
  border-bottom:1px solid rgba(76,31,69,0.12);
}
@keyframes kf-cinta{
  from{transform:translateX(0);}
  to{transform:translateX(-50%);}
}

/* ---------- FRANJA DE PASOS ---------- */
.kf-ruta{
  position:relative; overflow:hidden;
  background:#EDE4F3;
  border-bottom:1px solid rgba(76,31,69,0.12);
}
/* Luz lavanda que recorre la franja de izquierda a derecha */
.kf-ruta::before{
  content:""; position:absolute; top:-40%; bottom:-40%; left:0; width:28%;
  background:radial-gradient(ellipse at center, rgba(199,176,232,0.95) 0%, rgba(199,176,232,0.45) 40%, rgba(199,176,232,0) 70%);
  transform:translateX(-110%); pointer-events:none;
  animation:kf-ruta-barrido 7s linear infinite paused;
}
.kf-ruta .kf-ruta-list{
  position:relative; list-style:none;
  display:grid; grid-template-columns:repeat(3, 1fr); gap:0;
  padding-top:10px; padding-bottom:10px;
}
.kf-ruta-list li{position:relative; display:flex;}
.kf-ruta-list li + li::before{
  content:"→"; position:absolute; left:-0.5em; top:50%; transform:translateY(-50%);
  color:var(--wine); opacity:0.45; font-size:18px; pointer-events:none;
}
.kf-ruta-paso{
  flex:1; display:flex; align-items:center; justify-content:center; gap:12px;
  padding:10px 14px; margin:0 14px; border-radius:100px;
  color:var(--wine); transition:background .25s ease;
  animation:kf-ruta-paso 7s ease-in-out infinite paused;
}
a.kf-ruta-paso:hover{background:rgba(255,255,255,0.75);}
a.kf-ruta-paso:focus-visible{outline:2px solid var(--wine); outline-offset:2px;}
.kf-ruta-list li:nth-child(2) .kf-ruta-paso{animation-delay:2.33s;}
/* Cotiza (la meta) con un énfasis un poco mayor */
.kf-ruta-list li:nth-child(3) .kf-ruta-paso{animation-name:kf-ruta-paso-fuerte; animation-delay:4.67s;}
.kf-ruta-ico{
  flex:none; width:38px; height:38px; border-radius:50%;
  display:grid; place-items:center;
  background:var(--white); color:var(--wine);
  box-shadow:0 2px 8px rgba(76,31,69,0.12);
}
.kf-ruta-txt{display:flex; flex-direction:column; line-height:1.15;}
.kf-ruta-txt strong{font-family:'Archivo', sans-serif; font-stretch:condensed; font-weight:600; font-size:15px; letter-spacing:0.1em; text-transform:uppercase;}
.kf-ruta-txt small{font-size:12.5px; opacity:0.75;}
.kf-ruta-list li:nth-child(3) .kf-ruta-ico{background:var(--wine); color:var(--white);}

.kf-ruta.is-anim::before,
.kf-ruta.is-anim .kf-ruta-paso{animation-play-state:running;}

@keyframes kf-ruta-barrido{
  from{transform:translateX(-110%);}
  to{transform:translateX(400%);}
}
@keyframes kf-ruta-paso{
  0%, 30%, 100%{background:transparent;}
  12%{background:rgba(255,255,255,0.8);}
}
@keyframes kf-ruta-paso-fuerte{
  0%, 30%, 100%{background:transparent; box-shadow:none;}
  12%{background:rgba(255,255,255,0.9); box-shadow:0 0 0 2px rgba(199,176,232,0.9);}
}

@media(max-width:860px){
  .kf-ruta-txt small{display:none;}
}
@media(max-width:600px){
  .kf-ruta .kf-ruta-list{padding:6px 8px;}
  .kf-ruta-paso{flex-direction:column; gap:5px; margin:0 6px; padding:8px 2px; border-radius:14px;}
  .kf-ruta-ico{width:34px; height:34px;}
  .kf-ruta-txt{align-items:center;}
  .kf-ruta-txt strong{font-size:12px; letter-spacing:0.06em;}
  .kf-ruta-list li + li::before{font-size:13px; top:26px; left:-0.45em;}
  .kf-cinta{padding:8px 0;}
  .kf-cinta-pista{animation-duration:95s;}
  .kf-cinta-grupo{font-size:12.5px;}
  .kf-cinta-grupo li::after{margin:0 32px;}
  .kf-cinta-num{font-size:14px; margin-right:5px;}
  .kf-cinta-nota{font-size:12px; padding:6px 12px;}
}

#categorias{scroll-margin-top:90px;}

@media (prefers-reduced-motion: reduce){
  .hc-slide, .hc-slide.is-active{transition:none;}
  .kf-ruta::before{display:none;}
  .kf-ruta-paso{animation:none;}
  /* Sin movimiento: la cinta queda quieta y centrada con los 5 pasos */
  .kf-cinta-pista{animation:none; width:auto; justify-content:center;}
  .kf-cinta .kf-rep{display:none;}
  .kf-cinta-grupo{flex-wrap:wrap; justify-content:center; white-space:normal; row-gap:6px; padding:0 12px;}
  .kf-cinta-grupo li::after{margin:0 20px;}
  .kf-cinta-grupo li:nth-child(5)::after{display:none;}
}
