:root {
  --neon-cyan: #00f3ff;
  --neon-purple: #9d4dff;
  --neon-pink: #ff2a6d;
  --neon-green: #00ff88;
  --neon-yellow: #ffde00;
  --dark-space: #0a0a16;
  --deep-space: #15152b;
  --cosmic-purple: #1a1a3a;
  --hologram-blue: rgba(0, 243, 255, 0.1);
  --hologram-purple: rgba(157, 77, 255, 0.1);
  --glow-cyan: 0 0 20px #00f3ff, 0 0 40px #00f3ff, 0 0 60px #00f3ff;
  --glow-purple: 0 0 20px #9d4dff, 0 0 40px #9d4dff, 0 0 60px #9d4dff;
  --glow-pink: 0 0 20px #ff2a6d, 0 0 40px #ff2a6d, 0 0 60px #ff2a6d;
  --text-glow: 0 0 10px rgba(255, 255, 255, 0.8);
  --grid-color: rgba(0, 243, 255, 0.15);
  --transition-futuristic: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* {
  box-sizing: border-box;
}

html {
  background: 
    radial-gradient(circle at 20% 50%, var(--cosmic-purple) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, #9d4dff33 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, #ff2a6d33 0%, transparent 50%),
    linear-gradient(135deg, var(--dark-space) 0%, var(--deep-space) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  font-family: 'Orbitron', 'Exo 2', 'Rajdhani', monospace;
  position: relative;
  overflow-x: hidden;
}

/* Efecto de partículas en el fondo */
html::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, var(--neon-cyan) 50%, transparent 50%),
    radial-gradient(2px 2px at 40px 70px, var(--neon-purple) 50%, transparent 50%),
    radial-gradient(1px 1px at 90px 40px, var(--neon-pink) 50%, transparent 50%),
    radial-gradient(1px 1px at 130px 80px, var(--neon-green) 50%, transparent 50%),
    radial-gradient(2px 2px at 160px 30px, var(--neon-yellow) 50%, transparent 50%);
  background-size: 200px 200px;
  animation: float 20s infinite linear;
  z-index: -1;
  opacity: 0.6;
}

@keyframes float {
  0% { transform: translateY(0) translateX(0); }
  100% { transform: translateY(-200px) translateX(100px); }
}

#main_body {
  font-family: 'Exo 2', 'Rajdhani', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  padding: 40px 20px;
  color: #ffffff;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Contenedor principal con efecto holográfico */
#form_container {
  background: 
    linear-gradient(135deg, 
      rgba(26, 26, 58, 0.95) 0%, 
      rgba(21, 21, 43, 0.95) 50%,
      rgba(10, 10, 22, 0.95) 100%);
  border: 1px solid var(--neon-cyan);
  border-radius: 16px;
  margin: 0 auto;
  text-align: left;
  width: 100%;
  max-width: 750px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 
    var(--glow-cyan),
    inset 0 0 100px rgba(0, 243, 255, 0.1);
  animation: hologram-pulse 4s ease-in-out infinite;
}

/* Efecto de borde animado */
#form_container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  animation: scanline 3s linear infinite;
  z-index: 2;
}

#form_container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(90deg, transparent 98%, var(--grid-color) 100%),
    linear-gradient(0deg, transparent 98%, var(--grid-color) 100%);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.3;
}

@keyframes scanline {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes hologram-pulse {
  0%, 100% { 
    box-shadow: 
      0 0 30px rgba(0, 243, 255, 0.3),
      inset 0 0 100px rgba(0, 243, 255, 0.05);
  }
  50% { 
    box-shadow: 
      0 0 50px rgba(0, 243, 255, 0.6),
      inset 0 0 100px rgba(0, 243, 255, 0.15);
  }
}

#top, #bottom {
  display: none;
}

#footer {
  clear: both;
  color: var(--neon-cyan);
  text-align: center;
  width: 100%;
  padding: 30px 0;
  font-size: 13px;
  text-shadow: var(--text-glow);
  position: relative;
}

#footer a {
  color: var(--neon-cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: var(--transition-futuristic);
  position: relative;
}

#footer a:hover {
  color: var(--neon-pink);
  border-bottom-color: var(--neon-pink);
  text-shadow: var(--glow-pink);
}

form.appnitro {
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 2;
}

/**** Header Futurista CORREGIDO ****/
#main_body h1 {
  margin: 0;
  padding: 40px 40px 0 40px !important; /* Margen restaurado */
  text-indent: -8000px;
  color: transparent;
  border-radius: 16px 16px 0 0;
  background: 
    linear-gradient(135deg, 
      rgba(0, 243, 255, 0.8) 0%, 
      rgba(157, 77, 255, 0.8) 50%,
      rgba(255, 42, 109, 0.8) 100%);
  position: relative;
  overflow: hidden;
  height: 120px;
}

