/* === LOADER === */
#loader {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--pice-blue);
    transition: opacity .5s;
}

/* === CANVAS 3D === */
#canvas-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* === HEADER === */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.5);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 220px;
}

    .brand img {
        height: 40px;
        width: auto;
        display: block;
    }

.brand-tagline {
    font-size: .88rem;
    line-height: 1.2;
    color: var(--text-gray);
    font-weight: 500;
    letter-spacing: .01em;
    white-space: nowrap;
}

    .brand-tagline strong {
        color: var(--text-dark);
        font-weight: 700;
    }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    text-decoration: none;
    transition: all .3s;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

    .icon-btn:hover {
        background: rgba(80,120,255,0.1);
        color: var(--pice-blue);
    }

    .icon-btn svg {
        width: 22px;
        height: 22px;
        fill: currentColor;
    }

.cart-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--pice-orange);
    border-radius: 50%;
    border: 1px solid #fff;
}

/* === MINI CARRITO === */
.mini-cart {
    position: absolute;
    top: 65px;
    right: 0;
    width: 360px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
    border: 1px solid rgba(0,0,0,.05);
    padding: 25px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all .3s cubic-bezier(.16,1,.3,1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

    .mini-cart.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.cart-header {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 15px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    background: #f0f4ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.item-name  { font-weight: 600; font-size: .95rem; color: var(--text-dark); }
.item-price { font-size: .9rem; color: var(--pice-blue); font-weight: 700; margin-top: 4px; }

.item-remove {
    color: #ccc;
    cursor: pointer;
    transition: .2s;
    align-self: center;
    padding: 5px;
}

    .item-remove:hover { color: var(--pice-orange); }

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    border-top: 2px solid #f3f4f6;
    padding-top: 20px;
}

/* === DIVISOR VERTICAL === */
.v-divider {
    width: 1px;
    height: 24px;
    background: #e5e7eb;
    margin: 0 5px;
}

/* === AVATAR DE USUARIO EN HEADER === */
.user-avatar-btn { text-decoration: none; }
.user-avatar-mini {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5278f5, #4169ea);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 11px;
    display: grid;
    place-items: center;
    letter-spacing: .03em;
}

/* === HAMBURGUESA === */
.menu-toggle {
    width: 24px;
    height: 18px;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-left: 10px;
}

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--text-dark);
        transition: .3s;
    }

/* === MENÚ PANTALLA COMPLETA === */
.fullscreen-menu {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.98);
    z-index: 90;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease;
}

    .fullscreen-menu.open {
        opacity: 1;
        pointer-events: all;
    }

.menu-links a {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 3rem;
    text-decoration: none;
    color: var(--text-dark);
    margin: 15px 0;
    text-align: center;
    transition: color .3s;
}

    .menu-links a:hover { color: var(--pice-blue); }

/* === DOCK LATERAL === */
.side-dock {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 88;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: auto;
}

    .side-dock .dock-item {
        width: 46px;
        height: 46px;
        border-radius: 999px;
        background: rgba(255,255,255,0.82);
        border: 1px solid rgba(15,23,42,.10);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 18px 40px rgba(15,23,42,.12);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-dark);
        text-decoration: none;
        transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
        position: relative;
    }

        .side-dock .dock-item:hover {
            transform: translateY(-1px);
            background: rgba(80,120,255,0.10);
            color: var(--pice-blue);
            box-shadow: 0 20px 46px rgba(80,120,255,.18);
        }

        .side-dock .dock-item.is-active {
            background: var(--pice-blue);
            color: #fff;
            box-shadow: 0 22px 50px rgba(80,120,255,.32);
        }

        .side-dock .dock-item svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
        }

    .side-dock .dock-tooltip {
        position: absolute;
        right: 58px;
        top: 50%;
        transform: translateY(-50%) translateX(6px);
        opacity: 0;
        pointer-events: none;
        white-space: nowrap;
        font-size: .72rem;
        letter-spacing: .16em;
        text-transform: uppercase;
        padding: 7px 11px;
        border-radius: 999px;
        background: rgba(15,23,42,.74);
        color: #fff;
        box-shadow: 0 14px 40px rgba(15,23,42,.28);
        transition: opacity .18s ease, transform .18s ease;
    }

    .side-dock .dock-item:hover .dock-tooltip {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }

/* === SCROLL DOWN HINT === */
@keyframes scrollHintBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

.scroll-down-hint {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    z-index: 150;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(15,23,42,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: opacity .25s ease, transform .25s ease;
}

    .scroll-down-hint:hover { transform: translateX(-50%) translateY(-2px); }

.scroll-down-icon {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 28px;
    line-height: 1;
    color: var(--pice-blue);
    transform: translateY(-2px);
}

.scroll-down-hint.is-bouncing { animation: scrollHintBounce 1.25s ease-in-out infinite; }

.scroll-down-hint.is-hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(14px);
    pointer-events: none;
}

/* === SELECTOR DE IDIOMA === */
.lang-selector {
    position: relative;
}

.lang-selector-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1.5px solid rgba(80,120,255,.18);
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: .76rem;
    letter-spacing: .05em;
    color: var(--text-gray);
    padding: 5px 9px;
    transition: color .2s, background .2s, border-color .2s;
    white-space: nowrap;
}

    .lang-selector-btn:hover,
    .lang-selector-btn.is-open {
        color: var(--pice-blue);
        border-color: var(--pice-blue);
        background: rgba(80,120,255,.06);
    }

.lang-chevron {
    transition: transform .2s;
}

.lang-selector-btn.is-open .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid rgba(80,120,255,.12);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(80,120,255,.14);
    min-width: 150px;
    z-index: 9999;
    overflow: hidden;
    padding: 4px 0;
}

    .lang-dropdown.is-open { display: block; }

.lang-option-form { margin: 0; }

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 14px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: .84rem;
    color: var(--text-gray);
    transition: background .15s, color .15s;
    text-align: left;
}

    .lang-option:hover { background: rgba(80,120,255,.07); color: var(--pice-blue); }

    .lang-option.is-active {
        color: var(--pice-blue);
        font-weight: 700;
        background: rgba(80,120,255,.05);
    }

.lang-option-short {
    font-weight: 700;
    font-size: .75rem;
    letter-spacing: .05em;
    min-width: 22px;
}

.lang-option-label { font-weight: 500; }
