/* =====================================================================
   BEATWEAR · Estilos de la tienda (landing + carrito + popups)
   ===================================================================== */

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10,10,10,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bw-line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.site-header .logo img { height: 30px; }
.nav { display: flex; gap: 28px; }
.nav a { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bw-muted); transition: color var(--bw-ease); }
.nav a:hover { color: var(--bw-white); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.cart-btn { position: relative; display: flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--bw-line); border-radius: var(--bw-radius); transition: border-color var(--bw-ease); }
.cart-btn:hover { border-color: var(--bw-pink); }
.cart-btn svg { width: 18px; height: 18px; }
.cart-count {
  position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--bw-pink); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
}

/* ---------- Hero (video de fondo) ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(86vh, 760px); display: flex; align-items: center;
  padding: 90px 0;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.65) 45%, rgba(10,10,10,0.35) 100%),
    radial-gradient(700px 400px at 85% 0%, var(--bw-pink-soft), transparent 60%);
}
.hero-content { position: relative; z-index: 2; max-width: 640px; }
.hero h1 { font-size: clamp(44px, 7vw, 86px); font-weight: 900; text-transform: uppercase; line-height: 0.92; }
.hero h1 .thin { font-weight: 300; color: var(--bw-pink); }
.hero p { color: rgba(255,255,255,0.78); font-size: 17px; max-width: 460px; margin: 22px 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Categorias / filtros ---------- */
.section { padding: 70px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head p { color: var(--bw-muted); max-width: 520px; margin-top: 10px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  padding: 9px 18px; border: 1px solid var(--bw-line); border-radius: 999px;
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bw-muted);
  transition: all var(--bw-ease);
}
.chip:hover { color: var(--bw-white); }
.chip.active { background: var(--bw-pink); border-color: var(--bw-pink); color: #fff; }

/* ---------- Grid de productos ---------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card-product {
  background: var(--bw-ink-850); border: 1px solid var(--bw-line); border-radius: var(--bw-radius-lg);
  overflow: hidden; display: flex; flex-direction: column; transition: transform var(--bw-ease), border-color var(--bw-ease);
}
.card-product:hover { transform: translateY(-4px); border-color: var(--bw-pink); }
.card-media {
  aspect-ratio: 1/1; background: var(--bw-ink-700); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .placeholder { color: var(--bw-muted-2); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .1em; }
.card-media .badge {
  position: absolute; top: 12px; left: 12px; background: var(--bw-pink); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
}
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-cat { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--bw-pink); }
.card-name { font-family: var(--bw-font-display); font-weight: 700; font-size: 17px; }
.card-sizes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.size-pill {
  min-width: 34px; text-align: center; padding: 6px 8px; font-size: 12px; border: 1px solid var(--bw-line);
  border-radius: var(--bw-radius); color: var(--bw-muted); cursor: pointer; transition: all var(--bw-ease);
}
.size-pill:hover { color: #fff; }
.size-pill.active { background: var(--bw-white); color: var(--bw-black); border-color: var(--bw-white); }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 10px; }
.card-price { font-family: var(--bw-font-display); font-weight: 900; font-size: 22px; }
.add-btn { padding: 10px 16px; }

.empty-state { text-align: center; color: var(--bw-muted); padding: 60px 0; grid-column: 1/-1; }

/* ---------- Sugerencias ---------- */
.suggest { background: var(--bw-ink-850); border-top: 1px solid var(--bw-line); border-bottom: 1px solid var(--bw-line); }

/* ---------- Nosotros (mision / vision / valores) ---------- */
.about { background: var(--bw-ink-850); border-top: 1px solid var(--bw-line); }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.about-card {
  background: var(--bw-ink-800); border: 1px solid var(--bw-line); border-radius: var(--bw-radius-lg);
  padding: 30px 26px; transition: transform var(--bw-ease), border-color var(--bw-ease);
}
.about-card:hover { transform: translateY(-4px); border-color: var(--bw-pink); }
.about-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 50%; background: var(--bw-pink-soft); color: var(--bw-pink); margin-bottom: 18px;
}
.about-icon svg { width: 26px; height: 26px; }
.about-card h3 { font-size: 22px; text-transform: uppercase; margin-bottom: 10px; }
.about-card p { color: var(--bw-muted); font-size: 14px; }

/* ---------- Personalizable / banda ---------- */
.banner-custom {
  border: 1px solid var(--bw-line); border-radius: var(--bw-radius-lg); padding: 48px;
  background: linear-gradient(120deg, var(--bw-pink) 0%, #b3155f 100%); color: #fff;
  display: grid; grid-template-columns: 1.4fr 0.6fr; align-items: center; gap: 24px;
}
.banner-custom h2 { font-size: clamp(26px, 3.5vw, 40px); text-transform: uppercase; }
.banner-custom p { margin-top: 12px; opacity: .9; max-width: 520px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--bw-line); padding: 56px 0 30px; background: var(--bw-ink-850); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid img { height: 28px; margin-bottom: 16px; }
.footer-grid p { color: var(--bw-muted); font-size: 14px; max-width: 320px; }
.footer-col h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--bw-muted); margin-bottom: 16px; font-family: var(--bw-font-body); font-weight: 600; }
.footer-col a { display: block; color: var(--bw-white); font-size: 14px; margin-bottom: 10px; transition: color var(--bw-ease); }
.footer-col a:hover { color: var(--bw-pink); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--bw-line); color: var(--bw-muted-2); font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Carrito (drawer) ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); opacity: 0; visibility: hidden; transition: opacity var(--bw-ease); z-index: 90; }
.overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 420px; max-width: 92vw; z-index: 100;
  background: var(--bw-ink-850); border-left: 1px solid var(--bw-line);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform var(--bw-ease);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--bw-line); }
