/* Reset de estilos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 0;
    background: #f7f7f7;
    color: #333;
}

.main-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    align-items: center; /* Centramos el contenedor principal */
}

.container {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
    text-align: center; /* Centramos el contenido dentro del contenedor */
}

h1 {
    margin-bottom: 20px;
    font-size: 2em;
    color: #007bff;
}

#consulta {
    width: 100%;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 20px;
}

label {
    margin-bottom: 5px;
    font-size: 1.1em;
    color: #555;
}

input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
    transition: border-color 0.3s ease;
}

input:focus {
    border-color: #007bff;
    outline: none;
}

button {
    padding: 12px 24px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

.resultados-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 20px;
    flex-wrap: wrap; /* Aseguramos que los contenedores se ajusten en pantallas pequeñas */
}

.resultado {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 8px;
    width: 48%;
    text-align: left;
    margin-bottom: 20px;
}

.resultado h2 {
    margin-bottom: 10px;
    color: #007bff;
}

.resultado p {
    margin-bottom: 10px;
    color: #333;
}

.evento {
    background: #ffffff;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.evento p {
    margin-bottom: 5px;
}

@media (max-width: 600px) {
    .main-container {
        padding: 10px;
    }

    #consulta {
        margin-bottom: 20px;
    }

    .resultados-container {
        flex-direction: column;
        align-items: center;
    }

    .resultado {
        width: 100%;
        margin-bottom: 20px;
    }

    h1 {
        font-size: 1.5em;
    }

    input,
    button {
        width: 100%;
    }

    .form-group {
        align-items: center;
    }
}
