/* ============================================================
   AZKA STUDIO — GLOBAL.CSS
   ------------------------------------------------------------
   Hoja de estilos canónica para TODAS las páginas públicas.
   Consolidado desde diseñoinicio.css, estilo_carrito.css,
   estilo_inicio_sesion.css y site-shell.css para garantizar
   que header, footer, carrito, perfil y modal sean IDÉNTICOS
   en todas las páginas. Se carga SIEMPRE en último lugar.
   ============================================================ */

/* ============================================================
   1. HEADER / NAVBAR / LOGO / MENÚ / ICONOS
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 5, 5, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
}

.navbar {
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
}

.logo {
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
    will-change: transform, filter;
}

.logo img {
    width: 150px;
    height: auto;
    object-fit: contain;
    transition: filter 0.4s ease;
}

.logo:hover {
    transform: scale(1.06);
}

.logo:hover img {
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.3));
}

.menu {
    display: flex;
    gap: 35px;
    list-style: none;
}

.menu li {
    position: relative;
    padding: 10px 15px;
}

.menu a {
    position: relative;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    transition: color 0.4s ease;
    z-index: 2;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 1.5px;
    background: #ffffff;
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.menu li:hover a::after,
.menu a.active-link::after {
    width: 100%;
}

.menu a:hover,
.menu a.active-link {
    color: #ffffff;
}

.icons {
    display: flex;
    gap: 25px;
    font-size: 20px;
    align-items: center;
}

.icons span {
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
    will-change: transform;
}

.icons span:hover {
    transform: translateY(-3px) scale(1.1);
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 101;
}

.hamburger span {
    width: 26px;
    height: 2px;
    background-color: #ffffff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ============================================================
   2. PERFIL DE USUARIO (sesión) — escritorio
   ============================================================ */
.icons .account-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 190px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #f5f5f5;
    background: rgba(255, 255, 255, 0.035);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.icons .account-nav-link:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-2px);
}

.account-nav-icon { font-size: 15px; line-height: 1; }
.account-nav-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

#account-user-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    font: 700 11px/1 Arial, sans-serif;
    letter-spacing: 0.4px;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

#account-user-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.58);
    transform: translateY(-2px);
}

#account-user-link .account-nav-icon { font-size: 16px; line-height: 1; }
#account-user-link .account-nav-text {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 900px) {
    #account-user-link { padding: 8px 10px; }
    #account-user-link .account-nav-text { max-width: 92px; }
}

/* ============================================================
   3. FOOTER GLOBAL
   ============================================================ */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #030303;
    padding: 60px 60px 40px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-logo img {
    width: 170px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.footer-column { min-width: 200px; }

.footer-column h3,
.footer-column h4 {
    font-size: 14px;
    letter-spacing: 5px;
    margin-bottom: 25px;
    font-weight: 400;
    color: #ffffff;
    text-transform: uppercase;
}

.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column li { margin-bottom: 12px; }

.footer-column a,
.footer-column p {
    color: #777777;
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-column a:hover,
.footer-column p:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.copyright {
    max-width: 1400px;
    margin: 50px auto 0;
    text-align: center;
    color: #555555;
    font-size: 12px;
    letter-spacing: 2px;
}

/* ============================================================
   4. CARRITO GLOBAL (DRAWER)
   ============================================================ */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    will-change: opacity, visibility;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: #0a0a0a;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    will-change: transform;
}

.cart-drawer.active { transform: translateX(0); }

.cart-header {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-header h3 {
    font-size: 14px;
    letter-spacing: 4px;
    color: #ffffff;
    text-transform: uppercase;
}

.close-cart {
    background: none;
    border: none;
    color: #888888;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.close-cart:hover {
    color: #ffffff;
    transform: rotate(90deg);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-body::-webkit-scrollbar { width: 4px; }
.cart-body::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); }
.cart-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 2px; }
.cart-body::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); }

