
body {
    position: relative;
    background: none;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100lvh;
    background: url("../images/under_construction_proximamente.5be7da0f72ac.png") no-repeat top left;
    background-size: cover;
    z-index: -1;
}

.home-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 88px;
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    padding: 0;
    color: var(--color-white);
}

.home-header {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    background: rgba(10, 10, 10, 0.45);
    max-width: 70%;
    padding: 46px 5% 16px 7%;
    background: linear-gradient(
        to right,
        rgba(10, 10, 10, 0) 0%,
        rgba(10, 10, 10, 0.18) 20%,
        rgba(10, 10, 10, 0.38) 45%,
        rgba(10, 10, 10, 0.58) 75%,
        rgba(10, 10, 10, 0.68) 100%
    );

    box-shadow: 8px 8px 18px rgba(10, 10, 10, 0.18);    
    border-radius: 4px;
    margin: 4% 0 27px auto;
    backdrop-filter: blur(6px);
}

.home-page h1 {
    color: var(--color-white);
    text-align: right;
    font-family: "Zen Dots", sans-serif;
    font-size: clamp(2.1rem, 5.4vw, 5.5rem);
    font-weight: 400;
    line-height: 1.03;
    letter-spacing: 0.02em;
    text-shadow: 2px 3px 4px rgba(0, 0, 0, 0.75);
    margin: 0;
}

.home-page h1 .title-glitch {
    position: relative;
    display: inline-block;
    width: auto;
    white-space: nowrap;
    overflow: visible;
    color: #d33333;
    isolation: isolate;
    text-shadow: 2px 3px 4px rgba(0, 0, 0, 0.75);
}

.home-page h1 .title-glitch::before,
.home-page h1 .title-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
}

.home-page h1 .title-glitch::before {
    color: rgba(255, 255, 255, 0.9);
}

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

.home-page h1 .title-glitch.is-glitching {
    animation: digital-flicker 0.12s steps(2, end) 1;
}

.home-page h1 .title-glitch.is-glitching::before {
    opacity: 1;
    animation: digital-slice-a 0.12s steps(2, end) 1;
}

.home-page h1 .title-glitch.is-glitching::after {
    opacity: 1;
    animation: digital-slice-b 0.12s steps(2, end) 1;
}

@keyframes digital-flicker {
    0% {
        transform: translateX(0);
        filter: none;
    }

    20% {
        transform: translateX(-3px);
        filter: brightness(1.15);
    }

    40% {
        transform: translateX(4px);
    }

    60% {
        transform: translateX(-2px);
        filter: contrast(1.15);
    }

    80% {
        transform: translateX(2px);
    }

    100% {
        transform: translateX(0);
        filter: none;
    }
}

@keyframes digital-slice-a {
    0% {
        clip-path: inset(0 0 100% 0);
        transform: translateX(0);
    }

    15% {
        clip-path: inset(8% 0 68% 0);
        transform: translateX(-8px);
    }

    30% {
        clip-path: inset(28% 0 48% 0);
        transform: translateX(6px);
    }

    45% {
        clip-path: inset(0 0 100% 0);
        transform: translateX(0);
    }

    60% {
        clip-path: inset(56% 0 22% 0);
        transform: translateX(-10px);
    }

    75% {
        clip-path: inset(74% 0 8% 0);
        transform: translateX(7px);
    }

    100% {
        clip-path: inset(0 0 100% 0);
        transform: translateX(0);
    }
}

