/* ================================================================
   ALGORITMOIADIGITAL PRO — CSS GLOBAL v3.0
   Fondo:#060c18 | Cian:#00d4c8 | Azul:#1a8cff
   Fuentes: Manrope + JetBrains Mono
================================================================ */

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  --bg:    #060c18;
  --sf:    #0b1526;
  --sf2:   #0f1d35;
  --cyan:  #00d4c8;
  --blue:  #1a8cff;
  --white: #f0f4ff;
  --muted: #6a7d9e;
  --bdr:   rgba(255,255,255,0.07);
  --bc:    rgba(0,212,200,0.18);
  --glow:  rgba(0,212,200,0.07);
  --font:  'Manrope', sans-serif;
  --mono:  'JetBrains Mono', monospace;
  --max:   1160px;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: #060c18 !important;
  color: #f0f4ff !important;
  margin: 0; padding: 0;
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
/* Forzar fondo en TODOS los contenedores de WordPress */
#page, #wrapper, #content, #main, #primary,
.site, .site-content, .content-area,
.entry, .entry-content, .post-content,
.wp-site-blocks, .wp-block-post-content,
.is-layout-flow, .has-global-padding,
.wp-block-group, .wp-block-html { background: #060c18 !important; }

img    { max-width: 100%; height: auto; display: block; }
a      { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: var(--white); }
ul, ol { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font); }
p      { margin: 0; }
button { font-family: var(--font); cursor: pointer; }
input, textarea, select { font-family: var(--font); }

/* ── FONDO ANIMADO ──────────────────────────────────────────── */
.aid-bg-wrap {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: #060c18;
}
.aid-bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(0,212,200,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,200,.022) 1px, transparent 1px);
  background-size: 44px 44px;
}
.aid-orb-tl {
  position: fixed; top: -20%; left: -10%; width: 60%; height: 70%;
  pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse, rgba(26,140,255,.07) 0%, transparent 65%);
  animation: g-pulse 6s ease-in-out infinite;
}
.aid-orb-br {
  position: fixed; bottom: -20%; right: -10%; width: 55%; height: 65%;
  pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse, rgba(0,212,200,.055) 0%, transparent 65%);
  animation: g-pulse 7s 1s ease-in-out infinite;
}
.aid-scanline {
  position: fixed; left: 0; width: 100%; height: 1px;
  pointer-events: none; z-index: 9998;
  background: linear-gradient(90deg, transparent, rgba(0,212,200,.35), transparent);
  animation: g-scan 9s linear infinite;
}

/* ── KEYFRAMES GLOBALES ─────────────────────────────────────── */
@keyframes g-scan    { from{top:-2px} to{top:100vh} }
@keyframes g-up      { from{opacity:0;transform:translateY(26px)} to{opacity:1;transform:translateY(0)} }
@keyframes g-fade    { from{opacity:0} to{opacity:1} }
@keyframes g-blink   { 0%,100%{opacity:1;box-shadow:0 0 8px var(--cyan)} 50%{opacity:.3;box-shadow:none} }
@keyframes g-pulse   { 0%,100%{transform:scale(1) translateY(0);opacity:.7} 50%{transform:scale(1.06) translateY(-6px);opacity:1} }
@keyframes g-float   { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes g-ripple  { to{transform:scale(2.5);opacity:0} }
@keyframes g-spin    { to{transform:rotate(360deg)} }
@keyframes g-counter { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }
@keyframes g-width   { from{width:0} to{width:100%} }

/* Clases de animación de entrada */
.ga1 { animation: g-up .65s .08s ease both; }
.ga2 { animation: g-up .65s .17s ease both; }
.ga3 { animation: g-up .65s .26s ease both; }
.ga4 { animation: g-up .65s .35s ease both; }
.ga5 { animation: g-up .65s .44s ease both; }

/* Scroll reveal */
.g-reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.g-reveal.in { opacity: 1; transform: translateY(0); }

/* ── LAYOUT ─────────────────────────────────────────────────── */
.aid-wrap {
  max-width: var(--max); margin: 0 auto; padding: 0 56px;
  position: relative; z-index: 2;
}
.aid-section { padding: 88px 0; position: relative; z-index: 2; }
.aid-divider {
  height: 1px; margin: 0 56px; position: relative; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(0,212,200,.18), transparent);
}

