/* ═══════════════════════════════════════════════════════
   HEADER COMPARTIDO — /contacto · /legal
   ═══════════════════════════════════════════════════════ */

.shared-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: #fff;
  border-bottom: 1px solid rgba(13,13,13,0.10);
  height: 64px;
  display: flex;
  align-items: center;
}

.shared-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}

/* Logo */
.shared-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.shared-logo img {
  height: 48px;
  width: auto;
  display: block;
}

/* Pipe separator */
.shared-sep {
  display: inline-block;
  width: 1px;
  height: 22px;
  background: rgba(13,13,13,0.15);
  flex-shrink: 0;
  margin: 0 18px;
}

/* Nav links */
.shared-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.shared-nav a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #555;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.shared-nav a:hover,
.shared-nav a.nav-active {
  color: #F05A00;
  background: rgba(240,90,0,0.07);
}

/* Right side: sep + user */
.shared-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 0;
}

#userNavArea {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .shared-nav { display: none; }
  .shared-logo img { height: 40px; }
}

/* ═══════════════════════════════════════════════════════
   SHARED FOOTER — /contacto · /legal
   ═══════════════════════════════════════════════════════ */
.shared-footer {
  background: #111111;
  border-top: 3px solid #F05A00;
  padding: 48px 0 24px;
  margin-top: 64px;
}
.shared-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.shared-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}
.shared-footer-grid .footer-col-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}
.shared-footer-grid a {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.15s;
}
.shared-footer-grid a:hover { color: #F05A00; }
.shared-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}
@media (max-width: 640px) {
  .shared-footer-grid { grid-template-columns: 1fr 1fr; }
  .shared-footer { margin-top: 40px; padding: 36px 0 20px; }
}

