/* =====================================================================
   Celulares Lainez Solution — variante "Apple Store"
   Inspirado en apple.com/store: fondo gris muy claro, tipografía negra
   y muy pesada, tarjetas planas sin sombra, acentos en azul.
   ===================================================================== */

:root {
  --store-color: #e2131f;
  --store-color-dark: #8f0c15;
  --blue: #0071e3;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-alt: #ffffff;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --border: #d2d2d7;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: none;
  --shadow: 0 2px 10px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 28px rgba(0,0,0,.1);
  --header-h: 48px;
  --ease: cubic-bezier(.2,.8,.2,1);
  font-size: 16px;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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: 88px 0; }
.section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section-head .eyebrow {
  color: var(--store-color);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin: 4px 0 8px; font-weight: 700; letter-spacing: -0.025em; color: var(--text); }
.section-head p { color: var(--text-muted); margin: 0; font-size: 1.15rem; font-weight: 500; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: 980px;
  border: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform .2s var(--ease), opacity .2s ease, background .2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #0077ed; }
.btn-outline { background: transparent; border: none; color: var(--blue); padding-left: 4px; padding-right: 4px; }
.btn-outline:hover { text-decoration: underline; }
.btn-wsp { background: #25D366; color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }

/* ---------- Barras superiores ---------- */
.promo-bar {
  display: block;
  background: var(--surface);
  color: var(--text);
  text-align: center;
  padding: 9px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.promo-bar:hover { background: #fafafa; }
.top-bar {
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 500;
  text-align: center;
  padding: 6px 12px;
  border-bottom: 1px solid var(--border);
}

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.92rem; white-space: nowrap; }
.logo .logo-badge { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: #fff; display: block; }
.main-nav { display: flex; gap: 28px; margin: 0 auto; }
.main-nav a { font-weight: 400; font-size: 0.78rem; color: var(--text); opacity: 0.82; }
.main-nav a:hover { opacity: 1; }
.header-actions { display: flex; align-items: center; gap: 14px; }

.icon-btn { position: relative; width: 30px; height: 30px; border-radius: 50%; border: none; background: transparent; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; }
.cart-count {
  position: absolute; top: -4px; right: -6px;
  background: var(--store-color); color: #fff;
  font-size: 0.62rem; font-weight: 700;
  min-width: 16px; height: 16px; 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: 10px 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: 7px; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); font-weight: 600; font-size: 0.82rem; color: var(--text-muted); transition: all .2s var(--ease); }
.store-pill .dot { width: 8px; height: 8px; border-radius: 50%; }
.store-pill.active { background: var(--text); border-color: var(--text); color: #fff; }
.store-pill.active .dot { background: #fff; }

/* ---------- Hero ---------- */
.hero { background: var(--bg); color: var(--text); padding: 64px 0 48px; }
.hero-grid { display: flex; flex-direction: column; gap: 40px; }
.hero-eyebrow { display: block; font-size: 1rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); margin: 0 0 10px; line-height: 1; font-weight: 700; letter-spacing: -0.04em; }
.hero p { font-size: 1.2rem; color: var(--text-muted); margin: 0 0 20px; max-width: 560px; font-weight: 500; }
.hero-cta { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.hero .btn-primary { padding: 12px 24px; }
.hero-cta .btn-outline { font-size: 1.02rem; font-weight: 500; }
.hero-cta .btn-outline::after { content: " \203A"; }

.hero-visual {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.hero-stat { padding: 20px 4px 0; }
.hero-stat b { display: block; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; letter-spacing: -0.02em; }
.hero-stat span { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }

/* ---------- Destacados (tiles grandes con fotos reales de producto) ---------- */
.featured-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature-tile {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 400px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  transition: transform .4s var(--ease);
}
.feature-tile:hover { transform: translateY(-4px); }
.feature-tile.tile-dark { background: radial-gradient(120% 100% at 15% 0%, #2c2f36 0%, #0b0c0f 60%), #0b0c0f; }
.feature-tile.tile-red { background: radial-gradient(120% 100% at 85% 0%, var(--store-color) 0%, var(--store-color-dark) 55%, #1a0304 100%); }
.feature-tile.tile-orange { background: radial-gradient(120% 100% at 85% 0%, #ff6b1a 0%, #7a2e00 60%, #1a0d00 100%); }
.feature-tile.tile-light { background: linear-gradient(180deg, #ffffff 0%, #eef0f4 100%); color: var(--text); }
.feature-tile.tile-light .feature-desc { color: var(--text-muted); }
.feature-tile.tile-blue { background: radial-gradient(120% 100% at 15% 0%, var(--blue) 0%, #0a3d73 55%, #041b33 100%); justify-content: center; }
.feature-tile.tile-blue .feature-link { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.feature-tag { position: relative; z-index: 2; align-self: flex-start; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--store-color); background: rgba(255,255,255,0.14); padding: 5px 12px; border-radius: 999px; margin-bottom: auto; }
.tile-light .feature-tag { background: color-mix(in srgb, var(--store-color) 10%, transparent); }
.feature-media { position: absolute; z-index: 1; left: 12%; right: 12%; top: 18%; bottom: 46%; }
.feature-img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35)); }
.tile-light .feature-img { filter: drop-shadow(0 20px 30px rgba(0,0,0,0.12)); }
.feature-title { position: relative; z-index: 2; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 6px; max-width: 92%; }
.feature-desc { position: relative; z-index: 2; font-size: 0.94rem; color: rgba(255,255,255,0.72); margin: 0 0 14px; max-width: 90%; font-weight: 500; }
.feature-price { position: relative; z-index: 2; font-size: 0.9rem; font-weight: 600; margin: 0 0 4px; }
.feature-link { position: relative; z-index: 2; font-size: 0.92rem; font-weight: 600; color: var(--blue); }
.tile-dark .feature-link, .tile-red .feature-link, .tile-orange .feature-link { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.feature-link::after { content: " \203A"; }

@media (max-width: 860px) {
  .featured-grid { grid-template-columns: 1fr; }
  .featured-grid .feature-tile:nth-child(1) { grid-row: auto; }
  .feature-tile { min-height: 320px; padding: 30px; }
  .feature-media { top: 16%; bottom: 40%; }
}
@media (max-width: 480px) {
  .feature-media { left: 14%; right: 14%; }
}

/* ---------- Beneficios ---------- */
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.benefit-card { background: var(--surface); border: none; border-radius: var(--radius); padding: 30px 26px; text-align: left; transition: transform .3s var(--ease); }
.benefit-card:hover { transform: translateY(-3px); }
.benefit-card .ic { width: 40px; height: 40px; margin: 0 0 18px; border-radius: 10px; background: transparent; color: var(--store-color); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; padding: 0; }
.benefit-card h3 { font-size: 1.08rem; margin: 0 0 6px; font-weight: 700; letter-spacing: -0.01em; }
.benefit-card p { font-size: 0.92rem; color: var(--text-muted); margin: 0; line-height: 1.5; font-weight: 500; }

/* ---------- Marcas / categorías ---------- */
.brands-grid { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.brand-chip { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 500; font-size: 0.86rem; color: var(--text); transition: all .2s var(--ease); }
.brand-chip:hover { border-color: var(--text); }
.brand-chip.active { background: var(--text); border-color: var(--text); color: #fff; }

/* ---------- Catálogo ---------- */
.catalog-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.search-box { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 10px 16px; }
.search-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,113,227,0.12); }
.search-box input { border: none; outline: none; background: transparent; width: 100%; font-size: 0.92rem; }
.filter-select { padding: 10px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 0.9rem; font-weight: 500; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card { background: var(--surface); border: none; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-media { position: relative; aspect-ratio: 1/1; background: #fbfbfd; display: flex; align-items: center; justify-content: center; padding: 22px; }
.product-media img { width: 100%; height: 100%; object-fit: contain; object-position: center; transition: transform .4s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.03); }
.product-media a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.product-name a:hover { text-decoration: underline !important; }
.product-badge { position: absolute; top: 12px; left: 12px; background: var(--store-color); color: #fff; font-size: 0.66rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; text-align: left; }
.product-brand { font-size: 0.68rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.product-name { font-size: 1rem; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.product-desc { font-size: 0.82rem; color: var(--text-muted); margin: 0; flex: 1; font-weight: 500; }
.variant-selector { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 4px; }
.variant-btn { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); font-size: 0.72rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.variant-btn:hover { border-color: var(--text); color: var(--text); }
.variant-btn.active { background: var(--text); border-color: var(--text); color: #fff; }
.product-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.price-now { font-size: 1rem; font-weight: 600; color: var(--text); }
.price-now.agotado-badge { color: #d81b1b; font-weight: 700; letter-spacing: .03em; font-size: 0.9rem; }
.price-old { font-size: 0.85rem; color: var(--text-muted); text-decoration: line-through; }
.product-actions { display: flex; gap: 8px; margin-top: 10px; }
.qty-stepper { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; }
.qty-stepper button { width: 28px; height: 32px; background: none; border: none; font-size: 1rem; font-weight: 600; color: var(--text); }
.qty-stepper span { min-width: 20px; text-align: center; font-weight: 600; font-size: 0.88rem; }
.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: 16px; }
.branch-card { background: var(--surface); border: none; border-radius: var(--radius); padding: 26px; text-align: left; }
.branch-card h3 { margin: 8px 0 4px; font-size: 1.08rem; font-weight: 700; }
.branch-store-tag { font-size: 0.7rem; font-weight: 700; color: var(--store-color); text-transform: uppercase; letter-spacing: .04em; }
.branch-card p { font-size: 0.88rem; color: var(--text-muted); margin: 8px 0; font-weight: 500; }
.branch-card .btn { margin-top: 10px; padding-left: 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; }
.faq-item { background: var(--surface); border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 20px 4px; font-weight: 600; font-size: 1rem; display: flex; justify-content: space-between; align-items: center; color: var(--text); }
.faq-q .chevron { transition: transform .3s var(--ease); color: var(--blue); font-weight: 700; }
.faq-a { padding: 0 4px; max-height: 0; overflow: hidden; transition: all .3s ease; color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; font-weight: 500; }
.faq-item.open .faq-a { padding: 0 4px 20px; max-height: 300px; }
.faq-item.open .faq-q .chevron { transform: rotate(180deg); }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--bg); color: var(--text); padding: 48px 0 24px; margin-top: 20px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: var(--text); font-size: 0.82rem; margin: 0 0 14px; font-weight: 700; }
.footer-grid p, .footer-grid a { font-size: 0.82rem; color: var(--text-muted); line-height: 1.9; font-weight: 500; }
.footer-grid a:hover { color: var(--text); text-decoration: underline; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.74rem; color: var(--text-muted); }

/* ---------- Carrito (drawer) ---------- */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); opacity: 0; pointer-events: none; transition: opacity .3s ease; 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 .35s var(--ease); display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(0,0,0,0.14); }
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.cart-head h3 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.cart-store-label { font-size: 0.78rem; color: var(--text-muted); }
.cart-items { flex: 1; overflow-y: auto; padding: 14px 22px; display: flex; flex-direction: column; gap: 16px; }
.cart-item { display: flex; gap: 12px; align-items: center; }
.cart-item img { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; background: var(--bg); }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info .name { font-size: 0.88rem; font-weight: 600; margin: 0 0 4px; }
.cart-item-info .price { font-size: 0.8rem; color: var(--text-muted); }
.cart-item .remove-btn { color: var(--blue); font-size: 0.78rem; 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: 20px 22px; }
.cart-total-row { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.05rem; margin-bottom: 16px; }

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

/* ---------- Banner promocional del catálogo del mes ---------- */
.catalog-banner-link { display: block; line-height: 0; }
.catalog-banner-link img { display: block; width: 100%; height: auto; }
.catalog-banner-link:hover img { opacity: 0.94; }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 250; max-width: 620px; margin: 0 auto; background: var(--text); color: #f5f5f7; 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 .4s var(--ease); }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: 0.82rem; margin: 0; flex: 1; min-width: 220px; color: #d6d6db; }
.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; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .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; }
  .hero-visual { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
}
@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .hero { padding: 44px 0 36px; }
  .main-nav { display: none; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: none; 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; }
}
