@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;800&family=Open+Sans:wght@400;500;600&display=swap');

:root {
  --negro: #050508;
  --blanco: #f0f0f8;
  --gris-texto: #a0a0c0;
  --azul-acento: #2d63ff;
  --font-display: "Orbitron", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-body: "Open Sans", "Inter", "Segoe UI", system-ui, sans-serif;
  --max-w: 1100px;
  --pad-x: max(4vw, calc((100vw - var(--max-w)) / 2));
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 5rem var(--pad-x);
  background:
    radial-gradient(circle at 50% 18%, rgba(59, 121, 255, 0.52), rgba(17, 60, 156, 0.18) 34%, transparent 58%),
    linear-gradient(90deg, rgba(14, 32, 78, 0.35) 0 1px, transparent 1px),
    linear-gradient(180deg, #08101f 0%, #0d1d43 38%, #050810 100%);
  background-size: auto, 88px 100%, auto;
  color: var(--blanco);
  font-family: var(--font-body);
}

/* Capa de puntos sobre el fondo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(114, 161, 255, 0.16) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.18;
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  pointer-events: none;
  z-index: 0;
}

/* Fade lateral */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 17, 0.82), transparent 24%, transparent 76%, rgba(5, 8, 17, 0.82)),
    linear-gradient(180deg, transparent 0%, rgba(5, 8, 17, 0.15) 50%, rgba(0, 0, 0, 0.72) 100%);
  pointer-events: none;
  z-index: 0;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--negro); }
::-webkit-scrollbar-thumb {
  background-color: #ffffff;
  border-radius: 80px;
}

/* ─── LOGO (SVG) ─────────────────────────────────────────────────── */

svg {
  position: relative;
  z-index: 1;
  display: block;
  width: min(220px, 60vw);
  height: auto;
  margin: 0 auto;
}

/* ─── TÍTULOS ────────────────────────────────────────────────────── */

h1 {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 18px 70px rgba(60, 125, 255, 0.38);
}

h3 {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 12px 46px rgba(60, 125, 255, 0.32);
}

/* ─── IFRAME ─────────────────────────────────────────────────────── */

iframe {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 960px;
  height: clamp(340px, 55vw, 580px);
  border-radius: 14px;
  border: 1px solid rgba(45, 99, 255, 0.28) !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.botones {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.85rem var(--pad-x);
  background: rgba(5, 8, 16, 0.88);
  border-bottom: 1px solid rgba(45, 99, 255, 0.18);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.botones a,
.botones button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.4rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(45, 99, 255, 0.22);
  background: rgba(240, 240, 248, 0.06);
  color: var(--blanco);
  font: 700 0.75rem/1 var(--font-display);
  letter-spacing: 0.04em;
  cursor: pointer;
}

.botones a:hover,
.botones button:hover {
  background: rgba(45, 99, 255, 0.22);
  border-color: rgba(45, 99, 255, 0.5);
}

/* Botón "Volver Arriba": misma píldora que el resto, con flecha + texto */
#btnVolverArriba {
  width: auto;
  padding: 0.55rem 1rem;
}

#btnVolverArriba::before {
  content: "↑";
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────── */

@media (max-width: 600px) {
  body {
    padding: 4rem 1rem;
    gap: 1.75rem;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  h3 {
    font-size: clamp(1.1rem, 6vw, 1.6rem);
  }

  svg {
    width: min(180px, 65vw);
  }

  iframe {
    height: clamp(260px, 70vw, 380px);
  }
}