:root {

    --negro: #050505;
    --negro-2: #0b0b0b;
    --negro-3: #111111;

    --blanco: #ffffff;

    --gris: #888888;
    --gris-claro: #bbbbbb;

    --amarillo: #f2a900;
    --amarillo-claro: #ffbd22;

}


/* =====================================================
   RESET
===================================================== */

* {

    margin: 0;
    padding: 0;

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    min-height: 100vh;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background:
        var(--negro);

    color:
        var(--blanco);

    overflow-x: hidden;

}


a {

    color: inherit;

    text-decoration: none;

}


button,
input,
select,
textarea {

    font-family: inherit;

}


/* =====================================================
   FONDO
===================================================== */

.background {

    position: fixed;

    inset: 0;

    z-index: -1;

    background:

        radial-gradient(
            circle at 50% 35%,
            rgba(242, 169, 0, 0.09),
            transparent 30%
        ),

        radial-gradient(
            circle at 10% 90%,
            rgba(242, 169, 0, 0.05),
            transparent 25%
        ),

        #050505;

}


/* =====================================================
   PÁGINA
===================================================== */

.contact-page {

    min-height: 100vh;

    padding:
        55px 20px;

    display: flex;

    align-items: center;

    justify-content: center;

}


/* =====================================================
   TARJETA
===================================================== */

.form-card {

    position: relative;

    width:
        min(760px, 100%);

    padding:
        70px 65px;

    background:
        linear-gradient(
            145deg,
            #111111,
            #080808
        );

    border:
        1px solid
        rgba(255, 255, 255, 0.09);

    box-shadow:
        0 35px 100px
        rgba(0, 0, 0, 0.65);

    animation:
        cardAppear 0.7s ease both;

}


/* =====================================================
   LÍNEA SUPERIOR
===================================================== */

.top-line {

    position: absolute;

    top: 0;

    left: 50%;

    width: 110px;

    height: 4px;

    transform:
        translateX(-50%);

    background:
        var(--amarillo);

}


/* =====================================================
   VOLVER
===================================================== */

.back-home {

    display: inline-block;

    margin-bottom: 35px;

    color:
        #666666;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 2px;

    transition:
        color 0.3s ease,
        transform 0.3s ease;

}


.back-home:hover {

    color:
        var(--amarillo);

    transform:
        translateX(-5px);

}


/* =====================================================
   LOGO
===================================================== */

.logo {

    display: block;

    width: 145px;

    height: auto;

    margin:
        0 auto 35px;

    transition:
        transform 0.3s ease;

}


.logo:hover {

    transform:
        scale(1.04);

}


/* =====================================================
   LABEL
===================================================== */

.section-label {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    margin-bottom: 22px;

    color:
        var(--amarillo);

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 3px;

}


.section-label span {

    width: 35px;

    height: 2px;

    background:
        var(--amarillo);

}


/* =====================================================
   TÍTULO
===================================================== */

h1 {

    text-align: center;

    font-size:
        clamp(45px, 7vw, 72px);

    line-height: 0.9;

    font-weight: 900;

    letter-spacing: -3px;

    animation:
        fadeUp 0.7s ease 0.1s both;

}


h1 span {

    display: block;

    color:
        var(--amarillo);

}


/* =====================================================
   INTRO
===================================================== */

.intro {

    max-width: 600px;

    margin:
        28px auto 45px;

    color:
        #999999;

    text-align: center;

    font-size: 14px;

    line-height: 1.8;

    animation:
        fadeUp 0.7s ease 0.2s both;

}


/* =====================================================
   FORMULARIO
===================================================== */

.contact-form {

    display: flex;

    flex-direction: column;

    gap: 24px;

    animation:
        fadeUp 0.7s ease 0.3s both;

}


.form-group {

    position: relative;

    display: flex;

    flex-direction: column;

    gap: 9px;

}


.form-group label {

    color:
        #aaaaaa;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 2px;

}


