/* ==========================================================================
   TEMPORADA 2 · CYBERPUNK + END INFECTION SYSTEM (DESIGN_SYSTEM.md)
   Paleta: Saori Amatista (#9B59B6 -> #E056FD), Infinity (#8B5CF6 / #00E5FF),
   Obsidiana Abisal (#1E1E2E / #06040E), Oro Imperial (#FFD700)
   ========================================================================== */

.t2 {
  --t2-v: #8b5cf6;
  --t2-m: #e056fd;
  --t2-c: #00e5ff;
  --t2-deep: #140f26;
  margin-bottom: 2.5rem;
  scroll-margin-top: 4.5rem;
}

.t2 > h2,
.t2-glitch-title {
  background: linear-gradient(90deg, #c084fc 0%, #e056fd 55%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
}

.t2 > h2::after,
.t2-glitch-title::after {
  content: attr(data-glitch);
  position: absolute;
  left: 0;
  top: 0;
  color: #e056fd;
  opacity: 0;
  -webkit-text-fill-color: #e056fd;
  pointer-events: none;
  animation: t2-glitch 7.5s steps(1) infinite;
}

@keyframes t2-glitch {
  0%, 94%, 100% { opacity: 0; transform: none; }
  95% { opacity: 0.55; transform: translate(2px, -1px); clip-path: inset(10% 0 55% 0); }
  97% { opacity: 0.48; transform: translate(-2px, 1px); clip-path: inset(55% 0 10% 0); }
}

.t2-lead {
  max-width: 62rem;
  opacity: 0.88;
  line-height: 1.68;
}

.t2-grid {
  display: grid;
  gap: 1.05rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  margin: 1.4rem 0;
}

.t2-card {
  position: relative;
  background: linear-gradient(155deg, rgba(139, 92, 246, 0.13), rgba(14, 10, 29, 0.78));
  border: 1px solid rgba(224, 86, 253, 0.24);
  border-left: 3px solid var(--t2-v);
  padding: 1.2rem 1.3rem;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.t2-card::before {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid rgba(0, 229, 255, 0.55);
  border-right: 1.5px solid rgba(0, 229, 255, 0.55);
  pointer-events: none;
}

.t2-card:hover {
  border-color: rgba(224, 86, 253, 0.6);
  box-shadow: 0 0 26px rgba(139, 92, 246, 0.22);
  transform: translateY(-2px);
}

.t2-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.16rem;
  color: #fff;
}

.t2-card .t2-tag {
  display: inline-block;
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e056fd;
  margin-bottom: 0.45rem;
}

.t2-card p {
  margin: 0 0 0.65rem;
  font-size: 0.93rem;
  line-height: 1.62;
  opacity: 0.9;
}

.t2-card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.65;
  opacity: 0.84;
}

.t2-note {
  border: 1px dashed rgba(224, 86, 253, 0.38);
  padding: 0.85rem 1.1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  background: rgba(139, 92, 246, 0.08);
}

.bedrock-box {
  border: 1px solid rgba(139, 92, 246, 0.38);
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.14), rgba(14, 10, 29, 0.78));
  padding: 1.25rem 1.45rem;
  margin: 1.25rem 0;
}

.bedrock-box h3 { margin: 0 0 0.4rem; }
.bedrock-box ol, .bedrock-box ul { line-height: 1.7; font-size: 0.93rem; }