.cart-item {
    display: flex;
    gap: 15px;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.cart-item:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.cart-item img {
    width: 70px;
    height: 85px;
    object-fit: cover;
    background: #000000;
}

.cart-item-details { flex: 1; }

.cart-item-details h4 {
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 5px;
    color: #ffffff;
    text-transform: uppercase;
}

.cart-item-spec {
    font-size: 9px;
    color: #777777;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.cart-item-price-qty {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.qty-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s ease;
}

.qty-btn:hover { background: rgba(255, 255, 255, 0.1); }

.qty-number { padding: 0 8px; font-size: 11px; color: #ffffff; }

.item-price {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
}

.remove-item {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #555555;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.remove-item:hover {
    color: #ff4a4a;
    transform: scale(1.15);
}

.cart-footer {
    padding: 25px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #080808;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
    text-transform: uppercase;
}

.cart-shipping-info {
    font-size: 9px;
    color: #666666;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 10px;
}

.checkout-btn:hover {
    background: #e5e5e5;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.continue-btn {
    width: 100%;
    background: transparent;
    border: none;
    color: #777777;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.3s ease;
}

.continue-btn:hover { color: #ffffff; }

/* ============================================================
   5. MODAL DE AUTENTICACIÓN (login / registro)
   ============================================================ */
.auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1003;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, visibility;
}

.auth-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.auth-container {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 90%;
    max-width: 450px;
    padding: 50px 40px;
    position: relative;
    transform: translateY(30px) scale(0.98);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.auth-overlay.active .auth-container { transform: translateY(0) scale(1); }

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #888888;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    will-change: transform;
}

.close-modal:hover {
    color: #ffffff;
    transform: scale(1.1);
}

.auth-box h2 {
    font-size: 24px;
    letter-spacing: 8px;
    text-align: center;
    margin-bottom: 10px;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 800;
}

.auth-box p {
    font-size: 11px;
    letter-spacing: 3px;
    color: #666666;
    text-align: center;
    margin-bottom: 35px;
    text-transform: uppercase;
}

.auth-box .form-group { margin-bottom: 25px; }

.auth-box label {
    font-size: 10px;
    letter-spacing: 2px;
    color: #aaaaaa;
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 600;
}

.auth-box input {
    width: 100%;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 15px;
    font-size: 13px;
    outline: none;
    border-radius: 2px;
    transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
}

.auth-box input:focus {
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
    background: rgba(15, 15, 15, 0.9);
}

.auth-btn {
    width: 100%;
    padding: 18px;
    background: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 10px;
    will-change: transform;
}

.auth-btn:hover {
    background: #cccccc;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.15);
}

.auth-footer {
    margin-top: 30px;
    text-align: center;
}

.auth-footer p {
    color: #555555;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.auth-footer button {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    text-decoration: underline;
    letter-spacing: 2px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 10px;
    transition: opacity 0.3s ease;
}

.auth-footer button:hover { opacity: 0.8; }

.password-field { position: relative; }
.password-field input { padding-right: 52px; }

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: #a9a9a9;
    border: 0;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle:focus-visible { color: #ffffff; }

.password-toggle:focus-visible {
    outline: 1px solid #ffffff;
    outline-offset: 2px;
}

.password-toggle svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

/* ============================================================
   6. ANIMACIONES PREMIUM (FASE 4)
   ============================================================ */
/* Aparición suave del header al cargar */
.site-header {
    animation: headerDrop 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes headerDrop {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Transición de altura del navbar al hacer scroll */
.site-header .navbar {
    transition: height 0.35s ease, padding 0.35s ease;
}

.site-header.is-scrolled .navbar {
    height: 66px;
}

.site-header.is-scrolled {
    background: rgba(5, 5, 5, 0.92);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

/* Animación del contador del carrito móvil */
.cart-badge.is-pop {
    animation: cartBadgePop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cartBadgePop {
    0% { transform: scale(0.6); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

/* ============================================================
   7. ACCIONES MÓVILES (carrito y perfil SIEMPRE visibles)
   ============================================================ */
.mobile-actions {
    display: none;
}

@media (max-width: 768px) {
    .site-header .mobile-actions {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-left: auto;
    }

    .site-header .hamburger {
        margin-left: 16px;
    }

    .mobile-action-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 19px;
        line-height: 1;
        color: #f5f5f5;
        text-decoration: none;
        padding: 8px;
        border-radius: 50%;
        transition: transform 0.25s ease, color 0.25s ease, background-color 0.25s ease;
    }

    .mobile-action-link:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.08);
        transform: translateY(-1px);
    }

    .mobile-cart-btn {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 50%;
        color: #f5f5f5;
        font-size: 17px;
        line-height: 1;
        cursor: pointer;
        transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
    }

    .mobile-cart-btn:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.5);
        transform: translateY(-1px);
    }

    .mobile-cart-btn:active { transform: scale(0.94); }

    .cart-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        display: none;
        align-items: center;
        justify-content: center;
        background: #ffffff;
        color: #000000;
        font-size: 10px;
        font-weight: 800;
        line-height: 1;
        border-radius: 999px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    }
}

/* ============================================================
   8. RESPONSIVE CONSOLIDADO (evita duplicación)
   ============================================================ */
@media (max-width: 1100px) {
    .site-header .navbar { padding-left: 32px; padding-right: 32px; }
    .site-header .menu { gap: 12px; }
    .site-header .menu li { padding-left: 8px; padding-right: 8px; }
}

@media (max-width: 768px) {
    .site-header .navbar { height: 72px; padding: 0 20px; }
    .site-header .logo img { width: 112px; }
    .site-header .icons { display: none; }
    .site-header .hamburger { display: flex; }
    .site-header .menu {
        top: 72px;
        height: calc(100dvh - 72px);
        gap: 8px;
        padding-top: 34px;
    }
    .site-header .menu li { padding: 14px; }
    .site-header .menu a { font-size: 12px; letter-spacing: 3px; }

    .site-footer { padding: 42px 20px 28px; }
    .site-footer .footer-content { gap: 28px; flex-direction: column; align-items: center; text-align: center; }
    .site-footer .footer-column { min-width: 0; width: 100%; }
    .site-footer .footer-logo img { width: 135px; }
    .site-footer .copyright { margin-top: 28px; font-size: 10px; }
}

@media (max-width: 420px) {
    .cart-drawer { max-width: 100vw; width: 100%; }
}

/* Respeto por usuarios con movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .site-header,
    .cart-badge {
        animation: none;
    }
}

/* ============================================================
   DESCUENTOS AUTOMÁTICOS (FASE 3)
   ============================================================ */
.azka-old-price {
    color: #888888;
    text-decoration: line-through;
    margin-right: 8px;
    font-weight: 400;
}

.azka-discount-price {
    color: #ffffff;
    font-weight: 800;
}

.azka-discount-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    background: linear-gradient(135deg, #ff5b29, #ff8a00);
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    vertical-align: middle;
}
/* ============================================================
   NOTIFICACIONES DE LA TIENDA (AZKA STUDIO)
   Sistema propio de la web pública — reemplaza los alert()
   nativos del navegador. Estética editorial / luxury:
   grafito profundo, filos sutiles, glow discreto.
   ============================================================ */
#azka-notificaciones {
    position: fixed;
    top: 104px;
    right: 24px;
    z-index: 2147483000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    width: min(380px, calc(100vw - 48px));
    pointer-events: none;
}
.azk-toast {
    --toast-accent: rgba(244, 244, 245, 0.9);
    --toast-glow: rgba(255, 255, 255, 0.1);
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    width: 100%;
    padding: 15px 14px 17px 20px;
    background: linear-gradient(155deg, #16161a 0%, #0f0f12 55%, #0a0a0d 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    box-shadow:
        0 26px 64px -20px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    opacity: 0;
    transform: translateX(28px) translateY(-10px) scale(0.985);
    transition:
        opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.5s ease,
        box-shadow 0.5s ease;
}
.azk-toast--success { --toast-accent: #34c759; --toast-glow: rgba(52, 199, 89, 0.32); }
.azk-toast--error   { --toast-accent: #ff453a; --toast-glow: rgba(255, 69, 58, 0.32); }
.azk-toast--warning { --toast-accent: #ffd60a; --toast-glow: rgba(255, 214, 10, 0.28); }
.azk-toast--info    { --toast-accent: #c7c7cd; --toast-glow: rgba(199, 199, 205, 0.26); }
.azk-toast--visible {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
    border-color: color-mix(in srgb, var(--toast-accent) 24%, transparent);
    box-shadow:
        0 26px 64px -20px rgba(0, 0, 0, 0.9),
        0 0 30px -8px var(--toast-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.azk-toast--leaving {
    opacity: 0;
    transform: translateX(34px) scale(0.97);
    transition-duration: 0.38s;
}
.azk-toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, transparent, var(--toast-accent), transparent);
    opacity: 0.85;
}
.azk-toast__glow {
    position: absolute;
    top: -46px;
    right: -30px;
    width: 150px;
    height: 110px;
    background: radial-gradient(closest-side, var(--toast-glow), transparent 72%);
    pointer-events: none;
}
.azk-toast__shine {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -70%;
    width: 45%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 45%,
        rgba(255, 255, 255, 0.085) 50%,
        rgba(255, 255, 255, 0.05) 55%,
        transparent 100%
    );
    transform: skewX(-18deg);
    pointer-events: none;
}
.azk-toast--visible .azk-toast__shine {
    animation: azkToastShine 1.15s cubic-bezier(0.3, 0.6, 0.3, 1) 0.12s forwards;
}
@keyframes azkToastShine {
    to { left: 135%; }
}
.azk-toast__icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-top: 1px;
    border-radius: 50%;
    color: var(--toast-accent);
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.06), transparent 60%),
        color-mix(in srgb, var(--toast-accent) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--toast-accent) 28%, transparent);
    box-shadow: inset 0 0 12px -4px var(--toast-glow);
}
.azk-toast__icon svg {
    width: 17px;
    height: 17px;
}
.azk-toast__body {
    flex: 1;
    min-width: 0;
    padding-top: 1px;
}
.azk-toast__title {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.6px;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--toast-accent) 80%, #ffffff);
    margin-bottom: 4px;
}
.azk-toast__message {
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: 0.2px;
    color: #f4f4f5;
    overflow-wrap: break-word;
}
.azk-toast__close {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin: -2px -4px 0 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.38);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.azk-toast__close svg {
    width: 13px;
    height: 13px;
}
.azk-toast__close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}
.azk-toast__close:focus-visible {
    outline: 1px solid rgba(255, 255, 255, 0.4);
    outline-offset: 1px;
}
.azk-toast__progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
}
.azk-toast__progress span {
    display: block;
    height: 100%;
    background: var(--toast-accent);
    opacity: 0.5;
    transform-origin: left center;
    animation-name: azkToastProgress;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}
