/* ============================================================
   CONTACT PAGE - FINAL
   YA PÍDELO
============================================================ */


/* ============================================================
   HERO
============================================================ */

.contact-hero {
    position: relative;

    min-height: 100svh;

    display: flex;

    align-items: center;

    overflow: hidden;

    padding:
        clamp(145px, 14vw, 185px)
        0
        clamp(90px, 8vw, 120px);

    background:
        radial-gradient(
            circle at 80% 16%,
            rgba(99, 102, 241, 0.13),
            transparent 30%
        ),
        radial-gradient(
            circle at 8% 76%,
            rgba(6, 182, 212, 0.07),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #ffffff,
            #f8faff
        );
}


.contact-hero-grid {
    position: absolute;

    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(79, 70, 229, 0.03) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(79, 70, 229, 0.03) 1px,
            transparent 1px
        );

    background-size:
        50px 50px;

    -webkit-mask-image:
        linear-gradient(
            to bottom,
            #000,
            transparent 88%
        );

    mask-image:
        linear-gradient(
            to bottom,
            #000,
            transparent 88%
        );
}


.contact-hero-glow {
    position: absolute;

    border-radius: 50%;

    filter:
        blur(110px);

    pointer-events: none;
}


.contact-glow-one {
    width: 520px;
    height: 520px;

    left: -270px;
    top: 100px;

    background:
        rgba(99, 102, 241, 0.14);
}


.contact-glow-two {
    width: 620px;
    height: 620px;

    right: -260px;
    top: 10px;

    background:
        rgba(124, 58, 237, 0.12);
}


.contact-hero-container {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        minmax(0, 0.92fr)
        minmax(500px, 1.08fr);

    align-items: center;

    gap:
        clamp(45px, 6vw, 90px);
}


.contact-hero-title {
    max-width: 800px;

    font-family:
        "Manrope",
        sans-serif;

    font-size:
        clamp(3.25rem, 5.7vw, 5.9rem);

    line-height: 0.98;

    letter-spacing: -0.063em;

    margin-bottom: 27px;
}


.contact-hero-description {
    max-width: 680px;

    color:
        var(--color-text-soft);

    font-size:
        clamp(1rem, 1.35vw, 1.15rem);

    line-height: 1.8;

    margin-bottom: 29px;
}


.contact-hero-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 28px;
}


.contact-hero-points {
    display: flex;

    flex-wrap: wrap;

    gap:
        10px 18px;
}


.contact-hero-points > div {
    display: flex;

    align-items: center;

    gap: 7px;

    color:
        var(--color-text-soft);

    font-size: 0.75rem;

    font-weight: 600;
}


.contact-hero-points i {
    color:
        var(--color-success);
}


/* ============================================================
   HERO CHAT
============================================================ */

.contact-hero-visual {
    position: relative;

    min-height: 560px;

    display: grid;

    place-items: center;
}


.contact-conversation-card {
    width:
        min(100%, 590px);

    overflow: hidden;

    border-radius: 28px;

    background: white;

    border:
        1px solid
        rgba(15, 23, 42, 0.08);

    box-shadow:
        0 35px 85px
        rgba(15, 23, 42, 0.15);
}


.contact-conversation-header {
    min-height: 72px;

    display: grid;

    grid-template-columns:
        auto 1fr auto;

    align-items: center;

    gap: 12px;

    padding:
        14px 18px;

    border-bottom:
        1px solid
        #eceef4;

    background:
        #fafbfe;
}


.contact-conversation-avatar {
    width: 43px;
    height: 43px;

    display: grid;

    place-items: center;

    border-radius: 12px;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--color-primary),
            var(--color-secondary)
        );

    font-size: 0.56rem;

    font-weight: 800;
}


.contact-conversation-header small {
    display: block;

    color: #979ead;

    font-size: 0.43rem;

    margin-bottom: 2px;
}


.contact-conversation-header strong {
    display: block;

    font-size: 0.72rem;
}


.contact-conversation-header > span {
    padding:
        6px 9px;

    border-radius: 999px;

    color: #15803d;

    background:
        rgba(34, 197, 94, 0.09);

    font-size: 0.50rem;

    font-weight: 700;
}


