*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

body{
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.main{
    width: 98%;
    display: flex;
    flex-direction: column;
}

.logo-title{
    display: flex;
    width: 100%;
    justify-content: space-evenly;
    padding: 10px 0;
}

.logo-title img{
    user-select: none;
    pointer-events: none;
}

.logo-title div{
    display: grid;
    place-content: center;
    font-size: 1.4rem;
    font-weight: bold;
}

.form-container{
    display: grid;
    place-items: center;
    margin-top: 2em;
}

/*inicia elemento cuadrillas*/
.contenedor-cuadrillas, .contenedor-tipo-audio, .contenedor-inicial, .contenedor-sed{
    display: flex;
    align-items: center;
    gap: .2rem;
}

.contenedor-cuadrillas label, .contenedor-tipo-audio label, .contenedor-sed{
    font-size: .9rem;
}

.contenedor-cuadrillas label span, .contenedor-tipo-audio label span, .contenedor-sed label span{
    font-weight: bold;
    color: red;
}

.contenedor-cuadrillas input{
    padding: .5em;
}
/*termina elemento cuadrillas*/

.principal-form{
    display: block;
    padding: .5rem;
    width: 100%;
    border: solid 1px rgb(199, 189, 189);
    border-radius: 8px;
    background-color: whitesmoke ;
}

input, select{
    border: solid 1px  rgb(199, 189, 189);
    border-radius: 4px;
    outline: none;
    padding: .5em;
}

input:focus, select:focus{
    outline: 3px solid rgba(131, 170, 230, .8);
}

.form-sup{
    margin: 1.4rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-sup h3{
    padding: .4rem;
}

.form-sup div{
    padding: 0 .4rem;
}

#general-crpa, #general-amp, #general-participantes{
    margin: 1.4rem 0;
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.grabacion-controls{
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.contenedor-audio{
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

/* inicia boton de empezar grabación */
.btn-grabar{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgb(197, 33, 33);
    color: whitesmoke;
    border-radius: 50%;
    height: 64px;
    width: 64px;
    border: none;
    transition: all ease-in-out .2s;
    cursor: pointer;
}

/* btn grabar, estilos y animación */
.btn-grabar:hover:not(:disabled) {
    background-color: #c1121f;
    transform: scale(1.07);
}

/* animación para cuando se está grabando */
.btn-grabando {
    animation: pulsoRojo 1.2s infinite ease-in-out;
}

@keyframes pulsoRojo {
    0% {
        box-shadow: 0 0 0 0 rgba(214, 40, 40, 0.7);
    }
    100% {
        box-shadow: 0 0 0 12px rgba(214, 40, 40, 0);
    }
}

/* estilos para cuando se está en estado desactivado(mientras se está grabando) */
.btn-grabar:disabled {
    background-color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
/* finaliza boton de empezar grabación */

/*inicio boton de parar grabación*/
.btn-detener{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #6c757d;
    border-radius: 50%;
    height: 64px;
    width: 64px;
    border: none;
    cursor: pointer;
    transition: all .2s ease-in-out;
    color: whitesmoke;
}

.btn-detener:hover:not(:disabled) {
    background-color: #5a6268;
    transform: scale(1.07);
}

.btn-detener:disabled {
    background-color: #b8b8b8;
    cursor: not-allowed;
}
/*finaliza boton de parar grabación*/

.audio-preview{
    display: none;
    margin: 1.2rem 0;
}

.audio-info{
    display: flex;
    align-items: center;
    gap: .8rem;
}

/*boton para eliminar audio*/
.btn-borrar-audio{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: .4rem;
    background-color: #fff;
    padding: .4rem;
    border-radius: .4rem;
    border: solid 2px #5a6268;
    transition: all ease-in-out .2s;
    cursor: pointer;
}

.btn-borrar-audio:focus{
    transform: translateY(.4rem);
}

.section-cargar-audio{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.2rem 0;
    font-size: 0.9rem;
    color: #666;
    gap: .4rem;
}

.btn-subir-archivo{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: .4rem;
    background-color: #fff;
    padding: .4rem;
    border-radius: .4rem;
    /* color: #0d7acd;
    border: solid 2px #0d7acd; */
    color: #5b6a75;
    border: solid 2px #4d7293;
    transition: all ease-in-out .2s;
    cursor: pointer;
}
/* fianliza boton para eliminar audio */

.section-enviar{
    text-align:center;
    margin: 1.4rem 0;
}

.btn-enviar{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: .4rem;
    background-color: #fff;
    padding: .4rem;
    border-radius: .4rem;
    color: #0d7acd;
    border: solid 2px #0d7acd;
    transition: all ease-in-out .2s;
    cursor: pointer;
}

.btn-enviar:disabled{
    background-color: #0d7acd;
    color: whitesmoke;
}
/* sección de loading */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
    font-size: 18px;
    gap: 20px;
}

/* .loader-oculto {
    display: none;
} */

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #ffffff55;
    border-top-color: #fff;
    border-radius: 50%;
    animation: girar 0.9s linear infinite;
}

.bloqueado{
    background: #b8bcc0ab;
}

@keyframes girar {
    to { transform: rotate(360deg); }
}

@media (max-width: 720px){
    .logo-title{
        flex-direction: column;
        justify-content: center;
        place-items: center;
    }

    .logo-title div{
        font-size: 1.4rem;
    }

    .contenedor-participante{   
        flex-direction: column;
    }

    hr{
        width: 100%;
        color: rgb(199, 189, 189);
        margin-bottom: .6rem;
    }

    .principal-form{
        padding: 0;
    }
}