/* Animación de gradiente */
@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Contenedor principal */
.cupos-container {
  justify-content: center;
  align-items: center;
  padding: 15px;
  background: linear-gradient(135deg, #f3f3f3, #e0e0e0);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  max-width: 300px;
  margin: 20px auto;
  display: flex; /* Oculto por defecto */
}
/* Fondo para el sin cupos */
.sin-cupos {
  color: red;
  font-weight: bold;
}

/* Estilización del texto general */
.cupos-text {
  font-size: 20px;
  font-weight: 600;
  font-family: "Arial", sans-serif;
  display: flex;
  align-items: center;
  color: #333; /* Texto oscuro */
}

/* Efecto en "Cupos disponibles" */
.cupos-label {
  font-weight: bold;
  color: #335b9b; /* Naranja-rojo vibrante */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Estilo del número de cupos disponibles */
.cupos-count {
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  border: 2px solid #4caf50; /* Verde */
  background-color: #4caf50; /* Verde por defecto */
  margin-left: 10px;
  transition: all 0.3s ease-in-out;
}

/* Clase para cambiar el color a rojo cuando los cupos son 0 */
.sin-cupos {
  background-color: #ff5733 !important; /* Rojo */
  border-color: #ff5733 !important;
}

.afiche {
  position: relative;
  width: 100%;
  height: 650px;
  background-color: #d2d2d3;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.afiche-imagen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.afiche-imagen img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.barra-color {
  width: 100%;
  height: 15px;
  background: linear-gradient(
    to right,
    #e04e1d,
    #c8006b,
    #0098dc,
    #7f5699,
    #008e37,
    #0098dc,
    #2ea29b
  );
}

/* Contenedor del formulario */
.formulario-contenedor {
  background-color: rgba(65, 65, 66, 0.237);
  padding: 0; /* Eliminar padding superior */
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Asegurar que el contenido comience desde arriba */
}

/* Contenedor del formulario */
.formulario-container {
  width: 100%;
  max-width: 973px;
}

/* Estilo del formulario */
.formulario {
  background-color: whitesmoke;
  padding: 5vw;
  box-shadow: 0 0 20px rgba(104, 197, 255, 255, 0.737);
  width: 100%;
  max-width: 973px;
  margin: 0 auto;
  position: relative; /* Asegurar que se posicione correctamente */
  top: 0; /* Eliminar cualquier desplazamiento */
}

h4.text-primary {
  color: #00407b;
}

#enviar {
  background-color: #007bff; /* Azul */
  color: white; /* Texto en blanco */
  font-weight: bold;
  border: none; /* Sin borde */
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px; /* Bordes redondeados */
  cursor: pointer;
}

#enviar:hover {
  background-color: #0056b3; /* Azul más oscuro al pasar el mouse */
}

.btn-primary {
  background-color: #00407b;
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* Mantenedor: compact icon action buttons for edit/delete (non-invasive) */
.action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0.25rem;
  border-radius: 6px;
}
.action-icon svg {
  pointer-events: none; /* keep click handling on the button */
}
.btn-edit-user.action-icon {
  color: #0b5ed7; /* Bootstrap primary-ish */
  background: transparent;
  border: 1px solid transparent;
}
.btn-delete-user.action-icon {
  color: #dc3545; /* Bootstrap danger */
  background: transparent;
  border: 1px solid transparent;
}
.action-icon:hover {
  background: rgba(0, 0, 0, 0.04);
  text-decoration: none;
}
.btn-group .action-icon + .action-icon {
  margin-left: 6px;
}

/* Validaciones */
.valido {
  color: green;
  font-weight: bold;
}
.invalido {
  color: red;
  font-weight: bold;
}

/* 📌 AJUSTES RESPONSIVOS */
@media (max-width: 768px) {
  .afiche {
    height: 350px;
  }

  .afiche-imagen img {
    object-fit: contain;
  }

  .formulario {
    padding: 4vw;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .afiche {
    height: 250px;
  }

  .afiche-imagen img {
    object-fit: contain;
  }

  .formulario {
    padding: 3vw;
    width: 95%;
  }

  .btn-primary {
    font-size: 14px;
    padding: 8px 16px;
  }
}