.contact-conversation-header > span i {
    font-size: 0.30rem;

    margin-right: 4px;
}


.contact-chat-area {
    min-height: 350px;

    display: flex;

    flex-direction: column;

    gap: 14px;

    padding:
        28px 23px;

    background:
        linear-gradient(
            145deg,
            #f8f9fd,
            #ffffff
        );
}


.contact-chat-message {
    max-width: 78%;

    font-size: 0.68rem;

    line-height: 1.6;
}


.contact-chat-message.customer {
    align-self: flex-end;

    padding:
        13px 15px;

    border-radius:
        15px 15px 4px 15px;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--color-primary),
            var(--color-secondary)
        );
}


.contact-chat-message.company {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    align-self: flex-start;

    padding:
        13px 15px;

    border-radius:
        15px 15px 15px 4px;

    color:
        var(--color-text-soft);

    background: white;

    border:
        1px solid
        #eceef4;

    box-shadow:
        0 8px 20px
        rgba(15, 23, 42, 0.035);
}


.contact-chat-logo {
    width: 29px;
    height: 29px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    border-radius: 8px;

    color: white;

    background:
        var(--color-primary);

    font-size: 0.43rem;

    font-weight: 800;
}


.contact-chat-message.small-message {
    max-width: 35%;
}


.contact-chat-input {
    min-height: 66px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding:
        11px 15px;

    border-top:
        1px solid
        #eceef4;
}


.contact-chat-input > span {
    color: #a0a6b4;

    font-size: 0.58rem;
}


.contact-chat-input > div {
    width: 37px;
    height: 37px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    border-radius: 10px;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--color-primary),
            var(--color-secondary)
        );
}


.contact-floating-card {
    position: absolute;

    z-index: 5;

    display: flex;

    align-items: center;

    gap: 10px;

    padding:
        12px 14px;

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.96);

    box-shadow:
        0 20px 50px
        rgba(15, 23, 42, 0.15);

    animation:
        contact-float
        5s ease-in-out
        infinite;
}


.contact-floating-card > i {
    width: 39px;
    height: 39px;

    display: grid;

    place-items: center;

    border-radius: 11px;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--color-primary),
            var(--color-secondary)
        );
}


.contact-floating-card small {
    display: block;

    color: #979ead;

    font-size: 0.43rem;

    margin-bottom: 2px;
}


.contact-floating-card strong {
    display: block;

    color:
        var(--color-text);

    font-size: 0.60rem;
}


.contact-floating-one {
    left: -20px;
    top: 95px;
}


.contact-floating-one > i {
    background: #22c55e;
}


.contact-floating-two {
    right: -25px;
    bottom: 65px;

    animation-delay: -2.2s;
}


@keyframes contact-float {

    0%,
    100% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(-8px);
    }

}


/* ============================================================
   QUICK OPTIONS
============================================================ */

.contact-options-section {
    background: white;
}


.contact-options-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 14px;
}


.contact-option-card {
    position: relative;

    min-height: 290px;

    display: flex;

    flex-direction: column;

    padding: 25px;

    overflow: hidden;

    border-radius: 22px;

    color:
        var(--color-text);

    background: white;

    border:
        1px solid
        var(--color-border);

    box-shadow:
        0 10px 32px
        rgba(15, 23, 42, 0.045);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}


.contact-option-card:hover {
    transform:
        translateY(-7px);

    border-color:
        rgba(79, 70, 229, 0.17);

    box-shadow:
        0 25px 60px
        rgba(15, 23, 42, 0.10);
}


.contact-option-icon {
    width: 52px;
    height: 52px;

    display: grid;

    place-items: center;

    margin-bottom: 27px;

    border-radius: 15px;

    color:
        var(--color-primary);

    background:
        rgba(79, 70, 229, 0.08);

    transition:
        transform var(--transition),
        color var(--transition),
        background var(--transition);
}


.contact-option-card:hover
.contact-option-icon {
    transform:
        rotate(-6deg)
        scale(1.06);

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--color-primary),
            var(--color-secondary)
        );
}


.contact-option-card > span {
    color:
        var(--color-primary);

    font-size: 0.47rem;

    font-weight: 800;

    letter-spacing: 0.1em;

    margin-bottom: 7px;
}


