.page-contacto {
    background: #060910;
}

.contact-main {
    overflow: hidden;
}

.contact-hero {
    position: relative;
    min-height: calc(100vh - 92px);
    padding: clamp(4rem, 7vw, 7rem) 2.5rem;
    overflow: hidden;
    isolation: isolate;
    color: #ffffff;
    background:
        radial-gradient(circle at 78% 15%, rgba(176, 0, 0, 0.18), transparent 28%),
        radial-gradient(circle at 12% 82%, rgba(99, 32, 32, 0.18), transparent 32%),
        linear-gradient(145deg, #05070c 0%, #0b0f17 55%, #05070b 100%);
}

.contact-hero::before {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 82%, transparent);
    content: "";
}

.contact-hero::after {
    position: absolute;
    top: -340px;
    right: -260px;
    z-index: -1;
    width: 760px;
    height: 760px;
    border: 1px solid rgba(239, 68, 68, 0.1);
    border-radius: 50%;
    box-shadow:
        0 0 0 85px rgba(239, 68, 68, 0.025),
        0 0 0 170px rgba(239, 68, 68, 0.018);
    content: "";
}

.contact-orb {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.contact-orb--one {
    top: 24%;
    left: 5%;
    width: 8px;
    height: 8px;
    background: #ef4444;
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.08), 0 0 30px rgba(239, 68, 68, 0.65);
}

.contact-orb--two {
    right: 8%;
    bottom: 14%;
    width: 5px;
    height: 5px;
    background: #ffffff;
    box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.04), 0 0 24px rgba(255, 255, 255, 0.35);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(430px, 0.78fr);
    align-items: center;
    gap: clamp(3rem, 8vw, 8rem);
    max-width: 1280px;
    margin: 0 auto;
}

.contact-intro {
    max-width: 680px;
}

.contact-kicker {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.4rem;
    color: #f87171;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.contact-kicker span {
    width: 30px;
    height: 1px;
    background: currentColor;
}

.contact-intro h1 {
    margin: 0;
    font-size: clamp(3.4rem, 6.6vw, 7rem);
    line-height: 0.92;
    letter-spacing: -0.065em;
    text-wrap: balance;
}

.contact-intro h1 em {
    color: #ef4444;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

.contact-lead {
    max-width: 620px;
    margin: 1.8rem 0 0;
    color: #a8b2c0;
    font-size: clamp(1rem, 1.3vw, 1.13rem);
    line-height: 1.75;
}

.contact-points {
    display: grid;
    gap: 0.85rem;
    margin-top: 2.3rem;
}

.contact-points > div {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: start;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
}

.contact-points > div > span {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 12px;
    color: #fecaca;
    background: rgba(176, 0, 0, 0.18);
    font-size: 0.68rem;
    font-weight: 850;
}

.contact-points p {
    color: #8591a2;
    font-size: 0.82rem;
    line-height: 1.5;
}

.contact-points strong {
    display: block;
    margin-bottom: 0.15rem;
    color: #e9edf2;
    font-size: 0.9rem;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 2.2rem;
    font-style: normal;
}

.contact-details a,
.contact-details > div {
    display: grid;
    gap: 0.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    color: inherit;
    text-decoration: none;
}

.contact-details small {
    color: #697487;
    font-size: 0.66rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.contact-details strong {
    color: #cfd6df;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.45;
}

.contact-details a:hover strong {
    color: #ffffff;
}

.contact-form-card {
    padding: clamp(1.6rem, 3vw, 2.5rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    background: rgba(248, 250, 252, 0.97);
    box-shadow: 0 42px 100px rgba(0, 0, 0, 0.45);
}

.contact-form-heading {
    margin-bottom: 1.8rem;
}

.contact-form-heading > p {
    color: #a40000;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.contact-form-heading h2 {
    margin: 0.2rem 0 0.25rem;
    color: #111827;
    font-size: clamp(2rem, 3vw, 2.8rem);
    letter-spacing: -0.04em;
}

.contact-form-heading > span {
    color: #7b8492;
    font-size: 0.76rem;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.contact-botcheck {
    display: none !important;
}

.contact-field {
    display: grid;
    gap: 0.45rem;
}

.contact-field label {
    color: #253043;
    font-size: 0.78rem;
    font-weight: 780;
}

.contact-field label > span {
    color: #b00000;
}

.contact-field label small {
    margin-left: 0.35rem;
    color: #9098a5;
    font-size: 0.68rem;
    font-weight: 600;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    border: 1px solid #d7dce3;
    border-radius: 14px;
    outline: none;
    color: #111827;
    background: #ffffff;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-field input {
    height: 52px;
    padding: 0 0.95rem;
}

.contact-field textarea {
    min-height: 150px;
    padding: 0.9rem 0.95rem;
    line-height: 1.55;
    resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: #a4acb8;
}

.contact-field input:hover,
.contact-field textarea:hover {
    border-color: #b9c0ca;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: #a40000;
    box-shadow: 0 0 0 4px rgba(164, 0, 0, 0.09);
}

.contact-submit {
    display: flex;
    min-height: 58px;
    margin-top: 0.35rem;
    padding: 0 0.8rem 0 1.35rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 0;
    border-radius: 15px;
    color: #ffffff;
    background: linear-gradient(135deg, #b00000, #780000);
    box-shadow: 0 15px 32px rgba(164, 0, 0, 0.24);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.contact-submit:hover:not(:disabled) {
    box-shadow: 0 20px 38px rgba(164, 0, 0, 0.32);
    transform: translateY(-2px);
}

.contact-submit:focus-visible {
    outline: 3px solid rgba(176, 0, 0, 0.28);
    outline-offset: 4px;
}

.contact-submit:disabled {
    cursor: wait;
    opacity: 0.7;
}

.contact-submit-arrow {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 11px;
    color: #7c0000;
    background: #ffffff;
    font-size: 1.15rem;
}

.contact-privacy {
    color: #89919d;
    font-size: 0.69rem;
    line-height: 1.5;
    text-align: center;
}

.contact-result {
    display: none;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
}

.contact-result.is-visible {
    display: block;
}

.contact-result[data-state="sending"] {
    color: #475569;
    background: #eef2f7;
}

.contact-result[data-state="success"] {
    color: #166534;
    background: #dcfce7;
}

.contact-result[data-state="error"] {
    color: #991b1b;
    background: #fee2e2;
}

.page-contacto .site-footer {
    margin-top: 0;
}

@media (max-width: 1050px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-intro {
        max-width: 820px;
    }

    .contact-form-card {
        width: min(720px, 100%);
        margin: 0 auto;
    }
}

@media (max-width: 700px) {
    .contact-hero {
        padding: 4rem 1.25rem;
    }

    .contact-intro h1 {
        font-size: clamp(3.2rem, 16vw, 4.8rem);
    }

    .contact-details {
        grid-template-columns: 1fr;
    }

    .contact-form-card {
        padding: 1.35rem;
        border-radius: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-contacto *,
    .page-contacto *::before,
    .page-contacto *::after {
        transition-duration: 0.01ms !important;
    }
}
