* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

body {
    background: linear-gradient(to right, #003973, #005fc5);
    min-height: 100vh;
    color: #333;
}

/* Header */
.main-header {
    width: 100%;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    position: relative;
}

.main-header img {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Estilo para la foto de portada */
.cover-photo {
    width: 45%;
    height: 45%;
    margin: auto;
    margin-right: 27.6%;
}

.cover-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que cubra todo el espacio */
}

.container-logo {
    padding: 0 0 25% 0;
}

.container-logo img {
    position: relative;
    bottom: 100%;
}

#titulo {
    text-align: center; /* Centra el texto */
    color: #000;
    font-weight: bold; /* Pone el texto en negrita */
    flex-grow: 1; /* Opcional: hace que ocupe el espacio disponible */
}

/* Contenido principal */
.container {
    max-width: 1100px;
    width: 90%;
    margin: 40px auto 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

h2 {
    margin-bottom: 20px;
    color: #003973;
    font-weight: 600;
}

.form-container {
    margin-bottom: 40px;
}

form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

form input,
form select {
    flex: 1 1 200px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

form input[type="submit"],
form button {
    background-color: #003973;
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: background-color 0.3s;
    border-radius: 6px;
}

form input[type="submit"]:hover,
form button:hover {
    background-color: #005fc5;
}

.table-container {
    position: relative;
    /*overflow-x: auto;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    overflow: hidden;
    max-height: 0; /* Inicialmente está oculta 
    opacity: 0; /* Inicialmente está oculta */
}

.tabla-wrapper {
    overflow: hidden;
    max-height: 1000px;
    opacity: 1;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.tabla-wrapper.hide {
    max-height: 0;
    opacity: 0;
}

.tabla-wrapper.show {
    max-height: 1000px;
    opacity: 1;
}

/* Nuevo: la tabla se mostrará al activar 'show' */
.table-container.show {
    max-height: 1000px; /* Altura máxima cuando se muestra la tabla */
    opacity: 1; /* Hace visible la tabla */
}

.table-container.hide {
    max-height: 0; /* Altura mínima cuando se oculta */
    opacity: 0; /* La hace invisible */
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

table th, table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

table th {
    background-color: #003973;
    color: white;
}

table a {
    color: #005fc5;
    text-decoration: none;
}

table a:hover {
    text-decoration: underline;
}

/* Estilos para el formulario desplegable */
.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.toggle-btn {
    background-color: #003973;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-btn.active {
    transform: rotate(45deg);
}

#userForm {
    transition: all 0.3s ease;
    overflow: hidden;
}

#userForm.show {
    display: flex !important;
    flex-wrap: wrap;
    gap: 15px;
}

/* Estilo para ocultar el formulario inicialmente */
#aerolabMindkids {
    display: none;
}

/* Estilo cuando el formulario tiene la clase 'show' */
#aerolabMindkids.show {
    display: block;
}

/* Si quieres cambiar el estilo del botón cuando se hace clic */
.toggle-btn.active {
    background-color: #4CAF50; /* Cambia a un color verde, por ejemplo */
    color: white;
}

.toggle-btn:hover {
    background-color: #4CAF50;
    transform: scale(1.1);
}
    
/* Responsive */
@media (max-width: 768px) {
    form {
        flex-direction: column;
    }

    table {
        font-size: 14px;
    }

    .container {
        padding: 20px;
    }

    .main-header {
        flex-direction: column;
        align-items: center;
    }

    .main-header img {
        height: 40px;
    }

    .cover-photo {
        width: 70%;
        height: 70%;
        margin: auto;
    }

    .cover-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Asegura que cubra todo el espacio */
    }

    .container-logo {
        padding: 0 0 0 0;
    }
}
