/* ============================================================
   VIS WELLNESS — efectos.css (ruido visual con gusto)
   ============================================================ */

/* ---------- 1. Reveal on scroll ---------- */
.vw-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.vw-reveal.in { opacity: 1; transform: none; }

/* ---------- 2. Hover de cards mejorado ---------- */
.producto-card { transition: transform .32s cubic-bezier(.2,.7,.2,1), box-shadow .32s ease; }
.producto-card:hover { transform: translateY(-4px); box-shadow: 0 8px 40px -4px rgba(92,85,76,0.18), 0 2px 12px -2px rgba(92,85,76,0.10); }.producto-img { overflow: hidden; }
.producto-img img { transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.producto-card:hover .producto-img img { transform: scale(1.03); }.objetivo-card { transition: transform .3s ease, box-shadow .3s ease; }
.objetivo-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(92,85,76,.12); }
.objetivo-card:hover .objetivo-icon { transform: scale(1.12) rotate(-4deg); transition: transform .3s ease; }

/* ---------- 3. Formas orgánicas (blobs) ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before { content:""; position:absolute; width:440px; height:440px; border-radius:50%;
  background: radial-gradient(circle at 30% 30%, rgba(209,202,179,.55), transparent 70%);
  top:-130px; right:-90px; filter: blur(8px); z-index:0; animation: vwFloat 15s ease-in-out infinite; }
.hero::after { content:""; position:absolute; width:320px; height:320px; border-radius:50%;
  background: radial-gradient(circle at 50% 50%, rgba(165,144,124,.22), transparent 70%);
  bottom:-110px; left:-70px; filter: blur(6px); z-index:0; animation: vwFloat 19s ease-in-out infinite reverse; }
.hero-inner { position: relative; z-index: 1; }
@keyframes vwFloat { 0%,100%{ transform: translate(0,0); } 50%{ transform: translate(22px,-22px); } }

/* Blob suave en la sección de objetivos */
.bg-bone { position: relative; overflow: hidden; }
.bg-bone::after { content:""; position:absolute; width:380px; height:380px; border-radius:50%;
  background: radial-gradient(circle, rgba(209,202,179,.4), transparent 70%);
  top:-140px; left:-120px; z-index:0; pointer-events:none; }
.bg-bone .section-inner { position: relative; z-index: 1; }

/* ---------- 4. Textura sutil (grano) ---------- */
body::after {
  content:""; position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 5. Gradientes suaves entre secciones ---------- */
.section { position: relative; }
.section::before {
  content:""; position:absolute; top:0; left:0; right:0; height:90px; z-index:0; pointer-events:none;
  background: linear-gradient(180deg, rgba(255,255,255,.16), transparent);
}
.section .section-inner { position: relative; z-index: 1; }

/* ---------- 6. Micro-animaciones (badges y botones) ---------- */
.cat-badge-oferta { animation: vwPulse 2.2s ease-in-out infinite; }
@keyframes vwPulse { 0%,100%{ transform: scale(1); } 50%{ transform: scale(1.08); } }

.btn-primary { transition: transform .2s ease, box-shadow .2s ease, background .25s ease; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(165,144,124,.4); }
.btn-outline { transition: transform .2s ease, background .25s ease, color .25s ease; }
.btn-outline:hover { transform: translatey(-2px); }
.btn-add { transition: transform .2s ease, background .25s ease; }
.btn-add:hover { transform: translateY(-2px); }
.carousel-arrow { transition: transform .2s ease, background .2s ease, color .2s ease; }
.carousel-arrow:hover { transform: scale(1.08); }

/* Respeta a quien prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .vw-reveal, .producto-card, .producto-img img, .cat-badge-oferta, .hero::before, .hero::after { animation: none !important; transition: none !important; transform: none !important; opacity: 1 !important; }
}

/* Fix: badges dentro de su card (también en el carrusel) */
.producto-card { position: relative !important; }
.producto-img { position: relative; overflow: hidden; }
.cat-badge, .cat-badge-oferta, .cat-badge-agotado { z-index: 2; }

/* Quitar overflow/relative problemático de la sección que descoloca los badges */
.bg-bone { overflow: visible; }
.bg-bone::after { display: none; }

/* Patrón de líneas onduladas (marca Vis) como fondo sutil */
.bg-bone { position: relative; overflow: hidden; }
.bg-bone::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='160' viewBox='0 0 220 160'%3E%3Cg fill='none' stroke='%23C9C0A8' stroke-width='1.2'%3E%3Cpath d='M0 0 C 55 60, 55 100, 0 160 M0 0 C -55 60, -55 100, 0 160'/%3E%3Cpath d='M110 0 C 165 60, 165 100, 110 160 M110 0 C 55 60, 55 100, 110 160'/%3E%3Cpath d='M220 0 C 275 60, 275 100, 220 160 M220 0 C 165 60, 165 100, 220 160'/%3E%3Cellipse cx='55' cy='120' rx='20' ry='28'/%3E%3Cellipse cx='165' cy='120' rx='20' ry='28'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 220px 160px;
  background-repeat: repeat;
}
.bg-bone .section-inner { position: relative; z-index: 1; }

