/* =====================================================================
   Celulares Lainez Solution — estilos generales
   ===================================================================== */

:root {
  --store-color: #e2131f;
  --store-color-dark: #8f0c15;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #16181d;
  --text-muted: #63697a;
  --border: #e6e8ee;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 18px rgba(20, 20, 30, 0.08);
  --shadow-lg: 0 12px 32px rgba(20, 20, 30, 0.16);
  --header-h: 64px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.section { padding: 56px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.section-head .eyebrow {
  color: var(--store-color);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 6px 0 8px; }
.section-head p { color: var(--text-muted); margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--store-color); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--store-color) 45%, transparent); }
.btn-primary:hover { opacity: 0.92; }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--store-color); color: var(--store-color); }
.btn-wsp { background: #25D366; color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }

/* ---------- Barra superior de aviso ---------- */
.top-bar {
  background: var(--text);
  color: #fff;
  font-size: 0.8rem;
  text-align: center;
  padding: 6px 12px;
}

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  white-space: nowrap;
}
.logo .logo-badge {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--store-color);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  transition: background .2s;
}
.main-nav { display: flex; gap: 22px; margin-left: 12px; flex: 1; }
.main-nav a { font-weight: 600; font-size: 0.92rem; color: var(--text-muted); }
.main-nav a:hover { color: var(--store-color); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
}
.icon-btn:hover { border-color: var(--store-color); }
.cart-count {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--store-color);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.menu-toggle { display: none; }

/* ---------- Selector de tiendas ---------- */
.store-switcher {
  display: flex;
  gap: 8px;
  padding: 12px 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.store-pill {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all .15s;
}
.store-pill .dot { width: 9px; height: 9px; border-radius: 50%; }
.store-pill.active {
  background: var(--store-color);
  border-color: var(--store-color);
  color: #fff;
}
.store-pill.active .dot { background: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--store-color) 0%, var(--store-color-dark) 100%);
  color: #fff;
  padding: 64px 0;
  transition: background .3s;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin: 0 0 14px; line-height: 1.15; }
