* {
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: black;
}

header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: white;
}

header img {
    width: 300px;
    height: auto;
}

nav {
    margin-left: auto;
}

nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: black;
    padding: 8px 12px;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav a:hover {
    background-color: black;
    color: white;
}

.contacto {
    background-color: black;
    color: white;
    padding: 50px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.contacto h1 {
    font-size: 38px;
    margin: 0 0 30px 0;
    text-transform: uppercase;
    text-align: center;
    color: white;
}

.intro-contacto {
    font-size: 17px;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 30px;
}

.formulario-contacto fieldset {
    border: 1px solid white;
    padding: 25px;
    margin-bottom: 25px;
}

.formulario-contacto legend {
    padding: 0 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.formulario-contacto label {
    display: block;
    margin-bottom: 8px;
    margin-top: 15px;
}

.formulario-contacto input[type="text"],
.formulario-contacto input[type="email"],
.formulario-contacto select,
.formulario-contacto textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid white;
    background-color: black;
    color: white;
    font-size: 16px;
}

.formulario-contacto input[type="text"]:focus,
.formulario-contacto input[type="email"]:focus,
.formulario-contacto select:focus,
.formulario-contacto textarea:focus {
    outline: none;
    background-color: white;
    color: black;
}

.botones-formulario {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.botones-formulario input {
    padding: 12px 24px;
    border: 1px solid white;
    background-color: black;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.botones-formulario input:hover {
    background-color: white;
    color: black;
}

.contacto-extra {
    margin-top: 35px;
    line-height: 1.8;
}

.contacto-extra a {
    color: white;
    text-decoration: underline;
}

.contacto-extra a:hover {
    background-color: white;
    color: black;
    padding: 2px 6px;
}

.privacidad {
    margin-top: 30px;
    border: 1px solid white;
    padding: 20px;
}

.privacidad summary {
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
}

.privacidad p {
    margin-top: 15px;
    line-height: 1.6;
}

.footer {
    background-color: black;
    padding: 20px 40px 10px 40px;
    text-align: center;
}

.footer p {
    margin: 0;
    font-size: 12px;
    color: #777;
    line-height: 1.4;
}