/* ================================================================
   GS Dynamic — Rediseño 2026
   Vany (Asistente Desarrollos) | Antigravity
   ================================================================ */

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colors */
  --clr-bg:          #050510;
  --clr-bg-2:        #0a0a1a;
  --clr-bg-card:     #0d1026;
  --clr-bg-card-2:   #111428;
  --clr-border:      rgba(59,130,246,.15);
  --clr-border-2:    rgba(59,130,246,.08);
  --clr-blue:        #3b82f6;
  --clr-blue-dark:   #1d4ed8;
  --clr-cyan:        #06b6d4;
  --clr-white:       #ffffff;
  --clr-text:        #cbd5e1;
  --clr-text-muted:  #64748b;
  --clr-success:     #22c55e;
  --clr-warn:        #f59e0b;
  /* Typography */
  --font-sans:       'Inter', system-ui, sans-serif;
  --font-mono:       'JetBrains Mono', monospace;
  /* Radii */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   28px;
  /* Shadows */
  --shadow-glow:  0 0 40px rgba(59,130,246,.18);
  --shadow-card:  0 4px 24px rgba(0,0,0,.45);
  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
  --dur:  .25s;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-sans); border: none; background: none; }
ul { list-style: none; }

.container {
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
}

/* ─── GRADIENT TEXT ─── */
.gradient-text {
  background: linear-gradient(135deg, var(--clr-blue) 0%, var(--clr-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem 1.375rem;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: .9375rem;
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--clr-blue), var(--clr-blue-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(59,130,246,.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59,130,246,.5);
}

.btn--outline {
  border: 1.5px solid var(--clr-border);
  color: var(--clr-text);
  background: transparent;
}
.btn--outline:hover {
  border-color: var(--clr-blue);
  color: var(--clr-white);
  background: rgba(59,130,246,.08);
}

.btn--ghost {
  color: var(--clr-text);
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.1);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  color: var(--clr-white);
}

.btn--lg { padding: .875rem 2rem; font-size: 1rem; }
.btn--sm { padding: .45rem 1rem; font-size: .875rem; }
.btn--full { width: 100%; justify-content: center; }

/* ─── SECTION COMMONS ─── */
.section { padding: 6rem 0; }
.section__header { text-align: center; max-width: 680px; margin: 0 auto 4rem; }
.section__tag {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--clr-blue);
  background: rgba(59,130,246,.1);
  border: 1px solid rgba(59,130,246,.2);
  padding: .3rem .85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.section__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--clr-white);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section__desc {
  font-size: 1.0625rem;
  color: var(--clr-text);
  max-width: 560px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.navbar.scrolled {
  background: rgba(5,5,16,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--clr-border);
  padding: .75rem 0;
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.navbar__logo .logo-img { height: 80px; max-height: 100%; mix-blend-mode: lighten; transition: height var(--dur) var(--ease); }
.navbar.scrolled .navbar__logo .logo-img { height: 55px; }
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.navbar__nav a {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--clr-text);
  transition: color var(--dur) var(--ease);
  position: relative;
}
.navbar__nav a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--clr-blue);
  border-radius: 2px;
  transition: width var(--dur) var(--ease);
}
.navbar__nav a:not(.btn):hover { color: var(--clr-white); }
.navbar__nav a:not(.btn):hover::after { width: 100%; }

.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
}
.navbar__burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: all var(--dur) var(--ease);
}
.navbar__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__burger.open span:nth-child(2) { opacity: 0; }
.navbar__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5,5,16,.65) 0%,
    rgba(5,5,16,.45) 50%,
    rgba(5,5,16,.98) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--clr-cyan);
  background: rgba(6,182,212,.08);
  border: 1px solid rgba(6,182,212,.2);
  padding: .4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
  animation: fadeInUp .6s var(--ease) both;
}
.hero__badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--clr-cyan);
  box-shadow: 0 0 8px var(--clr-cyan);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .4; }
}

.hero__title {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--clr-white);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
  animation: fadeInUp .6s .1s var(--ease) both;
}
.hero__subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  color: var(--clr-text);
  max-width: 580px;
  margin-bottom: 2.5rem;
  animation: fadeInUp .6s .2s var(--ease) both;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
  animation: fadeInUp .6s .3s var(--ease) both;
}
.hero__stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  animation: fadeInUp .6s .4s var(--ease) both;
}
.stat { display: flex; flex-direction: column; }
.stat__num {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--clr-white);
  line-height: 1;
}
.stat__sym {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-blue);
  display: inline;
}
.stat__label { font-size: .8125rem; color: var(--clr-text-muted); margin-top: .2rem; }
.stat__divider { width: 1px; height: 42px; background: var(--clr-border); }

