:root {
  --fondo: #08080d;
  --superficie: rgba(255, 255, 255, .04);
  --borde: rgba(255, 255, 255, .09);
  --texto: #ededf3;
  --gris: #9a9bb0;
  --violeta: #8b5cf6;
  --cian: #22d3ee;
  --degradado: linear-gradient(120deg, #8b5cf6, #22d3ee);
  --whatsapp: #25d366;
  --radio: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background: var(--fondo);
  color: var(--texto);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.contenedor { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* Fondo con resplandores */
.fondo { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.fondo::before, .fondo::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(110px); opacity: .5;
}
.fondo::before { width: 520px; height: 520px; background: #6d3df0; top: -140px; left: -120px; }
.fondo::after { width: 460px; height: 460px; background: #0ea5c4; top: 280px; right: -140px; opacity: .32; }
.fondo .rejilla {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--borde) 1px, transparent 1px), linear-gradient(90deg, var(--borde) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .35;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%);
}

/* Navegación */
.nav {
  position: sticky; top: 12px; z-index: 50;
  margin: 12px auto 0; width: min(1160px, 100% - 24px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 10px 20px;
  background: rgba(14, 14, 22, .65);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--borde); border-radius: 999px;
}
.logo { font-weight: 800; letter-spacing: .14em; font-size: 1rem; }
.logo span { background: var(--degradado); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav ul { display: flex; gap: 26px; list-style: none; }
.nav ul a { color: var(--gris); font-size: .93rem; transition: color .2s; }
.nav ul a:hover { color: #fff; }

.boton {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid var(--borde); background: var(--superficie);
  transition: transform .2s, background .2s, box-shadow .2s;
}
.boton:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .08); }
.boton.principal { background: var(--degradado); border-color: transparent; color: #07070c; box-shadow: 0 8px 30px rgba(139, 92, 246, .35); }
.boton.principal:hover { box-shadow: 0 12px 38px rgba(34, 211, 238, .35); background: var(--degradado); }

/* Hero */
.hero { padding: 96px 0 56px; text-align: center; }
.etiqueta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: .82rem; color: var(--gris);
  border: 1px solid var(--borde); background: var(--superficie);
}
.etiqueta i { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; }
.hero h1 {
  font-size: clamp(2.5rem, 7.5vw, 5.4rem); line-height: 1.04; letter-spacing: -.035em;
  margin: 22px auto 18px; max-width: 920px; font-weight: 800;
}
.grad { background: var(--degradado); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--gris); font-size: clamp(1.02rem, 2vw, 1.2rem); max-width: 600px; margin: 0 auto 30px; }
.acciones { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Acrónimo */
.acronimo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 64px; }
.letra {
  position: relative; padding: 22px 18px 18px; text-align: left; overflow: hidden;
  background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio);
  transition: transform .25s, border-color .25s;
}
.letra:hover { transform: translateY(-5px); border-color: rgba(139, 92, 246, .55); }
.letra b { display: block; font-size: 3.4rem; line-height: 1; font-weight: 800; background: var(--degradado); -webkit-background-clip: text; background-clip: text; color: transparent; }
.letra span { display: block; margin-top: 8px; font-weight: 600; }
.letra small { color: var(--gris); font-size: .85rem; }

/* Secciones */
section { padding: 84px 0; }
.encabezado { max-width: 640px; margin-bottom: 40px; }
.encabezado .sup { color: var(--cian); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.encabezado h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); letter-spacing: -.025em; line-height: 1.1; margin: 10px 0 12px; }
.encabezado p { color: var(--gris); }

/* Servicios (bento) */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.celda {
  background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio);
  padding: 26px; position: relative; overflow: hidden; transition: border-color .25s, transform .25s;
}
.celda:hover { border-color: rgba(34, 211, 238, .45); transform: translateY(-4px); }
.celda .icono {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 16px;
  background: rgba(139, 92, 246, .16); border: 1px solid rgba(139, 92, 246, .3);
}
.celda h3 { font-size: 1.15rem; margin-bottom: 6px; }
.celda p { color: var(--gris); font-size: .94rem; }
.c1 { grid-column: span 3; }
.c2 { grid-column: span 3; }
.c3 { grid-column: span 2; }
.c4 { grid-column: span 2; }
.c5 { grid-column: span 2; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { font-size: .78rem; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--borde); color: var(--gris); background: rgba(255, 255, 255, .03); }

/* Trabajos */
.trabajos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trabajo {
  background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, border-color .25s;
}
.trabajo:hover { transform: translateY(-6px); border-color: rgba(139, 92, 246, .5); }
.ventana { margin: 12px 12px 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--borde); background: #111118; }
.barra { display: flex; gap: 6px; padding: 9px 12px; background: rgba(255, 255, 255, .04); }
.barra i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.pantalla { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.pantalla iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 800px; border: 0; transform-origin: top left; pointer-events: none; }
.trabajo .cuerpo { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.trabajo h3 { font-size: 1.15rem; }
.trabajo p { color: var(--gris); font-size: .92rem; flex: 1; }
.trabajo .enlace { margin-top: 10px; font-weight: 600; color: var(--cian); font-size: .93rem; }
.trabajo .enlace span { display: inline-block; transition: transform .2s; }
.trabajo:hover .enlace span { transform: translateX(5px); }

/* Proceso */
.proceso { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: paso; }
.paso { padding: 24px; border-radius: var(--radio); border: 1px solid var(--borde); background: var(--superficie); position: relative; }
.paso::before {
  counter-increment: paso; content: "0" counter(paso);
  font-size: 2.4rem; font-weight: 800; line-height: 1; display: block; margin-bottom: 12px;
  background: var(--degradado); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.paso h3 { margin-bottom: 4px; }
.paso p { color: var(--gris); font-size: .92rem; }

/* Llamado a la acción */
.cta {
  text-align: center; padding: 64px 28px; border-radius: 32px; position: relative; overflow: hidden;
  border: 1px solid var(--borde);
  background: radial-gradient(ellipse at 20% 0%, rgba(139, 92, 246, .35), transparent 60%), radial-gradient(ellipse at 90% 100%, rgba(34, 211, 238, .28), transparent 55%), var(--superficie);
}
.cta h2 { font-size: clamp(1.8rem, 4.6vw, 3rem); letter-spacing: -.025em; line-height: 1.1; margin-bottom: 12px; }
.cta p { color: var(--gris); max-width: 520px; margin: 0 auto 26px; }

footer { padding: 34px 0 50px; color: var(--gris); font-size: .9rem; }
footer .contenedor { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--borde); padding-top: 24px; }

/* Botón flotante de WhatsApp */
.whatsapp-flotante {
  position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp); display: grid; place-items: center; z-index: 60;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45); transition: transform .2s;
}
.whatsapp-flotante:hover { transform: scale(1.08); }
.whatsapp-flotante svg { width: 30px; height: 30px; fill: #fff; }

/* Aparición al desplazarse */
.revela { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.revela.visible { opacity: 1; transform: none; }
.sin-js .revela { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .revela { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 900px) {
  .acronimo, .proceso { grid-template-columns: repeat(2, 1fr); }
  .trabajos { grid-template-columns: 1fr; }
  .c1, .c2, .c3, .c4, .c5 { grid-column: span 6; }
}
@media (max-width: 700px) {
  .nav ul { display: none; }
  .hero { padding-top: 64px; }
  section { padding: 60px 0; }
}
@media (max-width: 420px) {
  .acronimo, .proceso { grid-template-columns: 1fr; }
}
