/* Estructura Principal - Mobile First */
.site-header {
    background-color: rgba(255, 253, 248, 0.85); /* Translúcido para Glassmorphism */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: var(--z-nav);
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

.header-container {
    width: var(--wrap-width);
    margin: 0 auto;
    height: 60px; 
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.025em;
    text-decoration: none;
    color: var(--color-ink);
    transition: opacity 0.2s;
    flex-shrink: 0;
    margin-right: 16px;
}

.brand-logo:hover {
    opacity: 0.8;
}

.brand-logo img {
    height: 36px;
    width: auto;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
}

/* Ocultar navegacion principal en mobile (se usa el Bottom Nav) */
.main-nav, .header-actions {
    display: none;
}

/* Bottom Navigation Bar (Mobile Only) - Floating Pill Style */
.bottom-nav {
    display: flex;
    position: fixed;
    bottom: 20px; /* Separado del fondo */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 50px;
    height: 70px;
    z-index: var(--z-nav);
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 0 10px;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
    text-decoration: none;
    font-size: 0.75rem;
    gap: 4px;
    flex: 1;
    height: 100%;
    transition: all 0.2s ease;
}

.bottom-nav-item.active {
    color: var(--color-accent);
    font-weight: 600;
}

.bottom-nav-item:hover {
    color: var(--color-ink);
    transform: translateY(-2px);
}

.bottom-nav-item svg {
    width: 22px;
    height: 22px;
}

/* Contenedor Principal */
.container {
    width: var(--wrap-width);
    margin: 0 auto;
    padding: var(--space-xl) 0 calc(90px + var(--space-xl)); /* Espacio para el bottom nav flotante */
}

/* Footer Moderno */
.site-footer {
    background-color: #111;
    color: #fff;
    padding: 4rem 0 calc(90px + 2rem);
    margin-top: 4rem;
    width: 100%;
    display: block;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-container {
    width: var(--wrap-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-top: 1rem;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-col h4 {
    font-family: var(--font-ui, sans-serif);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1rem;
}

.footer-col nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: #fff;
}

/* Responsivo (Desktop) */
@media (min-width: 768px) {
    .header-container {
        height: 72px;
        width: 100%;
        max-width: 1400px;
        padding: 0 2rem;
    }
    
    .brand-logo {
        font-size: 1.4rem;
    }

    .main-nav {
        display: flex;
        gap: 0.5rem;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .header-actions {
        display: flex;
        gap: 1rem;
        align-items: center;
    }

    .main-nav a {
        color: var(--color-ink);
        font-weight: 600;
        font-size: 0.9rem;
        text-decoration: none;
        padding: 0.5rem 0.8rem;
        border-radius: 50px;
        transition: all 0.2s ease;
    }

    .main-nav a:hover, .main-nav a.active {
        background-color: rgba(0,0,0,0.05);
        color: var(--color-accent);
    }

    .bottom-nav {
        display: none; /* Ocultar en desktop */
    }

    .container {
        padding: 3rem 0;
    }
    
    .site-footer {
        padding: 5rem 0;
    }
    
    .footer-container {
        display: grid;
        grid-template-columns: 2fr 3fr;
        gap: 4rem;
    }
    
    .footer-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}