.hero__scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero__scroll-indicator span {
  display: block;
  width: 24px; height: 40px;
  border: 2px solid rgba(255,255,255,.2);
  border-radius: 12px;
  position: relative;
}
.hero__scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--clr-blue);
  border-radius: 2px;
  animation: scrollDown 1.6s infinite;
}
@keyframes scrollDown {
  0%   { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 12px); opacity: 0; }
}

/* ══════════════════════════════════════════
   SERVICES
══════════════════════════════════════════ */
.services { background: var(--clr-bg-2); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: 2rem;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-blue), transparent);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.service-card:hover {
  border-color: rgba(59,130,246,.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.service-card:hover::before { opacity: 1; }
.service-card__icon {
  width: 48px; height: 48px;
  background: rgba(59,130,246,.1);
  border: 1px solid rgba(59,130,246,.2);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  color: var(--clr-blue);
  transition: background var(--dur) var(--ease);
}
.service-card__icon svg { width: 22px; height: 22px; }
.service-card:hover .service-card__icon { background: rgba(59,130,246,.2); }
.service-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: .75rem;
}
.service-card p {
  font-size: .9375rem;
  color: var(--clr-text);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.service-card__link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--clr-blue);
  transition: gap var(--dur) var(--ease);
  display: inline-flex;
  gap: .35rem;
}
.service-card__link:hover { gap: .6rem; }

/* ══════════════════════════════════════════
   SOLUTIONS
══════════════════════════════════════════ */
.solutions__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.solutions__desc {
  font-size: 1.0625rem;
  color: var(--clr-text);
  margin-bottom: 2rem;
  max-width: 480px;
}
.solutions__features { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2.5rem; }
.solutions__features li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.feat-icon {
  width: 26px; height: 26px;
  background: rgba(59,130,246,.1);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: .1rem;
  color: var(--clr-blue);
}
.feat-icon svg { width: 14px; }
.solutions__features strong { display: block; color: var(--clr-white); font-size: .9375rem; margin-bottom: .1rem; }
.solutions__features span { font-size: .9rem; color: var(--clr-text-muted); }

/* Dashboard card mockup */
.solutions__visual {
  position: relative;
  height: 340px;
}
.solutions__card {
  position: absolute;
  background: var(--clr-bg-card-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  animation: floatCard 6s ease-in-out infinite;
}
.solutions__card--top { width: 340px; top: 0; right: 0; animation-delay: 0s; }
.solutions__card--bottom { width: 220px; bottom: 0; right: 80px; animation-delay: -3s; }
@keyframes floatCard {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.sol-card__header {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: 1.25rem;
}
.sol-dot { width: 10px; height: 10px; border-radius: 50%; }
.sol-dot--green  { background: var(--clr-success); }
.sol-dot--yellow { background: var(--clr-warn); }
.sol-dot--red    { background: #ef4444; }
.sol-card__title { margin-left: .5rem; font-size: .8125rem; font-family: var(--font-mono); color: var(--clr-text-muted); }

.sol-bar { margin-bottom: .85rem; }
.sol-bar span { font-size: .8rem; color: var(--clr-text-muted); display: block; margin-bottom: .3rem; }
.sol-bar em {
  display: block;
  font-style: normal;
  font-size: .7rem;
  color: var(--clr-blue);
  text-align: right;
  margin-bottom: .3rem;
}
.sol-bar::after {
  content: '';
  display: block;
  height: 6px;
  background: var(--clr-border);
  border-radius: 3px;
  position: relative;
}
.sol-bar:nth-child(2)::after { width: 82%; background: linear-gradient(90deg, var(--clr-blue), var(--clr-cyan)); }
.sol-bar:nth-child(3)::after { width: 67%; background: linear-gradient(90deg, var(--clr-blue), var(--clr-cyan)); }
.sol-bar:nth-child(4)::after { width: 91%; background: linear-gradient(90deg, var(--clr-blue), var(--clr-cyan)); }

.sol-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8125rem;
  font-weight: 600;
  padding: .3rem .75rem;
  border-radius: 999px;
  margin-bottom: .75rem;
}
.sol-badge--ok { background: rgba(34,197,94,.1); color: var(--clr-success); border: 1px solid rgba(34,197,94,.2); }
.sol-metric { font-size: 1.75rem; font-weight: 800; color: var(--clr-white); line-height: 1; }
.sol-metric span { font-size: .875rem; font-weight: 400; color: var(--clr-text-muted); display: block; margin-top: .25rem; }

/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
.about { background: var(--clr-bg-2); }
.about__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.about-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.about-card:hover {
  border-color: rgba(59,130,246,.3);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}
.about-card__header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}
.uen-logo {
  max-width: 160px;
  max-height: 120px;
  width: auto;
  height: auto;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}
.about-card:hover .uen-logo {
  transform: scale(1.1) rotate(2deg);
}
.about-card p  { font-size: .9375rem; color: var(--clr-text); line-height: 1.7; text-align: left; }


/* ══════════════════════════════════════════
   CLIENTS
══════════════════════════════════════════ */
.clients__logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.client-logo {
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  padding: .85rem 1.75rem;
  transition: all var(--dur) var(--ease);
}
.client-logo:hover {
  color: var(--clr-white);
  border-color: rgba(59,130,246,.3);
  background: var(--clr-bg-card-2);
}

.clients__more {
  margin-top: 3.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.clients__more p {
  color: var(--clr-text-muted);
  font-size: 1.0625rem;
}

/* ══════════════════════════════════════════
   CTA BAND
══════════════════════════════════════════ */
.cta-band {
  background: linear-gradient(135deg, rgba(59,130,246,.12) 0%, rgba(6,182,212,.08) 100%);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  padding: 4.5rem 0;
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band__text h2 { font-size: 1.875rem; font-weight: 800; color: var(--clr-white); margin-bottom: .5rem; }
.cta-band__text p  { color: var(--clr-text); font-size: 1.0625rem; }

/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
.contact { background: var(--clr-bg-2); }
.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: flex-start;
}
.contact__info .section__title { text-align: left; }
.contact__info p { color: var(--clr-text); font-size: 1.0625rem; margin-bottom: 2rem; }
.contact__details { display: flex; flex-direction: column; gap: 1rem; }
.contact__details li { display: flex; align-items: center; gap: .75rem; font-size: .9375rem; }
.contact__details svg { color: var(--clr-blue); flex-shrink: 0; }
.contact__details a:hover { color: var(--clr-blue); }

.contact__form {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .875rem; font-weight: 600; color: var(--clr-white); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--clr-bg-2);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-sm);
  padding: .75rem 1rem;
  color: var(--clr-white);
  font-family: var(--font-sans);
  font-size: .9375rem;
  transition: border-color var(--dur) var(--ease);
  outline: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--clr-text-muted); }
