body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #333;
}

.subtitle {
    text-align: center;
    color: #555;
    font-size: 14px;
    margin-bottom: 20px;
}

fieldset {
    margin-bottom: 20px;
    border: 0px solid #ccc;
    padding: 10px 15px;
    border-radius: 5px;
}

legend {
    font-weight: bold;
    color: #007BFF;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

input,
textarea,
select,
button {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

textarea {
    resize: none;
    height: 80px;
}

button {
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

.nota-advertencia {
    background-color: #ffe5b4;
    color: #333;
    padding: 10px;
    border-left: 5px solid #f1c40f;
    /* Borde amarillo */
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 10px;
}

.oculto {
    display: none;
}

.error {
    border: 2px solid red;
    background-color: #ffe5e5;
}

/* Contenedor del spinner */
.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px;
    margin: 20px;
    font-size: 16px;
    font-weight: bold;
    color: #555;
}

/* Imagen del spinner */
.spinner-image {
    width: 100px;
    /* Ajusta el tamaño según sea necesario */
    height: auto;
    animation: fadeIn 0.5s ease-in-out;
}

/* Animación para una aparición suave */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/*Estilos Files*/

.file-upload {
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    text-align: center;
}

.file-upload input[type="file"] {
    display: none;
    /* Oculta el input */
}

.file-upload label {
    background-color: #007bff;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.file-upload label:hover {
    background-color: #0056b3;
}

.file-name {
    font-size: 14px;
    color: #333;
}

.preview {
    display: none;
    max-width: 100px;
    height: auto;
    border-radius: 5px;
    margin-left: 10px;
    border: 1px solid #ddd;
    padding: 5px;
}

/* Estilos para el banner de carga */
#loadingBanner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    font-size: 18px;
    font-family: Arial, sans-serif;
    z-index: 9999;
    display: none;
    /* Oculto por defecto */
}

#loadingBanner img {
    width: 150px;
    /* Ajusta el tamaño de la imagen */
    margin-bottom: 20px;
}

/* Estilos para la alerta de éxito */
#successAlert {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #4CAF50;
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    font-size: 16px;
    display: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    to {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

#uploadForm {
    margin: 50px;
}

/* Tooltip */

.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  color: blue;
  font-weight: bold;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 220px;
  background-color: black;
  color: white;
  text-align: center;
  padding: 8px;
  border-radius: 5px;
  position: absolute;
  z-index: 1;
  bottom: 150%; /* Aparece arriba del ícono */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 14px;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

#errorAlert {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #f44336; /* Rojo para errores */
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    font-size: 16px;
    display: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateX(-50%) translateY(0); }
    to { opacity: 0; transform: translateX(-50%) translateY(10px); }
}