body::before {
    content: "";
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100lvh;
    background: 
        linear-gradient(rgba(63, 1, 1, 0.18), rgba(80, 0, 0, 0.32)),
        url("../images/blanco-y-negro-hombre-trabajando-acera-18533708.ce8bb26a4f46.jpg") top 10% center / cover no-repeat;
    z-index: -1;
}

.contact-page {
    position: relative;
    min-height: calc(100vh - 88px);
    margin-top: 0;
    padding: 70px;    
    font-family: "Roboto", Helvetica, sans-serif;
    overflow: hidden;
    background:
        linear-gradient(rgba(7, 7, 7, 0.98), rgba(34, 34, 34, 0.92)),
}

.contact-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(
            circle at 78% 22%,
            rgba(59, 5, 5, 0.56),
            transparent 22%
        ),
        radial-gradient(
            circle at 18% 35%,
            rgba(58, 4, 4, 0.66),
            transparent 18%
        );
}

.contact-container {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
    gap: 10em;
    width: 90%;
    margin: 0 auto;
    z-index: 1;
    padding: 7% 7% 96px;
}

.contact-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(24, 1, 1, 0.84);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    -webkit-mask-image:
        linear-gradient(to right, transparent 0%, rgb(5 1 1 / 98%) 4%, rgb(13 2 2 / 98%) 96%, transparent 100%), 
        linear-gradient(to bottom, transparent 0%, rgba(13, 2, 2, 0.98) 4%, rgba(5, 1, 1, 0.98) 96%, transparent 100%);        
    -webkit-mask-composite: source-in;

    mask-image: 
        linear-gradient(to right, transparent 0%, rgb(5 1 1 / 98%) 4%, rgb(13 2 2 / 98%) 96%, transparent 100%), 
        linear-gradient(to bottom, transparent 0%, rgba(13, 2, 2, 0.98) 4%, rgba(5, 1, 1, 0.98) 96%, transparent 100%);        
    mask-composite: intersect;

    z-index: -1;
}

.contact-copy {
    padding: 30px;
    color: var(--color-white);
    max-width: 100%;
    margin-left: auto;
}

h1 {
    color: var(--color-red);
}

h1 .title-glitch {
    color: var(--color-white);
}

h1 .title-glitch::before {
    color: rgba(183, 40, 40, 0.95);
}

h1 .title-glitch::after {
    color: rgba(183, 40, 40, 0.95);
}

.contact-intro {
    max-width: 500px;
    margin: 36px 0 46px;
    font-family: "Iceland", Helvetica, sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.82);
}

.contact-services-summary {
    margin: 0 0 28px;
    font-family: "Iceland", Helvetica, sans-serif;
    font-size: 1.1rem;
    line-height: 1.25;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48);
}

.contact-audience {
    max-width: 520px;
    margin: 24px 0 36px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.58);
}

.contact-response-time {
    margin: 34px 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(211, 51, 51, 0.45);
    border-radius: 14px;
    background: rgba(12, 12, 12, 0.42);
    box-shadow: 0 0 24px rgba(211, 51, 51, 0.12);
}

.contact-icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: #ff3b3b;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-label {
    margin: 0 0 6px;
    font-family: "Iceland", "Roboto", Arial, Helvetica, sans-serif;
    font-size: 1.1em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.contact-value {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.45;
    color: var(--color-white);
    word-break: break-word;
}

a.contact-value:hover {
    color: var(--color-lightgrey);
}

.contact-form-card {
    width: 100%;
    max-width: 520px;
    margin-top: 0;
    margin-right: auto;
    margin-left: auto;
    padding: 30px 26px;
    border: 1px solid rgba(211, 51, 51, 0.28);
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        rgba(163, 13, 13, 0.5) 0%,
        rgba(211, 49, 49, 0.7) 45%,
        rgba(138, 17, 17, 0.5) 100%
    );
    backdrop-filter: blur(5px);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(211, 51, 51, 0.08);
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 17px;
}

.form-group label,
.form-label {
    margin-bottom: 9px;
    font-size: 0.95rem;
    letter-spacing: 0.09em;
    color: #f4f4f4;
}

.form-group input,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(255, 255, 255, 0.22);
    color: var(--color-white);
    font: inherit;
    line-height: 1.25;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.form-group input {
    height: 46px;
    padding: 0 16px;
    color: rgba(58, 58, 58, 0.95);
}

