:root {
  --blue: #0000f2;
  --blue-soft: rgba(80, 110, 255, 0.55);
  --ink: #eaf0ff;
  --muted: #9fb0e0;
  --glass: rgba(18, 24, 52, 0.42);
  --glass-border: rgba(90, 130, 255, 0.28);
  --shadow: 0 8px 32px rgba(0, 0, 242, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background: #06091a;
  overflow-x: hidden;
}

/* ---- Capas parallax global (fondo + orbes) ---- */
.layer { position: fixed; inset: -12vh -12vw; z-index: 0; pointer-events: none; will-change: transform; }
.layer img { width: 100%; height: 100%; object-fit: cover; display: block; }
.layer-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(6,9,22,0.5), rgba(6,9,22,0.85)); }
.orb { position: absolute; border-radius: 50%; filter: blur(10px); will-change: transform; }
.orb-blue {
  top: -10vh; left: -6vw; width: 42vw; height: 42vw;
  background: radial-gradient(circle at 50% 50%, rgba(0,0,242,0.42) 0%, rgba(0,0,242,0.16) 35%, rgba(0,0,242,0) 70%);
  animation: floatA 14s ease-in-out infinite alternate;
}
.orb-gold {
  bottom: -14vh; right: -8vw; width: 56vw; height: 56vw;
  background: radial-gradient(circle at 50% 50%, rgba(255,196,80,0.24) 0%, rgba(255,170,60,0.11) 40%, rgba(255,170,60,0) 72%);
  animation: floatB 26s ease-in-out infinite alternate;
}
@keyframes floatA { 0%{transform:translate3d(0,0,0) scale(1)} 50%{transform:translate3d(6vw,8vh,0) scale(1.12)} 100%{transform:translate3d(-4vw,14vh,0) scale(1.04)} }
@keyframes floatB { 0%{transform:translate3d(0,0,0) scale(1)} 50%{transform:translate3d(-7vw,-6vh,0) scale(1.08)} 100%{transform:translate3d(5vw,-12vh,0) scale(0.96)} }

* { box-sizing: border-box; }
/* ---- Scroll-snap vertical: un panel a la vez ---- */
main {
  height: 100vh; overflow-y: scroll; scroll-snap-type: y mandatory;
  position: relative; z-index: 3;
  scrollbar-width: thin; scrollbar-color: rgba(90,130,255,0.4) transparent;
}
main::-webkit-scrollbar { width: 8px; }
main::-webkit-scrollbar-thumb { background: rgba(90,130,255,0.4); border-radius: 4px; }

.panel {
  height: 100vh; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px; position: relative; overflow: hidden;
}
.wrap { width: 100%; max-width: 1100px; margin: 0 auto; }

/* 1) HERO */
.hero { text-align: center; gap: 18px; }
.eyebrow { letter-spacing: 0.4em; text-transform: uppercase; font-size: 0.8rem; color: var(--muted); text-align: center; }
.eyebrow.center { margin-bottom: 14px; }
.title { font-family: "Marcellus", "Space Grotesk", serif; font-weight: 700; font-size: clamp(3rem, 12vw, 8rem); line-height: 0.95; text-shadow: 0 0 24px rgba(0,0,242,0.65), 0 0 6px rgba(0,0,242,0.5); letter-spacing: 0.02em; }
.subtitle { color: var(--muted); font-size: clamp(1rem, 2.4vw, 1.4rem); margin-top: 8px; }
.cta {
  margin-top: 22px; display: inline-block; padding: 12px 28px;
  border: 1px solid var(--glass-border); border-radius: 999px; color: var(--ink);
  text-decoration: none; background: var(--glass); backdrop-filter: blur(10px);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cta:hover { transform: translateY(-3px); border-color: var(--blue-soft); box-shadow: 0 12px 40px rgba(0,0,242,0.35); }
.cue { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: var(--blue-soft); font-size: 0.95rem; text-align: center; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100%{ transform: translateX(-50%) translateY(0); } 50%{ transform: translateX(-50%) translateY(8px); } }

/* 2) CADA FOTO = panel con foto grande + info (una métrica) */
.shot {
  width: 100%; max-width: 1100px;
  display: flex; align-items: center; gap: 32px;
}
.frame {
  position: relative; flex: 1 1 60%; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--glass-border); box-shadow: 0 0 40px rgba(0,0,242,0.3), var(--shadow);
  background: #0a0e22;
}
.frame img {
  position: absolute; left: 0; right: 0; top: -15%; width: 100%; height: 130%;
  object-fit: cover; display: block; will-change: transform;
}
.info {
  flex: 1 1 40%; max-width: 360px;
  background: var(--glass); backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--glass-border); border-radius: 18px; padding: 26px 28px;
  box-shadow: var(--shadow);
}
.info h3 { font-size: 1.3rem; font-weight: 500; margin-bottom: 18px; color: #eaf0ff; text-shadow: 0 0 10px rgba(0,0,242,0.4); }
.metric { display: flex; align-items: center; gap: 16px; }
.metric > i { font-size: 2.4rem; color: var(--blue-soft); width: 48px; text-align: center; }
.metric > div { display: flex; flex-direction: column; }
.m-k { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.m-v { font-size: 2rem; font-weight: 700; color: #eaf0ff; line-height: 1.1; }
.m-u { font-size: 0.95rem; color: #b9c4e6; }

/* 3) DASHBOARD — tu foto gótica/infierno de fondo (capa parallax) + apps a otro ritmo */
.dashboard {
  position: relative;
  z-index: 4;
  overflow: hidden;
}
.dash-bg {
  position: absolute; inset: -14vh -12vw; z-index: 0; pointer-events: none;
  background: #06091a url("assets/bg-dashboard.jpg") center/cover no-repeat;
  will-change: transform;
}
.dash-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(6,9,22,0.5), rgba(6,9,22,0.78));
}
.dashboard .wrap { position: relative; z-index: 1; }
.dashboard h2 {
  font-size: 1.4rem; margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
  color: #dfe7ff; text-shadow: 0 0 12px rgba(0,0,242,0.4);
}
.dashboard h2 i { color: var(--blue-soft); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; max-height: 74vh; overflow-y: auto; padding-right: 6px; }
.card {
  display: flex; align-items: center; gap: 14px;
  background: var(--glass); backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--glass-border); border-radius: 14px;
  box-shadow: var(--shadow); padding: 13px 15px; text-decoration: none; position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--blue-soft); box-shadow: 0 14px 40px rgba(0,0,242,0.32); }