/* ── TIPOGRAFÍA ─────────────────────────────────────────────── */
.g-label {
  font-family: var(--mono); font-size: .63rem; color: var(--cyan);
  letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  margin-bottom: 14px; display: block;
}
.g-label::before { content: '// '; opacity: .45; }
.g-h1 { font-size: clamp(2.6rem,5.5vw,4.2rem); font-weight: 900; line-height: 1.07; letter-spacing: -.035em; color: var(--white); }
.g-h2 { font-size: clamp(1.9rem,3.5vw,2.8rem); font-weight: 900; line-height: 1.1;  letter-spacing: -.03em;  color: var(--white); }
.g-h3 { font-size: 1.2rem; font-weight: 800; line-height: 1.3; color: var(--white); }
.g-body { font-size: .97rem; color: var(--muted); line-height: 1.75; font-weight: 500; }
.g-body strong { color: var(--white); font-weight: 700; }
.g-grad {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── BOTONES GLOBALES ───────────────────────────────────────── */
.g-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 11px; font-size: .88rem; font-weight: 900;
  color: #fff !important; letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 6px 28px rgba(0,180,220,.35);
  transition: filter .2s, transform .2s;
  position: relative; overflow: hidden;
  border: none; text-decoration: none !important;
}
.g-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.12), transparent);
  pointer-events: none;
}
.g-btn:hover { filter: brightness(1.12); transform: translateY(-3px); color: #fff !important; }

.g-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border: 1px solid rgba(0,212,200,.25); border-radius: 11px;
  font-size: .88rem; font-weight: 700; color: var(--muted);
  text-decoration: none !important; background: transparent;
  transition: border-color .2s, color .2s, background .2s;
}
.g-btn-ghost:hover { border-color: rgba(0,212,200,.5); color: var(--white); background: rgba(0,212,200,.06); }

/* ── PILL ───────────────────────────────────────────────────── */
.g-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 14px; background: var(--glow); border: 1px solid var(--bc);
  border-radius: 999px; font-family: var(--mono); font-size: .63rem;
  color: var(--cyan); letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 20px;
}
.g-pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: g-blink 2s ease-in-out infinite; flex-shrink: 0; }

/* ── CARD BASE ──────────────────────────────────────────────── */
.g-card {
  background: var(--sf); border: 1px solid var(--bdr);
  border-radius: 18px; padding: 32px 28px;
  position: relative; overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.g-card::after {
  content: ''; position: absolute; top: 0; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0; transition: opacity .3s;
}
.g-card:hover { border-color: rgba(0,212,200,.28); transform: translateY(-4px); box-shadow: 0 20px 56px rgba(0,0,0,.4); }
.g-card:hover::after { opacity: 1; }

/* ── SECTION HEADER ─────────────────────────────────────────── */
.g-section-head { text-align: center; margin-bottom: 56px; }
.g-section-head h2 { margin-top: 8px; }
.g-section-head p { font-size: 1rem; color: var(--muted); max-width: 560px; margin: 14px auto 0; line-height: 1.72; }

/* ================================================================
   HEADER GLOBAL
================================================================ */
#aid-header {
  position: sticky; top: 0; z-index: 9999;
  background: rgba(6,12,24,.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bdr);
  transition: box-shadow .3s;
}
#aid-header.scrolled {
  box-shadow: 0 4px 32px rgba(0,0,0,.6);
  border-bottom-color: rgba(0,212,200,.12);
}
#aid-header::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,200,.45), transparent);
  pointer-events: none;
}

/* Nav inner */
.aid-nav {
  max-width: var(--max); margin: 0 auto; padding: 0 56px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}

