/* =========================================================
   SEO EXPERTOS
   HEADER PREMIUM GLASS
   ========================================================= */


/* =========================================================
   HEADER
   ========================================================= */

.fc-premium-glass {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;

    width: 100%;

    padding:
        clamp(18px, 2.2vw, 34px)
        clamp(18px, 3vw, 48px);

    pointer-events: none;
}


/* =========================================================
   GLASS BAR
   ========================================================= */

.fc-premium-glass__bar {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;

    width: min(100%, 1420px);
    min-height: 88px;

    margin: 0 auto;

    padding:
        14px
        18px
        14px
        clamp(24px, 3vw, 46px);

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            rgba(25, 28, 34, 0.84),
            rgba(8, 10, 14, 0.74)
        );

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        inset 0 -1px 0 rgba(255, 255, 255, 0.025);

    -webkit-backdrop-filter:
        blur(22px)
        saturate(135%);

    backdrop-filter:
        blur(22px)
        saturate(135%);

    pointer-events: auto;

    opacity: 0;

    transform:
        translateY(-38px)
        scale(0.985);

    animation:
        premiumGlassEnter
        850ms
        cubic-bezier(0.22, 1.25, 0.36, 1)
        120ms
        forwards;
}


/* =========================================================
   REFLEJO DEL CRISTAL
   ========================================================= */

.fc-premium-glass__bar::before {
    content: "";

    position: absolute;
    inset: 0;

    border-radius: inherit;

    background:
        linear-gradient(
            115deg,
            rgba(255, 255, 255, 0.09) 0%,
            rgba(255, 255, 255, 0.025) 24%,
            transparent 44%
        );

    pointer-events: none;
}


/* =========================================================
   BRILLO SUPERIOR
   ========================================================= */

.fc-premium-glass__bar::after {
    content: "";

    position: absolute;

    top: 0;
    left: 8%;
    right: 8%;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.28),
            transparent
        );

    opacity: 0.65;

    pointer-events: none;
}


/* =========================================================
   BRAND
   ========================================================= */

.fc-premium-glass__brand {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;

    min-width: 0;

    color: #ffffff;

    text-decoration: none;
}


/* =========================================================
   LOGO
   ========================================================= */

.fc-premium-glass__logo {
    display: block;

    width: auto;
    height: clamp(34px, 3vw, 48px);
    max-width: 220px;

    object-fit: contain;
}


/* =========================================================
   FALLBACK TEXT LOGO
   ========================================================= */

.fc-premium-glass__brand-text {
    color: #ffffff;

    font-size:
        clamp(18px, 2vw, 27px);

    font-weight: 800;

    line-height: 1;

    letter-spacing: -0.045em;
}

.fc-premium-glass__brand-text span {
    margin-left: 3px;

    color: #b8d7ff;

    font-weight: 400;
}


/* =========================================================
   CTA
   ========================================================= */

.fc-premium-glass__cta {
    position: relative;
    z-index: 2;

    isolation: isolate;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 60px;

    padding: 2px;

    overflow: hidden;

    border-radius: 999px;

    color: #ffffff;

    text-decoration: none;

    background:
        rgba(15, 19, 26, 0.92);

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.26),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06);

    transform: translateZ(0);

    transition:
        transform 220ms ease,
        box-shadow 220ms ease;
}


/* =========================================================
   LOOP CROMADO
   ========================================================= */

.fc-premium-glass__cta-chrome {
    position: absolute;

    width: 160%;
    aspect-ratio: 1;

    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -50%)
        rotate(0deg);

    background:
        conic-gradient(
            from 0deg,
            transparent 0deg,
            rgba(102, 166, 255, 0.10) 45deg,
            rgba(212, 232, 255, 0.92) 78deg,
            rgba(84, 153, 255, 0.95) 103deg,
            rgba(255, 255, 255, 0.92) 125deg,
            rgba(65, 127, 222, 0.20) 158deg,
            transparent 195deg,
            transparent 360deg
        );

    animation:
        premiumChromeLoop
        4.2s
        linear
        infinite;

    pointer-events: none;
}


/* =========================================================
   INTERIOR DEL BOTÓN
   ========================================================= */

.fc-premium-glass__cta-content {
    position: relative;
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;

    min-height: 56px;

    padding:
        0
        clamp(20px, 2.3vw, 32px);

    border-radius: inherit;

    background:
        linear-gradient(
            180deg,
            rgba(30, 35, 44, 0.98),
            rgba(15, 18, 24, 0.98)
        );

    transition:
        background 350ms ease;
}


/* =========================================================
   TEXTO CTA
   ========================================================= */

