/* ==========================================================================
   Mining AI — Página: Tecnología & IA (estética digital, fondo oscuro)
   ========================================================================== */

body.is-dark { background: var(--navy-950); }

/* ---------- Hero ---------- */
.tech-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--navy-950);
}
.tech-hero__media { position: absolute; inset: -4% 0 -6% 0; z-index: -3; }
.tech-hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  opacity: 0.75;
}
.tech-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 10, 20, 0.95) 0%, rgba(5, 10, 20, 0.55) 45%, rgba(5, 10, 20, 0.2) 100%),
    linear-gradient(0deg, var(--navy-950) 0%, transparent 40%);
}
.tech-hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.8; }
.tech-hero__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(79, 140, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 140, 255, 0.07) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: linear-gradient(0deg, transparent, #000 40%, #000 70%, transparent);
  mask-image: linear-gradient(0deg, transparent, #000 40%, #000 70%, transparent);
  pointer-events: none;
}
.tech-hero__content { padding-top: calc(var(--header-h) + 4rem); padding-bottom: 3rem; }
.tech-hero .eyebrow { color: rgba(255, 255, 255, 0.85); }
.tech-hero .eyebrow::before { background: var(--brand-cyan); }
.tech-hero__title {
  margin-top: 1.5rem;
  font-size: clamp(2.6rem, 0.8rem + 6vw, 7.25rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.grad {
  background: linear-gradient(90deg, #ffffff 0%, var(--brand-cyan) 60%, var(--brand-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tech-hero__readout {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  padding-block: 1.5rem 2.5rem;
  border-top: 1px solid rgba(0, 210, 230, 0.15);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.tech-hero__readout span { display: inline-flex; align-items: center; gap: 0.6rem; }
.tech-hero__readout i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 10px var(--brand-cyan);
  animation: pulse 2.4s ease-in-out infinite;
}
.tech-hero__readout span:nth-child(2) i { animation-delay: 0.6s; }
.tech-hero__readout span:nth-child(3) i { animation-delay: 1.2s; }
.tech-hero__readout span:nth-child(4) i { animation-delay: 1.8s; background: var(--brand-blue); box-shadow: 0 0 10px var(--brand-blue); }
@keyframes pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* ---------- Cuatro preguntas ---------- */
.questions { background: var(--navy-950); }
.questions .eyebrow { color: rgba(255, 255, 255, 0.85); }
.questions .eyebrow::before { background: var(--brand-cyan); }
.q-list { margin-top: 3rem; border-top: 1px solid rgba(0, 210, 230, 0.12); }
.q-list a {
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  align-items: baseline;
  gap: 1.5rem;
  padding-block: clamp(1.4rem, 1rem + 1.4vw, 2.4rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: padding-left 0.6s var(--ease-out), background-color 0.6s;
}
.q-list a:hover { padding-left: 1.25rem; background: linear-gradient(90deg, rgba(0, 210, 230, 0.08), transparent 70%); }
.q-list__num { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--brand-cyan); }
.q-list__q {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 0.9rem + 2.4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
}
.q-list__area {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}
@media (max-width: 860px) {
  .q-list a { grid-template-columns: 2.5rem 1fr; }
  .q-list__area { grid-column: 2; white-space: normal; }
}

/* ---------- Módulos ---------- */
.t-areas { background: var(--navy-950); }
.t-area {
  position: relative;
  padding-block: clamp(4rem, 2rem + 6vw, 9rem);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  scroll-margin-top: 2rem;
}
.t-area::before {
  /* halo sutil */
  content: "";
  position: absolute;
  width: 50vw; height: 50vw;
  max-width: 760px; max-height: 760px;
  top: 50%; right: -10%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(0, 210, 230, 0.1), transparent 65%);
  pointer-events: none;
}
.t-area--reverse::before { right: auto; left: -10%; }
.t-area__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 1rem + 5vw, 7rem);
  align-items: center;
}
.t-area--reverse .t-frame { order: -1; }
.t-area__content { display: grid; gap: 1.5rem; justify-items: start; }
.t-area__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(0, 210, 230, 0.4);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-cyan);
}
.t-area__tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-cyan); box-shadow: 0 0 8px var(--brand-cyan); }
.t-area__title {
  font-size: clamp(2.1rem, 1.2rem + 3vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: #fff;
  max-width: 13ch;
}
.t-area__q {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 0.9rem + 1vw, 1.75rem);
  font-weight: 500;
  line-height: 1.25;
  color: #cce7ff;
  padding-left: 1.25rem;
  border-left: 2px solid var(--brand-cyan);
  margin-bottom: 0.75rem;
}

/* Marco tipo interfaz */
.t-frame {
  position: relative;
  border: 1px solid rgba(0, 210, 230, 0.2);
  border-radius: var(--radius-lg);
  background: rgba(8, 22, 43, 0.75);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(0, 210, 230, 0.15);
}
.t-frame__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.55);
}
.t-frame__live { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--brand-cyan); }
.t-frame__live::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 8px var(--brand-cyan);
  animation: pulse 2s ease-in-out infinite;
}
.t-frame__img { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.t-frame__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-out); }
.t-frame:hover .t-frame__img img { transform: scale(1.05); }
.t-frame__img::after {
  /* línea de escaneo */
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 30%;
  background: linear-gradient(180deg, transparent, rgba(0, 210, 230, 0.15), transparent);
  animation: frameScan 6s linear infinite;
  pointer-events: none;
}
@keyframes frameScan { from { transform: translateY(-100%); } to { transform: translateY(340%); } }
.t-frame .hud { inset: calc(2.6rem + 1rem) 1rem 1rem; }

@media (max-width: 900px) {
  .t-area__grid { grid-template-columns: 1fr; }
  .t-area--reverse .t-frame { order: 0; }
}

/* ---------- Integración ---------- */
.synergy { background: var(--navy-900); border-top: 1px solid rgba(255, 255, 255, 0.06); }
.synergy .eyebrow { color: rgba(255, 255, 255, 0.85); }
.synergy .eyebrow::before { background: var(--brand-cyan); }
.synergy__eq {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1.15fr;
  align-items: stretch;
  gap: 1rem;
}
.synergy__term {
  display: grid;
  align-content: space-between;
  gap: 2.5rem;
  min-height: 220px;
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 0.9rem + 1.2vw, 2rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
  transition: border-color 0.4s, background-color 0.4s;
}
a.synergy__term:hover { border-color: rgba(0, 210, 230, 0.35); background: rgba(0, 210, 230, 0.04); }
.synergy__term--tech { border-color: rgba(0, 210, 230, 0.45); background: rgba(0, 102, 255, 0.08); }
.synergy__term--tech .index-num { color: var(--brand-cyan); }
.synergy__term--result {
  background: linear-gradient(135deg, var(--brand-blue) 0%, #00d2e6 100%);
  border-color: #00d2e6;
  box-shadow: 0 16px 40px rgba(0, 102, 255, 0.35);
}
.synergy__term--result .index-num { color: #fff; }
.synergy__op {
  align-self: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 960px) {
  .synergy__eq { grid-template-columns: 1fr; }
  .synergy__op { justify-self: center; line-height: 1; }
  .synergy__term { min-height: 0; gap: 1.5rem; }
}
