/* ============================================
   HS STUDIO - BASE
   ============================================ */

:root {
    --hs-primary: #0891b2;
    --hs-primary-dark: #0e7490;
    --hs-bg: #f8fafc;
    --hs-card-bg: #ffffff;
    --hs-text: #0f172a;
    --hs-text-muted: #64748b;
    --hs-border: #e2e8f0;
    --hs-shadow: 0 4px 12px rgba(0,0,0,0.06);
    --hs-radius: 12px;
    --hs-radius-sm: 6px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--hs-bg);
    color: var(--hs-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.hs-error {
    padding: 40px;
    text-align: center;
    color: #ef4444;
}

.hs-empty-state {
    padding: 60px 20px;
    text-align: center;
    color: var(--hs-text-muted);
}

.hs-landing-wrap,
.hs-studio-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px 40px;
    min-height: 100vh;
}

/* ============================================
   NAVBAR (studio)
   ============================================ */
.hs-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.hs-nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hs-logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--hs-primary);
    font-family: 'Inter', sans-serif;
}

.hs-nav-links {
    display: flex;
    gap: 4px;
}

.hs-nav-links a {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--hs-text-muted);
    text-decoration: none;
    transition: all 0.2s;
}

.hs-nav-links a:hover {
    background: rgba(8,145,178,0.06);
    color: var(--hs-text);
}

.hs-nav-links a.active {
    background: rgba(8,145,178,0.1);
    color: var(--hs-primary);
    font-weight: 600;
}

.hs-logout-btn {
    background: none;
    border: none;
    color: var(--hs-text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hs-logout-btn:hover {
    background: rgba(239,68,68,0.08);
    color: #ef4444;
}

/* ============================================
   MAIN
   ============================================ */
.hs-main {
    padding-top: 76px;
    padding-bottom: 40px;
    min-height: calc(100vh - 60px);
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* ============================================
   GRID VIEW
   ============================================ */
.hs-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    padding: 16px;
    justify-content: start;
    align-content: start;
}

.hs-grid-view .hs-billions-card {
    width: 100%;
    margin: 0;
}

@media (max-width: 768px) {
    .hs-grid-view {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 8px 12px !important;
        justify-content: stretch !important;
        align-content: start !important;
    }
    .hs-grid-view .hs-billions-card {
        width: 100%;
        margin: 0;
    }
    .hs-nav-links {
        display: none;
    }
}

/* ============================================
   PAGINACIÓN
   ============================================ */
.hs-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hs-page-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--hs-border);
    background: white;
    color: var(--hs-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.hs-page-arrow:hover {
    border-color: var(--hs-primary);
    color: var(--hs-primary);
}

.hs-page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hs-page-num {
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--hs-border);
    background: white;
    color: var(--hs-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.hs-page-num:hover {
    border-color: var(--hs-primary);
    color: var(--hs-primary);
}

.hs-page-num.active {
    background: var(--hs-primary);
    color: white;
    border-color: var(--hs-primary);
    font-weight: 700;
}

.hs-page-dots {
    color: var(--hs-text-muted);
    padding: 0 4px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hs-landing-wrap,
    .hs-studio-wrap {
        padding: 0 8px 80px;
    }
    .hs-main {
        padding-top: 16px;
        padding-bottom: 80px;
    }
}