/* =========================================================
 * HEADER E-COMMERCE v3 — Genechen Motor
 * Fuente de verdad: mockup_header_v3.html (diseño aprobado)
 * IMPORTANTE: todos los selectores están SCOPED bajo .gn-head/.drawer/.ov
 * para no filtrar estilos al resto del sitio WooCommerce en vivo.
 * Generado: 2026-06-30 · Reversible (quitar enqueue = sin efecto)
 * ============================================================ */

:root{
  --naranja:#E9501D;
  --naranja-2:#ff7a3d;
  --negro:#0A0A0C;
  --txt:#0A0A0C;
  --txt-soft:#6B7280;
  --glass:rgba(10,10,13,.88);
  --glass-line:rgba(255,255,255,.12);
  --glass-hi:rgba(255,255,255,.22);
}

/* reset SCOPED (no global, para no romper el resto del sitio) */
.gn-head *,.gn-head *::before,.gn-head *::after,
.drawer *,.drawer *::before,.drawer *::after{box-sizing:border-box;margin:0;padding:0}
.gn-head,.drawer{font-family:'Outfit',system-ui,sans-serif;color:var(--txt)}
.gn-head a,.drawer a{text-decoration:none;color:inherit}
.gn-head img,.drawer img{display:block}
.gn-head .wrap{max-width:1540px;margin:0 auto;padding:0 24px}

/* ============ HEADER ============ */
header.gn-head{position:sticky;top:0;z-index:60;margin:0}
.gn-head .glass{background:var(--glass);-webkit-backdrop-filter:blur(22px) saturate(135%);backdrop-filter:blur(22px) saturate(135%);
  border-bottom:1px solid var(--glass-line);box-shadow:0 10px 34px rgba(0,0,0,.45), inset 0 1px 0 var(--glass-hi)}

