/* VARIABLES */
:root {
  --azul: #0a66ff;
  --azul-claro: #4da3ff;
  --azul-oscuro: #050a1f;
  --blanco: #ffffff;
  --gris: #a0a8c0;
  --glass: rgba(255, 255, 255, 0.05);
  --accent: var(--azul-claro);
  --accent-soft: rgba(77, 163, 255, 0.35);
}

/* RESET Y BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--azul-oscuro);
  color: var(--blanco);
  overflow-x: hidden;
}

/* FONDO ANIMADO */
.bg-anim {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(77, 163, 255, 0.25), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(10, 102, 255, 0.20), transparent 50%);
  animation: moveBg 8s ease-in-out infinite alternate;
}

@keyframes moveBg {
  0% {
    background-position: 20% 30%, 80% 70%;
  }
  100% {
    background-position: 25% 35%, 75% 65%;
  }
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 9999;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 40px;
}

header h1,
header .brand {
  font-family: 'Orbitron', system-ui, sans-serif;
  font-weight: 700;
  color: var(--blanco);
  font-size: 28px;
  letter-spacing: 1px;
  margin: 0;
}

.menu {
  display: flex;
  gap: 25px;
  align-items: center;
}

.menu a {
  color: var(--gris);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  position: relative;
}

.menu a:hover {
  color: var(--azul-claro);
  text-shadow: 0 0 5px var(--azul-claro), 0 0 10px var(--azul-claro);
}

/* HERO */
.hero {
  height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 90px;
  padding: 0 20px;
  z-index: 1;
  position: relative;
}

.hero h2 {
  font-size: 38px;
  font-family: 'Orbitron', system-ui, sans-serif;
  color: var(--blanco);
  max-width: 900px;
}

.hero h2 span {
  background: linear-gradient(90deg, var(--azul), var(--azul-claro));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  margin-top: 15px;
  color: var(--gris);
  font-size: 18px;
  max-width: 600px;
}

/* FORM SECTION */
.form-section {
  display: flex;
  justify-content: center;
  padding: 60px 20px 80px;
  position: relative;
  z-index: 1;
}

/* Gamificación aplicada al formulario */
.formulario {
  width: 100%;
  max-width: 550px;
  background: var(--glass);
  padding: 35px;
  border-radius: 20px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: default;
}

.formulario:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px var(--accent) inset;
}

/* GRID FORM */
.grid-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

@media (max-width: 600px) {
  .grid-form {
    grid-template-columns: 1fr;
  }
}

/* INPUTS */
.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.input-group label {
  font-size: 13px;
  color: var(--gris);
  margin-bottom: 6px;
  font-weight: 600;
}

.input-group input,
.input-group select,
.input-group textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: white;
  font-size: 14px;
  transition: 0.3s;
  font-family: 'Inter', sans-serif;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  border: 1px solid var(--azul);
  box-shadow: 0 0 10px rgba(10, 102, 255, 0.2);
  outline: none;
}

select {
  background: rgba(255, 255, 255, 0.03);
  color: white;
}

select option {
  background: var(--azul-oscuro);
  color: white;
}

textarea {
  min-height: 120px;
  resize: none;
}

/* BOTÓN */
.btn {
  width: 100%;
  padding: 14px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--azul), var(--azul-claro));
  border: none;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Orbitron', system-ui, sans-serif;
  box-shadow:
    0 0 10px var(--azul-claro),
    0 0 20px var(--azul-claro);
  user-select: none;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 20px var(--azul-claro),
    0 0 40px var(--azul-claro),
    0 0 60px var(--azul-claro);
}

.btn-secondary {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 30px;
  background: transparent;
  border: 1px solid var(--azul-claro);
  color: var(--azul-claro);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Orbitron', system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
  user-select: none;
  margin-top: 10px;
}

.btn-secondary:hover {
  background: rgba(77, 163, 255, 0.1);
  box-shadow: 0 0 16px rgba(77, 163, 255, 0.2);
  transform: translateY(-2px);
  color: white;
}

/* MENSAJE DE ENVÍO */
#msg {
  margin-top: 15px;
  color: var(--azul-claro);
  text-align: center;
  font-weight: 600;
  font-family: 'Orbitron', system-ui, sans-serif;
}

/* CTA */
.cta {
  text-align: center;
  padding: 80px 20px;
  font-family: 'Orbitron', system-ui, sans-serif;
}

.cta h2 {
  font-size: 26px;
  color: var(--blanco);
  text-shadow:
    0 0 10px var(--accent-soft),
    0 0 25px var(--accent-soft);
}

/* FOOTER */
footer#contacto {
  background: var(--glass);
  padding: 40px 20px;
  text-align: center;
  border-radius: 20px;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--gris);
  font-family: 'Inter', sans-serif;
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
}

footer#contacto h2 {
  font-family: 'Orbitron', system-ui, sans-serif;
  color: var(--blanco);
  margin-bottom: 10px;
  font-weight: 700;
}

footer#contacto p {
  margin-bottom: 20px;
  font-size: 14px;
}

footer#contacto a {
  color: var(--azul-claro);
  font-weight: 700;
  text-decoration: none;
}

footer#contacto a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    padding: 15px 20px;
  }
  .nav-container {
    flex-direction: column;
    gap: 10px;
  }
  .menu {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .menu a {
    font-size: 12px;
  }
  .hero h2 {
    font-size: 28px;
  }
}