.contact-option-card h2 {
    font-family:
        "Manrope",
        sans-serif;

    font-size: 1.4rem;

    margin-bottom: 10px;
}


.contact-option-card p {
    color:
        var(--color-text-soft);

    font-size: 0.76rem;

    line-height: 1.7;

    margin-bottom: 20px;
}


.contact-option-card strong {
    margin-top: auto;

    color:
        var(--color-text);

    font-size: 0.68rem;
}


.contact-option-card > i:last-child {
    position: absolute;

    right: 22px;
    top: 23px;

    color: #adb2bf;

    font-size: 0.65rem;
}


/* ============================================================
   CONTACT FORM SECTION
============================================================ */

.contact-form-section {
    background:
        linear-gradient(
            180deg,
            #ffffff,
            #f8faff
        );
}


.contact-form-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 0.75fr)
        minmax(480px, 1.25fr);

    gap:
        clamp(45px, 7vw, 90px);

    align-items: start;
}


.contact-form-info {
    position: sticky;

    top: 125px;
}


.contact-form-info h2 {
    max-width: 600px;

    font-family:
        "Manrope",
        sans-serif;

    font-size:
        clamp(2.5rem, 4.3vw, 4.5rem);

    line-height: 1.04;

    letter-spacing: -0.052em;

    margin-bottom: 18px;
}


.contact-form-info > p {
    max-width: 590px;

    color:
        var(--color-text-soft);

    line-height: 1.78;

    margin-bottom: 28px;
}


.contact-form-help {
    display: grid;

    gap: 9px;

    margin-bottom: 22px;
}


.contact-form-help > div {
    display: flex;

    align-items: center;

    gap: 11px;

    min-height: 68px;

    padding:
        11px 13px;

    border-radius: 13px;

    background:
        rgba(255, 255, 255, 0.72);

    border:
        1px solid
        rgba(15, 23, 42, 0.06);
}


.contact-form-help > div > i {
    width: 39px;
    height: 39px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    border-radius: 11px;

    color:
        var(--color-primary);

    background:
        rgba(79, 70, 229, 0.08);
}


.contact-form-help strong {
    display: block;

    color:
        var(--color-text);

    font-size: 0.68rem;

    margin-bottom: 3px;
}


.contact-form-help small {
    display: block;

    color:
        var(--color-text-soft);

    font-size: 0.56rem;
}


.contact-form-note {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    padding:
        13px;

    border-radius: 12px;

    color:
        var(--color-text-soft);

    background:
        rgba(34, 197, 94, 0.055);

    border:
        1px solid
        rgba(34, 197, 94, 0.10);

    font-size: 0.59rem;

    line-height: 1.55;
}


.contact-form-note i {
    color: #16a34a;

    margin-top: 2px;
}


/* ============================================================
   FORM CARD
============================================================ */

.contact-form-card {
    padding:
        clamp(28px, 4vw, 45px);

    border-radius: 28px;

    background: white;

    border:
        1px solid
        rgba(15, 23, 42, 0.07);

    box-shadow:
        0 28px 75px
        rgba(15, 23, 42, 0.10);
}


.contact-form-card-heading {
    padding-bottom: 24px;

    margin-bottom: 24px;

    border-bottom:
        1px solid
        #eceef4;
}


.contact-form-card-heading small {
    display: block;

    color:
        var(--color-primary);

    font-size: 0.47rem;

    font-weight: 800;

    letter-spacing: 0.10em;

    margin-bottom: 8px;
}


.contact-form-card-heading h3 {
    font-family:
        "Manrope",
        sans-serif;

    font-size:
        clamp(1.65rem, 2.7vw, 2.45rem);

    line-height: 1.1;

    margin-bottom: 9px;
}


.contact-form-card-heading p {
    color:
        var(--color-text-soft);

    font-size: 0.72rem;

    line-height: 1.65;
}


/* ============================================================
   FORM
============================================================ */

.contact-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 16px;
}


.contact-field {
    position: relative;

    margin-bottom: 18px;
}


.contact-field label {
    display: block;

    margin-bottom: 7px;

    color:
        var(--color-text);

    font-size: 0.62rem;

    font-weight: 700;
}


