body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
    background: #f5f5f5 url('../img/formulario.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}

.form-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 20px 25px;
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
}

.logo-space {
    text-align: center;
    margin-bottom: 15px;
    padding: 10px 0;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.logo-space img {
    max-width: 150px;
    height: auto;
}

h1 {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}

h2 {
    font-size: 1em;
    color: #555;
    margin-top: 15px;
    margin-bottom: 10px;
    grid-column: span 2;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-group {
    margin-bottom: 8px;
}

label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
    color: #555;
    font-size: 0.9em;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="file"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 0.85em;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: #4CAF50;
}

.required::after {
    content: " *";
    color: red;
}

.mask-example {
    color: #777;
    font-size: 0.75em;
    margin-top: 3px;
    font-style: italic;
}

.button-container {
    grid-column: span 2;
    text-align: center;
    margin-top: 12px;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 8px 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    transition: background-color 0.3s;
    width: 100%;
    max-width: 160px;
}

button:hover {
    background-color: #45a049;
}

.form-links {
    text-align: center;
    margin-top: 15px;
    grid-column: span 2;
}

.form-link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85em;
    margin: 0 10px;
}

.form-link:hover {
    text-decoration: underline;
}

.footer {
    text-align: center;
    margin-top: 20px;
    color: #555;
    font-size: 0.8em;
    padding: 12px 0;
}

@media (max-width: 768px) {
    .form-container {
        padding: 15px 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    h2 {
        grid-column: span 1;
        margin-top: 12px;
        margin-bottom: 8px;
    }

    .button-container {
        grid-column: span 1;
    }

    .form-links {
        grid-column: span 1;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
}

.message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    text-align: center;
}

.success {
    background-color: #d4edda;
    color: #155724;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
}

.photo-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 10px auto;
    border: 2px solid #ddd;
}

.photo-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo-upload-label {
    cursor: pointer;
    text-align: center;
    padding: 8px;
    background-color: #f5f5f5;
    border-radius: 10px;
    width: 100%;
    transition: background-color 0.3s;
}

.photo-upload-label:hover {
    background-color: #e0e0e0;
}