@charset "UTF-8";
.main-container {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    width: 100%;
}

.header1 {
    color: white;
    text-align: center;
    padding: 20px 0;
}

.centrar-banner {
    width: 100%;
}

.img-banner img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.banner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

    .banner h1 {
        margin: 0;
        font-size: 2em;
        color: #ffffff; 
    }

.certificados, .validacion {
    text-align: center;
    margin: 40px auto;
    width: 80%;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.centrar {
    width: 30%;
    max-width: 600px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.val-titulo h2, p {
    width: 100%;
    text-align: justify;
    color: #000;
}

.certificados-lista {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.certificado {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: left; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(33.333% - 40px); 
    max-width: calc(33.333% - 40px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

    .certificado img {
        width: 100%;
        max-width: 300px;
        border-radius: 10px;
    }

    .certificado h2 {
        font-weight: bold;
        text-align: left;
        width: 100%; 
    }

.descargar {
    display: block;
    background-color: #ff6600;
    color: white;
    text-align: center;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 5px;
    text-decoration: none;
    width: 45%;
}

    .descargar:hover {
        background-color: #e55b00;
        color: rgba(0, 0, 0, 0.1)
    }

.validacion input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.consultar {
    background-color: #ff6600;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
}

    .consultar:hover {
        background-color: #e55b00;

    }

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
}

.ubicar-recaptcha {
    margin-top: 30px;
    margin-bottom: 30px;
}

.form-banner {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.titulo {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

.val-subtitulo, .validacion p {
    font-size: 0.875rem;
    color: #777;
}

.certificado .titulo-constancias {
    font-size: 30px;
    color: #000;
    margin-top: 10px;
}

.btn-consultar {
    background-color: #777;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: not-allowed;
}

    .btn-consultar.enabled {
        background-color: #ff6600;
        cursor: pointer;
    }

.modal {
    display: none;
    position: fixed;
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}


.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: block;
    padding: 10px;
    text-align: center;
}

.modal-footer {
    padding: 10px;
    text-align: right;
}


.modal-header .close {
    padding-top: 15px;
    margin-right: 15px;
    display: block;
}

.modal-body {
    padding: 10px;
    text-align: left;
}

.modal.show {
    display: block;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    margin-right: 30px; 
    z-index: 9999; 

}

    .close:hover{
        color: black;
        text-decoration: none;
        cursor: pointer;
        z-index: 9999; 
    }

.button {
    background-color: #ff6600;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 15px;
}

    .button:hover {
        background-color: #e55b00;
    }

.item-modal {
    color: #000; 
    font-weight: bold; 
    font-size: 15px;
}

.text-modal {
    color: #808080;
    font-size: 15px;
}

.validacion-error-modal {
    display: none;
    position: fixed;
    z-index: 9998;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}


.validacion-error-modal.show {
    display: block;
}

.validacion-error-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; 
    max-width: 500px;
    height: auto;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: auto; 
}

.validacion-error-modal-header, .validacion-error-modal-footer {
    text-align: right;
    font-size: 30px;
    font-weight: bold;
    display: block; 
}

.validacion-error-modal-body {
    margin: 20px 0;
}

.validacion-titulo-modal-error {
    font-size: 30px;
    font-weight: bold;
    color: #000;
}

.validacion-titulo-modal {
    font-size: 30px;
    font-weight: bold;
    color: #000;
}

.validacion .centrar .label-titulo {
    font-size: 13px;
    color: #777;
    text-align: center;
}
/* Media Queries para Responsividad */
@media (max-width: 1200px) {
    .certificado {
        flex: 1 1 calc(50% - 40px);
        max-width: calc(50% - 40px);
    }
}

@media (max-width: 768px) {
    .certificado {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