/* Logo */
.aid-logo { display: flex; align-items: center; gap: 11px; text-decoration: none !important; flex-shrink: 0; }
.aid-logo-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; box-shadow: 0 0 18px rgba(0,180,220,.3);
  flex-shrink: 0; position: relative; overflow: hidden;
}
.aid-logo-mark::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15), transparent);
}
.aid-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.aid-logo-name { font-size: .96rem; font-weight: 900; color: var(--white); letter-spacing: -.02em; }
.aid-logo-name em { color: var(--cyan); font-style: normal; }
.aid-logo-tag { font-family: var(--mono); font-size: .52rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

/* Nav links */
.aid-nav-links { display: flex; align-items: center; gap: 2px; }
.aid-nav-links li a {
  padding: 8px 13px; font-size: .83rem; font-weight: 600; color: var(--muted);
  text-decoration: none; border-radius: 8px; white-space: nowrap; display: block;
  transition: background .2s, color .2s;
}
.aid-nav-links li a:hover,
.aid-nav-links li.current-menu-item > a,
.aid-nav-links li.current_page_item > a,
.aid-nav-links li a.active { background: rgba(0,212,200,.08); color: var(--white); }
.aid-nav-links li.current-menu-item > a { color: var(--cyan); }

/* CTA + estado live */
.aid-nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.aid-nav-live {
  display: flex; align-items: center; gap: 6px; padding: 5px 12px;
  background: rgba(0,212,200,.07); border: 1px solid rgba(0,212,200,.2);
  border-radius: 999px;
}
.aid-nav-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: g-blink 2s ease-in-out infinite; }
.aid-nav-live span { font-family: var(--mono); font-size: .58rem; color: var(--cyan); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.aid-nav-cta { padding: 9px 20px !important; font-size: .8rem !important; }

/* Hamburger */
.aid-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 7px; background: none; border: none;
}
.aid-hamburger span { display: block; width: 22px; height: 2px; background: var(--muted); border-radius: 2px; transition: transform .3s, opacity .3s, background .2s; }
.aid-hamburger:hover span { background: var(--white); }
.aid-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.aid-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.aid-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.aid-mobile-nav {
  display: none; flex-direction: column;
  padding: 12px 20px 18px; border-top: 1px solid var(--bdr);
  background: rgba(6,12,24,.98); gap: 4px;
}
.aid-mobile-nav.open { display: flex; animation: g-up .25s ease both; }
.aid-mobile-nav li a {
  display: block; padding: 11px 14px; font-size: .9rem; font-weight: 600;
  color: var(--muted); border-radius: 9px; text-decoration: none;
  transition: background .2s, color .2s;
}
.aid-mobile-nav li a:hover,
.aid-mobile-nav li.current-menu-item > a { background: rgba(0,212,200,.08); color: var(--white); }
.aid-mobile-nav .g-btn { margin-top: 10px; justify-content: center; width: 100%; }

/* ================================================================
   FOOTER GLOBAL
================================================================ */
#aid-footer {
  background: var(--sf) !important; position: relative; z-index: 2;
  border-top: 1px solid var(--bdr); overflow: hidden;
}
#aid-footer::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,212,200,.04), transparent);
}

/* CTA strip footer */
.aid-footer-strip {
  padding: 52px 0; border-bottom: 1px solid var(--bdr);
  text-align: center; position: relative; z-index: 1;
}
.aid-footer-strip h3 {
  font-size: clamp(1.4rem,2.8vw,2.1rem); font-weight: 900;
  letter-spacing: -.025em; color: var(--white);
  margin-bottom: 20px; line-height: 1.2;
}
.aid-footer-strip-btns { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* Footer grid */
.aid-footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px; padding: 52px 0 44px; position: relative; z-index: 1;
}
.aid-footer-brand { display: flex; flex-direction: column; gap: 16px; }
.aid-footer-about { font-size: .83rem; color: var(--muted); line-height: 1.75; max-width: 280px; }
.aid-footer-live { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; background: rgba(0,212,200,.07); border: 1px solid rgba(0,212,200,.18); border-radius: 999px; width: fit-content; }
.aid-footer-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: g-blink 2s ease-in-out infinite; }
.aid-footer-live span { font-family: var(--mono); font-size: .58rem; color: var(--cyan); letter-spacing: .1em; text-transform: uppercase; }
.aid-footer-social { display: flex; gap: 8px; }
.aid-social-btn {
  width: 36px; height: 36px; border-radius: 9px;
  background: rgba(255,255,255,.04); border: 1px solid var(--bdr);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; color: var(--muted); text-decoration: none;
  transition: border-color .2s, background .2s, transform .2s, color .2s;
}
.aid-social-btn:hover { border-color: rgba(0,212,200,.35); background: rgba(0,212,200,.08); transform: translateY(-2px); color: var(--white); }