#main_body h1::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(45deg, 
      transparent 45%, 
      rgba(255, 255, 255, 0.3) 50%, 
      transparent 55%);
  animation: energy-flow 2s linear infinite;
}

@keyframes energy-flow {
  0% { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(200%) skewX(-15deg); }
}

#main_body h1 a {
  display: block;
  height: 100%;
  overflow: hidden;
  background-image: url('../../../images/machform.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 180px auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
}

/**** Form Elements Futuristas ****/
.appnitro {
  font-family: 'Exo 2', sans-serif;
  font-size: 15px;
}

#main_body form ul {
  list-style-type: none;
  margin: 0;
  padding: 40px;
  width: 100%;
  box-sizing: border-box;
}

#main_body form li {
  display: block;
  margin: 0 0 35px 0;
  padding: 0;
  position: relative;
  clear: both;
  background: rgba(10, 10, 22, 0.6);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(0, 243, 255, 0.3);
  transition: var(--transition-futuristic);
}

#main_body form li:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
  transform: translateY(-2px);
}

#main_body form li:last-child {
  margin-bottom: 0;
}

#main_body .buttons {
  clear: both;
  display: flex;
  gap: 15px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 243, 255, 0.3);
  position: relative;
}

#main_body .buttons::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--neon-cyan), 
    var(--neon-purple), 
    var(--neon-pink), 
    transparent);
  animation: rgb-scan 3s linear infinite;
}

@keyframes rgb-scan {
  0% { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

/**** Inputs Futuristas ****/
#main_body input.text,
#main_body textarea.textarea,
#main_body select.select {
  border: 2px solid rgba(0, 243, 255, 0.4);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.6);
  padding: 15px 20px;
  color: #ffffff;
  font-size: 15px;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  transition: var(--transition-futuristic);
  font-family: 'Exo 2', sans-serif;
  text-shadow: var(--text-glow);
  position: relative;
}

#main_body input.text::placeholder,
#main_body textarea.textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
  text-shadow: none;
}

#main_body input.text:focus,
#main_body textarea.textarea:focus,
#main_body select.select:focus {
  outline: none;
  border-color: var(--neon-cyan);
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 
    0 0 20px rgba(0, 243, 255, 0.4),
    inset 0 0 20px rgba(0, 243, 255, 0.1);
  transform: scale(1.02);
}

#main_body textarea.textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
  background: 
    linear-gradient(90deg, transparent 99%, var(--grid-color) 100%),
    linear-gradient(0deg, transparent 99%, var(--grid-color) 100%);
  background-size: 20px 20px;
  background-color: rgba(0, 0, 0, 0.6);
}

/**** Botones Futuristas ****/
#main_body input.button_text {
  overflow: visible;
  width: auto;
  padding: 16px 32px;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 14px;
  color: #000000;
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-green) 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-futuristic);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  flex: 1;
}

#main_body input.button_text::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.4), 
    transparent);
  transition: left 0.6s;
}

#main_body input.button_text:hover::before {
  left: 100%;
}

#main_body input.button_text:hover,
#main_body input.button_text:focus {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 10px 30px rgba(0, 243, 255, 0.4),
    0 0 30px rgba(0, 255, 136, 0.6);
  animation: button-glow 1s ease-in-out infinite alternate;
}

@keyframes button-glow {
  from {
    box-shadow: 
      0 10px 30px rgba(0, 243, 255, 0.4),
      0 0 30px rgba(0, 255, 136, 0.6);
  }
  to {
    box-shadow: 
      0 10px 40px rgba(0, 243, 255, 0.6),
      0 0 40px rgba(0, 255, 136, 0.8);
  }
}

#main_body input.button_text:active {
  transform: translateY(-1px) scale(1.02);
}

#main_body input.btn_secondary {
  background: transparent;
  border: 2px solid var(--neon-purple);
  color: var(--neon-purple);
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  padding: 14px 30px;
  transition: var(--transition-futuristic);
  border-radius: 10px;
  font-family: 'Orbitron', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
  flex: 1;
  text-shadow: var(--glow-purple);
}

#main_body input.btn_secondary:hover {
  background: var(--neon-purple);
  color: #000000;
  transform: translateY(-3px);
  box-shadow: var(--glow-purple);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/**** CORRECCIÓN CRÍTICA: Labels y Textos VISIBLES ****/
#main_body form li div label,
#main_body form li div span.label,
#main_body form li span label {
  clear: both;
  color: var(--neon-cyan) !important; /* Forzar color neón */
  display: block;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.4;
  margin: 0 0 12px 0 !important;
  padding: 0 !important;
  text-shadow: var(--glow-cyan) !important;
  font-family: 'Orbitron', monospace !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Específicamente para las descripciones de los campos */
#main_body form li label.description,
#main_body form li span.description {
  color: var(--neon-green) !important;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.8) !important;
  font-size: 13px !important;
  margin-bottom: 8px !important;
}

