/* ═══════════════════════════════════════════════════
   global.css — Variables, reset y estilos compartidos
   Tenis del Norte
═══════════════════════════════════════════════════ */

/* ── IMPORTS ─────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* ── VARIABLES ───────────────────────────────────── */
:root {
  /* ── TEMA C — Azul Medio (40% más claro que antes) ── */
  --navy:        #1e2f58;   /* fondo principal */
  --navy-mid:    #253870;   /* fondo secundario / drawer */
  --navy-light:  #2d4480;   /* hover, bordes internos */
  --gold:        #f5c518;
  --gold-light:  #ffd84d;
  --gold-dark:   #c9a000;
  --white:       #f0f4ff;   /* texto principal (no puro blanco) */
  --off-white:   #c5d0f0;
  --muted:       #8a9ec8;   /* texto secundario */
  --border:      rgba(245, 197, 24, 0.2);
  --card-bg:     #1a2850;   /* tarjetas */
  --green:       #25D366;
  --red:         #ff4d6d;
  --radius:      14px;
  --font-d:      'Bebas Neue', sans-serif;
  --font-b:      'Montserrat', sans-serif;
  --shadow-gold: 0 0 30px rgba(245, 197, 24, 0.25);
  --shadow-card: 0 4px 24px rgba(0, 0, 20, 0.35);
  --nav-h:       70px;
}

/* ── RESET ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-b);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Textura de fondo global */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image:
    radial-gradient(ellipse 90% 60% at 15% 10%, rgba(245,197,24,0.06) 0%, transparent 55%),
    radial-gradient(ellipse 70% 70% at 85% 85%, rgba(37,56,112,0.9)   0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(45,68,128,0.2)   0%, transparent 80%),
    repeating-linear-gradient(
      45deg, transparent, transparent 40px,
      rgba(255,255,255,0.008) 40px, rgba(255,255,255,0.008) 41px
    );
  pointer-events: none;
}

/* ── TIPOGRAFÍA BASE ─────────────────────────────── */
h1, h2, h3 { line-height: 1.1; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-b); cursor: pointer; }

/* ── NAV ─────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 0 32px;
  height: var(--nav-h);
  min-height: var(--nav-h); max-height: var(--nav-h);
  overflow: hidden;
  background: rgba(30, 47, 88, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; flex-shrink: 0;
}
/* Imagen del logo — tamaño fijo para no inflar el nav */
.nav-logo-img {
  width: 36px; height: 36px;
  object-fit: contain; display: block; flex-shrink: 0;
}
/* Si no hay logo, mostrar badge dorado como fallback */
.nav-logo-badge {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--gold);
  clip-path: polygon(50% 0%, 90% 15%, 100% 55%, 85% 90%, 50% 100%, 15% 90%, 0% 55%, 10% 15%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-size: 12px; color: var(--navy);
}
.nav-logo-text {
  font-family: var(--font-d); font-size: 20px;
  letter-spacing: 2px; color: var(--white); white-space: nowrap;
}
.nav-logo-text span { color: var(--gold); }

.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a {
  color: var(--muted); font-size: 12px; font-weight: 700;
  text-decoration: none; letter-spacing: 1.5px; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-cta {
  background: var(--gold); color: var(--navy);
  padding: 9px 22px; border-radius: 100px;
  font-size: 12px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase; text-decoration: none;
  transition: all 0.2s;
}
.nav-cta:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* ── Nav right (CTA + hamburger) ────────────────── */
.nav-right {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}

/* Hamburguesa: oculto en desktop */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background: none; border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 10px; cursor: pointer; padding: 8px; transition: border-color 0.2s;
}
.nav-hamburger:hover { border-color: var(--gold); }
.nav-hamburger span {
  display: block; width: 18px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
/* Animación X al abrir */
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── DRAWER MÓVIL ────────────────────────────────── */
.nav-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 500;
  width: min(320px, 85vw);
  background: var(--navy-mid);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
}
.nav-drawer.open { transform: translateX(0); }

.nav-overlay {
  position: fixed; inset: 0; z-index: 499;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }

.nav-drawer-inner {
  display: flex; flex-direction: column; height: 100%;
  padding: 0 0 32px;
}

.nav-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: var(--nav-h);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.nav-drawer-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  color: var(--white); font-size: 16px; cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.nav-drawer-close:hover { background: var(--red); border-color: var(--red); }