/* ── Store footer CSS (used by contacto via this file) ── */
.site-footer {
  background: #111111; color: rgba(255,255,255,0.7);
  padding: 56px 0 24px; border-top: 1px solid #222;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px; margin-bottom: 48px;
}
.footer-brand-name {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem;
  letter-spacing: 0.12em; color: #fff; margin-bottom: 10px;
}
.footer-brand-desc { font-size: 0.85rem; line-height: 1.6; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: border-color 0.2s, color 0.2s;
}
.footer-social a:hover { border-color: #F05A00; color: #F05A00; }
.footer-social a svg { width: 16px; height: 16px; }
.footer-col-title {
  font-family: 'Barlow Condensed', sans-serif; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: #fff; margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 0.85rem;
  color: rgba(255,255,255,0.55); margin-bottom: 10px; text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: #F05A00; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid #222;
  font-family: 'Barlow Condensed', sans-serif; font-size: 0.7rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); flex-wrap: wrap; gap: 12px;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: #F05A00; }
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── Shared hamburger button ── */
.shared-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none;
  cursor: pointer;
  margin-left: 8px;
  padding: 6px;
  border-radius: 8px;
}
.shared-hamburger span {
  display: block; width: 20px; height: 2px;
  background: #111; border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.shared-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.shared-hamburger.open span:nth-child(2) { opacity:0; transform:scaleX(0); }
.shared-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay y drawer */
.shared-mobile-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 998;
}
.shared-mobile-overlay.open { display: block; }
.shared-mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(300px, 85vw); background: #fff;
  z-index: 999; display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.22,1,.36,1);
  box-shadow: -8px 0 32px rgba(0,0,0,.12);
  overflow-y: auto; overscroll-behavior: contain;
}
.shared-mobile-drawer.open { transform: translateX(0); }
.shared-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid rgba(13,13,13,.1); flex-shrink: 0;
}
.shared-drawer-links { display: flex; flex-direction: column; padding: 8px 0; }
.shared-drawer-links a {
  display: flex; align-items: center;
  padding: 16px 24px; min-height: 52px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .9rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #333; text-decoration: none;
  border-bottom: 1px solid rgba(13,13,13,.07);
  transition: color .15s, background .15s;
}
.shared-drawer-links a:hover,
.shared-drawer-links a.nav-active { color: #F05A00; background: rgba(240,90,0,.04); }

/* ── Legal sidebar "LEGAL" centrado en mobile ── */
@media (max-width: 768px) {
  .shared-hamburger { display: flex; }
  .legal-sidebar-title { text-align: center; }
  .legal-nav-links li { text-align: center; }
  .legal-nav-links a { justify-content: center; }
}

/* ══════════════════════════════════════════════════════════════
   UNIFIED MOBILE NAV — para páginas con shared-header
   ══════════════════════════════════════════════════════════════ */

/* La barra .fsf-nav--store es la navegación MÓVIL de las páginas que ya tienen
   su propio header de escritorio. En desktop no debe verse (evita que la
   píldora flotante con borde negro heredada de .fsf-nav aparezca mal ubicada).
   El @media de abajo la muestra en mobile con !important. */
.fsf-nav.fsf-nav--store { display: none; }

@media (max-width: 768px) {
  /* Ocultar shared-header en mobile */
  .shared-header { display: none !important; }

  /* Mostrar .fsf-nav mobile */
  .fsf-nav.fsf-nav--store {
    display: flex !important;
    position: fixed; top: 0; left: 0; right: 0;
    width: auto; border-radius: 0; border: none;
    border-bottom: 2px solid rgba(13,13,13,.10);
    padding: 0 16px; height: 56px; z-index: 1000;
    background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
    align-items: center; justify-content: space-between;
    box-shadow: none;
  }
  .fsf-nav.fsf-nav--store .nav-list { display: none; }
  .fsf-nav.fsf-nav--store .nav-brand { flex-shrink: 0; display: flex; align-items: center; }
  .fsf-nav.fsf-nav--store .nav-sep:not(.nav-sep--mobile) { display: none; }
  .fsf-nav.fsf-nav--store .nav-login-wrap { display: flex; align-items: center; gap: 6px; margin-left: auto; }
  .nav-sep--mobile { display: inline-block !important; color: rgba(13,13,13,.25); font-size: .8rem; }
  .nav-sep--desktop { display: none !important; }
  .nav-hamburger { display: flex !important; }

  /* Drawer y overlay */
  .mobile-nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 998; }
  .mobile-nav-overlay.open { display: block; }
  .mobile-nav-drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(300px, 85vw); background: #fff; z-index: 999;
    display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform .3s cubic-bezier(.22,1,.36,1);
    box-shadow: -8px 0 40px rgba(0,0,0,.12);
    overflow-y: auto; overscroll-behavior: contain;
  }
  .mobile-nav-drawer.open { transform: translateX(0); }
  .mobile-nav-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid rgba(13,13,13,.1); flex-shrink: 0;
  }
  .mobile-nav-close {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    background: none; border: none; color: #999; font-size: 1.4rem;
    cursor: pointer; border-radius: 8px; min-width: 40px; touch-action: manipulation;
  }
  .mobile-nav-links { display: flex; flex-direction: column; padding: 8px 0; flex: 1; }
  .mobile-nav-links a {
    display: flex; align-items: center; padding: 16px 24px; min-height: 52px;
    font-family: 'Barlow Condensed', sans-serif; font-size: .92rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; color: #333; text-decoration: none;
    border-bottom: 1px solid rgba(13,13,13,.07); transition: color .15s, background .15s;
  }
  .mobile-nav-links a:hover, .mobile-nav-links a.active { color: #F05A00; background: rgba(240,90,0,.04); }

  /* Hamburger */
  .nav-hamburger {
    flex-direction: column; justify-content: center; align-items: center;
    gap: 5px; width: 40px; height: 40px; background: none; border: none;
    cursor: pointer; padding: 6px; border-radius: 8px; flex-shrink: 0; margin-left: 4px;
    touch-action: manipulation;
  }
  .nav-hamburger span {
    display: block; width: 20px; height: 2px; background: #111;
    border-radius: 2px; transition: transform .25s, opacity .2s;
  }
  .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); }

  body { padding-top: 56px; }
}

/* ── Botón Ingresar en .fsf-nav--store mobile nav (legal, contacto) ── */
.fsf-nav--store #userNavArea,
.fsf-nav--store #userNavAreaDesktop {
  display: flex;
  align-items: center;
}
.fsf-nav--store .user-ingresar-btn,
.fsf-nav--store .user-nav-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #555;
  background: transparent;
  border: none;
  padding: 6px 4px;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  touch-action: manipulation;
}
.fsf-nav--store .user-ingresar-btn svg,
.fsf-nav--store .user-nav-btn svg {
  width: 16px; height: 16px; flex-shrink: 0;
}