@keyframes azkToastProgress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}
@media (max-width: 640px) {
    #azka-notificaciones {
        top: 96px;
        right: 14px;
        left: 14px;
        width: auto;
        align-items: stretch;
        gap: 10px;
    }

    .azk-toast {
        transform: translateY(-18px) scale(0.99);
    }

    .azk-toast--leaving {
        transform: translateY(-16px) scale(0.98);
    }
}
@media (prefers-reduced-motion: reduce) {
    .azk-toast,
    .azk-toast--leaving {
        transition-duration: 0.01s;
    }

    .azk-toast--visible .azk-toast__shine {
        animation: none;
    }
}
.auth-box .recordar-sesion { margin-bottom: 18px; }
.auth-box label.recordar-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    cursor: pointer;
    user-select: none;
}
.auth-box label.recordar-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    display: inline-grid;
    place-content: center;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 2px;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}
.auth-box label.recordar-label input[type="checkbox"]:hover {
    border-color: #ffffff;
}
.auth-box label.recordar-label input[type="checkbox"]:checked {
    background: #ffffff;
    border-color: #ffffff;
}
.auth-box label.recordar-label input[type="checkbox"]:checked::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #000000;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.auth-box label.recordar-label span {
    font-size: 9px;
    letter-spacing: 1.8px;
    color: #888888;
    text-transform: uppercase;
    font-weight: 600;
    transition: color 0.3s ease;
}
.auth-box label.recordar-label:hover span {
    color: #dddddd;
}
@media (prefers-reduced-motion: reduce) {
    .auth-box label.recordar-label input[type="checkbox"],
    .auth-box label.recordar-label span {
        transition: none;
    }
}
/* ==========================================
   LÍNEA CORTA "MANTENER MI SESIÓN INICIADA"
   (la explicación completa vive en el aviso previo
   AZKA_UX.showSesionChoice; aquí solo un eco discreto)
   ========================================== */
.recordar-mini {
    margin: 7px 0 0;
    min-height: 12px;
    font-size: 8.5px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #5e5e5e;
    opacity: 0;
    transform: translateY(-3px);
    transition: opacity 0.45s ease,
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.recordar-mini.is-activa {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .recordar-mini {
        transition: none;
        transform: none;
    }
}