.hero p { font-size: 1.05rem; opacity: 0.92; margin: 0 0 26px; max-width: 480px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta .btn-outline { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); color: #fff; }
.hero-visual {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hero-stat { background: rgba(255,255,255,0.12); border-radius: var(--radius-sm); padding: 16px; }
.hero-stat b { display: block; font-size: 1.5rem; }
.hero-stat span { font-size: 0.78rem; opacity: 0.85; }

/* ---------- Beneficios ---------- */
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.benefit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.benefit-card .ic {
  width: 46px; height: 46px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--store-color) 12%, transparent);
  color: var(--store-color);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.benefit-card h3 { font-size: 0.98rem; margin: 0 0 6px; }
.benefit-card p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* ---------- Marcas ---------- */
.brands-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.brand-chip {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}
.brand-chip:hover { border-color: var(--store-color); color: var(--store-color); }
.brand-chip.active { background: var(--store-color); border-color: var(--store-color); color: #fff; }

/* ---------- Catálogo ---------- */
.catalog-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.search-box {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
}
.search-box input {
  border: none; outline: none; background: transparent;
  width: 100%; font-size: 0.92rem;
}
.filter-select {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 600;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.product-media { position: relative; aspect-ratio: 1/1; background: #eef0f6; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--store-color); color: #fff;
  font-size: 0.7rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
}
.product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-brand { font-size: 0.72rem; font-weight: 700; color: var(--store-color); text-transform: uppercase; letter-spacing: .04em; }
.product-name { font-size: 0.95rem; font-weight: 700; margin: 0; }
.product-desc { font-size: 0.8rem; color: var(--text-muted); margin: 0; flex: 1; }
.variant-selector { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 4px; }
.variant-btn {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}
.variant-btn:hover { border-color: var(--store-color); color: var(--store-color); }
.variant-btn.active { background: var(--store-color); border-color: var(--store-color); color: #fff; }
.product-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.price-now { font-size: 0.98rem; font-weight: 800; line-height: 1.3; }
.price-old { font-size: 0.85rem; color: var(--text-muted); text-decoration: line-through; }
.product-actions { display: flex; gap: 8px; margin-top: 8px; }
.qty-stepper { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 999px; }
.qty-stepper button { width: 30px; height: 34px; background: none; border: none; font-size: 1rem; font-weight: 700; color: var(--text); }
.qty-stepper span { min-width: 22px; text-align: center; font-weight: 700; font-size: 0.9rem; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); grid-column: 1 / -1; }

/* ---------- Sucursales ---------- */
.branches-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.branch-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  border-top: 4px solid var(--store-color);
}
.branch-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.branch-store-tag { font-size: 0.72rem; font-weight: 700; color: var(--store-color); text-transform: uppercase; }
.branch-card p { font-size: 0.87rem; color: var(--text-muted); margin: 8px 0; }
.branch-card .btn { margin-top: 10px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 16px 18px; font-weight: 700; font-size: 0.95rem;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-a { padding: 0 18px; max-height: 0; overflow: hidden; transition: all .25s ease; color: var(--text-muted); font-size: 0.88rem; }
.faq-item.open .faq-a { padding: 0 18px 16px; max-height: 300px; }
.faq-item.open .faq-q .chevron { transform: rotate(180deg); }

/* ---------- Footer ---------- */
footer.site-footer { background: #14161c; color: #cfd2dc; padding: 48px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin: 0 0 14px; }
.footer-grid p, .footer-grid a { font-size: 0.85rem; color: #9ea3b3; line-height: 1.8; }
.footer-grid a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 36px; padding-top: 18px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.78rem; color: #797e8f;
}

/* ---------- Carrito (drawer) ---------- */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(10,10,15,0.5);
  opacity: 0; pointer-events: none; transition: opacity .25s;
  z-index: 300;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%;
  width: min(420px, 100%);
  background: var(--surface);
  z-index: 301;
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex; flex-direction: column;
  box-shadow: -8px 0 30px rgba(0,0,0,0.2);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.cart-head h3 { margin: 0; font-size: 1.05rem; }
.cart-store-label { font-size: 0.78rem; color: var(--text-muted); }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 20px; display: flex; flex-direction: column; gap: 14px; }
.cart-item { display: flex; gap: 12px; align-items: center; }
.cart-item img { width: 58px; height: 58px; border-radius: var(--radius-sm); object-fit: cover; background: #eef0f6; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info .name { font-size: 0.88rem; font-weight: 700; margin: 0 0 4px; }
.cart-item-info .price { font-size: 0.8rem; color: var(--text-muted); }
.cart-item .remove-btn { color: var(--text-muted); font-size: 0.78rem; text-decoration: underline; background: none; border: none; }
.cart-empty { text-align: center; padding: 50px 20px; color: var(--text-muted); }
.cart-foot { border-top: 1px solid var(--border); padding: 18px 20px; }
.cart-total-row { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.05rem; margin-bottom: 14px; }

/* ---------- Botón flotante WhatsApp ---------- */
.wsp-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(37,211,102,0.45);
  font-size: 1.6rem;
}
.wsp-float:hover { transform: scale(1.06); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 250;
  max-width: 620px; margin: 0 auto;
  background: #14161c; color: #e6e8ee;
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
  transform: translateY(140%);
  transition: transform .35s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: 0.82rem; margin: 0; flex: 1; min-width: 220px; color: #c6c9d4; }
.cookie-banner a { text-decoration: underline; color: #fff; }

/* ---------- Páginas legales ---------- */
.legal-page { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; }
.legal-page h1 { margin-top: 0; }
.legal-page h2 { font-size: 1.1rem; margin-top: 32px; }
.legal-page p, .legal-page li { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .branches-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav { display: none; }
  .menu-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%;
    border: 1.5px solid var(--border); background: var(--surface);
  }
  .main-nav.mobile-open {
    display: flex; flex-direction: column;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 14px 20px; gap: 14px; z-index: 199;
  }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .branches-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
