/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  font-family: "Segoe UI", sans-serif;
  overflow: hidden;
  background: transparent;
}

/* RADIAL DETRÁS DEL SLIDER */
.radial-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #44b0ec, #2299d6, #0066cc);
  z-index: -4;
  animation: pulseRadial 6s ease-in-out infinite;
  opacity: 1;
}

@keyframes pulseRadial {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

/* SLIDER EN LA IZQUIERDA */
.slider {
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;

  width: 100%;
  height: 100%;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  background-size: cover;
  background-position: center;
  transition: background-image 1.5s ease-in-out;
  filter: brightness(0.85);
}

/* CONTENEDORES */
.container {
  display: flex;
  height: 100vh;
  width: 100vw;
  position: relative;
  z-index: 2;
}

.left-side {
  width: 50%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.right-side {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}
@media screen and (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .left-side {
    width: 100%;
  }
  .right-side {
    position: absolute;
    width: 100%;
  }
}

.form-container {
  padding: 20px;
  z-index: 2;
}

.card {
  background: rgba(255, 255, 255, 0.96);
  padding: 50px 60px;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  max-width: 700px;
  width: 100%;
  animation: fadeInUp 1s ease;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.card-header img {
  width: 45px;
}
.card-header h2 {
  font-size: 20px;
  color: #0072cc;
  margin: 0;
  font-weight: bold;
}

.subtitle {
  font-size: 14px;
  color: #444;
  margin-bottom: 25px;
}

/* BOTONES */
.botones-seleccion {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 10px;
}
.botones-seleccion button {
  flex: 1;
  padding: 12px;
  font-size: 14px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.botones-seleccion button:first-child {
  background-color: #2299d6;
  color: white;
}
.botones-seleccion button:last-child {
  background-color: #2ecc71;
  color: white;
}
.botones-seleccion button:hover {
  opacity: 0.9;
}
.botones-seleccion .activo {
  background-color: #444 !important;
  opacity: 0.6;
}

/* FORMULARIOS */
.form-opcion label {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
  display: block;
  color: #333;
}
.form-opcion input {
  padding: 10px 12px;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  width: 100%;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}
.form-opcion input:focus {
  border-color: #44b0ec;
  box-shadow: 0 0 5px rgba(68, 176, 236, 0.3);
  outline: none;
}
.consulta-footer {
  display: flex;
  justify-content: flex-end;
}
.consulta-footer button {
  padding: 10px 25px;
  background: #44b0ec;
  color: white;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
.consulta-footer button:hover {
  background: #2299d6;
  transform: scale(1.02);
}

/* BOTÓN VOLVER */
.btn-volver {
  background-color: transparent;
  border: none;
  color: #0072cc;
  font-size: 14px;
  margin-bottom: 20px;
  cursor: pointer;
  font-weight: bold;
  display: inline-block;
  transition: transform 0.3s ease;
}
.btn-volver:hover {
  text-decoration: underline;
  transform: translateX(-5px);
}

/* ANIMACIONES */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.card {
  animation: fadeIn 0.6s ease forwards;
}

input,
button {
  transition: all 0.3s ease;
}

button:hover {
  transform: scale(1.03);
}

/* SLIDER MEJORADO */
.slider {
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;

  width: 100%;
  height: 100%;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  background-size: cover;
  background-position: center;
  transition: background-image 1.5s ease-in-out;
  filter: brightness(0.85);
  animation: slideZoom 30s infinite alternate ease-in-out;
}

@keyframes slideZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}

/* ORGANIZACIÓN DE INPUTS EN FORMULARIO DE CÓDIGO */
#formulario-codigo label {
  display: block;
  margin-top: 10px;
  margin-bottom: 5px;
}
#formulario-codigo input {
  display: block;
  width: 100%;
  margin-bottom: 15px;
}

/* BOTÓN LIMPIAR */
.btn-limpiar {
  margin-left: 10px;
  padding: 10px 25px;
  background-color: #e0e0e0;
  color: #333;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
.btn-limpiar:hover {
  background-color: #d5d5d5;
  transform: scale(1.02);
}

/* SEPARACIÓN EN FORMULARIOS */
.card h3 {
  margin-bottom: 20px;
}
.card label {
  margin-top: 10px;
  display: block;
}
.card input {
  margin-bottom: 20px;
}
.consulta-footer {
  gap: 15px;
  margin-top: 10px;
}
