:root{
  /* Paleta Levanx Store */
  --bg-main:#FFFFFF;
  --bg-section:#F5F5F7;

  --text-main:#111111;
  --text-muted:#6B7280;

  --border-color:#E5E7EB;

  --primary:#0A84FF;
  --primary-hover:#0066CC;

  --dark-main:#0B0B0D;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; height:auto; }
.hidden{ display:none !important; }

/* Focus bonito (accesibilidad pro) */
:focus-visible{
  outline: 3px solid rgba(10,132,255,.25);
  outline-offset: 2px;
}

/* ===== Layout ===== */
.container{ max-width:1100px; margin:0 auto; padding: 24px; }

/* ===== Header / Nav ===== */
.header{
  position: sticky;
  top:0;
  z-index: 20;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}
.header__content{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.brand{ display:flex; align-items:center; gap:10px; }
.brand__name{
  font-weight: 900;
  letter-spacing: .14em;
  font-size: 12px;
}

.nav{ display:flex; align-items:center; gap:18px; }
.nav a{
  color: var(--text-muted);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 10px;
  border-radius: 12px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.nav a:hover{
  color: var(--text-main);
  background: var(--bg-section);
  transform: translateY(-1px);
}
.nav a.active{
  color: var(--text-main);
  background: var(--bg-section);
}

/* ===== Typography helpers ===== */
.h1{ margin:0; font-size:34px; letter-spacing:-.02em; }
.h2{ margin:0 0 8px; font-size:22px; letter-spacing:-.01em; }
.sub{ margin:6px 0 0; color: var(--text-muted); line-height:1.55; }

/* ===== Hero ===== */
.hero{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin: 10px 0 16px;
}
.hero__chip{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 999px;
  border:1px solid var(--border-color);
  background:#fff;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}
.dot{ width:10px; height:10px; border-radius:999px; background: var(--primary); }

/* ===== Cards / panels ===== */
.card{
  background:#fff;
  border:1px solid var(--border-color);
  border-radius:18px;
}

/* ===== Filters ===== */
.filters{ padding: 14px; }
.filters__row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:flex-end;
}
.filters__row--bottom{
  margin-top:12px;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.field{
  display:flex;
  flex-direction:column;
  gap:7px;
  min-width:190px;
  flex:1;
}
.label{
  font-size:12px;
  color: var(--text-muted);
  font-weight: 800;
}
.input, .select{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border:1px solid var(--border-color);
  background: var(--bg-main);
  outline:none;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.input:focus, .select:focus{
  border-color: rgba(10,132,255,.35);
  background:#fff;
}
.input:hover, .select:hover{ transform: translateY(-1px); }

.hint{
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}

/* ===== Buttons ===== */
.btn{
  border:1px solid transparent;
  background: var(--primary);
  color:#fff;
  padding: 11px 14px;
  border-radius: 12px;
  cursor:pointer;
  font-weight: 900;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover{
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(10,132,255,.18);
}
.btn--ghost{
  background:#fff;
  color: var(--text-main);
  border-color: var(--border-color);
  box-shadow:none;
}
.btn--ghost:hover{
  background: var(--bg-section);
  box-shadow:none;
}

/* ===== Catalog blocks by category ===== */
.catalog{
  margin-top: 16px;
  display:flex;
  flex-direction:column;
  gap:18px;
}

.categoryBlock{
  background: var(--bg-section);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 14px;
}

.categoryHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  padding: 4px 4px 12px;
}
.categoryTitle{
  margin:0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.01em;
}
.categoryCount{
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
}

/* ===== Product grid ===== */
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.product{
  grid-column: span 4;
  background:#fff;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow:hidden;
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.product:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
}

.product__img{
  width:100%;
  height: 190px;
  object-fit: cover;
  object-position: center;
  background: var(--bg-section);
  display:block;
}

.product__body{ padding: 12px; }
.product__title{
  margin:0;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: -.01em;
}
.product__meta{
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
}
.product__row{
  margin-top: 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.product__price{
  font-weight: 900;
  letter-spacing: -.01em;
}

/* ===== Badges ===== */
.badge{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background:#fff;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}
.badges{
  display:flex;
  flex-wrap:wrap;
  gap: 6px;
}

/* ===== Empty state ===== */
.empty{
  margin-top: 16px;
  padding: 18px;
}

/* ===== Floating WhatsApp ===== */
.fab{
  position:fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;

  width: 56px;
  height: 56px;
  border-radius: 999px;

  display:flex;
  align-items:center;
  justify-content:center;

  background: var(--primary);
  color:#fff;
  font-size: 24px;
  text-decoration:none;

  box-shadow: 0 14px 28px rgba(10,132,255,.22);
  transition: transform .18s ease, background .18s ease;
}
.fab:hover{
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* ===== Modal (detalle grande) ===== */
.modal{
  position:fixed;
  inset:0;
  z-index:80;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
}
.modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
}
.modal__panel{
  position:relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 40px);
  overflow: hidden;
  border-radius: 24px;
  border:1px solid var(--border-color);
  background:#fff;
  box-shadow: 0 18px 60px rgba(0,0,0,.22);
  animation: pop .18s ease-out;
}
@keyframes pop{
  from{ transform: translateY(10px) scale(.99); opacity:.85; }
  to{ transform: translateY(0) scale(1); opacity:1; }
}

.modal__close{
  position:absolute;
  top: 10px;
  right: 10px;
  z-index: 2;

  width: 40px;
  height: 40px;
  border-radius: 14px;

  border:1px solid var(--border-color);
  background:#fff;
  cursor:pointer;
  font-weight: 900;
  transition: transform .16s ease, background .16s ease;
}
.modal__close:hover{
  background: var(--bg-section);
  transform: translateY(-1px);
}

.modal__content{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  height: 100%;
}
.modal__media{
  background: var(--bg-section);
}
.modal__media img{
  width:100%;
  height:100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
  display:block;
}
.modal__info{
  padding: 18px;
  overflow:auto;
}

.fineprint{
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

/* =====  REVEAL LIMPIO: SOLO FADE + SLIDE (SIN DEGRADÉ) ===== */
.reveal{
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: var(--d, 0ms);
}

/* Si el usuario tiene reducción de movimiento */
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; }
  .reveal.is-visible{ transition:none; }
}

/* ===== Responsive ===== */
@media (max-width: 950px){
  .product{ grid-column: span 6; }
  .modal__content{ grid-template-columns: 1fr; }
  .modal__media img{ min-height: 280px; }
  .filters__row--bottom{ flex-direction:column; align-items:flex-start; }
}

@media (max-width: 560px){
  .nav{ display:none; }
  .product{ grid-column: span 12; }
  .h1{ font-size: 30px; }
}