/* =======================================================
   layout.css · Navbar + footer
   ======================================================= */

/* ===== NAVBAR ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  min-height: var(--nav-height);
  padding-block: 12px;
  transform: translateZ(0);
}
.nav-shell {
  width: calc(100% - 32px);
  max-width: var(--container-max);
  margin-inline: auto;
  margin-top: 12px;
  padding: 8px 14px 8px 22px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(var(--blur-md)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--blur-md)) saturate(150%);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  transition: background var(--dur-base) var(--ease-out);
}
.nav.is-scrolled .nav-shell {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-elev);
}

.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  font-size: 1rem;
  letter-spacing: -0.015em;
}
.nav-brand img { width: 30px; height: 30px; }

.nav-links {
  display: flex; align-items: center;
  gap: clamp(16px, 2vw, 28px);
  list-style: none;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  position: relative;
  padding: 4px 2px;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--grad-aurora);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav-links a:hover { color: var(--color-text); }
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { padding: 9px 18px; font-size: var(--fs-sm); }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--glass-bg-mid);
  border: 1px solid var(--glass-border);
}
.nav-toggle span {
  position: relative;
  width: 18px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 100%; height: 2px;
  background: var(--color-text); border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span::after  { transform: translateY(-6px) rotate(-45deg); }

/* Menú móvil */
.nav-mobile {
  position: fixed;
  inset: calc(var(--nav-height) + 12px) 16px auto 16px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--blur-lg));
  -webkit-backdrop-filter: blur(var(--blur-lg));
  box-shadow: var(--shadow-elev);
  padding: var(--space-6);
  display: flex; flex-direction: column;
  gap: var(--space-3);
  transform: translateY(-20px) scale(.98);
  opacity: 0; pointer-events: none;
  transition:
    transform var(--dur-base) var(--ease-out),
    opacity var(--dur-base) var(--ease-out);
  z-index: 99;
  max-height: calc(100vh - var(--nav-height) - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nav-mobile.is-open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.nav-mobile a {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semi);
  color: var(--color-text);
  padding: 10px 4px;
  border-bottom: 1px solid rgba(30, 27, 75, 0.06);
}
.nav-mobile .mobile-actions {
  display: flex; flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(30, 27, 75, 0.10);
}
.nav-mobile .mobile-actions .btn { justify-content: center; }

/* ===== Section base ===== */
section.section {
  position: relative;
  padding-block: var(--section-pad-y);
}
.section-head {
  max-width: 760px;
  margin-bottom: var(--space-10);
}
.section-head.center { margin-inline: auto; text-align: center; }

/* ===== FOOTER ===== */
.site-footer {
  margin-top: var(--space-12);
  padding: var(--space-10) 0 var(--space-6);
}
.footer-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  padding: var(--space-8) clamp(20px, 4vw, 40px);
  box-shadow: var(--shadow-card);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}
.footer-brand { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-brand .footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
}
.footer-brand .footer-logo img { width: 32px; height: 32px; }
.footer-brand p { color: var(--color-text-muted); max-width: 320px; font-size: var(--fs-sm); }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-col a:hover { color: var(--color-brand); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(30, 27, 75, 0.08);
  font-size: var(--fs-xs);
  color: var(--color-text-dim);
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--color-text-muted);
  transition:
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}
.footer-social a:hover { background: var(--grad-aurora); color: #fff; border-color: transparent; }
/* ── Soporte / contacto — datos reales del sitio (branding.js · data-brand="soporte-*") ── */
.footer-contact {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 0;
}
.footer-contact .fc-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.875rem;
  line-height: 1.3;
  color: inherit;
  opacity: 0.82;
  transition: opacity 0.18s ease;
}
.footer-contact a.fc-item:hover { opacity: 1; }
.footer-contact .fc-item svg { flex: 0 0 auto; width: 16px; height: 16px; opacity: 0.7; }
.footer-contact .fc-item span { word-break: break-word; }
