/* ==========================================================================
   VARIABLES GLOBALES + RESET BASE
   Este bloque debe cargar SIEMPRE primero (header.php lo hace por defecto
   en WordPress). footer.css y front-page.css dependen de estas variables
   y de clases como .wrap, .eq, .logo, .visually-hidden.
   ========================================================================== */
:root{
  --navy-950:#070d18;
  --navy-900:#0a1628;
  --navy-800:#0f2138;
  --navy-700:#16314f;
  --gold-500:#C9A24A;
  --gold-400:#dab866;
  --gold-300:#f0cf7a;
  --cream:#f7f5f0;
  --ink:#141a22;
  --ink-soft:#5a6472;
  --green:#3ea855;
  --line: rgba(255,255,255,0.1);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:'Montserrat',sans-serif;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,.display{
  font-family:'Bebas Neue',sans-serif;
  letter-spacing:0.03em;
  line-height:1;
  margin:0;
}
a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}
button{font-family:inherit;cursor:pointer;}
ul{margin:0;padding:0;list-style:none;}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}
:focus-visible{outline:2px solid var(--gold-300);outline-offset:2px;}

.wrap{max-width:1280px;margin:0 auto;padding:0 24px;}

/* ============ EQ BARS — elemento de marca (se usa en header, hero y secciones) ============ */
.eq{display:inline-flex;align-items:flex-end;gap:3px;height:14px;}
.eq span{
  width:3px;border-radius:1px;
  background:linear-gradient(180deg,var(--gold-300),var(--gold-500));
  animation:eqpulse 1.1s ease-in-out infinite;
}
.eq span:nth-child(1){height:40%;animation-delay:-0.9s;}
.eq span:nth-child(2){height:100%;animation-delay:-0.6s;}
.eq span:nth-child(3){height:65%;animation-delay:-0.3s;}
.eq span:nth-child(4){height:85%;animation-delay:-1.1s;}
.eq span:nth-child(5){height:50%;animation-delay:-0.45s;}
@keyframes eqpulse{
  0%,100%{transform:scaleY(0.4);}
  50%{transform:scaleY(1);}
}
@media (prefers-reduced-motion: reduce){
  .eq span{animation:none;}
}

/* ============ HEADER — animación de entrada al cargar ============ */
@keyframes headerDrop{
  from{opacity:0;transform:translateY(-18px);}
  to{opacity:1;transform:none;}
}
.topbar,.site-header{
  opacity:0;
  animation:headerDrop .7s cubic-bezier(.16,.84,.44,1) forwards;
}
.topbar{animation-delay:0s;}
.site-header{animation-delay:.12s;}
@media (prefers-reduced-motion: reduce){
  .topbar,.site-header{opacity:1;animation:none;}
}

