/* =============================================
   GEOALBANES.COM — Sistema de Diseño v2
   Editorial Dark · Premium · 2026
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Syne:wght@400;500;600;700;800&family=DM+Sans:wght@300;400;500&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Variables ── */
:root {
  --bg:         #060608;
  --bg-2:       #0B0B0F;
  --surface:    rgba(255,255,255,0.025);
  --surface-2:  rgba(255,255,255,0.045);
  --border:     rgba(255,255,255,0.07);
  --border-2:   rgba(255,255,255,0.12);
  --blue:       #2460E8;
  --blue-light: #5B8EF4;
  --blue-glow:  rgba(36,96,232,0.3);
  --blue-dim:   rgba(36,96,232,0.08);
  --text:       #EEEAE4;
  --text-2:     #7A7A8C;
  --text-3:     #3D3D50;
  --green:      #22C55E;

  --f-display: 'Fraunces', serif;
  --f-ui:      'Syne', sans-serif;
  --f-body:    'DM Sans', sans-serif;
  --f-mono:    'JetBrains Mono', monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --radius:   10px;
  --radius-lg: 16px;
}

/* ── Reset ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}
a  { color: inherit; text-decoration: none; cursor: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: none; font-family: inherit; }

/* ── Custom Cursor ── */
#cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--blue);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-out),
              height 0.25s var(--ease-out),
              background 0.25s,
              opacity 0.25s;
  mix-blend-mode: normal;
}
#cursor.hover {
  width: 40px; height: 40px;
  background: transparent;
  border: 1.5px solid var(--blue-light);
}
#cursor.click {
  width: 6px; height: 6px;
}

/* ── Grain Overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: -200px;
  width: calc(100% + 400px);
  height: calc(100% + 400px);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.038;
  pointer-events: none;
  z-index: 9998;
  animation: grain 0.6s steps(1) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, -2%); }
  40%  { transform: translate(2%, 4%); }
  60%  { transform: translate(-4%, 1%); }
  80%  { transform: translate(3%, -3%); }
  100% { transform: translate(1%, 2%); }
}

/* ── Ambient Orbs ── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(36,96,232,0.15) 0%, transparent 70%);
  top: -300px; right: -200px;
  animation: orbFloat1 24s ease-in-out infinite;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,0.09) 0%, transparent 70%);
  bottom: -100px; left: -150px;
  animation: orbFloat2 32s ease-in-out infinite reverse;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(36,96,232,0.07) 0%, transparent 70%);
  top: 50%; left: 50%;
  animation: orbFloat3 18s ease-in-out infinite;
}
@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(60px, 40px) scale(1.08); }
  66%  { transform: translate(-30px, 80px) scale(0.95); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(80px, -60px) scale(1.12); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%  { transform: translate(-60%, -40%) scale(1.2); }
}

/* ── Layout ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}
.section { padding: 120px 0; }

/* ── Typography ── */
.display {
  font-family: var(--f-display);
  font-size: clamp(3.5rem, 7.5vw, 7rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text);
}
.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--blue-light);
}
h2 {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
}
h3 {
  font-family: var(--f-ui);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
p { color: var(--text-2); line-height: 1.75; }

/* Label / Tag */
.label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--blue-light);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.label::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
}

/* ── Reveal animations ── */
.reveal-wrap { overflow: hidden; }
.reveal-inner {
  display: block;
  transform: translateY(105%);
  transition: transform 0.9s var(--ease-out);
}
.reveal-wrap.visible .reveal-inner { transform: translateY(0); }

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Stagger delays */
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: none;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.06);
  opacity: 0;
  transition: opacity 0.25s;
}
.btn:hover::after { opacity: 1; }
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 rgba(36,96,232,0);
}
.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(36,96,232,0.45);
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.25); }

