/* Cuerpo de la página */
body {
    font-family: Georgia, serif;
    background-color: #fff8f0;
    margin: 0;
    color: #333;
}

/*Cabecera*/
header {
    background: linear-gradient(to right, #5a2a27, #7d3e3e);
    color: #fff;
    padding: 1.5rem 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

header .cabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

header .logo {
    height: 110px;
    width: 90 px;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
}

header h1 {
    font-size: 2.5rem;
    font-family: 'Cinzel', serif;
    margin-left: 1rem;
    flex: 1;
    color: #ffe6c7;
    text-shadow: 1px 1px 2px #000;
}

header .login-form {
    display: flex;
    gap: 0.5rem;
}

header .login-form input,
header .login-form button {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Georgia', serif;
    font-size: 0.8rem;
}

header .login-form button {
    background-color: #e0b973;
    color: #2e2e2e;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

header .login-form button:hover {
    background-color: #c89f5d;
}

header .alta-link {
    color: #ffe6c7;
    margin-left: 1rem;
    text-decoration: underline;
    font-size: 0.9rem;
}

header nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 2rem;
    background: #3b1f1f;
    padding: 1rem 0;
    flex-wrap: wrap;
    box-shadow: inset 0 -2px 5px rgba(0, 0, 0, 0.4);
}

header nav a {
    color: #ffe6c7;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Cinzel', serif;
}

header nav a:hover {
    color: #f7c873;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

/* Contenido principal */
main {
    padding: 3rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

section {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    background-color: #fdf5e9;
    border: 1px solid #c89f5d;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
    font-size: 2rem;
    color: #333;
    margin-bottom: 1.5rem;
}

fieldset {
    border: 1px solid #c89f5d;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background-color: #fff1da;
}

legend {
    font-size: 1.3rem;
    font-weight: bold;
    color: #5c3c1f;
}

label {
    display: block;
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.8rem;
    margin-top: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
}

input[type="checkbox"] {
    margin-top: 0.5rem;
}

input[type="radio"] {
    margin-right: 0.5rem;
}

div {
    text-align: center;
}

div button {
    margin: 0.5rem;
}

datalist {
    font-size: 1rem;
}

/* Pie de página */
footer {
    padding: 2.5rem;
    background-color: #2e1a1a;
    color: #ffe6c7;
    text-align: center;
    font-family: 'Georgia', serif;
    border-top: 4px solid #7d3e3e;
}

footer a {
    color: #f7c873;
    text-decoration: none;
    margin: 0 0.5rem;
}

footer a:hover {
    text-decoration: underline;
    color: #ffd700;
}