.form-group textarea {
    min-height: 85px;
    padding: 14px 16px;
    resize: vertical;
    color: rgba(58, 58, 58, 0.95);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(58, 58, 58, 0.65);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(211, 51, 51, 0.95);
    background: rgba(245, 245, 245, 0.95);
    box-shadow: 0 0 0 3px rgba(211, 51, 51, 0.16);
}

fieldset {
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid rgba(78, 10, 10, 0.95);
}

.form-options {
    padding: 16px 18px 14px;
}

.form-options legend {
    color: var(--color-white);
    font-family: "Iceland", sans-serif;
    font-size: 1.4em;
    font-weight: 500;
    letter-spacing: 0.08em;
    padding: 0 8px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 8px;
    margin-bottom: 12px;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.checkbox-option input[type="checkbox"] {
    appearance: none;
    width: 14px;
    height: 14px;
    margin: 0;
    padding: 0;
    flex: 0 0 14px;
    display: grid;
    place-items: center;
    background: var(--color-white);
    border: 1px solid var(--color-white);
    border-radius: 2px;
    cursor: pointer;
}

.checkbox-option input[type="checkbox"]:checked::after {
    content: "✓";
    color: rgba(211, 51, 51, 0.95);
    font-size: 22px;
    margin-top: -9px;
    margin-left: 0;
    font-weight: 900;
    line-height: 1;
}

.checkbox-option:has(input:checked) {
    background: rgba(255, 255, 255, 0.12);
}

.checkbox-option:has(input:checked) span {
    color: var(--color-white);
    font-weight: 700;
}

.contact-submit-btn {
    width: 100%;
    padding: 16px 22px;
    border: none;
    border-radius: 8px;
    background: rgba(10, 10, 10, 0.7);
    border: 1px solid rgba(10, 10, 10, 0.7);
    color: var(--color-white);
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(211, 51, 51, 0.22);
    transition:
        transform 0.2s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.contact-submit-btn:hover {
    border: 1px solid var(--color-white);
    transform: translateY(1px);
    filter: brightness(1.05);
}

.contact-messages {
    margin-bottom: 18px;
}

.contact-message {
    padding: 12px 14px;
    border-radius: 7px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.contact-message.success {
    border: 1px solid rgba(90, 190, 110, 0.45);
    background: rgba(40, 120, 60, 0.18);
    color: #d8f5dd;
}

.contact-message.error {
    border: 1px solid rgba(211, 51, 51, 0.55);
    background: rgba(211, 51, 51, 0.14);
    color: #ffd5d5;
}


@media (max-width: 1598.99px) {
    .contact-container {
        grid-template-columns: 1.1fr 0.9fr;
        width: 100%;
    }
}

@media (max-width: 1380px) {

    .contact-container {
        gap: 36px;
        margin-top: -3%;    
    }
}


@media (max-width: 1180px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .contact-copy {
        padding: 70px 0 0;
        max-width: 70%;
        margin: 0 auto;
    }

    .contact-form-card {
        max-width: 70%;
        margin: 0 auto;
    }

    .contact-intro {
        max-width: 100%;
    }
}


@media (max-width: 767.98px){
    .contact-page {
        margin-top: 88px;
        padding: 0;
    }

    .contact-container::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(10, 10, 10, 0.68);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        -webkit-mask-image:
            linear-gradient(to bottom, transparent 0%, black 4%, black 96%, transparent 100%),        
            linear-gradient(to bottom, transparent 0%, black 4%, black 96%, transparent 100%);        
        -webkit-mask-composite: source-in;

        mask-image:
            linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%),
            linear-gradient(to bottom, transparent 0%, black 4%, black 96%, transparent 100%);        
        mask-composite: intersect;
        z-index: -1;
        width: 95%;
        margin: 0 auto;
    }

    .contact-copy,
    .contact-form-card {
        max-width: 80%;
    }
   
}

@media (max-width: 640px) {

    .contact-title {
        margin-bottom: 28px;
        font-size: clamp(3rem, 18vw, 4.4rem);
    }

    .contact-copy {
        max-width: 90%;
    }

    .contact-form-card {
        padding: 24px 18px;
        max-width: 90%;
    }

    .subject-options {
        grid-template-columns: 1fr;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
    }

    .contact-icon svg {
        width: 26px;
        height: 26px;
    }
}


@media (max-width: 476.98px) {
    .contact-copy,
    .contact-form-card {
        max-width: 100%;
    }

    .contact-container {
        gap: 36px;
        padding: 7%;
    }

    .contact-title {
        margin-bottom: 28px;
        font-size: clamp(3rem, 10vw, 4.4rem);
    }

}