.contact-input-wrap,
.contact-select-wrap {
    position: relative;
}


.contact-input-wrap > i,
.contact-select-wrap > i {
    position: absolute;

    z-index: 2;

    left: 14px;
    top: 50%;

    transform:
        translateY(-50%);

    color: #a0a6b4;

    font-size: 0.68rem;

    pointer-events: none;
}


.contact-input-wrap input,
.contact-select-wrap select,
.contact-field textarea {
    width: 100%;

    outline: none;

    border:
        1px solid
        #e2e5ed;

    background:
        #fbfcfe;

    color:
        var(--color-text);

    font-family:
        "Inter",
        sans-serif;

    font-size: 0.72rem;

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}


.contact-input-wrap input,
.contact-select-wrap select {
    min-height: 52px;

    padding:
        0 15px 0 42px;

    border-radius: 12px;
}


.contact-field textarea {
    min-height: 150px;

    resize: vertical;

    padding:
        14px;

    border-radius: 12px;

    line-height: 1.6;
}


.contact-input-wrap input:focus,
.contact-select-wrap select:focus,
.contact-field textarea:focus {
    background: white;

    border-color:
        rgba(79, 70, 229, 0.42);

    box-shadow:
        0 0 0 4px
        rgba(79, 70, 229, 0.07);
}


.contact-character-count {
    margin-top: 6px;

    text-align: right;

    color: #a0a6b4;

    font-size: 0.50rem;
}


.contact-recaptcha {
    margin:
        4px 0 20px;

    overflow-x: auto;
}


.contact-submit {
    width: 100%;

    min-height: 54px;
}


.contact-submit-note {
    margin-top: 12px;

    text-align: center;

    color:
        var(--color-text-light);

    font-size: 0.55rem;
}


/* ============================================================
   STATUS
============================================================ */

.contact-status-message {
    display: flex;

    align-items: flex-start;

    gap: 11px;

    padding: 13px 14px;

    margin-bottom: 20px;

    border-radius: 12px;
}


.contact-status-message > i {
    margin-top: 2px;
}


.contact-status-message strong {
    display: block;

    font-size: 0.67rem;

    margin-bottom: 3px;
}


.contact-status-message span {
    display: block;

    font-size: 0.57rem;

    line-height: 1.5;
}


.contact-status-message.success {
    color: #15803d;

    background:
        rgba(34, 197, 94, 0.08);

    border:
        1px solid
        rgba(34, 197, 94, 0.13);
}


.contact-status-message.error {
    color: #b91c1c;

    background:
        rgba(239, 68, 68, 0.07);

    border:
        1px solid
        rgba(239, 68, 68, 0.12);
}


/* ============================================================
   NEXT STEPS
============================================================ */

.contact-next-section {
    background: white;
}


.contact-next-card {
    display: grid;

    grid-template-columns:
        minmax(280px, 0.7fr)
        minmax(0, 1.3fr);

    gap:
        clamp(40px, 7vw, 85px);

    align-items: center;

    padding:
        clamp(38px, 5vw, 60px);

    border-radius: 31px;

    color: white;

    background:
        radial-gradient(
            circle at 88% 12%,
            rgba(99, 102, 241, 0.25),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #0c1228,
            #151c3d
        );

    box-shadow:
        0 30px 80px
        rgba(15, 23, 42, 0.15);
}


.contact-next-heading > span {
    display: block;

    color:
        rgba(255, 255, 255, 0.43);

    font-size: 0.48rem;

    font-weight: 800;

    letter-spacing: 0.1em;

    margin-bottom: 10px;
}


.contact-next-heading h2 {
    font-family:
        "Manrope",
        sans-serif;

    font-size:
        clamp(2rem, 3.4vw, 3.5rem);

    line-height: 1.06;

    letter-spacing: -0.045em;

    margin-bottom: 14px;
}


.contact-next-heading p {
    color:
        rgba(255, 255, 255, 0.61);

    line-height: 1.72;
}


.contact-next-steps {
    display: grid;

    grid-template-columns:
        1fr auto
        1fr auto
        1fr;

    align-items: center;

    gap: 9px;
}