/* promo */
.gn-head .promo{font-size:12.5px;font-weight:600;letter-spacing:.04em;color:#f1e9e4;background:rgba(5,5,8,.8);border-bottom:1px solid rgba(255,255,255,.06)}
.gn-head .promo .wrap{display:flex;align-items:center;justify-content:center;gap:9px;height:34px;white-space:nowrap;overflow:hidden}
.gn-head .promo b{color:var(--naranja-2)}
.gn-head .promo .code{background:rgba(233,80,29,.92);color:#fff;padding:2px 9px;border-radius:6px;font-weight:800;letter-spacing:.06em;box-shadow:inset 0 1px 0 rgba(255,255,255,.3)}

/* ====== UNA SOLA FRANJA ====== */
.gn-head .bar{display:flex;align-items:center;gap:18px;height:80px;transition:height .25s ease}
.gn-head .logo img{height:52px;width:auto;transition:height .25s ease;filter:drop-shadow(0 2px 8px rgba(0,0,0,.4))}

/* nav inline */
.gn-head nav.inline{display:flex;align-items:stretch;gap:2px;height:100%}
.gn-head .nav-item{position:relative;display:flex;align-items:center}
.gn-head .nav-item > a{display:flex;align-items:center;gap:6px;height:44px;padding:0 15px;border-radius:11px;color:rgba(255,255,255,.84);font-weight:600;font-size:14.5px;cursor:pointer;transition:.15s}
.gn-head .nav-item > a .chev{width:13px;height:13px;stroke:rgba(255,255,255,.5);transition:.2s}
.gn-head .nav-item:hover > a{color:#fff;background:rgba(255,255,255,.09)}
.gn-head .nav-item:hover > a .chev{transform:rotate(180deg);stroke:#fff}
.gn-head .nav-item.sale > a{color:#fff;font-weight:800;letter-spacing:.03em;background:linear-gradient(180deg,rgba(233,80,29,.3),rgba(233,80,29,.14));border:1px solid rgba(233,80,29,.42)}
.gn-head .nav-item.sale > a::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--naranja);box-shadow:0 0 10px 2px rgba(233,80,29,.7)}

.gn-head .spacer{flex:1}

/* buscador compacto glass */
.gn-head .search{width:300px;display:flex;align-items:center;gap:9px;height:46px;padding:0 6px 0 14px;background:rgba(0,0,0,.3);border:1px solid rgba(0,0,0,.6);border-top-color:rgba(0,0,0,.8);border-bottom-color:rgba(255,255,255,.14);border-radius:13px;box-shadow:inset 0 4px 8px rgba(0,0,0,.8), inset 0 2px 3px rgba(0,0,0,.7), inset 0 -1.5px 1px rgba(255,255,255,.12), 0 1px 0 rgba(255,255,255,.06);transition:width .25s,background .2s,border-color .2s,box-shadow .2s}
.gn-head .search:focus-within{width:360px;background:rgba(0,0,0,.24);border-color:rgba(233,80,29,.8);box-shadow:inset 0 4px 8px rgba(0,0,0,.7), 0 0 0 3px rgba(233,80,29,.3), 0 0 16px rgba(233,80,29,.25)}
.gn-head .search > svg{width:18px;height:18px;stroke:rgba(255,255,255,.7);flex-shrink:0}
.gn-head .search input{flex:1;border:0;outline:0;background:none;font-family:inherit;font-size:14px;color:#fff;min-width:0}
.gn-head .search input::placeholder{color:rgba(255,255,255,.5);font-weight:500}
.gn-head .search .go{width:32px;height:32px;border:0;border-radius:9px;background:var(--naranja);color:#fff;display:grid;place-items:center;cursor:pointer;flex-shrink:0;box-shadow:inset 0 1px 0 rgba(255,255,255,.3)}
.gn-head .search .go svg{width:16px;height:16px;stroke:#fff}

/* acciones */
.gn-head .actions{display:flex;align-items:center;gap:4px}
.gn-head .act{display:flex;align-items:center;gap:9px;color:#eaeaee;padding:8px 11px;border-radius:11px;transition:.15s;border:1px solid transparent}
.gn-head .act:hover{background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.12)}
.gn-head .act svg{width:23px;height:23px;stroke:#fff;flex-shrink:0}
.gn-head .act .lbl{display:flex;flex-direction:column;line-height:1.12}
.gn-head .act .lbl small{font-size:10px;color:rgba(255,255,255,.55);font-weight:500}
.gn-head .act .lbl span{font-size:13px;font-weight:700;color:#fff;white-space:nowrap}
.gn-head .cart{position:relative}
.gn-head .cart .badge{position:absolute;top:1px;left:25px;background:var(--naranja);color:#fff;font-size:10.5px;font-weight:800;min-width:18px;height:18px;border-radius:10px;display:grid;place-items:center;padding:0 5px;border:2px solid #16131a}

.gn-head .burger,.gn-head .msearch-btn{display:none;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.13);border-radius:10px;cursor:pointer;padding:8px}
.gn-head .burger svg,.gn-head .msearch-btn svg{width:22px;height:22px;stroke:#fff}

/* ====== MEGA (más opaco) ====== */
.gn-head .mega{position:absolute;top:calc(100% + 10px);left:0;
  background:rgba(247,248,250,.985);
  -webkit-backdrop-filter:blur(30px) saturate(160%);backdrop-filter:blur(30px) saturate(160%);
  border:1px solid rgba(255,255,255,.85);border-radius:18px;
  box-shadow:0 34px 80px rgba(0,0,0,.45), inset 0 1px 0 #fff;
  padding:22px;opacity:0;visibility:hidden;transform:translateY(8px);transition:.2s;z-index:80}
.gn-head .nav-item:hover .mega{opacity:1;visibility:visible;transform:translateY(0)}
.gn-head .mega.m-uso{width:740px;display:grid;grid-template-columns:repeat(3,1fr);gap:6px 22px}
.gn-head .mega.m-veh{width:600px;display:grid;grid-template-columns:repeat(3,1fr);gap:6px 18px}
.gn-head .mega.m-marca{width:780px;display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.gn-head .mega-h{grid-column:1/-1;font-size:11.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--txt-soft);margin-bottom:4px}

.gn-head .opt{display:flex;gap:13px;align-items:flex-start;padding:11px;border-radius:13px;transition:background .15s}
.gn-head .opt:hover{background:#eef0f3}
.gn-head .opt .ic{width:42px;height:42px;border-radius:11px;background:rgba(233,80,29,.12);display:grid;place-items:center;flex-shrink:0;border:1px solid rgba(233,80,29,.18)}
.gn-head .opt .ic svg{width:23px;height:23px;stroke:var(--naranja)}
.gn-head .opt h5{font-size:14.5px;font-weight:700;color:var(--negro)}
.gn-head .opt p{font-size:11.5px;color:var(--txt-soft);margin-top:2px;line-height:1.35}

/* marca card con CHIP BLANCO grande */
.gn-head .marca{background:#fff;border:1px solid #e9e9ee;border-radius:14px;padding:14px;transition:.18s}
.gn-head .marca:hover{border-color:var(--naranja);box-shadow:0 12px 28px rgba(233,80,29,.16);transform:translateY(-2px)}
.gn-head .marca .logo-box{height:64px;background:#fff;border:1px solid #f0f0f3;border-radius:11px;display:flex;align-items:center;justify-content:center;margin-bottom:11px;padding:8px 16px}
.gn-head .marca .logo-box img{max-height:46px;max-width:170px;width:auto}
.gn-head .marca .models a{display:block;font-size:12.5px;color:#4b5563;padding:3px 0}
.gn-head .marca .models a:hover{color:var(--naranja)}
.gn-head .marca .all{display:inline-block;margin-top:7px;font-size:12px;font-weight:700;color:var(--naranja)}
.gn-head .mega-foot{grid-column:1/-1;margin-top:12px;padding-top:12px;border-top:1px solid rgba(0,0,0,.08);display:flex;align-items:center;justify-content:space-between}
.gn-head .mega-foot a{font-size:12.5px;font-weight:700;color:var(--naranja)}
.gn-head .mega-foot .mini{font-size:11.5px;color:var(--txt-soft)}

/* sticky compacto */
header.gn-head.shrink .bar{height:64px}
header.gn-head.shrink .logo img{height:42px}
header.gn-head.shrink .promo{display:none}

/* buscador móvil desplegable */
.gn-head .msearch{display:none;overflow:hidden;max-height:0;transition:max-height .28s ease;border-top:1px solid rgba(255,255,255,.07)}
.gn-head .msearch.open{max-height:80px}
.gn-head .msearch .inner{padding:12px 0;display:flex;gap:10px;align-items:center}
.gn-head .msearch .field{flex:1;display:flex;align-items:center;gap:10px;height:46px;padding:0 14px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);border-radius:13px}
.gn-head .msearch .field svg{width:18px;height:18px;stroke:rgba(255,255,255,.7)}
.gn-head .msearch .field input{flex:1;border:0;outline:0;background:none;color:#fff;font-family:inherit;font-size:15px}
.gn-head .msearch .field input::placeholder{color:rgba(255,255,255,.5)}

/* drawer */
.ov{position:fixed;inset:0;background:rgba(0,0,0,.5);opacity:0;visibility:hidden;transition:.25s;z-index:90}
.ov.open{opacity:1;visibility:visible}
.drawer{position:fixed;top:0;left:0;height:100%;width:88%;max-width:360px;z-index:95;transform:translateX(-100%);transition:transform .28s cubic-bezier(.4,0,.2,1);display:flex;flex-direction:column;background:rgba(18,18,22,.92);-webkit-backdrop-filter:blur(30px) saturate(180%);backdrop-filter:blur(30px) saturate(180%);border-right:1px solid rgba(255,255,255,.12);box-shadow:8px 0 40px rgba(0,0,0,.45)}
.drawer.open{transform:translateX(0)}
.drawer .dr-top{display:flex;align-items:center;justify-content:space-between;padding:18px 16px;border-bottom:1px solid rgba(255,255,255,.1)}
.drawer .dr-top img{height:38px}
.drawer .dr-x{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);border-radius:9px;cursor:pointer;padding:6px}
.drawer .dr-x svg{width:22px;height:22px;stroke:#fff}
.drawer .dr-body{flex:1;overflow-y:auto;padding:6px}
.drawer .acc{border-bottom:1px solid rgba(255,255,255,.08)}
.drawer .acc > button{width:100%;display:flex;align-items:center;justify-content:space-between;background:none;border:0;cursor:pointer;font-family:inherit;font-size:15px;font-weight:700;color:#fff;padding:15px 12px;text-align:left}
.drawer .acc > button .ar{width:18px;height:18px;stroke:var(--naranja);transition:transform .2s}
.drawer .acc.open > button .ar{transform:rotate(180deg)}
.drawer .acc-panel{max-height:0;overflow:hidden;transition:max-height .3s ease}
.drawer .acc.open .acc-panel{max-height:520px}
.drawer .acc-panel a{display:flex;align-items:center;gap:10px;padding:10px 12px 10px 16px;font-size:14px;color:rgba(255,255,255,.78)}
.drawer .acc-panel a .dot{width:6px;height:6px;border-radius:50%;background:var(--naranja);flex-shrink:0}
.drawer .acc-panel.brands{display:flex;flex-direction:column;gap:8px;padding:8px 10px}
.drawer .acc-panel.brands a{background:#fff;border-radius:10px;height:54px;justify-content:center;padding:8px 16px}
.drawer .acc-panel.brands img{max-height:34px;max-width:150px;width:auto}
.drawer .dr-link{display:flex;align-items:center;justify-content:space-between;padding:15px 12px;font-size:15px;font-weight:700;color:#fff;border-bottom:1px solid rgba(255,255,255,.08)}
.drawer .dr-link.sale{color:var(--naranja-2)}
.drawer .dr-foot{padding:14px;border-top:1px solid rgba(255,255,255,.1);display:flex;flex-direction:column;gap:10px}
.drawer .dr-btn{display:flex;align-items:center;justify-content:center;gap:9px;height:48px;border-radius:12px;font-weight:700;font-size:15px}
.drawer .dr-btn.cuenta{background:#fff;color:var(--negro)}
.drawer .dr-btn.wsp{background:#25D366;color:#fff}
.drawer .dr-btn svg{width:20px;height:20px}

/* responsive */
@media (max-width:1280px){ .gn-head .act .lbl{display:none} .gn-head .search{width:210px} .gn-head .search:focus-within{width:260px} }
@media (max-width:1080px){ .gn-head nav.inline .nav-item > a{padding:0 11px;font-size:14px} .gn-head .logo img{height:46px} }
@media (max-width:940px){
  .gn-head .burger{display:block}
  .gn-head nav.inline,.gn-head .search,.gn-head .spacer{display:none}
  .gn-head .msearch{display:block}
  .gn-head .msearch-btn{display:block}
  .gn-head .bar{height:64px;gap:12px}
  .gn-head .logo{flex:1;display:flex;justify-content:flex-start}
  .gn-head .logo img{height:38px}
  .gn-head .act.cuenta-act{display:none}
  .gn-head .promo{font-size:11px}
  .gn-head .promo .wrap{gap:6px;padding:0 12px}
  .gn-head .promo .code{padding:2px 7px}
}

/* ===== AJUSTES PRODUCCIÓN ===== */
/* compensar admin bar de WordPress cuando el usuario está logueado */
.admin-bar header.gn-head{top:32px}
@media (max-width:782px){ .admin-bar header.gn-head{top:46px} }

/* === OCULTAR HEADER ORIGINAL (Elementor Theme Builder, confirmado Fase 0) === */
.elementor-location-header{display:none !important;}
