/* =========================================================
   AR DETALLES — HEADER
   ========================================================= */

.header {
    position: relative;
    z-index: 100;

    width: 100%;

    display: flex;
    align-items: center;

    padding: 24px 42px;

    pointer-events: none;

    animation:
        headerAppear
        1s
        cubic-bezier(.16, 1, .3, 1)
        both;
}


/* =========================================================
   MARCA
   ========================================================= */

.brand {
    position: relative;

    display: inline-flex;
    align-items: center;

    gap: 13px;

    color: #fff8e7;
    text-decoration: none;

    pointer-events: auto;

    transition:
        transform .4s ease,
        filter .4s ease;
}


.brand:hover {
    transform:
        translateY(-2px);

    filter:
        drop-shadow(
            0 0 12px
            rgba(212, 175, 106, .35)
        );
}


/* =========================================================
   CONTENEDOR DEL ICONO
   ========================================================= */

.brand-logo {
    position: relative;

    width: 48px;
    height: 48px;

    flex:
        0 0 48px;

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

    overflow: hidden;

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .10),
            rgba(212, 175, 106, .04)
        );

    border:
        1px solid
        rgba(212, 175, 106, .35);

    box-shadow:
        0 0 18px
        rgba(212, 175, 106, .12),

        inset 0 0 15px
        rgba(255, 255, 255, .025);

    transition:
        transform .45s cubic-bezier(.16, 1, .3, 1),
        box-shadow .45s ease;
}


.brand-logo::before {
    content: "";

    position: absolute;
    inset: -50%;

    background:
        conic-gradient(
            from 0deg,
            transparent,
            rgba(243, 217, 162, .45),
            transparent 30%,
            transparent 70%,
            rgba(217, 140, 154, .3),
            transparent
        );

    animation:
        logoRotate
        7s
        linear
        infinite;
}


.brand-logo::after {
    content: "";

    position: absolute;
    inset: 2px;

    border-radius: 12px;

    background:
        rgba(8, 6, 9, .72);

    z-index: 1;
}


/* =========================================================
   IMAGEN DEL LOGO
   ========================================================= */

.brand-logo img {
    position: relative;

    z-index: 2;

    display: block;

    width: 34px;
    height: 34px;

    max-width: 34px;
    max-height: 34px;

    object-fit: contain;

    object-position: center;

    border: 0;
    outline: 0;

    border-radius: 8px;

    transform:
        translateZ(0);

    filter:
        drop-shadow(
            0 0 7px
            rgba(212, 175, 106, .35)
        );

    transition:
        transform .45s
        cubic-bezier(.16, 1, .3, 1),

        filter .45s ease;
}


.brand:hover .brand-logo {
    transform:
        rotate(-4deg)
        scale(1.08);

    box-shadow:
        0 0 25px
        rgba(212, 175, 106, .25),

        inset 0 0 15px
        rgba(243, 217, 162, .08);
}


.brand:hover .brand-logo img {
    transform:
        scale(1.08);

    filter:
        drop-shadow(
            0 0 10px
            rgba(243, 217, 162, .65)
        );
}


/* =========================================================
   NOMBRE
   ========================================================= */

.brand-name {
    display: flex;

    flex-direction: column;

    justify-content: center;

    line-height: 1;
}


.brand-main {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.18rem;

    font-weight: 700;

    letter-spacing: 3px;

    background:
        linear-gradient(
            110deg,
            #fff8e7,
            #f3d9a2,
            #d4af6a,
            #fff8e7
        );

    background-size:
        220% auto;

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;

    animation:
        brandShine
        6s
        linear
        infinite;
}


.brand-sub {
    margin-top: 4px;

    font-family:
        Arial,
        sans-serif;

    font-size: .47rem;

    font-weight: 600;

    letter-spacing: 3px;

    color:
        rgba(243, 217, 162, .65);
}


/* =========================================================
   ANIMACIONES
   ========================================================= */

@keyframes logoRotate {

    from {
        transform:
            rotate(0deg);
    }

    to {
        transform:
            rotate(360deg);
    }

}


@keyframes brandShine {

    0% {
        background-position:
            0% center;
    }

    50% {
        background-position:
            100% center;
    }

    100% {
        background-position:
            200% center;
    }

}


@keyframes headerAppear {

    from {
        opacity: 0;

        transform:
            translateY(-25px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 768px) {

    .header {
        padding:
            20px 26px;
    }

}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 600px) {

    .header {
        padding:
            18px 18px;
    }

    .brand {
        gap: 10px;
    }

    .brand-logo {
        width: 42px;
        height: 42px;

        flex-basis: 42px;

        border-radius: 12px;
    }

    .brand-logo::after {
        border-radius: 10px;
    }

    .brand-logo img {
        width: 29px;
        height: 29px;

        max-width: 29px;
        max-height: 29px;
    }

    .brand-main {
        font-size: 1rem;

        letter-spacing: 2.5px;
    }

    .brand-sub {
        font-size: .4rem;

        letter-spacing: 2.2px;
    }

}


/* =========================================================
   MÓVILES PEQUEÑOS
   ========================================================= */

@media (max-width: 380px) {

    .header {
        padding:
            15px 14px;
    }

    .brand-logo {
        width: 38px;
        height: 38px;

        flex-basis: 38px;
    }

    .brand-logo img {
        width: 26px;
        height: 26px;

        max-width: 26px;
        max-height: 26px;
    }

    .brand-main {
        font-size: .92rem;
    }

}