/* ── Navbar ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 28px 0;
  transition: padding 0.4s, background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 16px 0;
  background: rgba(6,6,8,0.82);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-color: var(--border);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--f-ui);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 9px;
}
.nav-logo .mark {
  width: 28px; height: 28px;
  background: var(--blue);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  font-family: var(--f-ui);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--text-2);
}
.status-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: statusPulse 2.5s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50%  { opacity: 0.4; }
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 32px;
  gap: 12px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 10vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  width: 100%;
  padding: 16px 0;
}
.mobile-menu .close-btn {
  position: absolute;
  top: 28px; right: 32px;
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 1.5rem;
  cursor: none;
}

/* ── Marquee ── */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0 36px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 36px;
}
.marquee-item::after {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--blue);
  border-radius: 50%;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Divider ── */
.divider {
  width: 48px; height: 2px;
  background: var(--blue);
  margin: 20px 0;
}

/* ── Section number ── */
.sec-num {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--text-3);
  letter-spacing: 0.1em;
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* ── Badge ── */
.badge {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 4px;
}
.badge-ia       { background: rgba(36,96,232,0.12); color: var(--blue-light); border: 1px solid rgba(36,96,232,0.2); }
.badge-finanzas { background: rgba(34,197,94,0.08); color: #4ADE80; border: 1px solid rgba(34,197,94,0.15); }
.badge-sistemas { background: rgba(251,191,36,0.08); color: #FBBF24; border: 1px solid rgba(251,191,36,0.15); }
.badge-emp      { background: rgba(244,114,182,0.08); color: #F472B6; border: 1px solid rgba(244,114,182,0.15); }
.badge-prod     { background: rgba(167,139,250,0.08); color: #A78BFA; border: 1px solid rgba(167,139,250,0.15); }
.badge-fin      { background: rgba(34,197,94,0.08); color: #4ADE80; border: 1px solid rgba(34,197,94,0.15); }

/* ── Read more ── */
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--blue-light);
  transition: gap 0.25s var(--ease-out);
}
.read-more:hover { gap: 14px; }

/* ── Article content ── */
.article-body {
  font-family: var(--f-body);
  font-size: 1.05rem;
  line-height: 1.85;
}
.article-body h2 {
  font-family: var(--f-display);
  font-size: 1.8rem;
  margin: 52px 0 16px;
  color: var(--text);
}
.article-body h3 {
  font-family: var(--f-display);
  font-size: 1.3rem;
  margin: 40px 0 12px;
  color: var(--text);
}
.article-body p  { margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 20px 0 20px 20px; }
.article-body ul { list-style: none; }
.article-body ul li::before { content: '—'; margin-right: 12px; color: var(--blue-light); }
.article-body li { margin-bottom: 10px; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body blockquote {
  border-left: 2px solid var(--blue);
  padding: 20px 28px;
  margin: 36px 0;
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-body blockquote p { color: var(--text); font-style: italic; margin: 0; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 80px 0 48px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 80px;
  margin-bottom: 64px;
}
.footer-brand p { font-size: 0.9rem; margin-top: 20px; max-width: 280px; }
.footer-col h6 {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-3);
  margin-bottom: 24px;
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-2);
  margin-bottom: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--text-3);
}
.social-row {
  display: flex;
  gap: 12px;
}
.social-row a {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--text-2);
  transition: border-color 0.2s, color 0.2s;
}
.social-row a:hover { border-color: var(--blue-light); color: var(--blue-light); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-status { display: none; }
  .hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-bottom { flex-direction: column; gap: 20px; }
  body { cursor: auto; }
  #cursor { display: none; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
}

  /* --- NEW ANIMATIONS & MICRO-INTERACTIONS --- */
  .pillar-icon {
    color: var(--blue-light);
    margin-bottom: 24px;
    transition: transform 0.5s var(--ease-out), color 0.3s;
    display: inline-block;
  }
  .pillar:hover .pillar-icon {
    transform: scale(1.15) rotate(-4deg);
    color: var(--blue);
  }
  .pillar:hover .pillar-icon svg {
    filter: drop-shadow(0 0 12px rgba(36,96,232,0.5));
  }

  .sc-icon {
    color: var(--text-3);
    margin-bottom: 32px;
    transition: color 0.4s, transform 0.5s var(--ease-out), filter 0.4s;
  }
  .social-card:hover .sc-icon {
    transform: translateY(-4px) scale(1.1);
  }
  .social-card[data-platform="linkedin"]:hover .sc-icon { color: #0A66C2; filter: drop-shadow(0 0 16px rgba(10,102,194,0.5)); }
  .social-card[data-platform="instagram"]:hover .sc-icon { color: #E1306C; filter: drop-shadow(0 0 16px rgba(225,48,108,0.5)); }
  .social-card[data-platform="email"]:hover .sc-icon { color: var(--blue); filter: drop-shadow(0 0 16px var(--blue-glow)); }

  .marquee-wrap {
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  }
  .marquee-track.reverse {
    animation: marquee 36s linear infinite reverse;
  }

  /* RGB-split glitch en .big-num al hover */
  .art-main .big-num {
    position: relative;
    display: inline-block;
  }
  .art-main .big-num::before,
  .art-main .big-num::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
  }
  .art-main .big-num::before { color: #FF3B6B; mix-blend-mode: screen; }
  .art-main .big-num::after  { color: #00E5FF; mix-blend-mode: screen; }
  .art-main:hover .big-num {
    color: var(--blue);
    animation: glitchShake 0.45s steps(2, end);
  }
  .art-main:hover .big-num::before {
    opacity: 0.85;
    animation: glitchOffsetA 0.45s steps(2, end);
  }
  .art-main:hover .big-num::after {
    opacity: 0.85;
    animation: glitchOffsetB 0.45s steps(2, end);
  }
  @keyframes glitchShake {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-1px, 1px); }
    40% { transform: translate(1px, -1px); }
    60% { transform: translate(-1px, 0); }
    80% { transform: translate(1px, 1px); }
  }
  @keyframes glitchOffsetA {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-3px, 1px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(-4px, 0); }
    80% { transform: translate(-1px, 2px); }
  }
  @keyframes glitchOffsetB {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(3px, -1px); }
    40% { transform: translate(2px, 2px); }
    60% { transform: translate(4px, 0); }
    80% { transform: translate(1px, -2px); }
  }

  /* Blur reveal removido — causaba conflicto con el keyframe inline de index.html
     que dejaba el título permanentemente borroso. La animación slide-up del inline
     es suficiente. */

  .particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
  .particles span {
    position: absolute;
    width: 2px; height: 2px;
    background: var(--blue-light);
    border-radius: 50%;
    opacity: 0;
    animation: float 8s ease-in-out infinite;
  }
  .particles span:nth-child(1) { top: 20%; left: 12%; animation-delay: 0s; }
  .particles span:nth-child(2) { top: 35%; left: 80%; animation-delay: 1.2s; }
  .particles span:nth-child(3) { top: 60%; left: 18%; animation-delay: 2.4s; }
  .particles span:nth-child(4) { top: 75%; left: 70%; animation-delay: 3.1s; }
  .particles span:nth-child(5) { top: 28%; left: 55%; animation-delay: 4.5s; }
  .particles span:nth-child(6) { top: 50%; left: 35%; animation-delay: 5.2s; }
  .particles span:nth-child(7) { top: 15%; left: 65%; animation-delay: 6s; }
  .particles span:nth-child(8) { top: 80%; left: 45%; animation-delay: 7s; }
  @keyframes float {
    0%, 100% { transform: translateY(0); opacity: 0; }
    20%, 80% { opacity: 0.7; }
    50%      { transform: translateY(-30px); opacity: 1; }
  }

  /* Stagger reveal en grids (pillars, values, social, articles) */
  .pillars > *,
  .values-grid > *,
  .social-grid > *,
  .articles-list > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  }
  .pillars > .stagger-in,
  .values-grid > .stagger-in,
  .social-grid > .stagger-in,
  .articles-list > .stagger-in {
    opacity: 1;
    transform: translateY(0);
  }

  /* Accesibilidad: respeto por usuarios con sensibilidad a movimiento */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
    .orb, .particles, body::after { display: none !important; }
    .hero-title .line span { transform: none; filter: none; }
    .pillars > *, .values-grid > *, .social-grid > *, .articles-list > * {
      opacity: 1; transform: none;
    }
  }
