/* ============================================
   FLOATING BOTTOM NAVIGATION - INSTITUTIONAL STYLES
   Sistema Integral de Información del Litio (SIIL)
   ============================================ */

:root {
    --nav-guinda: #9B2247;
    --nav-guinda-hover: #7f1c3a;
    --nav-verde: #1E5B4F;
    --nav-dorado: #A57F2C;
    --nav-gris: #94a3b8;
    --nav-gris-claro: #e2e8f0;
    --nav-bg: rgba(255, 255, 255, 0.98);
    --nav-shadow: 0 -4px 24px rgba(155, 34, 71, 0.08);
    --nav-border: rgba(155, 34, 71, 0.12);
}

.site-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0.65rem 1rem;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--nav-border);
    box-shadow: var(--nav-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-bottom-nav__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    color: var(--nav-gris);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    min-width: 72px;
    padding: 0.4rem 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-bottom-nav__item i {
    font-size: 1.15rem;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover state */
.site-bottom-nav__item:hover {
    color: var(--nav-guinda);
    background: rgba(155, 34, 71, 0.05);
}

.site-bottom-nav__item:hover i {
    transform: translateY(-2px);
}

/* Active state */
.site-bottom-nav__item.is-active {
    color: var(--nav-guinda);
    background: rgba(155, 34, 71, 0.08);
}

.site-bottom-nav__item.is-active::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: linear-gradient(90deg, var(--nav-guinda) 0%, var(--nav-dorado) 100%);
    border-radius: 0 0 3px 3px;
}

.site-bottom-nav__item.is-active i {
    transform: scale(1.1);
}

/* Focus state for accessibility */
.site-bottom-nav__item:focus {
    outline: 2px solid var(--nav-guinda);
    outline-offset: 2px;
}

.site-bottom-nav__item:focus:not(:focus-visible) {
    outline: none;
}

/* Tablet and Desktop styles */
@media (min-width: 768px) {
    .site-bottom-nav {
        left: 50%;
        transform: translateX(-50%);
        max-width: 580px;
        border-top-left-radius: 1rem;
        border-top-right-radius: 1rem;
        padding: 0.75rem 1.5rem;
        box-shadow: 0 -6px 32px rgba(155, 34, 71, 0.12);
    }

    .site-bottom-nav__item {
        font-size: 0.7rem;
        min-width: 80px;
        padding: 0.5rem 0.75rem;
    }

    .site-bottom-nav__item i {
        font-size: 1.25rem;
    }
}

/* Large desktop styles */
@media (min-width: 1024px) {
    .site-bottom-nav {
        max-width: 640px;
        padding: 0.85rem 2rem;
    }

    .site-bottom-nav__item {
        font-size: 0.72rem;
        min-width: 90px;
    }
}

/* Animation for page load - Mobile */
@keyframes slideUpMobile {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Animation for page load - Desktop (with centering) */
@keyframes slideUpDesktop {
    from {
        transform: translateX(-50%) translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* Apply mobile animation by default */
.site-bottom-nav {
    animation: slideUpMobile 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Apply desktop animation on larger screens */
@media (min-width: 768px) {
    .site-bottom-nav {
        animation: slideUpDesktop 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Print styles */
@media print {
    .site-bottom-nav {
        display: none;
    }
}