/* ===== BASE: colores, tipografía, fondo de luces, grano y tarjetas de cristal ===== */
/* Idea: noche de club analógica. Fondo berenjena con luces ámbar y rosa que derivan, grano de película, vidrio esmerilado, un vinilo que gira. */
:root {
  --bg: #17111d;
  --bg2: #20172a;
  --ink: #f7efe8;
  --muted: #bfb0bd;
  --amber: #ffb347;
  --rose: #ff5d7a;
  --teal: #4fd6c4;
  --glass: rgba(255, 244, 236, 0.07);
  --glass-line: rgba(255, 244, 236, 0.14);
  --fun: "Lilita One", "Chalkboard SE", "Comic Sans MS", "Trebuchet MS", sans-serif;
  --display: "Syne", "Trebuchet MS", sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 6px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; position: relative; z-index: 2; }
h1, h2, h3 { font-family: var(--display); margin: 0; font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 5.2vw, 3.5rem); margin-bottom: 1rem; }
p { margin: 0 0 1em; max-width: 60ch; }
section { padding: 5.5rem 0; position: relative; }

/* Ambiente: luces, grano, cursor */
.lights { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.lights i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; will-change: transform; }
.lights i:nth-child(1) { width: 52vmax; height: 52vmax; background: var(--rose); left: -14vmax; top: -12vmax; animation: drift1 26s ease-in-out infinite alternate; opacity: 0.38; }
.lights i:nth-child(2) { width: 46vmax; height: 46vmax; background: var(--amber); right: -16vmax; top: 22vh; animation: drift2 32s ease-in-out infinite alternate; opacity: 0.3; }
.lights i:nth-child(3) { width: 38vmax; height: 38vmax; background: var(--teal); left: 18vw; bottom: -20vmax; animation: drift3 38s ease-in-out infinite alternate; opacity: 0.2; }
@keyframes drift1 { to { transform: translate(18vw, 14vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-22vw, -10vh) scale(0.9); } }
@keyframes drift3 { to { transform: translate(14vw, -16vh) scale(1.2); } }
.grain { position: fixed; inset: -50%; z-index: 50; pointer-events: none; opacity: 0.1; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.9s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,3%); } 80% { transform: translate(3%,1%); } 100% { transform: translate(0,0); } }
.cursor { position: fixed; left: 0; top: 0; width: 460px; height: 460px; margin: -230px 0 0 -230px; border-radius: 50%; z-index: 1; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 179, 71, 0.16), transparent 62%); transform: translate(-999px, -999px); }
@media (hover: none) { .cursor { display: none; } }

/* Cristal con foco que sigue al puntero */
.glass { position: relative; background: var(--glass); border: 1px solid var(--glass-line); border-radius: 22px; backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); overflow: hidden; transition: transform 0.5s cubic-bezier(.2,.7,.2,1), border-color 0.4s; }
.glass::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 190, 120, 0.2), transparent 60%); }
.glass:hover::before { opacity: 1; }
.glass > * { position: relative; }

