/* Ajustes generales */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

p {
    margin: 0;
}

legend {
    font-size: 1.5rem;
    font-weight: bold;
    color: #11A5DE;
}


/* Ajustes para dispositivos móviles */
@media (max-width: 768px) {
    .contenedor {
        width: 70%;  /* El contenido ocupará el 70% del ancho de la pantalla */
        padding: 0;  /* Elimina el padding en móviles */
        background-color: transparent;  /* Fondo transparente para simular que no hay contenedor */
        box-shadow: none;  /* Elimina la sombra */
        border-radius: 0;  /* Elimina el borde redondeado */
    }
}

/* Para pantallas muy pequeñas (como celulares) */
@media (max-width: 480px) {
    .contenedor {
        width: 70%;  /* Ocupar el 70% del ancho de la pantalla */
        padding: 0;  /* Mantén el padding en 0 */
    }
}




img {
    text-align: center;
    padding: 20px;
    margin: auto;
    width: 40%;
    height: 40%;
    display: block;
}
.contenedor {
    width: 90%;  /* Ancho del contenedor para pantallas grandes */
    max-width: 1200px;
    margin: 0 auto;  /* Centramos el contenedor horizontalmente */
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.autorizacion, .preguntas {
    text-align: justify;
    margin-bottom: 20px;
}

input[type="checkbox"] {
    width: 20px;
    height: 15px;
    vertical-align: middle;
    margin-right: 2px;
}

input[type="submit"] {
    width: 50%;
    height: 45px;
    cursor: pointer;
    color: #fff;
    background-color: #111c4e;
    margin: 20px auto;
    display: block;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #1f3180;
}

label {
    /* margin: 5px; */
    font-weight: bold;
}

input, select, textarea {
    margin: 10px 0;
    width: 100%;
    height: 35px;
    padding: 8px;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.tipo {
    border: 1px solid black;
}

.resultado-participante {
    font-size: 25px;
    color: #111c4e;

}

.resultado-participante a{
    text-decoration: none;
    color: #23D366;
}


select {
    min-width: 250px; /* Ajusta según el contenido */
    max-width: 100%; /* Evita que sea demasiado ancho */
    
}

option{
    font-size: 1rem;
}




.selector-baloncesto {
    height: 3rem;
}

p, ol {
    text-align: justify;
    line-height: 1.6;
}

.autorizacion a {
    color: #111c4e;
    text-decoration: none;
}

.autorizacion a:hover {
    text-decoration: underline;
}



.errores{
    color: rgb(212, 6, 6);
    margin: 0;
    margin-bottom: 1rem;
    font-weight: bold;
}

.popup-exito {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.popup-buttons {
    margin-top: 20px;
}

.popup-buttons button {
    margin: 10px;
    padding: 10px 20px;
    background-color: #111c4e;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.popup-buttons button:hover {
    background-color: #8895cc;
}

.popup-content p {
    text-align: center;
}


#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fondo opaco más oscuro */
    z-index: 9999;
    display: none; /* Oculto por defecto */
    align-items: center;
    justify-content: center;
}

#cargando {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.8); /* Fondo para el texto */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Sombra */
}

.loader {
    border: 5px solid rgba(255, 255, 255, 0.3); /* Borde externo transparente */
    border-top: 5px solid #ffffff; /* Borde superior blanco para la animación */
    border-radius: 50%; /* Hace el contenedor circular */
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite; /* Animación */
    margin: 0 auto; /* Centrar el círculo */
}

/* Animación del giro */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.cargando-texto {
    margin-top: 15px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

.oculto {
    display: none;
}

.notificacion-container {
    position: fixed;
    top: 10rem;
    right: 20px;
    height: 5rem;
    z-index: 99999;
}

/* NOTIFICACION */

.notificacion {
    background-color: rgb(247, 246, 246); /* Verde éxito */
    color: black;
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid black;
    font-size: 16px;
    display: flex;
    align-items: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 1;
    transform: translateX(100%);
    animation: slideIn 0.5s forwards, fadeOut 0.5s 3s forwards;
    z-index: 100000;
}

.notificacion i {
    margin-right: 10px;
    font-size: 20px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

input[type="submit"]:disabled {
    background-color: #ccc; /* Color gris */
    cursor: not-allowed; /* Cursor de no permitido */
    opacity: 0.6; /* Opacidad reducida */
}

textarea::placeholder {
    font-size: 13px; /* Ajusta según lo que desees */
    color: #888;      /* Si quieres un tono más tenue */
}


.tarjeta-salida {
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #fdfdfd;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    max-width: 700px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }
  
  .tarjeta-salida h2 {
    color: #111c4e;
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
  
  .tarjeta-salida h3 {
    color: #111c4e;
    margin-top: 20px;
    font-size: 1.2rem;
  }
  
  .tarjeta-salida ul {
    list-style: none;
    padding-left: 0;
  }
  
  .tarjeta-salida ul li {
    margin-bottom: 10px;
    padding-left: 1.2em;
    position: relative;
  }
  
  .tarjeta-salida ul li::before {
    content: '•';
    color: #111c4e;
    font-weight: bold;
    position: absolute;
    left: 0;
  }
  
  .precio-destacado {
    color: #1971c2;
    font-weight: bold;
  }
  
    .modalidades{
    border-bottom: 2px solid #dedede;
    border-top: 2px solid #dedede;
  }
  
  /* Estilos para el campo "otra" asignatura */
  .campoOtra {
    margin-top: 10px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
  }
  
  .campoOtra input {
    border: 2px solid #ddd;
    transition: border-color 0.3s ease;
  }
  
  .campoOtra input:focus {
    border-color: #11A5DE;
    outline: none;
  }
  
  .campoOtra input.error {
    border-color: #dc3545;
    background-color: #fff5f5;
  }
  
     .campoOtra input.error::placeholder {
     color: #dc3545;
   }
   
   /* Estilos para campos de día con error */
   select.error {
     border-color: #dc3545;
     background-color: #fff5f5;
   }
   
   /* Estilos para mensajes de error de días */
   #error-dias {
     margin-top: 5px;
     margin-bottom: 0;
   }

/* fin */