﻿
:root {
  --yellow: #F5C542;
  --yellow-dark: #D4A012;
  --yellow-light: #FFF4CC;
  --black: #111111;
  --dark: #1C1C1C;
  --gray-dark: #3A3A3A;
  --gray: #6B6B6B;
  --gray-light: #A8A8A8;
  --gray-bg: #F2F2F2;
  --white: #FFFFFF;
  --off-white: #F8F8F6;
  --border: #E2E2E2;
  --red: #D94040;
  --green: #1FA35A;
  --font-head: 'Rajdhani', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-alt: 'Space Grotesk', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.09);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.13);
  --radius: 10px;
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{ font-family:var(--font-body); background:var(--off-white); color:var(--dark); overflow-x:hidden; }

/* ============================================================
   ESTILOS GLOBALES - Variables, Reset, Tipografía
   ============================================================ */

/* SCROLLBAR PERSONALIZADA */
::-webkit-scrollbar{ width:5px; }
::-webkit-scrollbar-track{ background:#f0f0f0; }
::-webkit-scrollbar-thumb{ background:var(--yellow); border-radius:3px; }

/* CURSOR */
.cursor{ position:fixed; width:10px; height:10px; background:var(--yellow); border-radius:50%; pointer-events:none; z-index:99999; transform:translate(-50%,-50%); transition:width .15s,height .15s; }
.cursor-ring{ position:fixed; width:32px; height:32px; border:1.5px solid var(--yellow); border-radius:50%; pointer-events:none; z-index:99998; transform:translate(-50%,-50%); transition:all .12s ease-out; opacity:.5; }

/* ============================================================
   COMPONENTES DE NAVEGACIÓN
   ============================================================ */

/* TOPBAR - Barra superior de información */
.topbar{
  background:var(--black);
  color:rgba(255,255,255,.75);
  font-family:var(--font-alt);
  font-size:12px; font-weight:500;
  letter-spacing:.3px;
  padding:7px 48px;
  display:flex; justify-content:space-between; align-items:center;
}
.topbar a{ color:rgba(255,255,255,.75); text-decoration:none; transition:color .2s; }
.topbar a:hover{ color:var(--yellow); }
.topbar-left{ display:flex; gap:20px; align-items:center; }
.topbar-right{ display:flex; gap:20px; align-items:center; }
.tb-dot{ display:inline-block; width:5px; height:5px; border-radius:50%; background:var(--yellow); margin-right:5px; }

/* NAVBAR */
nav{
  position:sticky; top:0; z-index:1000;
  background:var(--white);
  border-bottom:2px solid var(--yellow);
  padding:0 48px;
  display:flex; align-items:center; height:70px;
  box-shadow:var(--shadow-sm);
  transition:all .3s;
}
nav.scrolled{ box-shadow:0 4px 30px rgba(0,0,0,0.12); }

.logo{ display:flex; align-items:center; gap:2px; text-decoration:none; margin-right:auto; }
.logo img{ height:56px; width:56px; object-fit:contain; filter:drop-shadow(0 2px 6px rgba(0,0,0,.15)); }
.logo-text-wrap{ margin-left:6px; }
.logo-name{ font-family:var(--font-head); font-size:20px; font-weight:700; color:var(--black); letter-spacing:1px; line-height:1; }
.logo-name span{ color:var(--yellow-dark); }
.logo-sub{ font-family:var(--font-alt); font-size:9px; font-weight:500; color:var(--gray); letter-spacing:2.5px; text-transform:uppercase; margin-top:2px; }

.nav-links{ display:flex; align-items:center; gap:2px; margin:0 20px; }
.nav-links a{
  font-family:var(--font-alt); font-weight:600; font-size:12px;
  letter-spacing:1px; text-transform:uppercase; color:var(--gray-dark);
  text-decoration:none; padding:8px 13px; border-radius:6px;
  position:relative; transition:color .2s;
}
.nav-links a::after{
  content:''; position:absolute; bottom:3px; left:13px; right:13px;
  height:2px; background:var(--yellow);
  transform:scaleX(0); transition:transform .25s; transform-origin:left;
}
.nav-links a:hover{ color:var(--black); }
.nav-links a:hover::after{ transform:scaleX(1); }

.nav-actions{ display:flex; align-items:center; gap:10px; }
.nav-search-wrap{ position:relative; display:flex; align-items:center; }
.nav-search{
  background:var(--gray-bg); border:1.5px solid var(--border);
  border-radius:8px; padding:8px 38px 8px 14px;
  color:var(--dark); font-family:var(--font-body); font-size:13px;
  width:210px; transition:all .3s; outline:none;
}
.nav-search:focus{ border-color:var(--yellow); width:260px; box-shadow:0 0 0 3px rgba(245,197,66,.15); background:var(--white); }
.nav-search::placeholder{ color:var(--gray-light); }
.nav-search-btn{
  position:absolute; right:8px; background:none; border:none;
  cursor:pointer; color:var(--gray); font-size:16px; padding:4px;
  transition:color .2s;
}
.nav-search-btn:hover{ color:var(--yellow-dark); }
.btn-cart{
  position:relative; background:var(--yellow); border:none;
  border-radius:8px; padding:8px 18px;
  color:var(--black); cursor:pointer;
  font-family:var(--font-alt); font-weight:700; font-size:12px; letter-spacing:1px;
  display:flex; align-items:center; gap:6px; transition:all .2s;
}
.btn-cart:hover{ background:var(--yellow-dark); transform:translateY(-1px); box-shadow:0 4px 16px rgba(245,197,66,.4); }
.cart-count{
  position:absolute; top:-7px; right:-7px;
  background:var(--red); color:white;
  width:18px; height:18px; border-radius:50%;
  font-size:10px; font-weight:800; display:flex; align-items:center; justify-content:center;
}

/* ============================================================
   SECCIÓN HERO - Primera pantalla visible (above the fold)
   ============================================================ */

/* HERO SECTION */
.hero{
  position:relative; min-height:90vh;
  display:flex; align-items:center;
  background:var(--black); overflow:hidden;
}
.hero-bg-stripes{
  position:absolute; inset:0;
  background: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 60px,
    rgba(245,197,66,.03) 60px,
    rgba(245,197,66,.03) 61px
  );
}
.hero-yellow-bar{
  position:absolute; top:0; right:0; bottom:0;
  width:42%; background:var(--yellow);
  clip-path:polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}
