/* ═══════════════════════════════════════════════════════════════
   CONSULTIA — Estilos compartidos (footer + scroll-to-top)
   ─────────────────────────────────────────────────────────────
   Este archivo es la ÚNICA fuente de verdad para estos estilos.
   Editarlo aquí aplica el cambio en las 4 páginas a la vez.
   No copiar estos bloques en el <style> de ninguna página.
   ═══════════════════════════════════════════════════════════════ */

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  flex-wrap: nowrap; gap: 16px;
  padding: 28px 6vw;
  border-top: 1px solid var(--border);
  background: rgba(4,9,26,0.6);
  font-size: 0.8rem; color: rgba(235,244,255,0.5);
}
footer a { color: var(--accent-light); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer > div:not(.footer-socials) {
  position: absolute; left: 50%; transform: translateX(-50%);
  text-align: center; white-space: nowrap; pointer-events: none;
}
footer > div:not(.footer-socials) a { pointer-events: auto; }
@media (max-width: 600px) {
  footer { flex-wrap: wrap; }
  footer > div:not(.footer-socials) {
    position: static; transform: none;
    white-space: normal; width: 100%; order: 3;
  }
}

/* ── FOOTER REDES SOCIALES ──────────────────────────────────── */
.footer-socials {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.footer-socials a {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 8px; color: var(--muted);
  text-decoration: none; transition: all 0.2s;
}
.footer-socials a:hover {
  background: rgba(30,136,229,0.2);
  border-color: var(--accent);
  color: var(--white);
}
.footer-socials svg { width: 15px; height: 15px; fill: currentColor; }

/* ── BOTÓN VOLVER ARRIBA ────────────────────────────────────── */
.btn-scroll-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  display: block;
  border-radius: 10px;
  box-shadow: inset 0 0 0 0.1rem rgba(30, 136, 229, 0.35),
              0 4px 20px rgba(4, 9, 26, 0.6);
  z-index: 1010;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem);
  transition: all 0.2s linear;
  background-color: #060d20;
  border: 1px solid rgba(30, 136, 229, 0.3);
}
.btn-scroll-top:after {
  position: absolute;
  content: "↑";
  text-align: center;
  line-height: 3rem;
  font-size: 1.4rem;
  font-weight: 300;
  font-family: 'Poppins', sans-serif;
  color: var(--accent-light);
  left: 0;
  top: 0;
  height: 3rem;
  width: 3rem;
  cursor: pointer;
  display: block;
  z-index: 1;
  transition: all 0.2s linear;
}
.btn-scroll-top:hover {
  background-color: #0b1428;
  box-shadow: inset 0 0 0 0.1rem rgba(30, 136, 229, 0.6),
              0 4px 24px var(--glow);
}
.btn-scroll-top.active-progress {
  visibility: visible;
  transform: translateY(0);
  opacity: 1;
}
.btn-scroll-top svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.btn-scroll-top svg path { fill: none; }
.btn-scroll-top svg.progress-square path {
  stroke: var(--accent);
  stroke-width: 1;
  stroke-opacity: 0.5;
  box-sizing: border-box;
  transition: all 0.2s linear;
}
@media (max-width: 480px) {
  .btn-scroll-top {
    right: 1rem;
    bottom: 2.5rem;
    width: 2.6rem;
    height: 2.6rem;
  }
  .btn-scroll-top:after {
    line-height: 2.6rem;
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.2rem;
  }
}

/* ══════════════════════════════════════════════════════════════
   NAV: contenedor derecho, switch de idioma y menú Productos
   Añadido para arquitectura bilingüe + include único.
   ══════════════════════════════════════════════════════════════ */
.nav-right { display: flex; align-items: center; gap: 1rem; }

/* Logo perfectamente centrado: el <a> se vuelve flex y la imagen block
   elimina el hueco de línea base que la dejaba fuera de centro vertical. */
nav > a:first-child { display: flex; align-items: center; }
nav a .logo-img { display: block; }

/* Switch ES / EN */
.lang-switcher { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.lang-switcher__btn {
  padding: 6px 10px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em;
  color: var(--muted); text-decoration: none; background: transparent; transition: background 0.2s, color 0.2s;
}
.lang-switcher__btn:hover { color: var(--white); }
.lang-switcher__btn.active { background: var(--accent); color: #fff; }
.lang-switcher--mobile { margin-bottom: 18px; width: fit-content; }

/* Menú Productos desplegable */
.nav-dropdown { position: relative; display: inline-block; }
.nav-dropdown-toggle { display: inline-flex; align-items: center; gap: 4px; }
.nav-caret { font-size: 0.7rem; transition: transform 0.2s; }
.nav-dropdown:hover .nav-caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 210px; background: rgba(6,13,32,0.97); backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: 10px; padding: 8px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5); z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(4px);
}
.nav-dropdown-menu a {
  padding: 10px 14px; border-radius: 7px; font-size: 0.82rem; color: var(--muted);
  border: 1px solid transparent; transition: all 0.18s; white-space: nowrap;
}
.nav-dropdown-menu a:hover { color: var(--white); background: rgba(30,136,229,0.14); border-color: rgba(30,136,229,0.3); }
.nav-dropdown-menu a::after { display: none; }
.nav-dropdown-all { margin-top: 4px; border-top: 1px solid var(--border) !important; border-radius: 0 !important; color: var(--accent-light) !important; font-weight: 600; }
@media (max-width: 900px) { .nav-right { display: none; } }