.card-logo { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; flex-shrink: 0; background: rgba(255,255,255,0.06); padding: 4px; }
.meta { min-width: 0; }
.meta .title { color: #eaf0ff; font-weight: 500; font-size: 1rem; }
.meta .sub { color: #b9c4e6; font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag {
  margin-left: auto; padding: 4px 10px; border-radius: 999px;
  background: rgba(0,0,242,0.18); color: #cdddff; border: 1px solid rgba(90,130,255,0.35);
  font-size: 0.72rem; flex-shrink: 0; text-transform: capitalize;
}

/* reveal escalonado (visible siempre; el IO solo lo anima) */
.reveal { opacity: 1; transform: none; }
.reveal.js-ready { opacity: 0; transform: translateY(28px); }
.reveal.in { opacity: 1; transform: translateY(0); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--d) * 60ms); }

/* nuevas paletas de la galería (contactos / ftp / server / firma) */
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-size: 0.98rem; }
.contact-list i { width: 22px; text-align: center; color: var(--blue-soft); font-size: 1.15rem; }
.contact-list a { color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--blue-soft); }

.info--wide { flex: 1 1 48%; max-width: 440px; }
.lead { color: var(--muted); font-size: 0.95rem; margin-bottom: 14px; }
.lead.small { margin: 14px 0 8px; font-size: 0.85rem; }
.ftp-opt { display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: 0.95rem; margin-bottom: 10px; }
.ftp-opt i { color: var(--blue-soft); font-size: 1.15rem; }
.ftp-opt--row { background: rgba(0,0,242,0.10); border: 1px solid var(--glass-border); border-radius: 10px; padding: 8px 10px; gap: 10px; }
.ftp-url { font-family: "Space Grotesk", monospace; font-size: 0.92rem; color: #dfe7ff; flex: 1; word-break: break-all; }
.copy-btn { flex-shrink: 0; padding: 6px 14px; border: 1px solid var(--glass-border); border-radius: 8px; background: var(--glass); color: var(--ink); cursor: pointer; font-family: inherit; font-size: 0.85rem; transition: border-color .2s, color .2s; }
.copy-btn:hover { border-color: var(--blue-soft); color: var(--blue-soft); }
.mini-btn { display: inline-flex; align-items: center; gap: 12px; margin-top: 6px; padding: 10px 16px; border: 1px solid var(--glass-border); border-radius: 12px; background: var(--glass); color: var(--ink); text-decoration: none; backdrop-filter: blur(14px); transition: transform .2s, border-color .2s, box-shadow .2s; }
.mini-btn:hover { transform: translateY(-3px); border-color: var(--blue-soft); box-shadow: 0 12px 40px rgba(0,0,242,0.32); }
.mini-btn .card-logo { width: 32px; height: 32px; border-radius: 8px; padding: 3px; background: rgba(255,255,255,0.06); }

.info--center { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sign { font-family: "Marcellus", "Space Grotesk", serif; font-size: 2rem; font-weight: 700; letter-spacing: 0.04em; text-shadow: 0 0 18px rgba(0,0,242,0.5); }
.sign-text { color: var(--muted); font-size: 1.05rem; margin-top: 10px; }

/* paleta de server: números principales más sobrios (no enormes) */
.info--server .m-v { font-size: 1.7rem; }
.info--server .metric > i { font-size: 2.1rem; width: 46px; }

@media (max-width: 760px) {
  .shot { flex-direction: column; gap: 16px; }
  .frame { width: 100%; }
  .info { max-width: none; width: 100%; }

  /* Fondos anclados a la izquierda en móvil (escritorio queda en center).
     El hero tiene a Filip a la izquierda -> 25% lo encuadra bien sin cortar la cabeza.
     El dashboard tiene las llamas a la derecha -> 15% las mantiene visibles. */
  .layer-bg img { object-position: 25% 50%; }
  .dash-bg { background-position: 15% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .orb-blue, .orb-gold, .cue { animation: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