.contact-next-steps article {
    min-height: 220px;

    display: flex;

    flex-direction: column;

    padding: 20px;

    border-radius: 17px;

    background:
        rgba(255, 255, 255, 0.055);

    border:
        1px solid
        rgba(255, 255, 255, 0.08);
}


.contact-next-steps article > span {
    color:
        rgba(255, 255, 255, 0.28);

    font-size: 0.50rem;

    font-weight: 800;

    margin-bottom: 22px;
}


.contact-next-steps article > i {
    width: 43px;
    height: 43px;

    display: grid;

    place-items: center;

    margin-bottom: 17px;

    border-radius: 12px;

    color: #c3c8ff;

    background:
        rgba(99, 102, 241, 0.14);
}


.contact-next-steps h3 {
    font-size: 0.96rem;

    margin-bottom: 8px;
}


.contact-next-steps p {
    color:
        rgba(255, 255, 255, 0.55);

    font-size: 0.66rem;

    line-height: 1.6;
}


.contact-next-line {
    width: 24px;
    height: 2px;

    background:
        rgba(174, 182, 255, 0.22);
}


/* ============================================================
   SPACING
============================================================ */

.contact-options-section,
.contact-form-section,
.contact-next-section {
    padding-top:
        clamp(65px, 7vw, 100px);

    padding-bottom:
        clamp(65px, 7vw, 100px);
}


/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 1050px) {

    .contact-hero {
        min-height: auto;
    }


    .contact-hero-container {
        grid-template-columns:
            1fr;

        gap: 60px;
    }


    .contact-hero-content {
        max-width: 820px;
    }


    .contact-hero-visual {
        width:
            min(100%, 720px);

        margin-inline: auto;
    }


    .contact-options-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .contact-option-card:last-child {
        grid-column:
            1 / -1;
    }


    .contact-form-layout {
        grid-template-columns:
            1fr;

        gap: 38px;
    }


    .contact-form-info {
        position: static;

        max-width: 760px;
    }


    .contact-next-card {
        grid-template-columns:
            1fr;
    }

}


@media (max-width: 767px) {

    .contact-hero {
        padding:
            130px 0 80px;
    }


    .contact-hero-title {
        font-size:
            clamp(2.7rem, 12vw, 4.1rem);
    }


    .contact-hero-actions {
        flex-direction: column;
    }


    .contact-hero-actions .button {
        width: 100%;
    }


    .contact-floating-card {
        display: none;
    }


    .contact-options-grid {
        grid-template-columns:
            1fr;
    }


    .contact-option-card:last-child {
        grid-column: auto;
    }


    .contact-form-grid {
        grid-template-columns:
            1fr;
    }


    .contact-next-steps {
        grid-template-columns:
            1fr;
    }


    .contact-next-line {
        width: 2px;
        height: 22px;

        margin-left: 28px;
    }

}


@media (max-width: 575px) {

    .contact-hero {
        padding:
            110px 0 70px;
    }


    .contact-hero-description {
        font-size: 0.95rem;
    }


    .contact-hero-visual {
        min-height: 470px;
    }


    .contact-conversation-card {
        border-radius: 21px;
    }


    .contact-conversation-header {
        grid-template-columns:
            auto 1fr;
    }


    .contact-conversation-header > span {
        display: none;
    }


    .contact-chat-area {
        min-height: 310px;

        padding:
            22px 16px;
    }


    .contact-chat-message {
        max-width: 88%;
    }


    .contact-form-card {
        padding:
            27px 19px;

        border-radius: 22px;
    }


    .contact-next-card {
        padding:
            29px 20px;

        border-radius: 24px;
    }


    .contact-options-section,
    .contact-form-section,
    .contact-next-section {
        padding-top: 50px;

        padding-bottom: 55px;
    }

}


/* @media (prefers-reduced-motion: reduce) {

    .contact-floating-card {
        animation: none !important;
    }


    .contact-option-card,
    .contact-option-icon {
        transition: none !important;
    }

} */


/* ============================================================
   CONTACT
   ESTADO DE ENVÍO
============================================================ */

.contact-submit.is-sending {
    pointer-events: none;
    opacity: 0.82;
}

.contact-submit.is-sending i {
    margin-left: 8px;
}
