/* ════════════════════════════════════════════════════════════
   FUTURO.CSS — Capa premium compartida (todas las páginas)
   Efectos 3D, contraste, microdetalles. Carga después de sections.css
   ════════════════════════════════════════════════════════════ */

/* ── CONTRASTE GLOBAL — los grises ilegibles suben un paso ── */
:root {
  --text-dim: #6A655D;          /* antes #4A4A4A — ilegible sobre #0A0A0A */
}

/* ── SELECCIÓN + SCROLLBAR — detalle premium ── */
::selection { background: rgba(196, 98, 42, 0.85); color: #0A0A0A; }
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: #0A0A0A; }
::-webkit-scrollbar-thumb {
  background: #2A2A2A;
  border: 2px solid #0A0A0A;
}
::-webkit-scrollbar-thumb:hover { background: var(--terracota); }

/* ── FOCUS visible accesible ── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 1px solid var(--terracota);
  outline-offset: 3px;
}

/* ── TILT 3D universal (lo activa futuro.js) ── */
.fx-tilt {
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.35s;
  will-change: transform;
  position: relative;
}
.fx-tilt:hover { z-index: 2; }

/* Glare que sigue el mouse */
.fx-glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--gx, 50%) var(--gy, 50%),
    rgba(196, 98, 42, 0.16) 0%,
    rgba(240, 237, 232, 0.05) 30%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 3;
}
.fx-tilt:hover .fx-glare { opacity: 1; }

/* ── SCANLINE inyectable ── */
.fx-scanline {
  position: absolute;
  left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 98, 42, 0.35), transparent);
  animation: fxScan 9s linear infinite;
  pointer-events: none;
  z-index: 4;
}
@keyframes fxScan { from { top: -1px; } to { top: 100%; } }

/* ── LOADING SCREEN — "L" Inter Black 900 (diseño Notion) ── */
.pre-L {
  font-family: 'Inter', var(--font-main), sans-serif;
  font-weight: 900;
  font-size: clamp(64px, 10vw, 110px);
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.04em;
  display: block;
  position: relative;
}
.pre-L::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%) scaleX(0);
  width: 72px;
  height: 1px;
  background: var(--terracota);
  animation: preLine 1.4s cubic-bezier(0.23, 1, 0.32, 1) 0.3s forwards;
}
@keyframes preLine { to { transform: translateX(-50%) scaleX(1); } }

/* ── REDUCED MOTION — respeto total ── */
@media (prefers-reduced-motion: reduce) {
  .fx-tilt, .fx-glare, .fx-scanline { transition: none !important; animation: none !important; }
}