/* ============ BARRA SUPERIOR ============ */
.topbar{
  background:var(--navy-950);
  color:#c7cedb;
  font-size:12.5px;
  border-bottom:1px solid var(--line);
  position:relative;
  z-index:101;
}
.topbar .wrap{
  display:flex;justify-content:space-between;align-items:center;
  height:38px;
  gap:20px;
}
.topbar-left, .topbar-right{display:flex;align-items:center;gap:18px;}
.topbar a{opacity:0.85;transition:opacity .15s, color .15s;}
.topbar a:hover{opacity:1;color:var(--gold-300);}
.topbar-branch{display:flex;gap:6px;align-items:baseline;}
.topbar-branch b{color:var(--gold-400);font-weight:600;}
.whatsapp{display:flex;align-items:center;gap:6px;color:#8fe3a1;font-weight:600;}
.topbar-social{display:flex;gap:12px;}
.topbar-social svg{width:14px;height:14px;opacity:0.8;}
.topbar-social a:hover svg{opacity:1;}
@media (max-width:900px){
  .topbar-branch{display:none;}
}
@media (max-width:640px){
  .topbar .wrap{font-size:11px;height:34px;}
  .topbar-social{display:none;}
}

/* ============ HEADER PRINCIPAL ============ */
.site-header{
  position:relative;
  z-index:100;
  background:var(--navy-900);
  border-bottom:2px solid var(--gold-500);
}
.header-inner{
  display:flex;align-items:center;gap:32px;
  height:92px;
}

/* Logo lockup — se usa también en footer.html (.footer-about .logo) */
.logo{display:flex;align-items:center;gap:14px;flex-shrink:0;}
.logo-eq{display:flex;align-items:flex-end;gap:2px;height:30px;}
.logo-eq span{
  width:5px;border-radius:1px;
  background:linear-gradient(180deg,var(--gold-300) 0%, var(--gold-500) 60%, #8a6a24 100%);
}
.logo-eq span:nth-child(1){height:35%;}
.logo-eq span:nth-child(2){height:65%;}
.logo-eq span:nth-child(3){height:100%;}
.logo-eq span:nth-child(4){height:55%;}
.logo-eq span:nth-child(5){height:80%;}
.logo-eq span:nth-child(6){height:45%;}
.logo-text{line-height:0.9;}
.logo-text .club{
  display:block;
  font-family:'Bebas Neue',sans-serif;
  font-size:26px;
  letter-spacing:0.06em;
  background:linear-gradient(180deg,var(--gold-300), var(--gold-500));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.logo-text .puebla{
  display:block;
  font-size:10px;
  letter-spacing:0.45em;
  color:#eef1f5;
  margin-top:4px;
  font-weight:600;
}

.header-search{
  flex:1;
  display:flex;
  max-width:560px;
}
.header-search input{
  flex:1;
  border:none;
  border-radius:4px 0 0 4px;
  padding:0 16px;
  height:44px;
  font-family:inherit;
  font-size:14px;
  background:#fff;
  color:var(--ink);
}
.header-search input::placeholder{color:#9aa2ad;}
.header-search button{
  border:none;
  background:var(--gold-500);
  color:var(--navy-950);
  width:48px;
  border-radius:0 4px 4px 0;
  display:flex;align-items:center;justify-content:center;
  transition:background .15s;
}
.header-search button:hover{background:var(--gold-300);}
.header-search svg{width:18px;height:18px;}
@media (max-width:900px){
  .header-search{display:none;}
}

.header-actions{
  display:flex;align-items:center;gap:22px;
  margin-left:auto;
  flex-shrink:0;
}
.header-action{
  display:flex;flex-direction:column;align-items:center;gap:4px;
  color:#e9ecf1;font-size:10.5px;font-weight:600;letter-spacing:0.03em;
  position:relative;
  transition:color .15s;
}
.header-action:hover{color:var(--gold-300);}
.header-action svg{width:22px;height:22px;stroke:currentColor;}
.header-action .badge{
  position:absolute;top:-6px;right:-10px;
  background:var(--gold-500);color:var(--navy-950);
  font-size:9.5px;font-weight:800;
  width:16px;height:16px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
}
@media (max-width:640px){
  .header-action span:last-child{display:none;}
  .header-actions{gap:16px;}
}

.hamburger{
  display:none;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:5px;
  width:26px;height:20px;
  padding:0;
  background:transparent;
  border:none;
  -webkit-appearance:none;
  appearance:none;
}
.hamburger span{
  display:block;
  width:100%;
  height:2px;
  flex-shrink:0;
  background-color:var(--gold-400);
  border-radius:2px;
}
@media (max-width:900px){
  .hamburger{display:flex;}
}

/* ============ BARRA DE NAVEGACIÓN ============ */
.nav-bar{
  background:var(--navy-800);
  border-bottom:1px solid var(--line);
}
.nav-inner{display:flex;align-items:center;gap:2px;height:52px;}
.nav-inner > li{position:relative;height:100%;z-index:1;}
.nav-link{
  display:flex;align-items:center;gap:8px;height:100%;
  padding:0 18px;
  font-size:13px;font-weight:700;letter-spacing:0.04em;
  color:#eef1f5;
  text-transform:uppercase;
  border-bottom:3px solid transparent;
  transition:border-color .18s, color .18s;
}
.nav-link .eq span{background:linear-gradient(180deg,var(--gold-300),var(--gold-500));}
.nav-inner > li:hover .nav-link,
.nav-link.is-accent{
  color:var(--gold-300);
  border-bottom-color:var(--gold-500);
  z-index:50;
}
.nav-link.is-accent{color:var(--gold-400);}

.mega{
  z-index:200;
  position:absolute;top:100%;left:0;
  background:#ffffff;
  color:var(--ink);
  min-width:640px;
  padding:28px;
  border-radius:0 0 8px 8px;
  box-shadow:0 20px 40px rgba(7,13,24,0.25);
  border-top:3px solid var(--gold-500);
  gap:32px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  opacity:0;
  visibility:hidden;
  transform:translateY(-10px);
  pointer-events:none;
  transition:opacity .28s cubic-bezier(.16,.84,.44,1), transform .28s cubic-bezier(.16,.84,.44,1), visibility .28s;
}
.nav-inner > li:hover .mega{
  opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto;
}
.mega-col h4{
  font-family:'Montserrat',sans-serif;
  font-size:11.5px;font-weight:800;letter-spacing:0.06em;
  text-transform:uppercase;color:var(--navy-900);
  margin-bottom:12px;
  padding-bottom:8px;
  border-bottom:2px solid var(--cream);
}
.mega-col ul li{margin-bottom:9px;}
.mega-col ul li a{font-size:13px;color:#42505f;transition:color .15s;}
.mega-col ul li a:hover{color:var(--gold-500);}
@media (max-width:900px){
  .nav-bar{display:none;}
}

/* ============ DRAWER MÓVIL ============ */
.mobile-drawer{
  position:fixed;inset:0;
  background:rgba(7,13,24,0);
  z-index:50;
  visibility:hidden;
  pointer-events:none;
  transition:background .35s ease, visibility .35s;
  z-index:999;
}
.mobile-drawer.is-open{
  background:rgba(7,13,24,0.6);
  visibility:visible;
  pointer-events:auto;
}
.mobile-drawer-panel{
  display:block;
  width:82%;max-width:340px;height:100%;
  background:var(--navy-900);
  padding:20px;
  overflow-y:auto;
  transform:translateX(-100%);
  transition:transform .38s cubic-bezier(.16,.84,.44,1);
}
.mobile-drawer.is-open .mobile-drawer-panel{transform:translateX(0);}
@media (prefers-reduced-motion: reduce){
  .mobile-drawer,.mobile-drawer-panel{transition:none;}
}
.mobile-drawer-close{
  background:none;border:none;color:var(--gold-400);
  font-size:14px;font-weight:700;margin-bottom:18px;
  display:flex;align-items:center;gap:8px;
}
.mobile-drawer a{
  display:block;color:#eef1f5;font-weight:600;font-size:14px;
  padding:12px 4px;border-bottom:1px solid var(--line);
}
.mobile-drawer a:hover{color:var(--gold-300);}

/* ============ DRAWER: FILA SUPERIOR (Inicio | Categorías) ============ */
.mobile-drawer-top{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:6px 4px 20px;
  margin-bottom:10px;
  border-bottom:1px solid rgba(255,255,255,0.18);
}
.mobile-drawer-top-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  gap:7px;
  background:none;
  border:none;
  padding:10px 4px;
  color:#eef1f5;
  font-family:inherit;
  font-weight:700;
  font-size:15px;
  letter-spacing:0.03em;
  transition:color .15s;
}
.mobile-drawer-top-link:hover{color:var(--gold-300);}
.mobile-drawer-sep{
  color:var(--gold-500);
  opacity:0.55;
  font-weight:400;
}

/* Flechita del acordeón */
.accordion-caret{
  width:8px;height:8px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(45deg);
  transition:transform .32s cubic-bezier(.16,.84,.44,1);
}
.accordion-toggle[aria-expanded="true"] .accordion-caret{
  transform:rotate(-135deg);
}

/* ============ DRAWER: ACORDEÓN DE CATEGORÍAS ============ */
.mobile-accordion{
  max-height:0;
  overflow:hidden;
  transition:max-height .38s cubic-bezier(.16,.84,.44,1);
}
.mobile-accordion-inner{
  padding-bottom:6px;
}
.mobile-accordion a{
  padding:10px 4px 10px 20px;
  font-size:13.5px;
  color:#c7cedb;
  border-bottom:1px solid var(--line);
  position:relative;
}
.mobile-accordion a::before{
  content:"";
  position:absolute;
  left:4px;top:50%;
  width:4px;height:4px;
  border-radius:50%;
  background:var(--gold-500);
  transform:translateY(-50%);
}
.mobile-accordion a:hover{color:var(--gold-300);}

@media (prefers-reduced-motion: reduce){
  .mobile-accordion,.accordion-caret{transition:none;}
}