.cart-head h3 { font-size: 20px; text-transform: uppercase; }
.cart-close { font-size: 24px; color: var(--bw-muted); width: 36px; height: 36px; border-radius: 50%; transition: all var(--bw-ease); }
.cart-close:hover { background: var(--bw-ink-700); color: #fff; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--bw-line); }
.cart-item .thumb { width: 56px; height: 56px; border-radius: var(--bw-radius); object-fit: cover; background: var(--bw-ink-700); }
.cart-item .ci-name { font-weight: 600; font-size: 14px; }
.cart-item .ci-meta { color: var(--bw-muted); font-size: 12px; margin-top: 2px; }
.qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty button { width: 24px; height: 24px; border: 1px solid var(--bw-line); border-radius: var(--bw-radius); font-size: 14px; }
.qty button:hover { border-color: var(--bw-pink); color: var(--bw-pink); }
.ci-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.ci-price { font-family: var(--bw-font-display); font-weight: 700; }
.ci-remove { font-size: 11px; color: var(--bw-muted-2); text-transform: uppercase; letter-spacing: .08em; }
.ci-remove:hover { color: var(--bw-pink); }

.cart-foot { border-top: 1px solid var(--bw-line); padding: 20px 24px; background: var(--bw-ink-800); }
.coupon-row { display: flex; gap: 8px; margin-bottom: 12px; }
.coupon-row .input { padding: 11px 12px; }
.coupon-msg { font-size: 12px; margin-bottom: 12px; min-height: 16px; }
.coupon-msg.ok { color: #36d399; }
.coupon-msg.err { color: #f87272; }
.totals { font-size: 14px; }
.totals .row { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--bw-muted); }
.totals .row.discount { color: #36d399; }
.totals .row.grand { color: #fff; font-size: 20px; font-family: var(--bw-font-display); font-weight: 900; padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--bw-line); }
.cart-empty { text-align: center; color: var(--bw-muted); padding: 50px 0; }

/* ---------- Botones flotantes ---------- */
.floating { position: fixed; right: 26px; bottom: 26px; z-index: 80; display: flex; flex-direction: column; gap: 14px; }
.fab { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--bw-shadow); transition: transform var(--bw-ease); position: relative; }
.fab:hover { transform: scale(1.08); }
.fab svg { width: 28px; height: 28px; }
.fab-wa { background: #25D366; }
.fab-disc { background: var(--bw-pink); }
.fab-disc .ping { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--bw-pink); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Popup de descuento (CRM) ---------- */
.modal { position: fixed; inset: 0; z-index: 110; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity var(--bw-ease); }
.modal.open { opacity: 1; visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); }
.modal-card {
  position: relative; width: 440px; max-width: 100%; background: var(--bw-ink-850);
  border: 1px solid var(--bw-line); border-radius: var(--bw-radius-lg); overflow: hidden;
  transform: translateY(12px) scale(.98); transition: transform var(--bw-ease);
}
.modal.open .modal-card { transform: none; }
.modal-banner { background: linear-gradient(120deg, var(--bw-pink), #b3155f); padding: 34px 30px 28px; text-align: center; }
.modal-banner .eyebrow { color: rgba(255,255,255,0.85); }
.modal-banner h3 { color: #fff; font-size: 28px; text-transform: uppercase; margin-top: 8px; }
.modal-body { padding: 26px 30px 30px; }
.modal-body > p { color: var(--bw-muted); font-size: 14px; margin-bottom: 20px; }
.modal-close { position: absolute; top: 12px; right: 14px; color: rgba(255,255,255,0.9); font-size: 26px; z-index: 2; width: 34px; height: 34px; }
.coupon-reveal { text-align: center; padding: 8px 0; }
.coupon-code {
  display: inline-block; border: 2px dashed var(--bw-pink); color: var(--bw-white);
  font-family: var(--bw-font-display); font-weight: 900; font-size: 28px; letter-spacing: .12em;
  padding: 16px 28px; border-radius: var(--bw-radius); margin: 10px 0 16px; background: var(--bw-pink-soft);
}
.coupon-copy { font-size: 12px; color: var(--bw-muted); }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  background: var(--bw-white); color: var(--bw-black); padding: 12px 20px; border-radius: var(--bw-radius);
  font-size: 13px; font-weight: 600; box-shadow: var(--bw-shadow); animation: toastIn .3s ease;
}
.toast.pink { background: var(--bw-pink); color: #fff; }
@keyframes toastIn { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .products { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 70vh; }
  .hero-overlay { background: linear-gradient(180deg, rgba(10,10,10,0.6), rgba(10,10,10,0.9)); }
  .banner-custom { grid-template-columns: 1fr; padding: 32px; }
  /* El boton de descuento es exclusivo de escritorio (segun brief) */
  .fab-disc { display: none; }
}
@media (max-width: 480px) {
  .products { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