.nav-drawer-links {
  list-style: none; padding: 24px 0; flex: 1;
}
.nav-drawer-links li {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-drawer-links a {
  display: block; padding: 16px 28px;
  color: var(--muted); font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; text-decoration: none;
  transition: all 0.2s;
}
.nav-drawer-links a:hover,
.nav-drawer-links a.active {
  color: var(--gold); background: rgba(245,197,24,0.05);
  padding-left: 36px;
}

.nav-drawer-wa {
  margin: 0 24px; justify-content: center;
}

/* ── RESPONSIVE NAV ──────────────────────────────── */
@media (max-width: 910px) {
  .nav { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  /* Ocultar texto del logo en pantallas muy pequeñas para ahorrar espacio */
  @media (max-width: 380px) {
    .nav-logo-text { display: none; }
  }
}
@media (min-width: 900px) {
  .nav-hamburger { display: none; }
  .nav-drawer, .nav-overlay { display: none !important; }
}

/* ── BOTONES GLOBALES ────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--gold); color: var(--navy);
  padding: 15px 36px; border-radius: 100px; border: none;
  font-family: var(--font-b); font-size: 14px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase; text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 8px 28px rgba(245, 197, 24, 0.3);
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(245, 197, 24, 0.4);
}

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; color: var(--white);
  padding: 15px 36px; border-radius: 100px;
  font-family: var(--font-b); font-size: 14px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.25s; cursor: pointer;
}
.btn-secondary:hover {
  border-color: var(--gold); color: var(--gold);
  transform: translateY(-3px);
}

.btn-wa {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: #fff; border: none;
  padding: 12px 28px; border-radius: 100px;
  font-family: var(--font-b); font-size: 14px; font-weight: 700;
  text-decoration: none; transition: all 0.2s; cursor: pointer;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}
.btn-wa:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(37, 211, 102, 0.45);
}
.btn-wa svg { width: 18px; height: 18px; fill: #fff; flex-shrink: 0; }

/* ── SECCIONES GENÉRICAS ─────────────────────────── */
.section {
  position: relative; z-index: 1;
  padding: 100px 24px;
}
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold); font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 14px;
}
.section-label::before { content: ''; width: 24px; height: 2px; background: var(--gold); }

.section-title {
  font-family: var(--font-d);
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: 2px; line-height: 1; margin-bottom: 20px;
}
.section-title span { color: var(--gold); }

.gold-line {
  width: 60px; height: 3px; background: var(--gold);
  border-radius: 2px; margin: 0 auto 32px;
}

.gold-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0.25; margin: 20px 0;
}

.text-center { text-align: center; }
.hidden { display: none !important; }

/* ── FOOTER ──────────────────────────────────────── */
footer {
  position: relative; z-index: 1;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
}

/* ── Contenido del footer ────────────────────────── */
.footer-inner {
  max-width: 1000px; margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px; align-items: start;
}
@media (max-width: 750px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center; justify-items: center;
  }
}

/* Logo + nombre en el footer */
.footer-logo-wrap {
  display: flex; align-items: center; gap: 14px;
}
.footer-logo-img {
  width: 56px; height: 56px;
  object-fit: contain; display: block; flex-shrink: 0;
  /* Halo suave que resalta el logo sobre fondo oscuro */
  filter: drop-shadow(0 0 12px rgba(245,197,24,0.25));
}
.footer-logo-badge {
  width: 56px; height: 56px; flex-shrink: 0;
  background: var(--gold);
  clip-path: polygon(50% 0%,90% 15%,100% 55%,85% 90%,50% 100%,15% 90%,0% 55%,10% 15%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-size: 16px; color: var(--navy);
  filter: drop-shadow(0 0 10px rgba(245,197,24,0.3));
}
.footer-logo-text .footer-brand {
  font-family: var(--font-d); font-size: 22px;
  letter-spacing: 3px; color: var(--white);
  margin-bottom: 4px;
}
.footer-logo-text .footer-brand span { color: var(--gold); }
.footer-logo-text p {
  font-size: 11px; color: var(--muted); margin: 0;
  font-weight: 500; letter-spacing: 0.5px;
}

/* Nav links del footer */
.footer-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
@media (max-width: 700px) { .footer-nav { align-items: center; flex-direction: row; flex-wrap: wrap; justify-content: center; } }
.footer-nav .nav-links-footer {
  display: flex; gap: 20px; flex-wrap: wrap; list-style: none;
  justify-content: flex-start;
}
.footer-nav .nav-links-footer a {
  color: var(--muted); font-size: 11px; font-weight: 600;
  text-decoration: none; letter-spacing: 1px; text-transform: uppercase;
  transition: color 0.2s;
}
.footer-nav .nav-links-footer a:hover { color: var(--gold); }

/* Parte derecha: WA */
.footer-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
@media (max-width: 700px) { .footer-cta { align-items: center; } }

/* Línea inferior */
.footer-bottom {
  max-width: 960px; margin: 28px auto 0;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.footer-copy { font-size: 11px; color: var(--muted); }
.footer-made { font-size: 11px; color: var(--muted); }

/* ── ANIMACIONES ─────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}