body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

header, footer {
    text-align: center;
    background-color: #f4f4f4;
    padding: 10px 0;
}

.header-image, .footer-image {
    max-width: 100%;
    height: auto;
}

main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-image {
    display: block;
    margin: 0 auto 20px auto;
    max-height: 400px;
}

section {
    margin-bottom: 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    padding: 20px;
}

h1 {
    text-align: center;
}

.form-container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    /* Estas tres líneas son las importantes para centrar */
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
}

input, select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.15s ease-in-out;
    background-color: white;
}

input:focus, select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

button {
    width: 100%;
    padding: 0.75rem;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

button:hover {
    background-color: #2563eb;
}

button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

.alert {
    margin-bottom: 40px;
    border: 1px solid #aa3535;
    border-radius: 8px;
    background-color: #ff4e4e;
    color: white;
    font-weight: bold;
    padding: 20px;
    text-align: center;
}