/* assets/css/effects.css */

:root{
  --fx-ease: cubic-bezier(.2,.8,.2,1);
  --fx-shadow: 0 18px 44px rgba(15,23,42,.14);
}

/* =============================
   REVEAL + STAGGER
============================= */
.reveal{
  opacity: 0;
  transform: translateY(18px) scale(.99);
  transition: opacity .75s var(--fx-ease), transform .75s var(--fx-ease);
  will-change: opacity, transform;
}
.reveal.in-view{
  opacity: 1;
  transform: translateY(0) scale(1);
}
.reveal.delay-1{ transition-delay: .08s; }
.reveal.delay-2{ transition-delay: .16s; }
.reveal.delay-3{ transition-delay: .24s; }

/* =============================
   BOTONES: sheen + glow suave
============================= */
.btn{
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}
.btn::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(circle at 18% 22%, rgba(255,255,255,.26), transparent 42%);
  opacity:0;
  transition: opacity .25s ease;
  pointer-events:none;
}
.btn:hover::before{ opacity:1; }
.btn:active{ transform: translateY(1px) scale(.99); }

.btn-primary:hover{
  box-shadow: 0 14px 32px rgba(24,61,150,.38), 0 0 22px rgba(77,139,255,.25);
}

/* =============================
   INPUTS / SELECTS pro
============================= */
.field-row{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  align-items:flex-end;
}
.field{
  flex:1;
  min-width: 220px;
}
.label{
  display:block;
  font-size:.85rem;
  font-weight:700;
  margin-bottom:6px;
  color: #111827;
}
.control{
  width:100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,.32);
  background: rgba(255,255,255,.92);
  font-size: .95rem;
  outline: none;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.control:focus{
  border-color: rgba(77,139,255,.7);
  box-shadow: 0 0 0 4px rgba(77,139,255,.18);
  transform: translateY(-1px);
}

.control-wrap{ position:relative; }
.control-wrap .icon{
  position:absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity:.7;
}
.control-wrap .control{ padding-left: 38px; }

/* =============================
   CHIPS categoría
============================= */
.chips{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 12px;
}
.chip{
  display:inline-flex;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.30);
  background: rgba(255,255,255,.88);
  font-weight:700;
  font-size:.86rem;
  color: #1f2937;
  cursor:pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.chip:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15,23,42,.08);
}
.chip.active{
  background: rgba(30,77,188,.10);
  border-color: rgba(30,77,188,.45);
  color: var(--color-primary);
}

/* =============================
   PRODUCT CARDS: shine
============================= */
.product-card{
  position: relative;
  overflow: hidden;
}
.product-card::after{
  content:"";
  position:absolute;
  inset:-40%;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.22) 45%, transparent 60%);
  transform: translateX(-60%) rotate(12deg);
  opacity: 0;
  transition: opacity .25s ease, transform .6s var(--fx-ease);
  pointer-events:none;
}
.product-card:hover::after{
  opacity: 1;
  transform: translateX(60%) rotate(12deg);
}
.product-card img{
  border-radius: 12px;
  transition: transform .35s var(--fx-ease), filter .35s var(--fx-ease);
}
.product-card:hover img{
  transform: translateY(-3px) scale(1.03);
  filter: saturate(1.05);
}

/* =============================
   FICHA producto: layout
============================= */
.product-detail{
  display:grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 38px;
  align-items: start;
}
@media (max-width: 960px){
  .product-detail{ grid-template-columns: 1fr; }
}

.product-media{
  position: sticky;
  top: 96px;
}
@media (max-width: 960px){
  .product-media{ position: relative; top: auto; }
}

.kpi-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top: 14px;
}
.kpi{
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,.22);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 26px rgba(15,23,42,.06);
  transition: transform .25s var(--fx-ease), box-shadow .25s var(--fx-ease);
}
.kpi:hover{
  transform: translateY(-4px);
  box-shadow: var(--fx-shadow);
}
.kpi strong{
  display:block;
  color: var(--color-primary);
  font-size: 1.05rem;
  line-height: 1.2;
}
.kpi span{
  display:block;
  font-size: .86rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* =============================
   TABS premium (fade)
============================= */
.tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  border-bottom: 1px solid rgba(148,163,184,.22);
  padding-bottom: 10px;
}
.tab-btn{
  border: 1px solid rgba(148,163,184,.26);
  background: rgba(255,255,255,.85);
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .9rem;
  cursor:pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tab-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15,23,42,.07);
}
.tab-btn.active{
  background: rgba(30,77,188,.10);
  border-color: rgba(30,77,188,.40);
  color: var(--color-primary);
}

.tab-panel{
  display:none;
  padding-top: 14px;
  animation: fadeUp .35s var(--fx-ease);
}
.tab-panel.active{ display:block; }

@keyframes fadeUp{
  from{ opacity: 0; transform: translateY(8px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* =============================
   GLASS
============================= */
.glass{
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(148,163,184,.20);
  box-shadow: 0 14px 32px rgba(15,23,42,.08);
  border-radius: 20px;
}

/* =============================
   BOTÓN FLOTANTE WHATSAPP
============================= */
.wa-float{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.wa-float:hover{
  transform: translateY(-3px);
  filter: brightness(1.02);
  box-shadow: 0 22px 50px rgba(0,0,0,.22);
}
.wa-icon{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  display: grid;
  place-items: center;
  font-size: 18px;
}
@media (max-width: 520px){
  .wa-text{ display:none; }
  .wa-float{ padding: 12px; }
}
