/* =========================================================
   EL CORRAL DEL DRAMA
   PAGINA DE CONTACTO
   ========================================================= */

.contacto-page {
    --contacto-fondo: #080914;
    --contacto-panel: #111529;
    --contacto-celeste: #19e6ff;
    --contacto-morado: #9b4dff;
    --contacto-texto: #f5f7ff;
    --contacto-secundario: #a6acc4;
    --contacto-borde: rgba(139, 159, 255, .16);
    --contacto-verde: #54f6b1;
    --contacto-rojo: #ff6978;
    --contacto-amarillo: #ffce69;

    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.contacto-page main {
    flex: 1;
}

.contacto-page [hidden] {
    display: none !important;
}

/* =========================================================
   PORTADA
   ========================================================= */

.contacto-hero {
    position: relative;
    padding: 85px 0 65px;
    text-align: center;
    overflow: hidden;

    background:
        radial-gradient(
            ellipse at 20% 20%,
            rgba(25, 230, 255, .09),
            transparent 50%
        ),
        radial-gradient(
            ellipse at 85% 50%,
            rgba(155, 77, 255, .12),
            transparent 50%
        );

    border-bottom: 1px solid var(--contacto-borde);
}

.contacto-hero .section-kicker {
    gap: 10px;
    letter-spacing: 2.5px;
}

.contacto-hero h1 {
    margin: 15px 0 20px;

    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: clamp(48px, 7vw, 86px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: .5px;

    color: var(--contacto-texto);
}

.contacto-hero h1 span {
    color: transparent;

    background: linear-gradient(
        100deg,
        #19e6ff,
        #65aaff 55%,
        #b875ff
    );

    background-clip: text;
    -webkit-background-clip: text;

    filter: drop-shadow(
        0 0 20px rgba(25, 230, 255, .15)
    );
}

.contacto-hero p {
    max-width: 650px;
    margin: 0 auto;

    color: var(--contacto-secundario);
    font-size: 15px;
    line-height: 1.8;
}

/* =========================================================
   DISTRIBUCION PRINCIPAL
   ========================================================= */

.contacto-seccion {
    padding: 55px 0 90px;
}

.contacto-layout {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr);
    align-items: start;
    gap: 28px;

    max-width: 1160px;
}

.contacto-informacion {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* =========================================================
   TARJETAS LATERALES
   ========================================================= */

.contacto-card {
    position: relative;
    padding: 27px;
    overflow: hidden;

    border: 1px solid var(--contacto-borde);
    border-radius: 20px;

    background: linear-gradient(
        145deg,
        #151a32,
        #0d1020
    );

    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}

.contacto-card:hover {
    border-color: rgba(25, 230, 255, .35);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, .18),
        0 0 22px rgba(25, 230, 255, .06);

    transform: translateY(-3px);
}

.contacto-icono {
    display: grid;
    place-items: center;

    width: 56px;
    height: 56px;
    margin-bottom: 18px;

    border: 1px solid rgba(25, 230, 255, .25);
    border-radius: 15px;

    background: rgba(25, 230, 255, .07);
    color: var(--contacto-celeste);

    font-size: 24px;

    box-shadow: 0 0 20px rgba(25, 230, 255, .08);
}

.contacto-card h2 {
    margin: 0 0 12px;

    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: 29px;
    font-weight: 800;
    line-height: 1.1;

    color: var(--contacto-texto);
}

.contacto-card p {
    margin: 0 0 12px;

    color: var(--contacto-secundario);
    font-size: 13px;
    line-height: 1.85;
}

.contacto-card p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   TARJETA DISCORD
   ========================================================= */

.contacto-discord {
    border-color: rgba(155, 77, 255, .28);

    background:
        radial-gradient(
            ellipse at top right,
            rgba(88, 101, 242, .16),
            transparent 70%
        ),
        linear-gradient(145deg, #171831, #101224);
}

.contacto-discord .contacto-icono {
    background: rgba(88, 101, 242, .14);
    border-color: rgba(130, 140, 255, .35);
    color: #a8afff;
}

.contacto-btn-discord {
    width: 100%;
    min-height: 47px;
    margin-top: 8px;

    background: #5865f2;
    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 11px;

    font-size: 12px;
    font-weight: 700;
}

.contacto-btn-discord:hover {
    background: #6875ff;
    box-shadow: 0 0 22px rgba(88, 101, 242, .28);
}

/* =========================================================
   REDES SOCIALES
   ========================================================= */

.contacto-redes {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;

    margin-top: 20px;
}

.contacto-red {
    display: grid;
    place-items: center;

    width: 52px;
    height: 52px;

    border: 1px solid var(--contacto-borde);
    border-radius: 13px;

    background: rgba(255, 255, 255, .035);

    font-size: 23px;

    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.contacto-red:hover {
    transform: translateY(-4px);
}

.contacto-red.instagram {
    color: #f279b5;
    border-color: rgba(242, 121, 181, .25);
}

.contacto-red.instagram:hover {
    background: rgba(242, 121, 181, .12);
    box-shadow: 0 0 20px rgba(242, 121, 181, .15);
}

.contacto-red.tiktok {
    color: #ffffff;
    border-color: rgba(25, 230, 255, .25);
}

.contacto-red.tiktok:hover {
    background: rgba(25, 230, 255, .08);
    box-shadow: 0 0 20px rgba(25, 230, 255, .15);
}

.contacto-red.twitch {
    color: #b98aff;
    border-color: rgba(155, 77, 255, .3);
}

.contacto-red.twitch:hover {
    background: rgba(155, 77, 255, .12);
    box-shadow: 0 0 20px rgba(155, 77, 255, .18);
}

/* =========================================================
   AVISO DE SEGURIDAD
   ========================================================= */

.contacto-aviso {
    display: flex;
    align-items: flex-start;
    gap: 13px;

    padding: 18px;

    border: 1px solid rgba(25, 230, 255, .13);
    border-radius: 13px;

    background: rgba(25, 230, 255, .035);
}

.contacto-aviso i {
    margin-top: 4px;

    color: var(--contacto-celeste);
    font-size: 18px;
}

.contacto-aviso p {
    margin: 0;

    color: var(--contacto-secundario);
    font-size: 11px;
    line-height: 1.8;
}

/* =========================================================
   PANEL DEL FORMULARIO
   ========================================================= */

.contacto-form-panel {
    position: relative;
    min-width: 0;
    padding: 36px;
    overflow: hidden;

    border: 1px solid var(--contacto-borde);
    border-radius: 22px;

    background: linear-gradient(
        150deg,
        #151a32,
        #0e1224 65%
    );

    box-shadow: 0 18px 55px rgba(0, 0, 0, .22);
}

.contacto-form-panel::before {
    content: "";

    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;

    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        var(--contacto-celeste),
        var(--contacto-morado),
        transparent
    );

    opacity: .85;
}

.contacto-form-header {
    margin-bottom: 30px;
    padding-bottom: 23px;

    border-bottom: 1px solid var(--contacto-borde);
}

.contacto-form-header h2 {
    margin: 10px 0;

    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: clamp(32px, 4vw, 43px);
    font-weight: 800;
    line-height: 1.1;

    color: var(--contacto-texto);
}

.contacto-form-header p {
    margin: 0;

    color: var(--contacto-secundario);
    font-size: 13px;
}

/* =========================================================
   CAMPOS DEL FORMULARIO
   ========================================================= */

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.contacto-campo {
    display: flex;
    flex-direction: column;
    gap: 8px;

    min-width: 0;
}

.contacto-campo label {
    color: #e5e9f8;
    font-size: 13px;
    font-weight: 700;
}

.contacto-campo label span {
    color: var(--contacto-celeste);
}

.contacto-campo small {
    color: var(--contacto-secundario);
    font-size: 11px;
    font-weight: 400;
}

.contacto-campo input,
.contacto-campo select,
.contacto-campo textarea {
    display: block;

    width: 100%;
    min-width: 0;
    min-height: 49px;
    padding: 13px 15px;

    border: 1px solid rgba(139, 159, 255, .2);
    border-radius: 11px;

    outline: none;

    background: #090d1c;
    color: var(--contacto-texto);

    font-family: inherit;
    font-size: 13px;
    line-height: 1.6;

    color-scheme: dark;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.contacto-campo input::placeholder,
.contacto-campo textarea::placeholder {
    color: #7d87a4;
    opacity: 1;
}

.contacto-campo input:hover,
.contacto-campo select:hover,
.contacto-campo textarea:hover {
    border-color: rgba(25, 230, 255, .28);
}

.contacto-campo input:focus,
.contacto-campo select:focus,
.contacto-campo textarea:focus {
    border-color: var(--contacto-celeste);

    background: #0b1122;

    box-shadow:
        0 0 0 3px rgba(25, 230, 255, .07),
        0 0 18px rgba(25, 230, 255, .07);
}

.contacto-campo select {
    cursor: pointer;
}

.contacto-campo select:invalid {
    color: #7d87a4;
}

.contacto-campo select option {
    background: #111529;
    color: var(--contacto-texto);
}

.contacto-campo textarea {
    min-height: 155px;
    max-height: 380px;

    resize: vertical;
}

.contacto-campo input:disabled,
.contacto-campo select:disabled,
.contacto-campo textarea:disabled {
    opacity: .65;
    cursor: not-allowed;
}

/* =========================================================
   CONTADOR DE CARACTERES
   ========================================================= */

.contacto-contador {
    color: #8993ae;
    font-size: 11px;
    text-align: right;

    font-variant-numeric: tabular-nums;
}

.contacto-contador.advertencia {
    color: var(--contacto-amarillo);
}

.contacto-contador.limite {
    color: var(--contacto-rojo);
}

/* =========================================================
   PRIVACIDAD
   ========================================================= */

.contacto-privacidad {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 15px;

    border: 1px solid var(--contacto-borde);
    border-radius: 11px;

    background: rgba(8, 9, 20, .45);
}

.contacto-privacidad input {
    flex: 0 0 18px;

    width: 18px;
    height: 18px;
    margin: 3px 0 0;

    accent-color: var(--contacto-celeste);
    cursor: pointer;
}

.contacto-privacidad label {
    color: var(--contacto-secundario);
    font-size: 12px;
    line-height: 1.75;

    cursor: pointer;
}

.contacto-privacidad:focus-within {
    border-color: rgba(25, 230, 255, .4);
}

/* =========================================================
   BOTON ENVIAR
   ========================================================= */

.contacto-submit {
    width: 100%;
    min-height: 54px;

    font-size: 14px;
    font-weight: 800;
    letter-spacing: .3px;
}

.contacto-submit i {
    font-size: 16px;
}

.contacto-submit:disabled {
    opacity: .5;
    cursor: not-allowed;

    transform: none;
    box-shadow: none;
}

.contacto-submit.enviando {
    opacity: .8;
    cursor: wait;
}

.contacto-submit.enviando i {
    animation: contactoPulso 1s ease-in-out infinite;
}

@keyframes contactoPulso {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: .35;
    }
}

.contacto-obligatorios {
    margin: -5px 0 0;

    color: var(--contacto-secundario);
    font-size: 11px;
    text-align: center;
}

/* =========================================================
   MENSAJES DEL SISTEMA
   ========================================================= */

.contacto-resultado {
    padding: 18px;

    border: 1px solid var(--contacto-borde);
    border-radius: 12px;

    background: rgba(25, 230, 255, .05);

    color: var(--contacto-texto);
    font-size: 13px;
    line-height: 1.8;

    overflow-wrap: anywhere;
}

.contacto-resultado.exito {
    border-color: rgba(84, 246, 177, .3);
    background: rgba(84, 246, 177, .07);
    color: var(--contacto-verde);
}

.contacto-resultado.error {
    border-color: rgba(255, 105, 120, .3);
    background: rgba(255, 105, 120, .07);
    color: var(--contacto-rojo);
}

.contacto-resultado.advertencia {
    border-color: rgba(255, 206, 105, .3);
    background: rgba(255, 206, 105, .07);
    color: var(--contacto-amarillo);
}

.contacto-resultado strong {
    display: block;
    margin-bottom: 6px;
}

.contacto-referencia {
    display: block;

    margin-top: 10px;
    padding: 10px 12px;

    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;

    background: rgba(0, 0, 0, .2);

    font-family: monospace;
    font-size: 11px;

    user-select: all;
    overflow-wrap: anywhere;
}

/* =========================================================
   PROTECCION ANTISPAM
   ========================================================= */

.contacto-honeypot {
    display: none !important;
}

/* =========================================================
   ACCESIBILIDAD
   ========================================================= */

.contacto-page a:focus-visible,
.contacto-page button:focus-visible {
    outline: 2px solid var(--contacto-celeste);
    outline-offset: 4px;
}

/* =========================================================
   RESPONSIVE - NAVEGACION
   ========================================================= */

@media (max-width: 1250px) {

    .contacto-page .navbar {
        gap: 15px;
    }

    .contacto-page .nav-menu {
        gap: 15px;
    }

    .contacto-page .nav-actions {
        display: none;
    }

}

@media (max-width: 1080px) {

    .contacto-page .menu-toggle {
        display: block;
        order: 3;
    }

    .contacto-page .nav-menu {
        position: absolute;

        top: calc(100% + 1px);
        left: 0;
        right: 0;

        display: none;
        flex-direction: column;
        align-items: stretch;

        gap: 0;
        padding: 10px 24px 20px;

        background: rgba(8, 9, 20, .98);

        border-bottom: 1px solid
            rgba(25, 230, 255, .2);

        box-shadow: 0 20px 30px rgba(0, 0, 0, .3);
    }

    .contacto-page .nav-menu.is-open {
        display: flex;
    }

    .contacto-page .nav-link {
        min-height: 46px;

        border-bottom: 1px solid
            rgba(255, 255, 255, .05);
    }

    .contacto-page .nav-link::after {
        bottom: 0;
        right: auto;
        width: 55px;
    }

}

/* =========================================================
   RESPONSIVE - TABLETS
   ========================================================= */

@media (max-width: 900px) {

    .contacto-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .contacto-form-panel {
        order: -1;
    }

    .contacto-informacion {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .contacto-aviso {
        align-self: stretch;
    }

    .contacto-hero {
        padding: 65px 0 50px;
    }

    .contacto-seccion {
        padding: 35px 0 65px;
    }

}

/* =========================================================
   RESPONSIVE - CELULARES
   ========================================================= */

@media (max-width: 600px) {

    .contacto-hero {
        padding: 50px 0 40px;
    }

    .contacto-hero h1 {
        font-size: clamp(42px, 11vw, 65px);
    }

    .contacto-hero p {
        font-size: 13px;
    }

    .contacto-hero .section-kicker {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .contacto-seccion {
        padding: 25px 0 50px;
    }

    .contacto-form-panel {
        padding: 23px 19px;
        border-radius: 17px;
    }

    .contacto-form-header {
        margin-bottom: 24px;
        padding-bottom: 20px;
    }

    .contacto-form {
        gap: 19px;
    }

    .contacto-informacion {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .contacto-card {
        padding: 23px;
        border-radius: 16px;
    }

    .contacto-campo input,
    .contacto-campo select,
    .contacto-campo textarea {
        font-size: 16px;
    }

    .contacto-privacidad {
        padding: 13px;
    }

    .contacto-submit {
        min-height: 51px;
    }

    .contacto-page .footer-main {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;

        gap: 20px;
        text-align: center;
    }

    .contacto-page .footer-main > p {
        text-align: center;
    }

    .contacto-page .footer-links {
        justify-content: center;
    }

    .contacto-page .footer-bottom .container {
        flex-direction: column;
        align-items: center;
        text-align: center;

        gap: 8px;
    }

}

/* =========================================================
   REDUCIR ANIMACIONES
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .contacto-page *,
    .contacto-page *::before,
    .contacto-page *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

}