.hero-yellow-bar::before{
  content:''; position:absolute; inset:0;
  background:repeating-linear-gradient(
    -45deg, transparent, transparent 8px,
    rgba(0,0,0,.06) 8px, rgba(0,0,0,.06) 9px
  );
}
.hero-content{
  position:relative; z-index:2;
  padding:80px 48px 80px 80px;
  max-width:660px;
}
.hero-pretitle{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-alt); font-weight:600; font-size:11px;
  letter-spacing:3px; text-transform:uppercase;
  color:var(--yellow); margin-bottom:20px;
}
.hero-pretitle::before{
  content:''; width:28px; height:2px; background:var(--yellow);
}
.hero h1{
  font-family:var(--font-head); font-size:clamp(52px,6.5vw,88px);
  font-weight:700; line-height:.95; letter-spacing:1px;
  color:var(--white); margin-bottom:22px;
}
.hero h1 em{ color:var(--yellow); font-style:normal; display:block; }
.hero-sub{
  font-family:var(--font-body); font-size:16px; font-weight:300;
  color:rgba(255,255,255,.6); line-height:1.65;
  margin-bottom:36px; max-width:480px;
}
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }
.btn-hero-primary{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--yellow); color:var(--black);
  padding:14px 32px; border-radius:8px;
  font-family:var(--font-alt); font-weight:700; font-size:13px; letter-spacing:1.5px;
  text-transform:uppercase; text-decoration:none; border:none; cursor:pointer;
  transition:all .25s; position:relative; overflow:hidden;
}
.btn-hero-primary:hover{ background:#ffd700; transform:translateY(-2px); box-shadow:0 8px 28px rgba(245,197,66,.5); }
.btn-hero-outline{
  display:inline-flex; align-items:center; gap:8px;
  border:1.5px solid rgba(255,255,255,.25); color:rgba(255,255,255,.85);
  padding:14px 28px; border-radius:8px;
  font-family:var(--font-alt); font-weight:600; font-size:13px; letter-spacing:1.5px;
  text-transform:uppercase; text-decoration:none; cursor:pointer; background:transparent;
  transition:all .25s;
}
.btn-hero-outline:hover{ border-color:var(--yellow); color:var(--yellow); }

.hero-stats{
  position:absolute; bottom:0; left:0; right:42%;
  background:var(--yellow);
  display:flex; gap:0;
  clip-path:polygon(0 0, 100% 0, 97% 100%, 0 100%);
}
.hero-stat{
  flex:1; padding:18px 28px;
  border-right:1px solid rgba(0,0,0,.1);
}
.hero-stat:last-child{ border-right:none; }
.hero-stat .num{
  font-family:var(--font-head); font-size:32px; font-weight:700;
  color:var(--black); line-height:1;
}
.hero-stat .lbl{
  font-family:var(--font-alt); font-size:10px; font-weight:600;
  color:rgba(0,0,0,.6); letter-spacing:2px; text-transform:uppercase; margin-top:2px;
}

/* MARQUEE */
.marquee-wrap{
  background:var(--black); padding:11px 0; overflow:hidden;
  border-top:2px solid var(--yellow);
}
.marquee-inner{
  display:flex; animation:marquee 28s linear infinite; white-space:nowrap;
}
.marquee-inner span{
  font-family:var(--font-alt); font-weight:600; font-size:11px;
  letter-spacing:3px; text-transform:uppercase;
  color:rgba(255,255,255,.5); padding:0 32px;
}
.marquee-inner span em{
  color:var(--yellow); font-style:normal; margin-right:12px;
}
@keyframes marquee{ 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* SEARCH BAR */
.search-bar-section{
  background:var(--white);
  border-bottom:1px solid var(--border);
  padding:32px 80px;
  box-shadow:var(--shadow-sm);
}
.search-bar-title{
  font-family:var(--font-head); font-size:22px; font-weight:700;
  letter-spacing:1px; color:var(--black); margin-bottom:18px;
  display:flex; align-items:center; gap:10px;
}
.search-bar-title::before{
  content:''; width:4px; height:22px; background:var(--yellow); border-radius:2px;
}
.search-form{
  display:grid; grid-template-columns:1fr 1fr 1fr 1fr auto; gap:10px; align-items:end;
}
.sf-group label{
  font-family:var(--font-alt); font-size:10px; font-weight:700;
  color:var(--gray); letter-spacing:2px; text-transform:uppercase;
  display:block; margin-bottom:6px;
}
.sf-group select, .sf-group input{
  width:100%; background:var(--gray-bg); border:1.5px solid var(--border);
  border-radius:8px; padding:11px 14px;
  color:var(--dark); font-family:var(--font-body); font-size:13px;
  outline:none; appearance:none; transition:border-color .2s;
}
.sf-group select:focus, .sf-group input:focus{
  border-color:var(--yellow); box-shadow:0 0 0 3px rgba(245,197,66,.12);
  background:var(--white);
}
.sf-group input{ letter-spacing:1.5px; font-weight:700; text-transform:uppercase; }
.sf-group input::placeholder{ text-transform:none; font-weight:400; letter-spacing:0; }

/* SECTIONS */
.section{ padding:72px 80px; }
.section-white{ background:var(--white); }
.section-gray{ background:var(--gray-bg); }
.section-black{ background:var(--black); }

.section-header{ margin-bottom:44px; }
.section-tag{
  font-family:var(--font-alt); font-size:10px; font-weight:700;
  letter-spacing:3px; text-transform:uppercase; color:var(--yellow-dark);
  display:flex; align-items:center; gap:8px; margin-bottom:8px;
}
.section-tag::before{ content:''; width:20px; height:2px; background:var(--yellow); }
.section-title{
  font-family:var(--font-head); font-size:clamp(34px,3.5vw,52px);
  font-weight:700; letter-spacing:1px; line-height:1.05; color:var(--black);
}
.section-title em{ color:var(--yellow-dark); font-style:normal; }
.section-title-light{ color:var(--white); }
.section-title-light em{ color:var(--yellow); }
.section-sub{
  font-size:15px; font-weight:300; color:var(--gray); line-height:1.6;
  max-width:600px; margin-top:10px;
}

/* TRUST BAR */
.trust-bar{
  background:var(--yellow);
  display:flex; gap:0;
}
.trust-item{
  flex:1; padding:22px 28px;
  border-right:1px solid rgba(0,0,0,.1);
  display:flex; align-items:center; gap:14px;
}
.trust-item:last-child{ border-right:none; }
.trust-icon{
  width:42px; height:42px; background:rgba(0,0,0,.1); border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0;
}
.trust-item-title{
  font-family:var(--font-head); font-weight:700; font-size:14px; letter-spacing:.5px; color:var(--black);
}
.trust-item-sub{ font-size:11px; color:rgba(0,0,0,.55); margin-top:2px; }

/* CATEGORIES */
.cats-grid{
  display:grid; grid-template-columns:repeat(6,1fr); gap:12px;
}
.cat-card{
  background:var(--white);
  border:1.5px solid var(--border);
  border-radius:var(--radius);
  padding:22px 14px;
  text-align:center; cursor:pointer;
  transition:all .25s;
  text-decoration:none; color:var(--dark);
  display:flex; flex-direction:column; align-items:center; gap:10px;
  box-shadow:var(--shadow-sm);
}
.cat-card:hover{ border-color:var(--yellow); transform:translateY(-3px); box-shadow:var(--shadow-md); background:var(--yellow-light); }
.cat-card-icon{
  width:54px; height:54px; border-radius:50%;
  background:var(--gray-bg); display:flex; align-items:center; justify-content:center;
  transition:background .25s; overflow:hidden;
}
.cat-card:hover .cat-card-icon{ background:var(--yellow); }
.cat-card-icon img{ width:32px; height:32px; object-fit:contain; }
.cat-name{
  font-family:var(--font-alt); font-weight:700; font-size:11px;
  letter-spacing:1px; text-transform:uppercase; color:var(--dark);
}
.cat-count{ font-size:10px; color:var(--gray-light); }

/* ============================================================
   PRODUCTOS - Grid de tarjetas con imágenes reales
   Patrón: Data Array → renderProducts() → DOM injection
   ============================================================ */

/* PRODUCT CARDS */
.prod-tabs{
  display:flex; gap:0;
  border-bottom:2px solid var(--border);
  margin-bottom:32px; overflow-x:auto;
}
.prod-tab{
  font-family:var(--font-alt); font-weight:700; font-size:11px;
  letter-spacing:1.5px; text-transform:uppercase;
  color:var(--gray); padding:12px 20px; cursor:pointer;
  border:none; background:none; border-bottom:2px solid transparent;
  margin-bottom:-2px; transition:all .2s; white-space:nowrap;
}
.prod-tab.active{ color:var(--black); border-bottom-color:var(--yellow); }
.prod-tab:hover:not(.active){ color:var(--dark); }

.products-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:16px;
}
.product-card{
  background:var(--white);
  border:1.5px solid var(--border);
  border-radius:12px; overflow:hidden; cursor:pointer;
  transition:all .3s; position:relative;
  box-shadow:var(--shadow-sm);
}
.product-card:hover{ border-color:var(--yellow); transform:translateY(-5px); box-shadow:var(--shadow-lg); }
.product-badge{
  position:absolute; top:10px; left:10px; z-index:2;
  font-family:var(--font-alt); font-weight:800; font-size:9px;
  letter-spacing:1px; text-transform:uppercase; padding:4px 9px; border-radius:5px;
}
.badge-sale{ background:var(--red); color:white; }
.badge-new{ background:var(--green); color:white; }
.badge-hot{ background:var(--yellow); color:var(--black); }
.product-img-wrap{
  background:var(--gray-bg);
  height:185px; display:flex; align-items:center; justify-content:center;
  position:relative; overflow:hidden; padding:12px;
}
.product-img-wrap img{
  max-width:100%; max-height:160px; object-fit:contain;
  transition:transform .35s; filter:drop-shadow(0 4px 10px rgba(0,0,0,.12));
}
.product-card:hover .product-img-wrap img{ transform:scale(1.07); }
.product-body{ padding:14px 16px; }
.product-brand{
  font-family:var(--font-alt); font-weight:700; font-size:9px;
  color:var(--yellow-dark); letter-spacing:2px; text-transform:uppercase; margin-bottom:3px;
}
.product-name{
  font-family:var(--font-body); font-size:13px; font-weight:600;
  color:var(--dark); margin-bottom:3px; line-height:1.3;
}
.product-code{
  font-family:var(--font-alt); font-size:10px; color:var(--gray-light);
  letter-spacing:1px; margin-bottom:11px;
}
.product-footer{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:10px; border-top:1px solid var(--border);
}
.price-old{ font-size:11px; color:var(--gray-light); text-decoration:line-through; }
.price-new{ font-family:var(--font-head); font-size:22px; font-weight:700; color:var(--black); }
.stock-pill{
  font-family:var(--font-alt); font-size:9px; font-weight:700;
  letter-spacing:1px; text-transform:uppercase; padding:3px 8px; border-radius:100px;
}
.stock-in{ background:#E8F7EF; color:#1FA35A; }
.stock-out{ background:#FDECEA; color:var(--red); }
.btn-add{
  background:var(--yellow); border:none; color:var(--black);
  width:34px; height:34px; border-radius:8px; cursor:pointer;
  font-size:20px; display:flex; align-items:center; justify-content:center;
  transition:all .2s; flex-shrink:0; font-weight:700;
}
.btn-add:hover{ background:var(--yellow-dark); transform:scale(1.1); }

/* PROMOTIONS */
.promos-grid{ display:grid; grid-template-columns:2fr 1fr 1fr; gap:16px; }
.promo-card{
  border-radius:14px; padding:36px;
  position:relative; overflow:hidden;
  display:flex; flex-direction:column; justify-content:flex-end;
  min-height:260px; cursor:pointer; transition:transform .3s;
}
.promo-card:hover{ transform:scale(1.02); }
.promo-main{ background:var(--black); border:1px solid rgba(245,197,66,.2); }
.promo-card-2{ background:var(--gray-dark); }
.promo-card-3{ background:var(--dark); border:1px solid var(--border); }
.promo-pill{
  display:inline-block; background:var(--yellow); color:var(--black);
  font-family:var(--font-alt); font-weight:800; font-size:11px;
  letter-spacing:2px; text-transform:uppercase;
  padding:5px 14px; border-radius:100px; margin-bottom:12px;
}
.promo-discount{
  font-family:var(--font-head); font-size:58px; font-weight:700;
  line-height:1; color:var(--yellow); margin-bottom:4px;
}
.promo-title{
  font-family:var(--font-head); font-size:20px; font-weight:700;
  letter-spacing:.5px; color:white; margin-bottom:6px;
}
.promo-desc{ font-size:12px; color:rgba(255,255,255,.55); line-height:1.5; margin-bottom:16px; }

/* MAINTENANCE INFO */
.info-tabs{
  display:flex; gap:0; border-bottom:2px solid var(--border); margin-bottom:36px; overflow-x:auto;
}
.info-tab{
  font-family:var(--font-alt); font-weight:700; font-size:11px;
  letter-spacing:1.5px; text-transform:uppercase; color:var(--gray);
  padding:12px 20px; cursor:pointer; border:none; background:none;
  border-bottom:2px solid transparent; margin-bottom:-2px; transition:all .2s; white-space:nowrap;
}
.info-tab.active{ color:var(--black); border-bottom-color:var(--yellow); }
.info-tab:hover:not(.active){ color:var(--dark); }
.info-panel{ display:none; }
.info-panel.active{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }

.info-visual{
  background:var(--gray-bg); border:1.5px solid var(--border);
  border-radius:16px; min-height:260px;
  display:flex; align-items:center; justify-content:center;
  font-size:88px; position:relative; overflow:hidden;
}
.info-content h3{
  font-family:var(--font-head); font-size:32px; font-weight:700;
  letter-spacing:1px; margin-bottom:12px; color:var(--black);
}
.info-content h3 em{ color:var(--yellow-dark); font-style:normal; }
.info-content p{ font-size:14px; font-weight:300; color:var(--gray); line-height:1.7; margin-bottom:18px; }
.info-list{ list-style:none; display:flex; flex-direction:column; gap:10px; margin-bottom:22px; }
.info-list li{
  display:flex; align-items:flex-start; gap:10px;
  font-size:13px; color:var(--gray-dark); line-height:1.5;
}
.info-list li::before{
  content:''; width:4px; height:4px; border-radius:50%; background:var(--yellow-dark);
  flex-shrink:0; margin-top:7px;
}

/* LOCATION */
.location-section{
  background:var(--black);
  display:grid; grid-template-columns:1fr 1fr;
  gap:60px; align-items:center; padding:72px 80px;
}
.loc-info h2{
  font-family:var(--font-head); font-size:48px; font-weight:700;
  letter-spacing:1px; line-height:1; margin-bottom:28px;
  color:var(--white);
}
.loc-info h2 em{ color:var(--yellow); font-style:normal; }
.loc-detail{
  display:flex; align-items:flex-start; gap:14px; margin-bottom:20px;
}
.loc-detail-icon{
  width:38px; height:38px; background:rgba(245,197,66,.1); border:1px solid rgba(245,197,66,.2);
  border-radius:8px; display:flex; align-items:center; justify-content:center;
  font-size:17px; flex-shrink:0;
}
.loc-detail-text{ font-size:14px; color:rgba(255,255,255,.55); line-height:1.5; }
.loc-detail-text strong{ color:var(--white); font-weight:600; display:block; margin-bottom:2px; }
.map-box{
  background:var(--dark); border:1px solid rgba(245,197,66,.15);
  border-radius:16px; min-height:300px; overflow:hidden; position:relative;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px;
}
.map-pin{ font-size:52px; animation:bounce 2s ease-in-out infinite; }
@keyframes bounce{ 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.map-addr{
  font-family:var(--font-alt); font-weight:700; font-size:12px;
  letter-spacing:2px; color:var(--yellow); text-transform:uppercase; text-align:center; line-height:1.6;
}
.map-link{
  display:inline-flex; align-items:center; gap:7px;
  background:var(--yellow); color:var(--black);
  padding:10px 22px; border-radius:7px;
  font-family:var(--font-alt); font-weight:800; font-size:11px;
  letter-spacing:2px; text-transform:uppercase; text-decoration:none; transition:all .2s;
}
.map-link:hover{ background:#ffd700; transform:translateY(-2px); }

/* CART SIDEBAR */
.cart-overlay{
  position:fixed; inset:0; z-index:8990;
  background:rgba(0,0,0,.35); opacity:0; pointer-events:none; transition:opacity .3s;
}
.cart-overlay.open{ opacity:1; pointer-events:all; }
.cart-sidebar{
  position:fixed; right:-420px; top:0; bottom:0; width:400px; z-index:8999;
  background:var(--white); border-left:2px solid var(--yellow);
  transition:right .4s cubic-bezier(.77,0,.175,1);
  display:flex; flex-direction:column;
  box-shadow:-10px 0 40px rgba(0,0,0,.12);
}
.cart-sidebar.open{ right:0; }
.cart-sidebar-header{
  padding:22px 22px 18px;
  border-bottom:1.5px solid var(--border);
  display:flex; align-items:center; justify-content:space-between;
}
.cart-sidebar-title{
  font-family:var(--font-head); font-size:20px; font-weight:700; letter-spacing:1px; color:var(--black);
}
.btn-close-cart{
  width:32px; height:32px; border-radius:50%; background:var(--gray-bg);
  border:none; cursor:pointer; font-size:16px; color:var(--gray);
  display:flex; align-items:center; justify-content:center; transition:all .2s;
}
.btn-close-cart:hover{ background:var(--yellow); color:var(--black); }
.cart-items{ flex:1; overflow-y:auto; padding:14px 22px; }
.cart-empty{ text-align:center; padding:60px 20px; color:var(--gray-light); }
.cart-empty-icon{ font-size:48px; margin-bottom:12px; }
.cart-item{
  display:flex; align-items:center; gap:12px;
  padding:12px 0; border-bottom:1px solid var(--border);
}
.ci-img{
  width:54px; height:54px; border-radius:8px; background:var(--gray-bg);
  display:flex; align-items:center; justify-content:center; flex-shrink:0; overflow:hidden;
}
.ci-img img{ max-width:44px; max-height:44px; object-fit:contain; }
.ci-info{ flex:1; }
.ci-name{ font-size:12px; font-weight:600; color:var(--dark); margin-bottom:2px; }
.ci-code{ font-family:var(--font-alt); font-size:10px; color:var(--gray-light); letter-spacing:1px; }
.ci-qty{ display:flex; align-items:center; gap:6px; margin-top:5px; }
.qty-btn{
  width:22px; height:22px; border-radius:5px;
  background:var(--gray-bg); border:1px solid var(--border);
  color:var(--dark); cursor:pointer; font-size:14px;
  display:flex; align-items:center; justify-content:center; transition:all .2s;
}
.qty-btn:hover{ border-color:var(--yellow); background:var(--yellow-light); }
.qty-num{ font-family:var(--font-alt); font-size:12px; font-weight:700; min-width:18px; text-align:center; }
.ci-price{
  font-family:var(--font-head); font-size:20px; font-weight:700; color:var(--black);
}
.cart-footer{ padding:18px 22px; border-top:1.5px solid var(--border); }
.cart-total-row{
  display:flex; justify-content:space-between; align-items:baseline; margin-bottom:14px;
}
.cart-total-label{ font-family:var(--font-alt); font-size:11px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--gray); }
.cart-total-amount{ font-family:var(--font-head); font-size:28px; font-weight:700; color:var(--black); }

/* CHECKOUT MODAL */
.modal-overlay{
  position:fixed; inset:0; z-index:9999;
  background:rgba(0,0,0,.65);
  backdrop-filter:blur(6px);
  display:none; align-items:center; justify-content:center; padding:20px;
}
.modal-overlay.open{ display:flex; animation:fadeIn .3s; }
@keyframes fadeIn{ from{opacity:0} to{opacity:1} }
.modal{
  background:var(--white); border-radius:20px;
  width:100%; max-width:980px; max-height:92vh; overflow-y:auto;
  animation:slideUp .4s cubic-bezier(.34,1.56,.64,1);
  box-shadow:0 30px 80px rgba(0,0,0,.25);
}
@keyframes slideUp{ from{transform:translateY(50px) scale(.97);opacity:0} to{transform:translateY(0) scale(1);opacity:1} }
.modal-header{
  padding:26px 36px; border-bottom:1.5px solid var(--border);
  display:flex; align-items:center; justify-content:space-between;
  background:var(--black); border-radius:20px 20px 0 0;
}
.modal-title{
  font-family:var(--font-head); font-size:26px; font-weight:700;
  letter-spacing:1px; color:var(--white);
}
.modal-title em{ color:var(--yellow); font-style:normal; }
.modal-close{
  width:34px; height:34px; border-radius:50%;
  background:rgba(255,255,255,.1); border:none; color:white;
  font-size:17px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all .2s;
}
.modal-close:hover{ background:var(--yellow); color:var(--black); }
.modal-body{ padding:32px 36px; }
.checkout-grid{ display:grid; grid-template-columns:1.1fr 1fr; gap:36px; }
.checkout-sec h4{
  font-family:var(--font-alt); font-weight:800; font-size:10px;
  letter-spacing:3px; text-transform:uppercase; color:var(--yellow-dark);
  margin-bottom:16px; padding-bottom:8px;
  border-bottom:1px solid var(--border);
}
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:10px; }
.form-row.full{ grid-template-columns:1fr; }
.form-group label{
  font-family:var(--font-alt); font-size:10px; font-weight:700; color:var(--gray);
  letter-spacing:1.5px; text-transform:uppercase; display:block; margin-bottom:5px;
}
.form-group input, .form-group select{
  width:100%; background:var(--gray-bg); border:1.5px solid var(--border);
  border-radius:8px; padding:9px 13px;
  color:var(--dark); font-size:13px; outline:none; transition:border-color .2s;
  font-family:var(--font-body);
}
.form-group input:focus, .form-group select:focus{
  border-color:var(--yellow); box-shadow:0 0 0 3px rgba(245,197,66,.1);
  background:var(--white);
}
.payment-opts{ display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:14px; }
.pay-opt{
  background:var(--gray-bg); border:1.5px solid var(--border);
  border-radius:10px; padding:12px 14px; cursor:pointer; transition:all .2s;
  display:flex; align-items:center; gap:9px;
}
.pay-opt.sel{ border-color:var(--yellow); background:var(--yellow-light); }
.pay-opt-icon{ font-size:20px; }
.pay-opt-name{ font-family:var(--font-alt); font-weight:700; font-size:12px; color:var(--dark); }
.pay-opt-sub{ font-size:10px; color:var(--gray); margin-top:1px; }
.order-sum{ background:var(--gray-bg); border-radius:12px; padding:22px; }
.order-items{ display:flex; flex-direction:column; gap:10px; margin-bottom:16px; }
.oi{ display:flex; align-items:center; gap:10px; }
.oi-img{
  width:42px; height:42px; background:var(--white); border-radius:7px;
  border:1px solid var(--border); display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.oi-img img{ max-width:34px; max-height:34px; object-fit:contain; }
.oi-name{ font-size:12px; font-weight:500; color:var(--dark); flex:1; }
.oi-price{ font-family:var(--font-head); font-size:16px; font-weight:700; color:var(--black); }
.sum-divider{ height:1px; background:var(--border); margin:12px 0; }
.sum-row{ display:flex; justify-content:space-between; font-size:12px; color:var(--gray); margin-bottom:6px; }
.sum-total{ display:flex; justify-content:space-between; align-items:baseline; }
.sum-total span:first-child{
  font-family:var(--font-alt); font-weight:800; font-size:10px; letter-spacing:2px; text-transform:uppercase; color:var(--gray);
}
.sum-total span:last-child{ font-family:var(--font-head); font-size:30px; font-weight:700; color:var(--black); }
.secure-note{
  display:flex; align-items:center; gap:6px;
  font-family:var(--font-alt); font-size:10px; color:var(--gray); margin-top:10px;
}
.pay-logos{ display:flex; gap:6px; flex-wrap:wrap; margin-top:14px; padding:12px; background:var(--white); border-radius:8px; border:1px solid var(--border); }
.pay-logo-chip{
  padding:4px 10px; background:var(--gray-bg); border-radius:5px;
  font-family:var(--font-alt); font-size:10px; font-weight:700;
  color:var(--gray-dark); letter-spacing:.5px;
}

/* SEARCH RESULTS */
.search-overlay{
  position:fixed; inset:0; z-index:8000;
  background:rgba(0,0,0,.7); backdrop-filter:blur(10px);
  display:none; align-items:flex-start; justify-content:center; padding:100px 40px 40px;
}
.search-overlay.open{ display:flex; animation:fadeIn .25s; }
.search-box{
  background:var(--white); border-radius:16px;
  width:100%; max-width:740px; max-height:72vh; overflow-y:auto;
  box-shadow:0 24px 60px rgba(0,0,0,.2);
}
.search-box-header{
  padding:20px 26px; border-bottom:1.5px solid var(--border);
  display:flex; align-items:center; justify-content:space-between;
  position:sticky; top:0; background:var(--white); border-radius:16px 16px 0 0; z-index:2;
}
.search-query-label{
  font-family:var(--font-head); font-size:18px; font-weight:700; color:var(--dark);
}
.search-query-label em{ color:var(--yellow-dark); font-style:normal; }
.search-body{ padding:14px; display:flex; flex-direction:column; gap:6px; }
.sri{
  display:flex; align-items:center; gap:14px;
  background:var(--gray-bg); border:1.5px solid transparent;
  border-radius:10px; padding:12px 14px; cursor:pointer; transition:border-color .2s;
}
.sri:hover{ border-color:var(--yellow); background:var(--yellow-light); }
.sri-img{
  width:50px; height:50px; background:var(--white); border-radius:8px;
  border:1px solid var(--border); display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.sri-img img{ max-width:40px; max-height:40px; object-fit:contain; }
.sri-name{ font-size:13px; font-weight:600; color:var(--dark); margin-bottom:2px; }
.sri-code{ font-family:var(--font-alt); font-size:10px; color:var(--yellow-dark); letter-spacing:1.5px; }
.sri-price{ font-family:var(--font-head); font-size:20px; font-weight:700; color:var(--black); }
.no-results{ text-align:center; padding:50px 20px; color:var(--gray); }

/* NOTIFICATION */
.notification{
  position:fixed; bottom:22px; left:50%; transform:translateX(-50%) translateY(80px);
  background:var(--dark); color:var(--white);
  padding:12px 22px; border-radius:100px;
  font-family:var(--font-alt); font-weight:700; font-size:12px; letter-spacing:1px;
  z-index:99999; transition:transform .4s cubic-bezier(.34,1.56,.64,1);
  white-space:nowrap; border:1.5px solid var(--yellow);
  display:flex; align-items:center; gap:8px;
}
.notification.show{ transform:translateX(-50%) translateY(0); }
.notification.toast-success{ background:var(--dark); border-color:var(--yellow); }
.notification.toast-error{ background:#3D1212; border-color:var(--red); color:#FFA0A0; }
.notification.toast-info{ background:#12253D; border-color:#4A9EDB; color:#A0CFFF; }

/* WHATSAPP BUTTON */
.wa-btn{
  position:fixed; bottom:28px; right:28px; z-index:9990;
  width:56px; height:56px; border-radius:50%;
  background:#25D366; display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 20px rgba(37,211,102,.4);
  transition:transform .2s; text-decoration:none;
  animation:waPulse 3s infinite;
}
.wa-btn:hover{ transform:scale(1.1); }
@keyframes waPulse{
  0%,100%{box-shadow:0 4px 20px rgba(37,211,102,.4)}
  50%{box-shadow:0 4px 40px rgba(37,211,102,.7)}
}

/* ============================================================
   CHATBOT - Asistente virtual con respuestas automáticas
   Patrón: keyword matching en objeto botR
   ============================================================ */

/* CHATBOT WIDGET */
/* CHATBOT DRAGGABLE CONTAINER — position managed by JS drag logic */
.chat-draggable{
  position:fixed; bottom:96px; right:28px; z-index:9989;
  user-select:none; touch-action:none;
}
.chat-btn{
  width:52px; height:52px; border-radius:50%;
  background:var(--black); border:2px solid var(--yellow);
  display:flex; align-items:center; justify-content:center;
  cursor:grab; transition:background .3s, border-color .3s, box-shadow .3s;
  box-shadow:0 4px 20px rgba(0,0,0,.25);
  animation:chatPulse 4s infinite 2s;
  position:relative;
}
.chat-btn:active{ cursor:grabbing; }
.chat-btn.dragging{ cursor:grabbing; box-shadow:0 12px 36px rgba(0,0,0,.4); transform:scale(1.08); }
.chat-btn:hover{ background:var(--yellow); border-color:var(--yellow); }
.chat-btn:hover svg{ fill:var(--black); }
.chat-btn svg{ fill:var(--yellow); transition:fill .2s; }

/* Drag hint tooltip */
.chat-drag-hint{
  position:absolute; bottom:58px; right:0;
  background:var(--black); color:rgba(255,255,255,.7);
  font-family:var(--font-alt); font-size:10px; font-weight:600;
  letter-spacing:.5px; white-space:nowrap;
  padding:5px 10px; border-radius:6px;
  border:1px solid rgba(245,197,66,.2);
  opacity:0; transition:opacity .3s;
  pointer-events:none;
}
.chat-draggable:hover .chat-drag-hint{ opacity:1; }
@keyframes chatPulse{
  0%,100%{box-shadow:0 4px 20px rgba(0,0,0,.25)}
  50%{box-shadow:0 4px 32px rgba(245,197,66,.5)}
}
.chat-badge{
  position:absolute; top:-4px; right:-4px;
  background:var(--red); color:white;
  width:16px; height:16px; border-radius:50%;
  font-size:9px; font-weight:800;
  display:flex; align-items:center; justify-content:center;
  animation:badgePop .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes badgePop{ from{transform:scale(0)} to{transform:scale(1)} }

.chat-window{
  position:absolute; bottom:64px; right:0;
  width:330px; background:var(--white);
  border:1.5px solid var(--border); border-radius:18px;
  box-shadow:0 20px 60px rgba(0,0,0,.2);
  display:none; flex-direction:column; overflow:hidden;
  transform:scale(.92) translateY(10px); opacity:0;
  transition:transform .35s cubic-bezier(.34,1.56,.64,1), opacity .3s;
  transform-origin:bottom right;
  /* Keeps window inside viewport when btn is near edges */
  max-height:80vh;
}
.chat-window.open{ display:flex; transform:scale(1) translateY(0); opacity:1; }
/* Flip window to the LEFT when btn is too close to right edge (handled in JS) */
.chat-window.flip-left{ right:auto; left:0; transform-origin:bottom left; }
.chat-header{
  background:var(--black); padding:13px 16px;
  display:flex; align-items:center; gap:10px;
}
.chat-av{
  width:36px; height:36px; border-radius:50%;
  border:2px solid var(--yellow); object-fit:contain;
  background:var(--dark); flex-shrink:0;
}
.chat-hname{ font-family:var(--font-alt); font-weight:700; font-size:13px; color:var(--white); }
.chat-hstatus{
  font-size:10px; color:var(--green); display:flex; align-items:center; gap:4px;
}
.chat-hstatus::before{ content:''; width:5px; height:5px; background:var(--green); border-radius:50%; display:inline-block; }
.chat-close{ background:none; border:none; color:rgba(255,255,255,.5); font-size:16px; cursor:pointer; margin-left:auto; transition:color .2s; }
.chat-close:hover{ color:var(--white); }
.chat-msgs{ padding:14px; height:240px; overflow-y:auto; display:flex; flex-direction:column; gap:8px; }
.chat-msgs::-webkit-scrollbar{ width:3px; }
.chat-msgs::-webkit-scrollbar-thumb{ background:rgba(245,197,66,.3); border-radius:2px; }
.cmsg{ max-width:86%; animation:fadeInUp .3s ease; }
@keyframes fadeInUp{ from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }
.cmsg.bot{ align-self:flex-start; }
.cmsg.user{ align-self:flex-end; }
.cbubble{ padding:9px 13px; border-radius:13px; font-size:12px; line-height:1.5; }
.cmsg.bot .cbubble{ background:var(--gray-bg); border:1px solid var(--border); border-bottom-left-radius:3px; color:var(--dark); }
.cmsg.user .cbubble{ background:var(--yellow); color:var(--black); font-weight:600; border-bottom-right-radius:3px; }
.chat-qrs{ display:flex; flex-wrap:wrap; gap:5px; padding:0 14px 10px; }
.cqr{
  background:transparent; border:1px solid var(--yellow-dark); border-radius:100px;
  padding:5px 11px; font-family:var(--font-alt); font-size:10px; font-weight:700;
  color:var(--yellow-dark); cursor:pointer; transition:all .2s; letter-spacing:.5px;
}
.cqr:hover{ background:var(--yellow); border-color:var(--yellow); color:var(--black); }
.chat-input-row{
  display:flex; gap:7px; align-items:center; padding:10px 14px;
  border-top:1px solid var(--border);
}
.chat-input{
  flex:1; background:var(--gray-bg); border:1.5px solid var(--border);
  border-radius:8px; padding:7px 11px; color:var(--dark); font-size:12px; outline:none;
  font-family:var(--font-body); transition:border-color .2s;
}
.chat-input:focus{ border-color:var(--yellow); background:var(--white); }
.chat-input::placeholder{ color:var(--gray-light); font-size:11px; }
.chat-send{
  background:var(--yellow); border:none; color:var(--black);
  width:32px; height:32px; border-radius:8px; cursor:pointer;
  display:flex; align-items:center; justify-content:center; transition:all .2s; flex-shrink:0;
}
.chat-send:hover{ background:var(--yellow-dark); transform:scale(1.08); }
.chat-typing{ display:flex; align-items:center; gap:4px; padding:9px 13px; background:var(--gray-bg); border-radius:13px; border-bottom-left-radius:3px; width:fit-content; }
.cdot{ width:5px; height:5px; background:var(--gray); border-radius:50%; animation:tdot 1.2s infinite; }
.cdot:nth-child(2){ animation-delay:.2s; }
.cdot:nth-child(3){ animation-delay:.4s; }
@keyframes tdot{ 0%,60%,100%{transform:translateY(0);opacity:.4} 30%{transform:translateY(-5px);opacity:1} }

/* FOOTER */
footer{
  background:var(--black);
  padding:60px 80px 28px;
  border-top:3px solid var(--yellow);
}
.footer-grid{
  display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:50px; margin-bottom:44px;
}
.footer-about p{
  font-size:13px; color:rgba(255,255,255,.4); line-height:1.7; margin-top:14px; max-width:280px;
}
.footer-col h5{
  font-family:var(--font-alt); font-weight:800; font-size:10px;
  letter-spacing:3px; text-transform:uppercase; color:var(--yellow); margin-bottom:14px;
}
.footer-col a{
  display:block; font-size:12px; color:rgba(255,255,255,.4);
  text-decoration:none; margin-bottom:7px; transition:color .2s;
}
.footer-col a:hover{ color:var(--white); }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.06); padding-top:22px;
  display:flex; align-items:center; justify-content:space-between;
  font-family:var(--font-alt); font-size:11px; color:rgba(255,255,255,.2);
}
.socials{ display:flex; gap:8px; }
.soc-btn{
  width:34px; height:34px; border-radius:8px;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:center;
  text-decoration:none; transition:all .2s; cursor:pointer;
}
.soc-btn:hover{ background:rgba(245,197,66,.2); border-color:var(--yellow); }

/* SCROLL REVEAL */
.reveal{ opacity:0; transform:translateY(30px); transition:opacity .65s ease, transform .65s ease; }
.reveal.vis{ opacity:1; transform:translateY(0); }

/* MISC */
.btn-primary{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--yellow); color:var(--black);
  padding:12px 26px; border-radius:8px;
  font-family:var(--font-alt); font-weight:800; font-size:11px;
  letter-spacing:2px; text-transform:uppercase;
  text-decoration:none; border:none; cursor:pointer; transition:all .25s;
}
.btn-primary:hover{ background:var(--yellow-dark); transform:translateY(-1px); box-shadow:0 6px 24px rgba(245,197,66,.3); }
.see-all{
  font-family:var(--font-alt); font-weight:700; font-size:11px;
  letter-spacing:2px; text-transform:uppercase; color:var(--yellow-dark);
  text-decoration:none; display:flex; align-items:center; gap:5px;
  border-bottom:1px solid transparent; transition:border-color .2s;
}
.see-all:hover{ border-bottom-color:var(--yellow-dark); }
.section-hdr-row{ display:flex; align-items:flex-end; justify-content:space-between; }

/* ============================================================
   SISTEMA DE AUTENTICACIÓN — Botón + Dropdown (Navbar)
   ============================================================ */
.btn-login{
  display:inline-flex; align-items:center; gap:7px;
  background:transparent;
  border:1.5px solid var(--border);
  border-radius:8px; padding:7px 14px;
  color:var(--dark); cursor:pointer;
  font-family:var(--font-alt); font-weight:700; font-size:12px; letter-spacing:.5px;
  transition:all .2s; white-space:nowrap;
}
.btn-login:hover{ border-color:var(--yellow); background:var(--yellow-light); }
.btn-login.logged-in{ border-color:var(--yellow); background:var(--yellow); color:var(--black); }

.auth-dropdown{
  position:absolute; top:calc(100% + 10px); right:0;
  width:290px;
  background:var(--white);
  border:1.5px solid var(--border);
  border-radius:14px;
  box-shadow:0 16px 48px rgba(0,0,0,.14);
  z-index:2000;
  display:none; flex-direction:column;
  overflow:hidden;
  animation:dropDown .25s cubic-bezier(.34,1.56,.64,1);
  transform-origin:top right;
}
.auth-dropdown.open{ display:flex; }
@keyframes dropDown{
  from{ opacity:0; transform:scale(.92) translateY(-8px); }
  to{ opacity:1; transform:scale(1) translateY(0); }
}
.auth-dropdown-header{
  display:flex; align-items:center; gap:12px;
  padding:16px 16px 12px;
  border-bottom:1px solid var(--border);
  background:var(--gray-bg);
}
.auth-avatar{
  width:38px; height:38px; border-radius:50%;
  background:var(--yellow); color:var(--black);
  font-family:var(--font-head); font-size:16px; font-weight:700;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; border:2px solid var(--yellow-dark);
}

/* ============================================================
   MARCAS DE VEHÍCULOS — Cards con logo + panel expandible
   ============================================================ */
.brands-logos-grid{
  display:flex; gap:20px; justify-content:center; flex-wrap:wrap; margin-top:8px;
}
.brand-logo-card{
  background:var(--white); border:2px solid var(--border); border-radius:18px;
  padding:28px 44px; cursor:pointer;
  transition:all .35s cubic-bezier(.34,1.56,.64,1);
  display:flex; flex-direction:column; align-items:center; gap:14px;
  min-width:178px; box-shadow:var(--shadow-sm);
  outline:none; position:relative;
}
.brand-logo-card:hover{
  border-color:var(--yellow);
  box-shadow:0 10px 36px rgba(245,197,66,.22);
  transform:translateY(-7px);
}
.brand-logo-card.active{
  border-color:var(--yellow-dark);
  background:var(--yellow-light);
  box-shadow:0 10px 36px rgba(245,197,66,.3);
  transform:translateY(-4px);
}
.brand-logo-img-wrap{
  width:130px; height:70px;
  display:flex; align-items:center; justify-content:center;
}
.brand-img{
  width:130px; height:70px;
  object-fit:contain;
  filter:grayscale(1) opacity(.65);
  transition:filter .35s ease;
}
.brand-logo-card:hover .brand-img,
.brand-logo-card.active .brand-img{
  filter:grayscale(0) opacity(1);
}
.brand-logo-name{
  font-family:var(--font-alt); font-size:10px; font-weight:700;
  letter-spacing:2.5px; text-transform:uppercase; color:var(--gray);
}

/* Panel expandible */
.brand-panel-wrap{
  max-height:0; overflow:hidden;
  transition:max-height .55s cubic-bezier(.4,0,.2,1), margin-top .3s;
  margin-top:0;
}
.brand-panel-wrap.open{ max-height:320px; margin-top:28px; }
.brand-panel{
  background:var(--white); border:1.5px solid var(--border); border-radius:18px;
  padding:28px 36px;
  display:flex; gap:32px; align-items:center; position:relative;
  box-shadow:var(--shadow-sm);
}
.brand-panel-close{
  position:absolute; top:14px; right:16px;
  background:none; border:1.5px solid var(--border); border-radius:50%;
  width:28px; height:28px; cursor:pointer; font-size:12px; color:var(--gray);
  display:flex; align-items:center; justify-content:center; transition:all .2s;
}
.brand-panel-close:hover{ background:var(--dark); color:var(--white); border-color:var(--dark); }
.brand-panel-logo{
  flex-shrink:0; width:110px; height:80px;
  display:flex; align-items:center; justify-content:center;
}
.brand-panel-logo svg{ width:110px; height:80px; color:var(--dark); }
.brand-panel-content{ flex:1; min-width:0; }
.brand-panel-title{
  font-family:var(--font-head); font-size:22px; font-weight:700;
  color:var(--dark); margin-bottom:6px; letter-spacing:.5px;
}
.brand-panel-desc{
  font-size:13px; color:var(--gray); margin-bottom:14px; line-height:1.55;
}
.brand-panel-cats{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px; }
.brand-cat-tag{
  background:var(--gray-bg); border:1.5px solid var(--border); border-radius:100px;
  padding:5px 14px;
  font-family:var(--font-alt); font-size:11px; font-weight:600; color:var(--dark);
  cursor:pointer; transition:all .2s; text-decoration:none; display:inline-block;
}
.brand-cat-tag:hover{ background:var(--yellow); border-color:var(--yellow); color:var(--black); }

/* ============================================================
   YAPPY — Integración Botón de Pago
   ============================================================ */

/* Icono Yappy en la lista de métodos de pago */
.pay-opt-yappy.sel{ border-color:#00C853 !important; background:rgba(0,200,83,.06); }
.pay-opt-yappy.sel .pay-opt-name{ color:#007A32; }
.yappy-icon{ background:transparent !important; }

/* Banner informativo dentro del checkout */
.yappy-checkout-banner{
  display:flex; align-items:center; justify-content:space-between;
  background:linear-gradient(135deg,#E8F5E9,#F1FFF5);
  border:1.5px solid #A5D6A7; border-radius:12px;
  padding:14px 18px; margin-bottom:14px; gap:12px;
}
.yappy-banner-left{ display:flex; align-items:center; gap:12px; }
.yappy-banner-title{ font-family:var(--font-alt); font-weight:800; font-size:14px; color:#1B5E20; letter-spacing:.5px; }
.yappy-banner-sub{ font-size:11px; color:#388E3C; margin-top:2px; }
.yappy-badge{
  background:#00C853; color:white;
  font-family:var(--font-alt); font-size:10px; font-weight:700;
  padding:4px 10px; border-radius:100px; letter-spacing:1px; white-space:nowrap;
}

/* Pasos del flujo Yappy */
.yappy-steps{ display:flex; flex-direction:column; gap:8px; margin-bottom:14px; }
.yappy-step{ display:flex; align-items:flex-start; gap:10px; }
.ys-num{
  width:22px; height:22px; border-radius:50%; flex-shrink:0;
  background:#00C853; color:white;
  font-family:var(--font-alt); font-size:11px; font-weight:800;
  display:flex; align-items:center; justify-content:center;
}
.ys-text{ font-size:12px; color:var(--gray); line-height:1.5; padding-top:2px; }
.ys-text strong{ color:var(--dark); }

/* Preview del monto total en Yappy */
.yappy-amount-preview{
  display:flex; align-items:center; justify-content:space-between;
  background:var(--gray-bg); border:1.5px solid #A5D6A7;
  border-radius:10px; padding:12px 16px;
  font-family:var(--font-alt); font-size:13px; color:var(--dark);
}
.yappy-amount-preview strong{ font-size:18px; color:#007A32; font-family:var(--font-head); }

/* ── OVERLAY DE REDIRECCIÓN ───────────────────────────────── */
.yappy-overlay{
  position:fixed; inset:0; z-index:99999;
  background:rgba(0,0,0,.75); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
  display:flex; align-items:center; justify-content:center;
  animation:fadeIn .25s ease;
}
.yappy-redirect-box{
  background:white; border-radius:24px; padding:40px 36px;
  max-width:420px; width:90%; text-align:center;
  box-shadow:0 32px 80px rgba(0,0,0,.3);
  position:relative;
}
.yappy-redirect-logo{ margin-bottom:18px; }
.yappy-redirect-title{
  font-family:var(--font-head); font-size:26px; font-weight:700;
  color:var(--dark); margin-bottom:20px;
}
.yappy-redirect-details{
  background:#F8FFF8; border:1.5px solid #C8E6C9; border-radius:12px;
  padding:16px 20px; margin-bottom:20px; text-align:left;
}
.yrd-row{
  display:flex; justify-content:space-between; align-items:center;
  font-size:13px; color:var(--gray); padding:4px 0;
  border-bottom:1px solid #E8F5E9;
}
.yrd-row:last-child{ border-bottom:none; }
.yrd-row strong{ color:var(--dark); font-weight:700; }
.yappy-progress-bar{
  height:5px; background:#E8E8E8; border-radius:10px;
  overflow:hidden; margin-bottom:12px;
}
.yappy-progress-fill{
  height:100%; width:0; background:#00C853; border-radius:10px;
  transition:width 3s linear;
}
.yappy-redirect-note{
  font-size:12px; color:var(--gray); margin-bottom:18px;
}
.yappy-go-btn{
  display:block; width:100%;
  background:#00C853; color:white;
  font-family:var(--font-alt); font-weight:800; font-size:13px;
  letter-spacing:1.5px; text-transform:uppercase;
  padding:14px; border-radius:10px; text-decoration:none;
  margin-bottom:10px; transition:background .2s;
}
.yappy-go-btn:hover{ background:#00A843; }
.yappy-cancel-btn{
  background:none; border:1.5px solid var(--border); border-radius:8px;
  padding:10px 24px; width:100%;
  font-family:var(--font-alt); font-size:12px; color:var(--gray);
  cursor:pointer; transition:all .2s;
}
.yappy-cancel-btn:hover{ border-color:var(--red); color:var(--red); }

/* ============================================================
   HAMBURGER — Botón menú móvil
   ============================================================ */
.hamburger{
  display:none;
  width:40px; height:40px;
  background:none; border:none; cursor:pointer; padding:4px;
  border-radius:8px; transition:background .2s; margin-left:8px;
}
.hamburger:hover{ background:var(--gray-bg); }
.hamburger span{
  display:block; width:22px; height:2px;
  background:var(--dark); border-radius:2px;
  transition:all .3s cubic-bezier(.4,0,.2,1);
}
.hamburger.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity:0; transform:scaleX(0); }
.hamburger.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width:1024px){
  .section{ padding:56px 40px; }
  .search-bar-section{ padding:24px 40px; }
  nav{ padding:0 28px; }
  .topbar{ padding:7px 28px; }
  .hero-content{ padding:60px 40px 100px; }
  footer{ padding:48px 40px 24px; }
  .location-section{ padding:56px 40px; }
  .products-grid{ grid-template-columns:repeat(3,1fr); }
  .promos-grid{ grid-template-columns:1fr 1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; gap:32px; }
  .cats-grid{ grid-template-columns:repeat(4,1fr); }
  .checkout-grid{ gap:24px; }
}

/* ============================================================
   RESPONSIVE — MÓVIL (≤ 768px)
   ============================================================ */
@media (max-width:768px){

  /* Ocultar cursor decorativo en táctil */
  .cursor, .cursor-ring{ display:none; }

  /* ── TOPBAR ───────────────────────────────────────────── */
  .topbar{ display:none; }

  /* ── NAVBAR ───────────────────────────────────────────── */
  nav{ padding:0 16px; height:60px; }
  .hamburger{
    display:flex; flex-direction:column;
    justify-content:center; align-items:center; gap:5px;
  }
  .nav-search-wrap{ display:none; }

  .logo img{ height:42px; width:42px; }
  .logo-name{ font-size:16px; }
  .logo-sub{ font-size:8px; letter-spacing:1.5px; }

  /* Nav links colapsan en menú desplegable */
  .nav-links{
    display:none;
    position:fixed; top:60px; left:0; right:0; bottom:0;
    background:var(--white); z-index:990;
    padding:20px 16px;
    border-top:2px solid var(--yellow);
    overflow-y:auto;
  }
  .nav-links.mobile-open{ display:flex; flex-direction:column; gap:4px; }
  .nav-links a{
    font-size:15px; padding:14px 16px; border-radius:10px;
    border-bottom:1px solid var(--border);
    letter-spacing:.5px;
  }
  .nav-links a:last-child{ border-bottom:none; }
  .nav-links a::after{ display:none; }
  .nav-links a:hover{ background:var(--yellow-light); color:var(--black); }

  /* btn-login: solo ícono en móvil */
  .btn-login span#authLabel{ display:none; }
  .btn-login{ padding:7px 10px; }

  /* ── HERO ─────────────────────────────────────────────── */
  .hero{ min-height:0; }
  .hero-yellow-bar{ width:100%; clip-path:polygon(0 72%,100% 60%,100% 100%,0 100%); opacity:.7; }
  .hero-content{ padding:48px 20px 100px; max-width:100%; }
  .hero h1{ font-size:clamp(36px,10vw,52px); }
  .hero-sub{ font-size:14px; max-width:100%; }
  .hero-actions{ flex-direction:column; gap:10px; }
  .btn-hero-primary, .btn-hero-outline{ width:100%; justify-content:center; }
  .hero-stats{
    position:relative; right:auto; left:auto;
    clip-path:none; flex-wrap:wrap;
    background:var(--yellow);
    border-top:2px solid var(--yellow-dark);
  }
  .hero-stat{ flex:0 0 50%; padding:14px 16px; }
  .hero-stat .num{ font-size:24px; }
  .hero-stat .lbl{ font-size:9px; }

  /* ── SEARCH BAR ───────────────────────────────────────── */
  .search-bar-section{ padding:20px 16px; }
  .search-form{ grid-template-columns:1fr 1fr; gap:8px; }
  .search-form > .sf-group:last-of-type{ grid-column:1/-1; }
  .search-form > button{ grid-column:1/-1; width:100%; }

  /* ── SECTIONS ─────────────────────────────────────────── */
  .section{ padding:44px 16px; }
  .section-title{ font-size:clamp(26px,7vw,36px); }

  /* ── TRUST BAR ────────────────────────────────────────── */
  .trust-bar{ flex-wrap:wrap; }
  .trust-item{ flex:0 0 50%; border-bottom:1px solid rgba(0,0,0,.08); }
  .trust-item:nth-child(odd){ border-right:1px solid rgba(0,0,0,.08); }
  .trust-item:nth-last-child(-n+2){ border-bottom:none; }

  /* ── PRODUCTOS ────────────────────────────────────────── */
  .products-grid{ grid-template-columns:repeat(2,1fr); gap:10px; }
  .product-img-wrap{ height:130px; }
  .product-body{ padding:10px 12px; }
  .product-name{ font-size:12px; }
  .price-new{ font-size:18px; }
  .btn-add{ width:30px; height:30px; font-size:17px; }

  /* ── MARCAS ───────────────────────────────────────────── */
  .brands-logos-grid{ gap:10px; }
  .brand-logo-card{ min-width:calc(50% - 5px); flex:0 0 calc(50% - 5px); padding:18px 14px; border-radius:14px; }
  .brand-logo-img-wrap{ width:100px; height:56px; }
  .brand-img{ width:100px; height:56px; }
  .brand-panel{ flex-direction:column; gap:16px; padding:20px 16px; }
  .brand-panel-logo{ width:80px; height:56px; }
  .brand-panel-logo svg{ width:80px; height:56px; }
  .brand-panel-wrap.open{ max-height:600px; }
  .brand-panel-title{ font-size:18px; }

  /* ── CATEGORÍAS ───────────────────────────────────────── */
  .cats-grid{ grid-template-columns:repeat(3,1fr); gap:8px; }
  .cat-card{ padding:16px 8px; }
  .cat-card-icon{ width:42px; height:42px; }

  /* ── PROMOS ───────────────────────────────────────────── */
  .promos-grid{ grid-template-columns:1fr; gap:12px; }
  .promo-card{ min-height:200px; padding:24px; }
  .promo-discount{ font-size:44px; }

  /* ── MANTENIMIENTO ────────────────────────────────────── */
  .info-panel.active{ grid-template-columns:1fr; gap:20px; }
  .info-visual{ min-height:140px; font-size:60px; }
  .info-content h3{ font-size:24px; }

  /* ── UBICACIÓN ────────────────────────────────────────── */
  .location-section{
    grid-template-columns:1fr; gap:32px; padding:44px 16px;
  }
  .loc-info h2{ font-size:32px; }
  .map-box{ min-height:200px; }

  /* ── CART SIDEBAR ─────────────────────────────────────── */
  .cart-sidebar{ width:100%; right:-100%; }

  /* ── CHECKOUT MODAL ───────────────────────────────────── */
  .modal-overlay{ padding:0; align-items:flex-end; }
  .modal{
    border-radius:20px 20px 0 0; max-height:96vh;
    width:100%;
  }
  .modal-header{ padding:18px 20px; }
  .modal-title{ font-size:20px; }
  .modal-body{ padding:20px 16px; }
  .checkout-grid{ grid-template-columns:1fr; gap:20px; }
  .form-row{ grid-template-columns:1fr 1fr; }
  .payment-opts{ grid-template-columns:1fr 1fr; }

  /* ── FOOTER ───────────────────────────────────────────── */
  footer{ padding:44px 16px 20px; }
  .footer-grid{ grid-template-columns:1fr 1fr; gap:20px; margin-bottom:28px; }
  .footer-about p{ max-width:100%; }
  .footer-bottom{ flex-direction:column; gap:10px; text-align:center; }

  /* ── WHATSAPP ─────────────────────────────────────────── */
  .wa-btn{ bottom:16px; right:16px; width:48px; height:48px; }

  /* ── CHATBOT ──────────────────────────────────────────── */
  .chat-draggable{ bottom:74px; right:16px; }
  .chat-window{ width:calc(100vw - 32px); right:0; }
  .chat-drag-hint{ display:none; }

  /* ── SEARCH OVERLAY ───────────────────────────────────── */
  .search-overlay{ padding:80px 12px 12px; }

  /* ── NOTIFICACIONES ───────────────────────────────────── */
  .notification{ width:calc(100% - 32px); left:16px; right:16px; transform:translateX(0) translateY(80px); white-space:normal; text-align:center; }
  .notification.show{ transform:translateX(0) translateY(0); }
}

/* ============================================================
   RESPONSIVE — MÓVIL PEQUEÑO (≤ 480px)
   ============================================================ */
@media (max-width:480px){
  .hero h1{ font-size:clamp(30px,9vw,40px); }
  .hero-stat{ flex:0 0 50%; }

  .products-grid{ grid-template-columns:repeat(2,1fr); gap:8px; }
  .product-img-wrap{ height:110px; }
  .product-name{ font-size:11px; }

  .brand-logo-card{ padding:14px 10px; }
  .brand-img{ width:80px; height:46px; }

  .cats-grid{ grid-template-columns:repeat(2,1fr); }

  .form-row{ grid-template-columns:1fr; }
  .payment-opts{ grid-template-columns:1fr; }

  .footer-grid{ grid-template-columns:1fr; }

  .trust-item{ flex:0 0 100%; border-right:none !important; }

  .search-form{ grid-template-columns:1fr; }

  .yappy-checkout-banner{ flex-direction:column; align-items:flex-start; gap:8px; }
}