.fc-premium-glass__cta-text {
    position: relative;
    z-index: 4;

    white-space: nowrap;

    font-size:
        clamp(14px, 1.15vw, 17px);

    font-weight: 600;

    line-height: 1;

    letter-spacing: -0.015em;
}


/* =========================================================
   ICONO CTA
   ========================================================= */

.fc-premium-glass__cta-icon {
    position: relative;
    z-index: 4;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    flex: 0 0 auto;
}

.fc-premium-glass__cta-icon img,
.fc-premium-glass__cta-icon svg {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* =========================================================
   ONDA HOVER
   ========================================================= */

.fc-premium-glass__cta-wave {
    position: absolute;
    z-index: 2;

    top: -55%;
    right: -48%;

    width: 72%;
    height: 210%;

    border-radius:
        58% 0 0 58%
        / 50% 0 0 50%;

    background:
        linear-gradient(
            120deg,
            #8fd3ff 0%,
            #4da9ff 38%,
            #256ee8 72%,
            #1858c7 100%
        );

    transform:
        translateX(35%)
        rotate(7deg);

    opacity: 0;

    transition:
        right 650ms cubic-bezier(0.22, 1, 0.36, 1),
        width 650ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 180ms ease,
        transform 650ms cubic-bezier(0.22, 1, 0.36, 1);

    pointer-events: none;
}


/* =========================================================
   HOVER
   ========================================================= */

.fc-premium-glass__cta:hover {
    transform:
        translateY(-2px)
        scale(1.015);

    box-shadow:
        0 14px 34px rgba(27, 108, 230, 0.22),
        0 0 28px rgba(75, 164, 255, 0.12);
}

.fc-premium-glass__cta:hover
.fc-premium-glass__cta-wave {
    right: -4%;

    width: 115%;

    opacity: 1;

    transform:
        translateX(-2%)
        rotate(0deg);
}

.fc-premium-glass__cta:hover
.fc-premium-glass__cta-content {
    background:
        rgba(14, 19, 27, 0.22);
}


/* =========================================================
   ANIMACIÓN ENTRADA
   ========================================================= */

@keyframes premiumGlassEnter {

    0% {
        opacity: 0;

        transform:
            translateY(-38px)
            scale(0.985);
    }

    62% {
        opacity: 1;

        transform:
            translateY(5px)
            scale(1.002);
    }

    82% {
        transform:
            translateY(-2px)
            scale(1);
    }

    100% {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================================
   ANIMACIÓN CROMADA
   ========================================================= */

@keyframes premiumChromeLoop {

    to {
        transform:
            translate(-50%, -50%)
            rotate(360deg);
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .fc-premium-glass {
        padding:
            16px
            18px;
    }

    .fc-premium-glass__bar {
        min-height: 76px;

        padding:
            10px
            12px
            10px
            24px;
    }

    .fc-premium-glass__logo {
        height: 36px;
        max-width: 180px;
    }

    .fc-premium-glass__cta {
        min-height: 54px;
    }

    .fc-premium-glass__cta-content {
        min-height: 50px;

        padding:
            0
            20px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .fc-premium-glass {
        padding:
            12px
            12px;
    }

    .fc-premium-glass__bar {
        min-height: 68px;

        gap: 12px;

        padding:
            8px
            9px
            8px
            18px;

        border-radius: 28px;
    }

    .fc-premium-glass__logo {
        height: 30px;
        max-width: 140px;
    }

    .fc-premium-glass__brand-text {
        font-size: 16px;
    }

    .fc-premium-glass__cta {
        min-height: 48px;
    }

    .fc-premium-glass__cta-content {
        min-height: 44px;

        gap: 9px;

        padding:
            0
            15px;
    }

    .fc-premium-glass__cta-text {
        font-size: 12px;
    }

    .fc-premium-glass__cta-icon {
        width: 19px;
        height: 19px;
    }
}


/* =========================================================
   MOBILE PEQUEÑO
   ========================================================= */

@media (max-width: 420px) {

    .fc-premium-glass__bar {
        padding-left: 15px;
    }

    .fc-premium-glass__logo {
        max-width: 112px;
    }

    .fc-premium-glass__cta-content {
        padding:
            0
            12px;
    }

    .fc-premium-glass__cta-text {
        font-size: 11px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .fc-premium-glass__bar {
        opacity: 1;

        transform: none;

        animation: none;
    }

    .fc-premium-glass__cta-chrome {
        animation: none;
    }

    .fc-premium-glass__cta,
    .fc-premium-glass__cta-wave {
        transition: none;
    }
}