/* ============================================================
   THE AUTONOMIA - Estilos globales compartidos
   ------------------------------------------------------------
   Branding (variables + tipografías), header (nav) y footer.
   Tomado del <style> inline de index.html para reutilizarlo en
   páginas secundarias (p. ej. politica-de-privacidad.html).
   Tema oscuro. Acento único: azul cibernético #1FB6E6.

   NOTA: index.html aún mantiene estos estilos inline; este archivo
   es la fuente compartida para las páginas nuevas. A futuro conviene
   que index.html también enlace este global.css y se elimine la
   duplicación.
   ============================================================ */

:root{
  --bg:           #06090f;   /* near-black azul profundo */
  --bg-2:         #0a1018;   /* paneles                  */
  --bg-3:         #0e1623;   /* paneles elevados         */
  --ink:          #eef4fb;   /* texto principal          */
  --ink-soft:     #aebccd;   /* texto secundario         */
  --ink-faint:    #6c7d92;   /* texto terciario / labels */
  --accent:       #1FB6E6;   /* azul cibernético         */
  --accent-deep:  #128bb8;
  --line:         rgba(255,255,255,0.09);
  --line-2:       rgba(31,182,230,0.32);
  --radius-card:  16px;
  --radius-input: 13px;
  --maxw:         1240px;
  --ease:         cubic-bezier(.22,.61,.36,1);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:auto; -webkit-text-size-adjust:100%; }
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:'Manrope',system-ui,sans-serif;
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
h1,h2,h3,h4{ font-family:'Space Grotesk',sans-serif; font-weight:600; line-height:1.05; margin:0; letter-spacing:-0.01em; }
p{ margin:0; }
a{ color:inherit; text-decoration:none; }
img{ display:block; max-width:100%; }
::selection{ background:var(--accent); color:#04222e; }

.wrap{ width:100%; max-width:var(--maxw); margin:0 auto; padding:0 clamp(20px,5vw,56px); }

/* ---------- Botón pill (único CTA del sitio) ---------- */
.btn{
  --b:var(--accent);
  display:inline-flex; align-items:center; gap:.6em;
  font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:1rem;
  letter-spacing:.01em;
  color:#04222e; background:var(--b);
  border:none; border-radius:999px;
  padding:.92em 1.6em; cursor:pointer;
  transition:transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  box-shadow:0 0 0 0 rgba(31,182,230,0);
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-2px); background:#33c2ee; box-shadow:0 10px 34px -8px rgba(31,182,230,.55); }
.btn:active{ transform:translateY(0); }
.btn:focus-visible{ outline:3px solid rgba(31,182,230,.55); outline-offset:3px; }
.btn .arr{ transition:transform .25s var(--ease); }
.btn:hover .arr{ transform:translateX(3px); }
.btn svg{ width:1.15em; height:1.15em; flex:none; }
.btn--ghost{ background:transparent; color:var(--accent); box-shadow:inset 0 0 0 1.5px var(--accent); }
.btn--ghost:hover{ background:rgba(31,182,230,.12); color:var(--ink); box-shadow:inset 0 0 0 1.5px var(--accent); }

/* ============================================================
   NAV (header)
   ============================================================ */
.nav{
  position:fixed; inset:0 0 auto 0; z-index:50;
  height:74px; display:flex; align-items:center;
  background:linear-gradient(180deg, rgba(4,7,12,.82) 0%, rgba(4,7,12,.32) 65%, transparent 100%);
  backdrop-filter:blur(2px);
  transition:background .4s var(--ease), height .35s var(--ease), border-color .4s var(--ease);
  border-bottom:1px solid transparent;
}
.nav.solid{
  height:64px;
  background:rgba(6,9,15,.86);
  backdrop-filter:blur(14px) saturate(1.2);
  border-bottom:1px solid var(--line);
}
.nav .wrap{ display:flex; align-items:center; justify-content:space-between; width:100%; }
.brand{ display:flex; align-items:center; gap:.7rem; }
.brand img{ height:36px; width:auto; }
/* lockup tipo logo: "The" sobre "AutonomIA" en fuente redondeada, "IA" en azul */
.brand-lockup{ display:flex; flex-direction:column; align-items:flex-start; line-height:.92; gap:.01em; }
.brand-lockup .l-the{ font-family:'Fredoka',sans-serif; font-weight:600; letter-spacing:0;
  color:var(--ink); padding-left:.08em; }
.brand-lockup .l-name{ font-family:'Fredoka',sans-serif; font-weight:700; letter-spacing:-0.01em;
  color:var(--ink); }
.brand-lockup .l-name b{ color:var(--accent); font-weight:700; }
.brand .l-the{ font-size:.76rem; }
.brand .l-name{ font-size:1.2rem; }
.nav .btn{ padding:.66em 1.3em; font-size:.95rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer{ position:relative; z-index:2; background:var(--bg); border-top:1px solid var(--line); padding:clamp(38px,4.6vw,52px) 0 1.8rem; }
.footer__top{ display:flex; align-items:center; justify-content:space-between; gap:2rem; flex-wrap:wrap; }
.footer__brand{ display:flex; align-items:center; gap:.8rem; }
.footer__brand img{ height:38px; }
.footer__brand .l-the{ font-size:.9rem; }
.footer__brand .l-name{ font-size:1.45rem; }
.footer__tag{ max-width:26ch; text-align:right; color:var(--ink-soft); font-family:'Space Grotesk',sans-serif; font-size:.98rem; line-height:1.32; }
.footer__tag b{ color:var(--ink); font-weight:600; }

/* fila central: contacto + redes + legal */
.footer__cols{ margin-top:clamp(24px,3vw,34px); display:flex; justify-content:space-between; align-items:flex-start;
  gap:clamp(24px,4vw,56px); flex-wrap:wrap; }
.footer__col h5{ font-family:'Space Grotesk',sans-serif; font-size:.66rem; font-weight:600; letter-spacing:.18em;
  text-transform:uppercase; color:var(--ink-faint); margin:0 0 .85rem; }
.footer__contact{ display:flex; flex-direction:column; gap:.5rem; }
.footer__contact a{ display:inline-flex; align-items:center; gap:.55rem; color:var(--ink-soft); font-size:.9rem;
  transition:color .3s var(--ease); }
.footer__contact a:hover{ color:var(--ink); }
.footer__contact svg{ width:14px; height:14px; color:var(--accent); flex:none; }
.footer__social{ display:flex; gap:.5rem; }
.footer__social a{ width:34px; height:34px; border-radius:9px; display:grid; place-items:center;
  background:var(--bg-2); border:1px solid var(--line); color:var(--ink-soft);
  transition:transform .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), background .35s var(--ease); }
.footer__social a:hover{ transform:translateY(-2px); border-color:var(--line-2); color:var(--accent); background:var(--bg-3); }
.footer__social svg{ width:16px; height:16px; }
.footer__legal{ display:flex; flex-direction:column; gap:.46rem; align-items:flex-start; }
.footer__legal a{ color:var(--ink-soft); font-size:.86rem; transition:color .3s var(--ease); cursor:pointer; }
.footer__legal a:hover{ color:var(--accent); }

.footer__bar{ margin-top:clamp(26px,3vw,38px); padding-top:1.3rem; border-top:1px solid var(--line);
  display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap; color:var(--ink-faint); font-size:.8rem; }
.footer__bar a:hover{ color:var(--accent); }
@media (max-width:620px){
  .footer__tag{ text-align:left; }
  .footer__cols{ gap:28px; }
}