.form-group select option { background: var(--clr-bg-card); color: var(--clr-white); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--clr-blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,.1);
}
.form-note { font-size: .8125rem; color: var(--clr-text-muted); text-align: center; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  background: var(--clr-bg);
  border-top: 1px solid var(--clr-border-2);
  padding: 4rem 0 2rem;
}
.footer__top {
  display: flex;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--clr-border-2);
  flex-wrap: wrap;
}
.footer__brand { max-width: 320px; }
.footer__brand .logo-img-footer { margin-bottom: 1.5rem; height: 75px; width: auto; mix-blend-mode: lighten; }
.footer__brand p { font-size: .9rem; color: var(--clr-text-muted); line-height: 1.6; }
.footer__links { display: flex; gap: 4rem; flex: 1; flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: .75rem; }
.footer__col h4 { font-size: .875rem; font-weight: 700; color: var(--clr-white); margin-bottom: .25rem; }
.footer__col a { font-size: .875rem; color: var(--clr-text-muted); transition: color var(--dur) var(--ease); }
.footer__col a:hover { color: var(--clr-blue); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__bottom p { font-size: .875rem; color: var(--clr-text-muted); }
.mono { font-family: var(--font-mono); font-size: .8125rem; color: var(--clr-blue); }

/* ─── ANIMATIONS ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .solutions__layout  { grid-template-columns: 1fr; }
  .solutions__visual  { height: 280px; display: flex; justify-content: center; }
  .solutions__card--top { position: static; }
  .solutions__card--bottom { display: none; }
  .about__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .navbar__nav {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: rgba(10,10,26,.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 1.5rem;
    transition: right var(--dur) var(--ease);
    border-left: 1px solid var(--clr-border);
  }
  .navbar__nav.open { right: 0; }
  .navbar__burger { display: flex; }
  .services__grid { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .contact__layout { grid-template-columns: 1fr; gap: 3rem; }
  .cta-band__inner { flex-direction: column; text-align: center; }
  .hero__stats { gap: 1.5rem; }
  .stat__divider { display: none; }
  .footer__top { flex-direction: column; gap: 2rem; }
  .footer__links { gap: 2.5rem; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .btn--lg { width: 100%; justify-content: center; }
}
