/* ==========================================================================
   SINAPSIS3D — SISTEMA DE DISEÑO COMPARTIDO
   Lo cargan LAS TRES páginas (home, Gran Formato, Escaneo 3D) antes de su CSS
   propio. Aquí viven los tokens y los componentes que deben verse idénticos en
   todo el sitio (por ahora: el footer). Cualquier componente nuevo que se repita
   entre páginas va aquí, no copiado en cada <style>.

   BREAKPOINTS DEL SITIO (las media queries no aceptan variables CSS, así que se
   documentan aquí y se usan SIEMPRE estos tres valores):
     · ≤ 768px  → móvil
     · ≤ 1024px → tablet (hero y contacto a una columna)
     · ≤ 1150px → nav en hamburguesa / fin del recorrido horizontal (≥ 1151px)
   ========================================================================== */
:root {
  /* ---- Color ---- */
  --bg-deep: hsl(224, 71%, 4%);
  --bg-dark: hsl(224, 60%, 6%);
  --bg-card: hsla(224, 60%, 10%, 0.35);

  --accent-cyan: rgb(0, 229, 255);
  --accent-cyan-glow: rgba(0, 229, 255, 0.15);
  --accent-purple: hsl(275, 100%, 60%);
  --accent-purple-glow: hsla(275, 100%, 60%, 0.15);
  --accent-pink: hsl(325, 100%, 50%);

  --text-primary: hsl(210, 40%, 98%);
  --text-secondary: hsl(215, 20%, 75%);
  --text-muted: hsl(215, 18%, 68%);  /* 68% de luminosidad: contraste AA (~5.2:1) en texto pequeño */

  --border-glass: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(0, 229, 255, 0.15);

  --glass-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  --neon-gradient: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  --btn-gradient: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));

  /* ---- Tipografía ---- */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Instrument Serif', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Escala tipográfica (razón ~1.2). Los titulares grandes usan clamp() propio. */
  --fs-xs: 0.75rem;    /* etiquetas, legales */
  --fs-sm: 0.875rem;   /* texto secundario */
  --fs-base: 1rem;     /* cuerpo */
  --fs-md: 1.125rem;   /* entradillas */
  --fs-lg: 1.375rem;   /* títulos de tarjeta */
  --fs-xl: 1.75rem;    /* cifras, subtítulos */

  /* ---- Espaciado (base 4px) ---- */
  --space-1: 0.25rem;  /* 4px  */
  --space-2: 0.5rem;   /* 8px  */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.5rem;   /* 24px */
  --space-6: 2rem;     /* 32px */
  --space-7: 3rem;     /* 48px */
  --space-8: 4rem;     /* 64px */

  /* Margen lateral de página: único valor que usan .container y los bloques a
     sangre. En móvil baja a 20px para no desperdiciar ancho (antes ~60px). */
  --gutter: 2rem;

  /* ---- Movimiento ---- */
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s ease;

  /* ---- Radios ---- */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 100px;
}

@media (max-width: 768px) {
  :root { --gutter: 1.25rem; }
}

/* ==========================================================================
   FOOTER DEL SITIO (idéntico en las tres páginas)
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 30;
  border-top: 1px solid var(--border-glass);
  background: var(--bg-dark);
  padding: var(--space-8) 0 var(--space-6);
  font-family: var(--font-body);
  color: var(--text-secondary);
}

.site-footer__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr);
  gap: var(--space-7);
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 1px;
  color: var(--text-primary);
}
.site-footer__brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.site-footer__brand .lg-w { font-weight: 300; color: var(--text-secondary); }
.site-footer__brand .lg-g {
  background: var(--neon-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-footer__pitch {
  margin-top: var(--space-4);
  max-width: 34ch;
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--text-muted);
}

.site-footer__title {
  margin-bottom: var(--space-4);
  font-family: var(--font-title);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}
.site-footer__list a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-footer__list a:hover,
.site-footer__list a:focus-visible { color: var(--text-primary); }

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-glass);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  /* Aire para que el botón flotante de WhatsApp no tape la línea legal */
  padding-bottom: 4.5rem;
}

@media (max-width: 1024px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__about { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .site-footer { padding-top: var(--space-7); }
  .site-footer__grid { gap: var(--space-6); }
}
