/* ==========================================================================
   DISEÑO A  ·  Oscuro, red de nodos y brillo azul  (index.html)
   Secciones: hero · marquesina · servicios (bento) · proceso · enfoque · contacto
   ========================================================================== */

.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -.03em; margin: 14px 0 0; text-wrap: balance; font-weight: 700; }
.sec-head h2 .r { color: var(--accent-soft); }
.sec-head p { color: var(--muted); margin: 0; max-width: 480px; justify-self: end; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: 72px 88px; }
.hero canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: .8; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 75%);
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-family: var(--font-display); font-size: clamp(38px, 5.6vw, 74px); line-height: 1.02; letter-spacing: -.035em; margin: 22px 0 24px; text-wrap: balance; font-weight: 700; }
.hero h1 .r { color: var(--accent-soft); }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 520px; margin: 0 0 34px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.tags { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tags i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

.stage { position: relative; min-width: 0; width: 100%; max-width: 520px; aspect-ratio: 1 / 1.02; justify-self: end; }
.stage__sym { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .15s ease-out; will-change: transform; }
.stage__sym img { position: relative; width: 74%; height: auto; filter: drop-shadow(0 30px 60px var(--accent-glow)); }
.stage__halo { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--accent-glow), transparent 70%); filter: blur(30px); }
.term { position: absolute; left: -4%; bottom: 2%; width: min(330px, 82%); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.term__bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.term__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.term__bar i:first-child { background: var(--accent); }
.term pre { margin: 0; padding: 14px 16px 16px; min-height: 158px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.85; color: var(--muted); white-space: pre-wrap; }
.term .ok { color: var(--accent-soft); }
.term .cmd { color: var(--fg); }
.term .cur { display: inline-block; width: 7px; height: 14px; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.chip { position: absolute; right: -2%; top: 8%; display: flex; gap: 10px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: var(--font-mono); font-size: 12px; animation: float 6s ease-in-out infinite; }
.chip b { color: var(--accent-soft); font-weight: 500; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Marquesina de tecnologías ---------- */
.stack-band { border-block: 1px solid var(--line); background: var(--surface); padding: 22px 0; }
.stack-band .marquee__track { gap: 56px; padding-right: 56px; }
.stack-band .marquee__track span { display: flex; align-items: center; gap: 56px; white-space: nowrap; font-family: var(--font-mono); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stack-band .marquee__track span::after { content: ""; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); }

/* ---------- Nosotros: misión y visión ---------- */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mv .card { padding: clamp(28px, 3.4vw, 44px); }
.mv .card__icon { margin-bottom: 34px; }
.mv .card h3 { font-size: clamp(28px, 3.2vw, 38px); margin: 10px 0 14px; }
.mv .card h3 .r { color: var(--accent-soft); }
.mv .card p { font-size: 17px; line-height: 1.65; }
.about-more { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.about-more p { margin: 0 0 16px; color: var(--muted); }
.about-more p:last-child { margin-bottom: 0; }
.about-more blockquote { margin: 0; padding-left: 22px; border-left: 2px solid var(--accent); font-size: clamp(20px, 2.2vw, 28px); line-height: 1.35; letter-spacing: -.015em; font-weight: 300; }
.about-more blockquote b { font-weight: 700; }

/* ---------- Servicios (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card { position: relative; min-width: 0; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; transition: border-color .3s, transform .3s; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--accent-glow), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); transform: translateY(-3px); }
.card:hover::before { opacity: .7; }
.card > * { position: relative; }
.card h3 { font-size: 24px; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 10px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 46px; color: var(--accent-soft); }
.card__icon svg { width: 24px; height: 24px; }
.card--a { grid-column: span 3; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; }
.card--b, .card--c { grid-column: span 3; }
.card--d, .card--e, .card--f { grid-column: span 2; }
.card--a h3 { font-size: clamp(28px, 3.4vw, 40px); }
.card__facets { position: absolute; right: -40px; bottom: -30px; width: 56%; opacity: .4; pointer-events: none; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.pills span { font-family: var(--font-mono); font-size: 11.5px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; border-top: 1px solid var(--line); }
.step { position: relative; min-width: 0; padding: 34px 28px 10px 0; }
.step::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; background: var(--accent); transform: rotate(45deg); box-shadow: 0 0 18px var(--accent); }
.step .mono { color: var(--accent-soft); }
.step h3 { font-size: 26px; letter-spacing: -.02em; margin: 12px 0 10px; font-weight: 600; }
.step p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* ---------- Enfoque ---------- */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.why h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1.04; letter-spacing: -.035em; margin: 14px 0 0; font-weight: 700; text-wrap: balance; }
.why h2 .r { color: var(--accent-soft); }
.principles > div { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.principles > div:first-child { border-top: 1px solid var(--line); }
.principles svg { width: 30px; height: 30px; color: var(--accent-soft); }
.principles h3 { margin: 0 0 4px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.principles p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- Contacto ---------- */
.contact { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: clamp(28px, 5vw, 64px); border: 1px solid var(--line); border-radius: 28px; background: var(--surface); overflow: hidden; }
.contact::after { content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; background: radial-gradient(circle, var(--accent-glow), transparent 65%); pointer-events: none; }
.contact > * { position: relative; z-index: 1; min-width: 0; }
.contact h2 { font-size: clamp(48px, 7vw, 100px); line-height: .98; letter-spacing: -.045em; margin: 14px 0 30px; font-weight: 700; }
.contact h2 .r { color: var(--accent-soft); }
.reach { display: grid; gap: 22px; }
.reach h4 { margin: 0 0 8px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.reach ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.reach a { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; color: var(--fg); transition: color .2s; }
.reach a:hover { color: var(--accent-soft); }
.reach svg { width: 18px; height: 18px; flex: none; color: var(--accent-soft); }
.form__actions .btn { flex: 1 1 200px; }

@media (max-width: 960px) {
  .hero__grid, .why, .contact, .sec-head, .mv, .about-more { grid-template-columns: 1fr; }
  .about-more { gap: 32px; }
  .sec-head p { justify-self: start; }
  .stage { justify-self: center; margin-top: 10px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .card--a, .card--b, .card--c, .card--d, .card--e, .card--f { grid-column: span 6; grid-row: auto; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .hero { padding-block: 44px 60px; }
  .term { left: 0; }
  .chip { right: 0; }
}