.aid-footer-col h4 { font-family: var(--mono); font-size: .59rem; color: var(--cyan); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
.aid-footer-col h4::before { content: '// '; opacity: .4; }
.aid-footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.aid-footer-col li a { font-size: .83rem; color: var(--muted); text-decoration: none; transition: color .2s; display: flex; align-items: center; gap: 6px; }
.aid-footer-col li a:hover { color: var(--white); }
.aid-footer-col li a::before { content: '→'; font-size: .7rem; opacity: 0; transition: opacity .2s; color: var(--cyan); }
.aid-footer-col li a:hover::before { opacity: 1; }

/* Footer bottom */
.aid-footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 12px; padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.05);
  position: relative; z-index: 1;
}
.aid-footer-copy { font-family: var(--mono); font-size: .59rem; color: var(--muted); letter-spacing: .06em; }
.aid-footer-legal { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.aid-footer-legal a { font-family: var(--mono); font-size: .59rem; color: var(--muted); text-decoration: none; letter-spacing: .06em; transition: color .2s; }
.aid-footer-legal a:hover { color: var(--cyan); }
.aid-footer-legal span { color: rgba(255,255,255,.12); }

/* ================================================================
   COOKIE BANNER
================================================================ */
#aid-cookie {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 99999; width: calc(100% - 40px); max-width: 680px;
  background: var(--sf); border: 1px solid rgba(0,212,200,.28);
  border-radius: 16px; padding: 18px 22px;
  display: none; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  box-shadow: 0 16px 48px rgba(0,0,0,.65);
  animation: g-up .4s ease both;
}
#aid-cookie::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,200,.4), transparent);
}
#aid-cookie.show { display: flex; }
.aid-cookie-txt { font-size: .78rem; color: var(--muted); line-height: 1.6; flex: 1; min-width: 160px; }
.aid-cookie-txt a { color: var(--cyan); border-bottom: 1px solid rgba(0,212,200,.3); }
.aid-cookie-btns { display: flex; gap: 8px; flex-shrink: 0; }
.aid-cookie-ok {
  padding: 9px 20px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border: none; border-radius: 8px; font-family: var(--font);
  font-size: .76rem; font-weight: 800; color: #fff; cursor: pointer;
  transition: filter .2s; white-space: nowrap;
}
.aid-cookie-ok:hover { filter: brightness(1.1); }
.aid-cookie-no {
  padding: 9px 14px; background: transparent;
  border: 1px solid rgba(255,255,255,.1); border-radius: 8px;
  font-family: var(--font); font-size: .76rem; font-weight: 600;
  color: var(--muted); cursor: pointer; transition: all .2s; white-space: nowrap;
}
.aid-cookie-no:hover { border-color: rgba(255,255,255,.25); color: var(--white); }

/* ================================================================
   RESPONSIVE GLOBAL
================================================================ */
@media(max-width:1024px) {
  .aid-wrap, .aid-nav { padding: 0 36px; }
  .aid-divider { margin: 0 36px; }
  .aid-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media(max-width:768px) {
  .aid-wrap, .aid-nav { padding: 0 20px; }
  .aid-section { padding: 60px 0; }
  .aid-divider { margin: 0 20px; }
  .aid-nav-links, .aid-nav-live, .aid-nav-cta { display: none; }
  .aid-hamburger { display: flex; }
  .aid-footer-grid { grid-template-columns: 1fr; gap: 26px; padding: 36px 0 28px; }
  .aid-footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media(max-width:480px) {
  .g-h1 { font-size: 2.3rem; }
  .g-h2 { font-size: 1.7rem; }
}
