
/* ==========================================
   INICIO - NAVBAR CSS | JUPER SISTEM
========================================== */

/* HEADER */
.site-header {
    position: relative;
    z-index: 1000;
    width: 100%;

    background: rgba(255, 255, 255, 0.82);

    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);

    transition:
        background 0.25s ease,
        box-shadow 0.25s ease;
}

/* HEADER AL DESPLAZARSE */
.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

/* NAVBAR - ESTILO APPLE COMPACTO */
.navbar {
    width: 100%;
    max-width: 1040px;
    min-height: 56px;

    margin: 0 auto;
    padding: 6px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* MARCA */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;

    user-select: none;
    -webkit-user-select: none;
}

/* LOGO */
.brand__logo {
    display: block;
    width: auto;
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
}

/* NOMBRE DE LA EMPRESA */
.brand__text {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
    line-height: 1;
}

/* JUPER EN NEGRITA */
.brand__juper {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ios-text);
}

/* SISTEM NORMAL */
.brand__sistem {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.03em;
    color: var(--ios-text);
}

/* BOTÓN INICIAR SESIÓN */
.login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;
    gap: 7px;

    min-height: 38px;
    padding: 9px 15px;

    background: var(--ios-blue);
    color: #ffffff;

    text-decoration: none;
    border-radius: 999px;
    border: none;

    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.015em;

    box-shadow: 0 3px 10px rgba(0, 122, 255, 0.14);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;

    -webkit-tap-highlight-color: transparent;
}

/* ICONO DEL BOTÓN */
.login-button__icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* EFECTO HOVER */
@media (hover: hover) {
    .login-button:hover {
        background: var(--ios-blue-hover);
        transform: translateY(-1px);
        box-shadow: 0 5px 14px rgba(0, 122, 255, 0.20);
    }
}

/* EFECTO AL PRESIONAR */
.login-button:active {
    transform: scale(0.98);
}

/* ACCESIBILIDAD */
.login-button:focus-visible {
    outline: 3px solid rgba(0, 122, 255, 0.35);
    outline-offset: 3px;
}

/* ==========================================
   RESPONSIVE - TABLET
========================================== */

@media (max-width: 768px) {
    .navbar {
        min-height: 54px;
        padding: 6px 20px;
    }

    .brand__logo {
        height: 28px;
    }

    .brand__juper,
    .brand__sistem {
        font-size: 15px;
    }
}

/* ==========================================
   RESPONSIVE - MÓVIL
========================================== */

@media (max-width: 480px) {
    .navbar {
        min-height: 52px;
        padding: 6px 16px;
        gap: 8px;
    }

    .brand {
        gap: 7px;
    }

    .brand__logo {
        height: 27px;
    }

    .brand__text {
        gap: 3px;
    }

    .brand__juper,
    .brand__sistem {
        font-size: 14px;
    }

    .login-button {
        min-height: 36px;
        padding: 9px 12px;
        font-size: 12px;
        gap: 5px;
    }

    .login-button__icon {
        width: 14px;
        height: 14px;
    }
}

/* ==========================================
   RESPONSIVE - MÓVILES PEQUEÑOS
========================================== */

@media (max-width: 350px) {
    .brand__juper,
    .brand__sistem {
        font-size: 13px;
    }

    .login-button {
        padding-inline: 10px;
        font-size: 11px;
    }

    .login-button__icon {
        display: none;
    }
}

/* FALLBACK SIN EFECTO BLUR */
@supports not (backdrop-filter: blur(1px)) {
    .site-header {
        background: rgba(255, 255, 255, 0.97);
    }
}

/* ==========================================
   FIN - NAVBAR CSS | JUPER SISTEM
========================================== */