.bedrock-cta {
  display: inline-block;
  padding: 0.78rem 1.45rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(90deg, #8b5cf6, #e056fd);
  border: 0;
  box-shadow: 0 0 20px rgba(224, 86, 253, 0.35);
}

.bedrock-cta[aria-disabled="true"] {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  color: inherit;
  opacity: 0.85;
}

.bedrock-status { font-size: 0.85rem; opacity: 0.78; margin: 0.6rem 0 0; }

.t2-tag-test {
  display: inline-block;
  font-size: 0.7rem;
  font-family: var(--font-mono, monospace);
  padding: 0.08rem 0.5rem;
  border: 1px solid #e056fd;
  color: #e056fd;
  margin-left: 0.35rem;
}

/* ── Home Season 2 Horizon Band ────────────────────────────────── */
.t2-horizon-band {
  position: relative;
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
  background:
    radial-gradient(ellipse 65% 60% at 80% 25%, rgba(224, 86, 253, 0.14), transparent 70%),
    radial-gradient(ellipse 60% 60% at 15% 80%, rgba(139, 92, 246, 0.15), transparent 70%),
    linear-gradient(180deg, #080514 0%, #0d0820 50%, #06040e 100%);
  border-block: 1px solid rgba(224, 86, 253, 0.24);
  overflow: hidden;
}

.t2-horizon-head {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2.5rem;
  align-items: end;
  margin-bottom: 2.5rem;
}

.t2-horizon-head h2 {
  margin: 0;
  font-family: var(--font-heading, "Cinzel", serif);
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  line-height: 1.02;
}

.t2-horizon-head > p {
  margin: 0;
  color: rgba(244, 246, 251, 0.76);
  line-height: 1.7;
  font-size: 0.98rem;
}

.t2-status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.6rem;
  padding: 0.95rem 1.25rem;
  background: rgba(10, 7, 22, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.28);
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
}

.t2-status-bar span {
  color: rgba(244, 246, 251, 0.82);
}

.t2-status-bar strong {
  color: #00e5ff;
}

/* ── Interior Page HUD Telemetry Strip ─────────────────────────── */
.t2-hud-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.15rem;
  align-items: center;
  margin-top: 1.35rem;
  padding: 0.7rem 1rem;
  background: linear-gradient(90deg, rgba(14, 10, 29, 0.88), rgba(8, 5, 20, 0.82));
  border: 1px solid rgba(224, 86, 253, 0.32);
  border-left: 3px solid #00e5ff;
  font-family: var(--font-mono, monospace);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: rgba(248, 249, 250, 0.86);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
}

.t2-hud-strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.t2-hud-strip strong {
  color: #e056fd;
  font-weight: 600;
}

.t2-hud-strip b {
  color: #00e5ff;
  font-weight: 600;
}

/* ── Fase 4: Galería HUD de Capturas (assets/screens/) ─────────── */
.screens-section {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
  background: #06040e;
  border-bottom: 1px solid rgba(168, 85, 247, 0.18);
  scroll-margin-top: 4.5rem;
}

.screens-heading {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: end;
  margin-bottom: 2.8rem;
}

.screens-heading h2 {
  margin: 0;
  font-family: var(--font-heading, "Cinzel", serif);
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  line-height: 1.02;
}

.screens-heading > p {
  margin: 0;
  color: rgba(244, 246, 251, 0.72);
  line-height: 1.68;
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.screen-card {
  margin: 0;
  position: relative;
  background: rgba(12, 9, 26, 0.9);
  border: 1px solid rgba(168, 85, 247, 0.26);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.screen-card:hover {
  border-color: rgba(224, 86, 253, 0.68);
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.24);
  transform: translateY(-3px);
}

.screen-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  background: #090616;
}

.screen-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.screen-card:hover .screen-card__media img {
  transform: scale(1.03);
}

.screen-card__slot {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  padding: 0.24rem 0.55rem;
  background: rgba(6, 4, 14, 0.86);
  border: 1px solid rgba(224, 86, 253, 0.45);
  color: #e056fd;
  font: 600 0.64rem/1.2 var(--font-mono, monospace);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.screen-card__caption {
  padding: 0.95rem 1.1rem;
  border-top: 1px solid rgba(168, 85, 247, 0.16);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.screen-card__caption strong {
  font-family: var(--font-heading, "Cinzel", serif);
  font-size: 1.02rem;
  color: #fff;
}

.screen-card__caption span {
  font-size: 0.83rem;
  color: rgba(244, 246, 251, 0.68);
  line-height: 1.45;
}

@media (max-width: 980px) {
  .t2-horizon-head,
  .screens-heading { grid-template-columns: 1fr; gap: 1rem; }
  .screens-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .screens-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .t2 > h2::after,
  .t2-glitch-title::after { animation: none; }
  .t2-card,
  .screen-card,
  .screen-card__media img { transition: none; transform: none !important; }
}
