/* ── Página Contacto ── */

html:has(body.page-contacto) {
    overflow: auto !important;
    height: auto !important;
}

body.page-contacto {
    background: #ffde5a;
    overflow: auto !important;
    height: auto !important;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header estático */
body.page-contacto .site-nav {
    position: static;
    width: 100%;
}

/* Footer estático */
body.page-contacto .site-footer {
    position: static;
    margin-top: auto;
}

/* Título oscuro (fondo claro) */
body.page-contacto .site-name,
body.page-contacto .site-name:hover {
    color: #111;
}

/* ── Layout principal ── */
.contacto-main {
    padding: 10px 0 80px;
    flex: 1;
}

.contacto-subtitle {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 500;
    color: #111;
    letter-spacing: -0.02em;
    margin: 0;
    text-align: right;
}

/* ── Texto introductorio ── */
.contacto-intro {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #111;
    margin-bottom: 2rem;
}

/* ── Formulario ── */
.contacto-form .form-label {
    font-size: 1rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 0.35rem;
}

.contacto-form .form-control {
    border: 2px solid #111;
    border-radius: 10px;
    background: #fff;
    color: #111;
    padding: 0.7rem 0.9rem;
    font-size: 1rem;
}

.contacto-form .form-control:focus {
    border-color: #111;
    box-shadow: 0 0 0 0.2rem rgba(17, 17, 17, 0.15);
    background: #fff;
}

.contacto-form textarea.form-control {
    resize: vertical;
}

/* ── Botón enviar ── */
.contacto-submit {
    display: inline-block;
    border: 2px solid #111;
    border-radius: 30px;
    background: #111;
    color: #ffde5a;
    padding: 0.7rem 2.2rem;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.contacto-submit:hover {
    background: transparent;
    color: #111;
}

/* ── Footer: texto oscuro ── */
body.page-contacto .site-footer a {
    color: #111;
}
