/*
 * Selector de marcas Failer / By Failer
 */

:root {
    --bf-white: #ffffff;
    --bf-black: #090909;
    --bf-transition: 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    background: var(--bf-black);
}

body.bf-selector-page {
    min-width: 320px;
    margin: 0;
    overflow: hidden;
    background: var(--bf-black);
    color: var(--bf-white);
    font-family:
        "Helvetica Neue",
        "Inter",
        Helvetica,
        Arial,
        sans-serif;
}

body.bf-selector-page * {
    box-sizing: border-box;
}

.bf-selector {
    position: relative;
    isolation: isolate;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    width: 100%;
    min-height: 100vh;
    min-height: 100svh;

    overflow: hidden;

    background-color: var(--bf-black);
    background-image:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.48),
            rgba(0, 0, 0, 0.39)
        ),
        var(
            --bf-selector-background,
            linear-gradient(135deg, #242424, #050505)
        );

    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/*
 * Oscurecimiento general.
 */
.bf-selector::before {
    position: absolute;
    z-index: -1;
    inset: 0;

    content: "";

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.08) 0%,
            rgba(0, 0, 0, 0.16) 100%
        );
}

/*
 * Línea divisoria central.
 */
.bf-selector::after {
    position: absolute;
    z-index: 3;

    top: 34%;
    bottom: 34%;
    left: 50%;

    width: 1px;

    content: "";

    background: rgba(255, 255, 255, 0.9);
    pointer-events: none;
}

.bf-selector__page-title {
    position: absolute;

    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.bf-selector__choice {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 100%;

    padding: clamp(32px, 6vw, 96px);

    color: var(--bf-white);
    text-decoration: none;

    cursor: pointer;
    overflow: hidden;
}

/*
 * Capa de interacción individual.
 */
.bf-selector__choice::before {
    position: absolute;
    z-index: 0;
    inset: 0;

    content: "";

    background: #000000;
    opacity: 0;

    transition: opacity var(--bf-transition);
}

.bf-selector__choice:hover::before,
.bf-selector__choice:focus-visible::before {
    opacity: 0.18;
}

.bf-selector__choice:focus-visible {
    outline: 2px solid var(--bf-white);
    outline-offset: -12px;
}

.bf-selector__content {
    position: relative;
    z-index: 1;

    width: min(100%, 390px);

    transition:
        transform var(--bf-transition),
        opacity var(--bf-transition);
}

.bf-selector__choice:hover .bf-selector__content {
    transform: translateY(-5px);
}

.bf-selector__logo {
    display: block;

    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 80px;

    margin: 0 0 clamp(28px, 3vw, 44px);
}

.bf-selector__wordmark {
    display: block;

    margin: 0 0 clamp(28px, 3vw, 44px);

    color: var(--bf-white);

    font-size: clamp(48px, 4.3vw, 76px);
    font-weight: 200;
    line-height: 0.95;
    letter-spacing: -0.055em;
    white-space: nowrap;
}

.bf-selector__wordmark--byfailer {
    font-size: clamp(44px, 4vw, 70px);
    letter-spacing: -0.065em;
}

.bf-selector__description {
    margin: 0;

    color: var(--bf-white);

    font-size: clamp(12px, 0.95vw, 16px);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.015em;
    text-transform: uppercase;
}

.bf-selector__description strong,
.bf-selector__description span {
    display: block;
}

.bf-selector__description strong {
    margin-bottom: 2px;
    font-weight: 500;
}

.bf-skip-link {
    position: fixed;
    z-index: 999999;

    top: 12px;
    left: 12px;

    padding: 10px 14px;

    color: #000000;
    background: #ffffff;

    transform: translateY(-200%);
}

.bf-skip-link:focus {
    transform: translateY(0);
}

/*
 * Ajuste para la barra de administración de WordPress.
 */
@media screen and (min-width: 783px) {
    body.admin-bar .bf-selector {
        min-height: calc(100svh - 32px);
    }
}

@media screen and (max-width: 782px) {
    body.admin-bar .bf-selector {
        min-height: calc(100svh - 46px);
    }
}

/*
 * Tablet.
 */
@media screen and (max-width: 1024px) {
    .bf-selector__choice {
        padding: 48px;
    }

    .bf-selector__content {
        width: min(100%, 320px);
    }
}

/*
 * Mobile.
 */
@media screen and (max-width: 767px) {
    body.bf-selector-page {
        overflow: auto;
    }

    .bf-selector {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(2, minmax(50svh, 1fr));

        background-position: 46% center;
    }

    .bf-selector::after {
        top: 50%;
        right: 18%;
        bottom: auto;
        left: 18%;

        width: auto;
        height: 1px;
    }

    .bf-selector__choice {
        min-height: 50svh;
        padding: 40px 32px;
    }

    .bf-selector__content {
        width: min(100%, 330px);
    }

    .bf-selector__logo {
        max-height: 56px;
        margin-bottom: 22px;
    }

    .bf-selector__wordmark {
        margin-bottom: 22px;

        font-size: clamp(42px, 15vw, 62px);
    }

    .bf-selector__wordmark--byfailer {
        font-size: clamp(38px, 13vw, 56px);
    }

    .bf-selector__description {
        font-size: 11px;
        line-height: 1.3;
    }
}

@media screen and (max-width: 390px) {
    .bf-selector__choice {
        padding: 32px 24px;
    }
}

/*
 * Reduce animaciones cuando el visitante lo solicita.
 */
@media (prefers-reduced-motion: reduce) {
    .bf-selector__choice::before,
    .bf-selector__content {
        transition: none;
    }
}