/* Reset de márgenes y estilos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%; /* Asegura que el cuerpo ocupe toda la pantalla */
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f7fa;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribuye espacio entre el formulario y el footer */
    align-items: center;
    padding: 20px;
    color: #333;
}

/* Contenedor principal para centrar el formulario */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin-top: 50px; /* Espacio superior */
}

/* Estilo del contenedor del formulario */
.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 30px; /* Espacio inferior */
}

/* Título */
h1 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: #4CAF50;
}

/* Estilo de los labels */
label {
    display: block;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}

/* Estilo de los inputs */
input,
select,
button,
.checkbox-group label {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 16px;
}

/* Botón de envío */
button {
    width: 100%;
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

/* Estilo para el grupo de checkboxes */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* Vista previa de los datos */
.preview {
    background-color: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 20px;
}

/* Footer */
footer {
    width: 100%;
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: white;
    font-size: 14px;
    margin-top: 50px; /* Espacio superior para que el footer se separe del formulario */
}