/* Para los textos dentro de los campos */
#main_body form li:not(.media_video) div,
#main_body form li:not(.media_video) span {
  color: #ffffff !important;
  text-shadow: var(--text-glow) !important;
}

/**** Form Description CORREGIDO ****/
#main_body .form_description {
  border-bottom: 1px solid rgba(0, 243, 255, 0.3);
  clear: both;
  display: block;
  margin: 0 0 40px 0 !important;
  padding: 40px 40px 30px 40px !important; /* Margen restaurado */
  color: #ffffff;
  position: relative;
}

#main_body .form_description::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--neon-cyan), 
    var(--neon-purple), 
    transparent);
}

#main_body .form_description h2 {
  clear: left;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 15px 0 !important;
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Orbitron', monospace;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: var(--glow-cyan);
  padding: 0 !important;
}

#main_body .form_description p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: var(--text-glow);
  padding: 0 !important;
}

/**** Secciones Especiales ****/
#main_body form li.section_break {
  border-top: 1px solid rgba(0, 243, 255, 0.3);
  margin-top: 40px;
  padding: 30px 20px 0 20px !important;
  width: 100% !important;
  background: transparent;
  border: none;
}

#main_body form .section_break h3,
#main_body form .media h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 12px 0;
  color: var(--neon-cyan);
  font-family: 'Orbitron', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: var(--glow-cyan);
}

/**** Tablas Matrix Futuristas ****/
#main_body .matrix table {
  margin: 0 0 25px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 243, 255, 0.3);
  position: relative;
}

#main_body .matrix th {
  font-size: 13px;
  text-align: center;
  padding: 18px 15px;
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
  color: #000000;
  font-weight: 700;
  border: none;
  font-family: 'Orbitron', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#main_body .matrix td {
  border-bottom: 1px solid rgba(0, 243, 255, 0.2);
  padding: 18px 15px;
  text-align: center;
  background: rgba(10, 10, 22, 0.8);
  color: #ffffff;
  transition: var(--transition-futuristic);
  position: relative;
}

#main_body .matrix tbody tr:hover td {
  background: rgba(0, 243, 255, 0.1);
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

#main_body .matrix td.first_col {
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: var(--neon-cyan);
  text-shadow: var(--text-glow);
}

/**** Estados de Error Futuristas ****/
#error_message {
  background: rgba(255, 42, 109, 0.1);
  border: 1px solid var(--neon-pink);
  border-radius: 12px;
  margin-bottom: 30px;
  padding: 25px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
  box-shadow: var(--glow-pink);
  animation: error-pulse 2s ease-in-out infinite;
}

@keyframes error-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 42, 109, 0.4); }
  50% { box-shadow: 0 0 40px rgba(255, 42, 109, 0.8); }
}

#error_message_title {
  color: var(--neon-pink);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px 0 !important;
  font-family: 'Orbitron', monospace;
  text-transform: uppercase;
  text-shadow: var(--glow-pink);
}

/**** CORRECCIÓN: Textos de directrices/guidelines ****/
#main_body form .guidelines {
  background: rgba(0, 243, 255, 0.1) !important;
  border: 1px solid var(--neon-cyan) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  left: 100%;
  line-height: 140% !important;
  margin: 0 0 0 8px !important;
  padding: 12px !important;
  position: absolute;
  top: 0;
  visibility: hidden;
  width: 42%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-radius: 8px;
  text-shadow: var(--text-glow);
}

#main_body form li:hover .guidelines {
  visibility: visible;
}

/**** Responsive Design Futurista ****/
@media (max-width: 768px) {
  #main_body {
    padding: 20px 15px;
  }
  
  #form_container {
    border-radius: 12px;
  }
  
  #main_body form ul {
    padding: 25px;
  }
  
  #main_body form li {
    padding: 15px;
    margin-bottom: 25px;
  }
  
  #main_body .buttons {
    flex-direction: column;
  }
  
  #main_body input.button_text,
  #main_body input.btn_secondary {
    width: 100%;
  }
  
  #main_body .form_description h2 {
    font-size: 24px;
  }
  
  #main_body .form_description,
  #main_body h1 {
    padding: 25px 25px 15px 25px !important;
  }
}

/* Utilidades futuristas */
.glow-text {
  text-shadow: var(--text-glow);
}

.hologram-effect {
  background: linear-gradient(45deg, 
    rgba(0, 243, 255, 0.1) 0%, 
    rgba(157, 77, 255, 0.1) 50%,
    rgba(255, 42, 109, 0.1) 100%);
  backdrop-filter: blur(10px);
}

.cyber-border {
  border: 1px solid var(--neon-cyan);
  position: relative;
  overflow: hidden;
}

.cyber-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  animation: cyber-scan 2s linear infinite;
}