/* ══════════════════════════════════════════════════════════════
   NAV — correcciones finales (se cargan al final → ganan en cascada):
   glass ahumado oscuro NEUTRO (sin tinte azul), logo grande y
   centrado, botón CTA compacto. Editar aquí = afecta a TODO el sitio.
   ══════════════════════════════════════════════════════════════ */
nav {
  padding-top: 8px;
  padding-bottom: 8px;
  align-items: center;
  /* Vidrio ahumado oscuro, neutro: nada de azul */
  background: linear-gradient(180deg, rgba(9,11,15,0.82) 0%, rgba(9,11,15,0.70) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(115%);
  backdrop-filter: blur(22px) saturate(115%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Logo grande y perfectamente centrado en vertical */
nav > a:first-child { display: flex; align-items: center; align-self: center; }
nav a .logo-img,
.logo-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Menú alineado: todos los ítems (planos y desplegables) al mismo centro
   vertical y misma línea base. Edita aquí = afecta a TODO el sitio. */
.nav-links {
  align-items: center;
}
.nav-links > a,
.nav-links .nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.nav-dropdown { display: inline-flex; align-items: center; }

/* Botón de diagnóstico: pequeño, en una sola línea */
.nav-cta {
  padding: 7px 15px;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.1;
  border-radius: 7px;
}

/* ══════════════════════════════════════════════════════════════
   NAV — Botón Carrito (idéntico al Catálogo). Vive en el include
   nav.php → aparece en TODO el sitio. Editar aquí = todo el sitio.
   ══════════════════════════════════════════════════════════════ */
.nav-cta.nav-cart { display: inline-flex; align-items: center; gap: 8px; }
.nav-cta.nav-cart svg { width: 16px; height: 16px; fill: currentColor; }
.nav-cart-count {
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: #facc15; color: #0b1a33; font-size: 0.72rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}

/* ══════════════════════════════════════════════════════════════
   NAV — MENÚ MÓVIL / DRAWER (hamburguesa + panel lateral).
   FALTABA por completo → el drawer se veía siempre como un
   "segundo header roto". Aquí queda oculto fuera de pantalla y
   solo se abre con la hamburguesa. Afecta a TODO el sitio.
   ══════════════════════════════════════════════════════════════ */

/* Hamburguesa: oculta en escritorio, visible solo en móvil */
.burger-icon { display: none; cursor: pointer; padding: 6px; margin-left: auto; }
.burger-icon span {
  display: block; width: 24px; height: 2px; margin: 5px 0;
  background: #fff; border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger-icon.burger-close span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-icon.burger-close span:nth-child(2) { opacity: 0; }
.burger-icon.burger-close span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay oscuro tras el drawer */
.mobile-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(4,9,26,0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
  z-index: 1090;
}
body.mobile-menu-active .mobile-menu-overlay { opacity: 1; visibility: visible; }

/* Drawer lateral: oculto fuera de pantalla por defecto */
.mobile-header-wrapper-style {
  position: fixed; top: 0; right: 0; height: 100%;
  width: 320px; max-width: 86vw;
  background: linear-gradient(180deg, rgba(9,11,15,0.98) 0%, rgba(6,13,32,0.98) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(115%); backdrop-filter: blur(22px) saturate(115%);
  border-left: 1px solid rgba(255,255,255,0.08);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.4,0,.2,1);
  z-index: 1100; overflow-y: auto;
}
.mobile-header-wrapper-style.sidebar-visible { transform: translateX(0); }
.mobile-header-wrapper-inner { display: flex; flex-direction: column; min-height: 100%; padding: 20px; }

.mobile-header-logo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.mobile-close-btn { background: transparent; border: none; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 4px 8px; }
.mobile-close-btn:hover { color: var(--accent-light); }

.mobile-header-content-area { flex: 1; }
.mobile-menu { list-style: none; margin: 0 0 20px; padding: 0; }
.mobile-menu li { border-bottom: 1px solid rgba(255,255,255,0.06); }
.mobile-menu a { display: block; padding: 14px 4px; color: var(--muted); text-decoration: none; font-weight: 600; transition: color 0.2s; }
.mobile-menu a:hover { color: #fff; }

.mobile-nav-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
  padding: 11px 18px; background: var(--accent); color: #fff; text-decoration: none;
  border-radius: 8px; font-weight: 700; font-size: 0.85rem;
}
.mobile-nav-cta:hover { background: var(--accent-light); }

.tgmobile__menu-bottom { margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); }
.contact-info p { margin: 0 0 8px; font-size: 0.82rem; color: var(--muted); }
.contact-info a { color: var(--accent-light); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

.mobile-social-icons { display: flex; gap: 12px; margin-top: 12px; }
.mobile-social-icons a {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 8px; color: var(--muted); transition: all 0.2s;
}
.mobile-social-icons a:hover { background: rgba(30,136,229,0.2); border-color: var(--accent); color: #fff; }
.mobile-social-icons svg { width: 16px; height: 16px; fill: currentColor; }

/* Mostrar hamburguesa en móvil; en escritorio el drawer y overlay
   NUNCA se renderizan (blindaje contra el "header roto"). */
@media (max-width: 900px) {
  .burger-icon { display: block; }
}
@media (min-width: 901px) {
  .burger-icon,
  .mobile-header-wrapper-style,
  .mobile-menu-overlay { display: none !important; }
}


/* ══════════════════════════════════════════════════════════════
   NAV — estilos BASE del header (copiados del sitio principal).
   Necesarios para paginas sin <style> propio de nav (ej. catalogo).
   ══════════════════════════════════════════════════════════════ */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; }
nav a { color: var(--muted); text-decoration: none; font-size: 0.85rem;
  letter-spacing: 0.05em; transition: color 0.2s; }
nav a:hover { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { position: relative; }
.nav-links a::after { content:''; position:absolute; bottom:-4px; left:0;
  width:0; height:2px; background: var(--accent); transition: width 0.3s ease; }
.nav-links a:hover::after { width: 100%; }
@media (max-width: 900px){ .nav-links { display: none; } }

/* ══════════════════════════════════════════════════════════════
   NAV — COHERENCIA TOTAL (inicio = catálogo = carrito).
   Estas 2 reglas vivían SOLO en el <style> del inicio y le
   faltaban al catálogo/carrito, por eso se veían distintos:
     1) el padding horizontal del header (6vw) → sin él, el menú
        del catálogo quedaba estirado de borde a borde.
     2) el botón Carrito relleno azul en MAYÚSCULAS → sin fondo,
        en el catálogo salía gris/transparente.
   Al ir al final ganan en cascada. El inicio NO cambia (ya los
   tenía); el catálogo y el carrito quedan idénticos al inicio.
   ══════════════════════════════════════════════════════════════ */
nav { padding-left: 6vw; padding-right: 6vw; }
.nav-cta,
.nav-cta.nav-cart {
  background: var(--accent);
  color: #fff !important;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.nav-cta:hover,
.nav-cta.nav-cart:hover { background: var(--accent-light); }


/* ══════════════════════════════════════════════════════════════
   HEADER CANÓNICO — IDÉNTICO EN TODO EL SITIO
   (inicio = catálogo = carrito). Valores tomados del INICIO como
   referencia. Va al FINAL y usa !important para ganar siempre,
   sin importar el <style> inline de cada página. Una sola fuente
   de verdad → cero divergencia de tamaños, espaciado ni color.
   ══════════════════════════════════════════════════════════════ */
:root{
  --accent:#1e88e5; --accent-light:#42a5f5; --accent-bright:#64b5f6;
  --muted:rgba(235,244,255,0.85); --border:rgba(255,255,255,0.15);
  --white:#ffffff; --glow:rgba(30,136,229,0.3);
}
/* Header: mismo alto y mismo margen simétrico a ambos lados */
nav{
  padding:20px 6vw !important;
  align-items:center !important;
  justify-content:space-between !important;
}
/* Logo: grande y legible como el inicio original (no toca el logo del drawer móvil) */
nav a .logo-img{ height:52px !important; width:auto !important; }
/* Menú y bloque derecho: mismo espaciado que el inicio */
.nav-links{ gap:2rem !important; align-items:center !important; }
.nav-right{ gap:1rem !important; align-items:center !important; }
/* Botón CARRITO: azul relleno, mayúsculas, idéntico al inicio */
.nav-cta,
.nav-cta.nav-cart{
  background:var(--accent) !important;
  color:#ffffff !important;
  padding:10px 22px !important;
  border-radius:6px !important;
  font-size:0.82rem !important;
  font-weight:600 !important;
  letter-spacing:0.03em !important;
  text-transform:uppercase !important;
}
.nav-cta:hover,
.nav-cta.nav-cart:hover{ background:var(--accent-light) !important; }

/* cache-bust 2026-07-24 logo izquierdo 52px legible */


/* ══════════════════════════════════════════════════════════════
   2026-08-23 — pedido de Tecni: BARRA DE DOCUMENTOS LEGALES.
   Va debajo del footer en TODAS las paginas (include unico).
   Enlaces a los 5 documentos de /legal/. No altera el footer.
   ══════════════════════════════════════════════════════════════ */
.footer-legal {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center; gap: 6px 10px;
  padding: 14px 6vw 22px;
  background: rgba(4,9,26,0.6);
  border-top: 1px solid var(--border);
  font-size: 0.74rem; text-align: center;
  color: rgba(235,244,255,0.35);
}
.footer-legal a { color: rgba(235,244,255,0.6); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: var(--accent-light); text-decoration: underline; }
@media (max-width: 600px) {
  .footer-legal { gap: 4px 8px; font-size: 0.72rem; padding: 12px 16px 20px; }
  .footer-legal span { display: none; }
  .footer-legal a { width: 100%; padding: 3px 0; }
}