/* Quitar blobs del hero y poner el patrón de líneas */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  width: auto; height: auto;
  top: 0; right: 0; bottom: 0; left: 0;
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='160' viewBox='0 0 220 160'%3E%3Cg fill='none' stroke='%23C9C0A8' stroke-width='1.2'%3E%3Cpath d='M0 0 C 55 60, 55 100, 0 160 M0 0 C -55 60, -55 100, 0 160'/%3E%3Cpath d='M110 0 C 165 60, 165 100, 110 160 M110 0 C 55 60, 55 100, 110 160'/%3E%3Cpath d='M220 0 C 275 60, 275 100, 220 160 M220 0 C 165 60, 165 100, 220 160'/%3E%3Cellipse cx='55' cy='120' rx='20' ry='28'/%3E%3Cellipse cx='165' cy='120' rx='20' ry='28'/%3E%3C/g%3E%3C/svg%3E") repeat;
  background-size: 220px 160px;
  filter: none;
  opacity: 0.19;
  animation: none;
  z-index: 0;
}
.hero::after { display: none; }

.bg-bone::before { display: none; }

/* === Skeleton loaders === */
@keyframes vwSkeletonPulso{
  0%{ opacity:.55; }
  50%{ opacity:1; }
  100%{ opacity:.55; }
}
.skel-card{
  background:var(--blanco,#fff); border:1px solid var(--linea); border-radius:var(--radius-md,14px);
  overflow:hidden; display:flex; flex-direction:column;
}
.skel-img{ aspect-ratio:1; background:var(--bone-dark,#E4DDCB); animation:vwSkeletonPulso 1.5s ease-in-out infinite; }
.skel-body{ padding:16px; display:flex; flex-direction:column; gap:10px; }
.skel-line{ height:10px; border-radius:6px; background:var(--bone-dark,#E4DDCB); animation:vwSkeletonPulso 1.5s ease-in-out infinite; }
.skel-line.corta{ width:40%; }
.skel-line.media{ width:75%; height:14px; }
.skel-line.chica{ width:55%; }
.skel-foot{ display:flex; justify-content:space-between; align-items:center; margin-top:6px; }
.skel-precio{ width:60px; height:16px; border-radius:6px; background:var(--bone-dark,#E4DDCB); animation:vwSkeletonPulso 1.5s ease-in-out infinite; }
.skel-btn{ width:80px; height:32px; border-radius:50px; background:var(--bone-dark,#E4DDCB); animation:vwSkeletonPulso 1.5s ease-in-out infinite; }

.skel-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:22px; }
.skel-track{ display:flex; gap:18px; overflow:hidden; }
.skel-track .skel-card{ flex:0 0 230px; }

@media(prefers-reduced-motion:reduce){
  .skel-img, .skel-line, .skel-precio, .skel-btn{ animation:none; }
}

/* === Animación: vuelo al carrito === */
@keyframes vwCartBump{
  0%{ transform:scale(1); }
  35%{ transform:scale(1.28); }
  60%{ transform:scale(.92); }
  100%{ transform:scale(1); }
}
.vw-cart-bump{ animation: vwCartBump .4s ease; }
.vw-vuelo-img{ box-shadow:0 8px 24px rgba(92,85,76,.3); }

/* Badge "Nuevo" */
.cat-badge-nuevo{
  background:var(--yoga); color:var(--bone-light,#F4F1E8);
  animation: vwPulse 2s ease-in-out infinite;
}