/* Estilos generales */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0c0c3e;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden; /* Elimina las barras de desplazamiento */
    color: white;
}

/* Contenedor principal */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
}

/* Card */
.card {
    display: flex;
    flex-direction: row;
    background-color: rgba(25, 25, 82, 0.9); /* Fondo general */
    padding: 20px;
    border-radius: 15px;
    max-width: 900px;
    width: 90%;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

/* Logo */
.logo-container {
    flex: 1;
    background-color: rgba(25, 25, 82, 0.5); /* Fondo transparente */
    padding: 15px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
}

.logo {
    width: 150px;
    height: auto;
    object-fit: contain;
}

/* Formulario */
.form-content {
    flex: 2;
    background-color: #ffffff; /* Fondo blanco */
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.card-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #0c0c3e;
    text-align: center;
}

.highlight {
    color: #ffc107;
}

/* Estilo general para los elementos del formulario */
.dropdown, .input-field, .search-button {
    width: 100%; /* Asegura que ocupen todo el ancho */
    max-width: 300px; /* Ancho uniforme */
    margin-bottom: 15px; /* Espaciado entre los elementos */
    padding: 12px; /* Padding uniforme */
    font-size: 0.9rem; /* Tamaño de fuente coherente */
    border: 1px solid #ccc; /* Bordes uniformes */
    border-radius: 5px; /* Bordes redondeados */
    height: 45px; /* Altura fija para todos los elementos */
    box-sizing: border-box; /* Incluye padding y borde en las dimensiones */
}

/* Estilo específico del botón */
.search-button {
    background-color: #ffc107;
    color: #0c0c3e;
    border: none;
    cursor: pointer;
    text-align: center;
}

.search-button:hover {
    background-color: #e0a800;
}


/* Estilos para el modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}

.download-button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.download-button:hover {
    background-color: #0056b3;
}


/* Nota final */
.note {
    font-size: 1rem;
    color: #0c0c3e;
    margin-top: 20px;
}

/* Footer con copyright */
footer {
    width: 100%;
    padding: 10px;
    position: absolute;
    bottom: 0;
    text-align: right;
    margin-right: 20px;
}

.copyright {
    font-size: 0.9rem;
    color: #aaa;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 900px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

.certificate-preview {
    margin-bottom: 20px;
}

.download-button {
    margin-bottom: 20px;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.download-button:hover {
    background-color: #0056b3;
}


/* Responsividad */

/* Pantallas pequeñas (móviles) */
@media screen and (max-width: 768px) {
    .card {
        flex-direction: column; /* Cambia a diseño vertical */
        align-items: center;
    }

    .logo-container {
        margin-bottom: 20px; /* Espacio entre logo y formulario */
        margin-right: 0;
    }

    .logo {
        width: 120px; /* Reduce el tamaño del logo */
    }

    .form-content {
        padding: 15px; /* Reduce el padding */
    }

    .card-title {
        font-size: 1.5rem; /* Reduce el tamaño del título */
    }

    .dropdown, .input-field, .search-button {
        max-width: 100%; /* Asegura que ocupen todo el ancho */
    }
}

/* Pantallas medianas (tablets) */
@media screen and (max-width: 1024px) {
    .card {
        max-width: 700px; /* Ajusta el ancho */
        padding: 15px;
    }

    .logo {
        width: 130px; /* Ajusta el tamaño del logo */
    }

    .card-title {
        font-size: 1.6rem;
    }
}