@keyframes digital-slice-b {
    0% {
        clip-path: inset(0 0 100% 0);
        transform: translateX(0);
    }

    20% {
        clip-path: inset(18% 0 64% 0);
        transform: translateX(7px);
    }

    35% {
        clip-path: inset(38% 0 38% 0);
        transform: translateX(-6px);
    }

    50% {
        clip-path: inset(0 0 100% 0);
        transform: translateX(0);
    }

    70% {
        clip-path: inset(62% 0 18% 0);
        transform: translateX(10px);
    }

    85% {
        clip-path: inset(82% 0 4% 0);
        transform: translateX(-7px);
    }

    100% {
        clip-path: inset(0 0 100% 0);
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page h1 .title-glitch,
    .home-page h1 .title-glitch::before,
    .home-page h1 .title-glitch::after {
        animation: none !important;
        transform: none !important;
        filter: none !important;
    }
}

.home-description {
    padding: 1em 0;
    width: 100%;
}

.home-page header p {
    color: var(--color-white);
    text-align: right;
    font-family: "Iceland", sans-serif;
    font-size: 1.65em;
    font-weight: 400;
    line-height: 1.2em;
    margin: 0;
}

.contact-form {
    margin: 80px 5% 46px auto;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: linear-gradient(
        135deg, 
        rgb(199 69 69 / 80%), 
        rgba(25, 10, 10, .92));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    backdrop-filter: blur(8px);
    width: 40%;
}

.contact-form h2 {
    color: rgb(211, 209, 209);
    text-align: left;
    font-family: "Zen Dots", sans-serif;
    font-size: 1.5em;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-shadow: 2px 3px 4px rgba(0, 0, 0, 0.75);
    margin: 0;
    line-height: 1.2em;
}

.contact-form h2 span {
    display: block;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding-top: 1.5em;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35em;
}

.form-options {
    display: flex;
    flex-direction: column;
    gap: 0.65em;
    padding: 0.75em 0.3em;
}

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

.contact-form label {
    color: rgba(245, 245, 245, 0.9);
    font-family: "Iceland", sans-serif;
    font-size: 1.4em;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: capitalize;
}

.contact-form input,
.contact-form textarea {
    padding: 11px 12px;
    color: #1b1b1b;
    font-family: "Roboto", Helvetica, sans-serif;
    line-height: 1.4;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;    
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.contact-form textarea {
    resize: vertical;
    min-height: 67px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: rgba(255, 255, 255, 0.85);
    border-color: var(--color-white);
}

.contact-form textarea::placeholder {
    color: #1b1b1b;
    font-family: "Roboto", Helvetica, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.form-group span {
    color: var(--color-white);
    font-family: "Roboto", Helvetica, sans-serif;
    font-size: 0.75rem;
    text-transform: capitalize;
}

.form-group i {
    text-transform: lowercase;
    font-size: 0.8em;
    font-weight: 400;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 8px;
    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: #1d0808;
    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-form button {
    align-self: flex-end;
    padding: 10px 18px;
    color: var(--color-white);
    font-family: "Zen Dots", sans-serif;
    font-size: 0.9em;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(10, 10, 10, 0.7);
    border: 1px solid var(--color-white);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.contact-form button:hover {
    color: var(--color-black);
    background: rgb(221, 221, 221);
}

.photo-credit {
    color: rgb(189, 188, 188);
    text-align: right;
    font-family: "Roboto", Helvetica, sans-serif;
    font-size: 0.75em;
    margin: auto 5% 16px;
}

.photo-credit a {
    color: rgb(189, 188, 188);
    text-decoration: none;
    font-weight: 600;
}

/* WARNING FORM MESSAGES *************************************/
.form-messages .messages {
    position: static;
    width: 100%;
    transform: none;
}

.form-messages .message {
    padding: 10px 12px;
    margin: 0;
    color: var(--color-white);
    background: transparent;
    border-left: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: none;
}

.form-messages .message-success {
    border-left-color: #7fbf91;
}

.form-messages .message-error {
    border-left-color: #ff8a8a;
}

.form-messages .message-warning {
    border-left-color: #e6c56b;
}

.form-messages .message-info {
    border-left-color: #9fb8c8;
}


/*** RESPONSIVE ***************************************************************/

@media (max-width: 1200px) {
    .contact-form {
        gap: 0.5rem;
        width: 50%;
        margin: 180px 5% 46px auto;
    }

    .contact-form-grid {
        display: flex;
        flex-direction: column;
    }

}


@media (max-width: 1099.98px) {
    .home-header {
        max-width: 78%;
        margin-right: 5%;
    }

    .contact-form {
        max-width: 78%;
    }

}


@media (max-width: 992px) {
    body::before {
        background-position: top left;
    }
}


@media (max-width: 768.98px) {
    body::before {
        inset: 0;
        background: url("../images/under_construction_proximamente_mobile_788x1280px.bd4aa52b54f1.png") no-repeat center center;
        background-size: cover;
    }

    .home-header {
        padding: 36px 20px 6px;
        margin: 310px 0 27px auto;
        width: 100%;
        max-width: none;
    }

    .contact-form {
        width: 70%;
        max-width: none;
        margin: 46px auto;
    }

    .photo-credit,
    .photo-credit a {
        color: rgb(219, 219, 219);
    }

}


@media (max-width: 566.98px) {
    .contact-form {
        width: 80%;
        margin: 16px auto 60px;
    }

}


@media (max-width: 456px) {
    .home-header {
        margin: 69% 0 27px;
        min-width: 100%;
    }

    .home-header h1 {
        font-weight: 600;
    }

    .contact-form {
        width: 90%;
    }

    .contact-form h2 {
        font-size: 1.2em;
    }

}


@media (max-width: 370.98px) {
    .home-header {
        margin: 76% 0 27px;    
    }

    .photo-credit {
        font-size: 0.65em;
    }
}