.form-group input,
.form-group select,
.form-group textarea {

    width: 100%;

    padding:
        16px 17px;

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    outline: none;

    background:
        #080808;

    color:
        var(--blanco);

    font-size:
        13px;

    transition:
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.2s ease;

}


.form-group input::placeholder,
.form-group textarea::placeholder {

    color:
        #555555;

}


.form-group select {

    color:
        #999999;

    cursor:
        pointer;

}


.form-group textarea {

    min-height:
        145px;

    resize:
        vertical;

}


/* =====================================================
   FOCUS
===================================================== */

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {

    border-color:
        var(--amarillo);

    background:
        #0d0d0d;

    box-shadow:
        0 0 0 3px
        rgba(242, 169, 0, 0.06);

}


/* =====================================================
   CONTADOR
===================================================== */

.character-counter {

    align-self:
        flex-end;

    margin-top:
        -2px;

    color:
        #555555;

    font-size:
        10px;

    font-weight:
        700;

    letter-spacing:
        1px;

    transition:
        color 0.3s ease;

}


.contador-alerta {

    color:
        var(--amarillo);

}


/* =====================================================
   ERRORES
===================================================== */

.form-error {

    display:
        block;

    color:
        #ffb000;

    font-size:
        10px;

    font-weight:
        700;

    letter-spacing:
        0.3px;

    animation:
        errorAppear 0.25s ease both;

}


.campo-error {

    border-color:
        #d99600 !important;

    box-shadow:
        0 0 0 3px
        rgba(217, 150, 0, 0.06);

}


/* =====================================================
   BOTÓN
===================================================== */

.submit-button {

    width:
        100%;

    min-height:
        62px;

    margin-top:
        8px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        18px;

    border:
        none;

    cursor:
        pointer;

    background:
        var(--amarillo);

    color:
        var(--negro);

    font-size:
        10px;

    font-weight:
        900;

    letter-spacing:
        1.5px;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;

}


.submit-button span {

    font-size:
        20px;

    transition:
        transform 0.3s ease;

}


.submit-button:hover:not(:disabled) {

    background:
        var(--amarillo-claro);

    transform:
        translateY(-4px);

    box-shadow:
        0 18px 40px
        rgba(242, 169, 0, 0.2);

}


.submit-button:hover:not(:disabled) span {

    transform:
        translateX(6px);

}


.submit-button:disabled {

    cursor:
        wait;

    opacity:
        0.75;

}


/* =====================================================
   ANIMACIÓN DE ENVÍO
===================================================== */

.submit-button.enviando {

    animation:
        buttonPulse 1.2s ease-in-out infinite;

}


/* =====================================================
   MENSAJE DE ÉXITO
===================================================== */

.success-message {

    width:
        100%;

    padding:
        45px 30px;

    border:
        1px solid
        rgba(242, 169, 0, 0.25);

    background:
        linear-gradient(
            145deg,
            #111111,
            #090909
        );

    text-align:
        center;

    opacity:
        0;

    transform:
        translateY(25px);

}


.success-message[hidden] {

    display:
        none;

}


.success-message.success-visible {

    display:
        block;

    animation:
        successAppear 0.6s ease forwards;

}


/* =====================================================
   ÍCONO DE ÉXITO
===================================================== */

.success-icon {

    width:
        75px;

    height:
        75px;

    margin:
        0 auto 25px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        2px solid
        var(--amarillo);

    border-radius:
        50%;

    color:
        var(--amarillo);

    font-size:
        32px;

    font-weight:
        900;

    animation:
        successIcon 0.7s ease 0.2s both;

}


/* =====================================================
   CONTENIDO DE ÉXITO
===================================================== */

.success-content h2 {

    margin-bottom:
        16px;

    color:
        var(--blanco);

    font-size:
        clamp(25px, 5vw, 40px);

    font-weight:
        900;

    letter-spacing:
        -1px;

}


.success-content p {

    max-width:
        500px;

    margin:
        0 auto 30px;

    color:
        #999999;

    font-size:
        13px;

    line-height:
        1.8;

}


