* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    color-scheme: dark;
    --rojo: #d52b32;
    --texto: #f5f2ef;
    --texto-suave: #c4bfbb;
    --linea: rgba(255, 255, 255, 0.2);
}

body {
    min-height: 100vh;
    color: var(--texto);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    background: #171514 url("../imagenes/imgP.webp") center / cover fixed no-repeat;
}

body::before {
    position: fixed;
    z-index: -1;
    background: rgba(12, 10, 10, 0.78);
    content: "";
    inset: 0;
}

.encabezado {
    width: min(100% - 2rem, 1100px);
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border-bottom: 1px solid var(--linea);
}

.marca {
    color: var(--texto);
    font-size: 1.25rem;
    font-weight: 800;
    text-decoration: none;
}

.navegacion {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.navegacion a {
    color: var(--texto-suave);
    font-size: 0.9rem;
    text-decoration: none;
    text-transform: uppercase;
}

.navegacion a:hover,
.navegacion a[aria-current="page"] {
    color: var(--texto);
}

.contacto {
    width: min(100% - 2rem, 1000px);
    margin: 0 auto;
    padding: 4rem 0 5rem;
}

.presentacion {
    max-width: 650px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.sobrelinea {
    color: var(--rojo);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

h1,
h2 {
    line-height: 1.15;
}

.presentacion h1 {
    margin: 0.4rem 0 0.8rem;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    text-transform: uppercase;
}

.presentacion > p:last-child,
.nota-numero,
.nota-formulario {
    color: var(--texto-suave);
}

.encabezado-seccion {
    margin-bottom: 1.25rem;
}

.encabezado-seccion h2 {
    margin-top: 0.25rem;
    font-size: 1.7rem;
}

.ubicacion {
    margin-bottom: 3.5rem;
}

.mapa {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 520px;
    overflow: hidden;
    border: 1px solid var(--linea);
    background: #211e1c;
}

.mapa iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.contacto-detalles {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--linea);
}

.preguntas details {
    padding: 1rem 0;
    border-bottom: 1px solid var(--linea);
}

.preguntas summary {
    cursor: pointer;
    font-weight: 700;
}

.preguntas details p {
    padding: 0.75rem 1.5rem 0 0;
    color: var(--texto-suave);
}

.dato {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.8rem 0 0;
}

.dato span {
    color: var(--texto-suave);
}

.dato a {
    color: var(--texto);
    text-decoration-color: var(--rojo);
    text-underline-offset: 4px;
}

.nota-numero,
.nota-formulario {
    font-size: 0.85rem;
}

.nota-numero {
    margin: 0.25rem 0 1.5rem;
}

form {
    display: grid;
    gap: 0.6rem;
}

label {
    margin-top: 0.35rem;
    font-size: 0.9rem;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--linea);
    border-radius: 2px;
    background: rgba(15, 13, 12, 0.75);
    color: var(--texto);
    font: inherit;
}

input:focus,
textarea:focus {
    border-color: var(--rojo);
    outline: 2px solid rgba(213, 43, 50, 0.3);
}

textarea {
    resize: vertical;
}

button {
    justify-self: start;
    margin-top: 0.5rem;
    padding: 0.75rem 1.2rem;
    border: 0;
    border-radius: 2px;
    background: var(--rojo);
    color: white;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

button:hover {
    background: #b91f27;
}

.nota-formulario {
    margin-top: 0.75rem;
}

@media (max-width: 700px) {
    .encabezado {
        min-height: 68px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 0.25rem;
        padding: 0.75rem 0;
    }

    .navegacion {
        gap: 1rem;
    }

    .navegacion a {
        font-size: 0.8rem;
    }

    .contacto {
        padding-top: 3rem;
    }

    .presentacion {
        margin-bottom: 2.5rem;
    }

    .contacto-detalles {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 480px) {
    .encabezado {
        width: min(100% - 1rem, 1100px);
        padding: 0.9rem 0.75rem;
        gap: 0.5rem;
        align-items: center;
    }

    .marca {
        font-size: 1rem;
        letter-spacing: 0.08em;
    }

    .navegacion {
        justify-content: center;
        gap: 0.75rem 1rem;
    }

    .navegacion a {
        font-size: 0.7rem;
    }

    .contacto {
        width: min(100% - 1rem, 1000px);
        padding: 2.5rem 0 4rem;
    }

    .presentacion {
        margin-bottom: 2rem;
    }

    .presentacion h1 {
        font-size: clamp(2.1rem, 15vw, 3rem);
    }

    .encabezado-seccion h2 {
        font-size: 1.35rem;
    }

    .dato {
        flex-direction: column;
        gap: 0.2rem;
    }

    form {
        gap: 0.5rem;
    }

    input,
    textarea,
    button {
        width: 100%;
    }

    button {
        justify-self: stretch;
    }

    .ubicacion {
        margin-bottom: 2.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
    }
}