/* =====================================================
   BOTÓN NUEVO MENSAJE
===================================================== */

.new-message-button {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        12px;

    min-height:
        50px;

    padding:
        0 25px;

    border:
        1px solid
        var(--amarillo);

    background:
        transparent;

    color:
        var(--amarillo);

    cursor:
        pointer;

    font-size:
        9px;

    font-weight:
        900;

    letter-spacing:
        1.5px;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;

}


.new-message-button span {

    font-size:
        17px;

    transition:
        transform 0.3s ease;

}


.new-message-button:hover {

    background:
        var(--amarillo);

    color:
        var(--negro);

    transform:
        translateY(-3px);

}


.new-message-button:hover span {

    transform:
        translateX(5px);

}


/* =====================================================
   CONTACTO DIRECTO
===================================================== */

.direct-contact {

    margin-top:
        40px;

    padding-top:
        30px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.08);

    text-align:
        center;

}


.direct-contact p {

    color:
        #666666;

    font-size:
        11px;

    margin-bottom:
        13px;

}


.direct-contact a {

    color:
        var(--amarillo);

    font-size:
        9px;

    font-weight:
        900;

    letter-spacing:
        1.5px;

    transition:
        color 0.3s ease;

}


.direct-contact a span {

    margin-left:
        8px;

    font-size:
        17px;

}


.direct-contact a:hover {

    color:
        var(--amarillo-claro);

}


/* =====================================================
   ANIMACIONES
===================================================== */

@keyframes cardAppear {

    from {

        opacity:
            0;

        transform:
            translateY(30px)
            scale(0.98);

    }

    to {

        opacity:
            1;

        transform:
            translateY(0)
            scale(1);

    }

}


@keyframes fadeUp {

    from {

        opacity:
            0;

        transform:
            translateY(20px);

    }

    to {

        opacity:
            1;

        transform:
            translateY(0);

    }

}


@keyframes errorAppear {

    from {

        opacity:
            0;

        transform:
            translateY(-4px);

    }

    to {

        opacity:
            1;

        transform:
            translateY(0);

    }

}


@keyframes buttonPulse {

    0%,
    100% {

        transform:
            scale(1);

    }

    50% {

        transform:
            scale(0.985);

    }

}


@keyframes successAppear {

    from {

        opacity:
            0;

        transform:
            translateY(25px);

    }

    to {

        opacity:
            1;

        transform:
            translateY(0);

    }

}


@keyframes successIcon {

    from {

        opacity:
            0;

        transform:
            scale(0.5)
            rotate(-20deg);

    }

    to {

        opacity:
            1;

        transform:
            scale(1)
            rotate(0);

    }

}


/* =====================================================
   MÓVIL
===================================================== */

@media (max-width: 650px) {

    .contact-page {

        padding:
            30px 15px;

        align-items:
            flex-start;

    }


    .form-card {

        padding:
            55px 25px;

    }


    .logo {

        width:
            125px;

    }


    h1 {

        font-size:
            43px;

        letter-spacing:
            -2px;

    }


    .intro {

        font-size:
            13px;

        margin-bottom:
            35px;

    }


    .form-group input,
    .form-group select,
    .form-group textarea {

        padding:
            15px;

    }


    .success-message {

        padding:
            35px 20px;

    }


    .success-icon {

        width:
            65px;

        height:
            65px;

        font-size:
            27px;

    }


    .success-content h2 {

        font-size:
            28px;

    }


    .success-content p {

        font-size:
            12px;

    }


    .new-message-button {

        width:
            100%;

    }

}


/* =====================================================
   PANTALLAS MUY PEQUEÑAS
===================================================== */

@media (max-width: 380px) {

    .form-card {

        padding:
            45px 18px;

    }


    h1 {

        font-size:
            38px;

    }


    .section-label {

        font-size:
            9px;

    }

}


/* =====================================================
   REDUCIR MOVIMIENTO
===================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;

        scroll-behavior:
            auto !important;

    }

}