:root {
    --hs-bg: #040b17;
    --hs-bg-soft: #091427;
    --hs-surface: rgba(255, 255, 255, 0.08);
    --hs-surface-strong: rgba(255, 255, 255, 0.14);
    --hs-surface-light: #ffffff;
    --hs-border: rgba(255, 255, 255, 0.14);
    --hs-text: #eef6ff;
    --hs-text-dark: #0c1729;
    --hs-muted: #98a9c2;
    --hs-cyan: #16c7ff;
    --hs-blue: #3a7dff;
    --hs-magenta: #ff0aa5;
    --hs-magenta-strong: #ff008c;
    --hs-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    --hs-radius-xl: 32px;
    --hs-radius-lg: 24px;
    --hs-radius-md: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(22, 199, 255, 0.16), transparent 28%),
        radial-gradient(circle at 85% 18%, rgba(255, 10, 165, 0.16), transparent 25%),
        linear-gradient(135deg, #030816 0%, #07111f 48%, #091a33 100%);
    color: var(--hs-text);
}

.login-page,
.dashboard-page {
    min-height: 100vh;
}

.auth-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 18px;
}

.auth-panel__inner {
    width: min(100%, 470px);
}

.brand-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.brand-logo {
    width: min(100%, 220px);
    display: block;
}

.brand-badge,
.hero-tag,
.dashboard-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(22, 199, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--hs-text);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.auth-card {
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--hs-radius-xl);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.9));
    color: var(--hs-text-dark);
    box-shadow: var(--hs-shadow);
    backdrop-filter: blur(18px);
}

.auth-card__header h1 {
    margin: 0 0 10px;
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.eyebrow {
    margin-bottom: 10px;
    color: var(--hs-magenta-strong);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 800;
}

.support-copy {
    margin: 0;
    color: #4d5d75;
    font-size: 1rem;
    line-height: 1.6;
}

.auth-alert {
    border: 0;
    border-radius: 18px;
    margin: 24px 0 0;
}

.auth-form {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.form-label,
.form-hint {
    color: #415169;
    font-size: 0.9rem;
    font-weight: 600;
}

.form-control {
    border: 1px solid rgba(8, 20, 41, 0.08);
    border-radius: 18px;
    padding: 0.95rem 1rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--hs-text-dark);
    box-shadow: none;
}

.form-control:focus {
    border-color: rgba(22, 199, 255, 0.5);
    box-shadow: 0 0 0 0.22rem rgba(22, 199, 255, 0.14);
}

.auth-submit {
    border: 0;
    border-radius: 18px;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, var(--hs-cyan), var(--hs-blue) 45%, var(--hs-magenta));
    box-shadow: 0 18px 38px rgba(53, 103, 255, 0.28);
    font-weight: 700;
}

.auth-submit:hover,
.auth-submit:focus {
    background: linear-gradient(135deg, #11d0ff, #3a7dff 45%, #ff089e);
}

.auth-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(8, 20, 41, 0.08);
}

.footer-label {
    display: block;
    margin-bottom: 6px;
    color: #64758e;
    font-size: 0.84rem;
}

.hero-panel {
    position: relative;
    align-items: stretch;
    justify-content: stretch;
    padding: 18px 18px 18px 0;
}

.hero-scene {
    position: relative;
    flex: 1;
    overflow: hidden;
    border-radius: 40px 0 0 40px;
    border: 1px solid var(--hs-border);
    background-color: #081325;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: var(--hs-shadow);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 14%, rgba(255, 10, 165, 0.22), transparent 22%),
        radial-gradient(circle at 16% 20%, rgba(22, 199, 255, 0.18), transparent 20%),
        linear-gradient(180deg, rgba(3, 7, 15, 0.06), rgba(3, 7, 15, 0.3));
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100%;
    padding: 52px;
}

.hero-content h2 {
    max-width: 760px;
    margin: 16px 0 12px;
    font-size: clamp(2.3rem, 4vw, 4.8rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-content p {
    max-width: 660px;
    margin: 0;
    color: rgba(238, 246, 255, 0.84);
    font-size: 1.05rem;
    line-height: 1.7;
}

.hero-grid,
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.hero-card,
.dashboard-metric {
    min-height: 170px;
    padding: 22px;
    border-radius: var(--hs-radius-lg);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.hero-card--dark {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-card--light {
    color: var(--hs-text-dark);
    background: rgba(255, 255, 255, 0.9);
}

/* Modal Premium Backdrop */
.modal-backdrop.show {
    opacity: 0.95 !important;
    background-color: rgba(2, 5, 12, 0.85);
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

/* Custom Tooltip Speed & Style */
.tooltip {
    --bs-tooltip-bg: #16c7ff;
    --bs-tooltip-color: #02050c;
    --bs-tooltip-padding-y: 6px;
    --bs-tooltip-padding-x: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

/* App Sidebar */
.hs-sidebar {
    width: 80px;
    background: rgba(6, 13, 26, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1040;
    backdrop-filter: blur(14px);
}

.hs-sidebar .brand-logo {
    width: 42px;
    height: auto;
    margin-bottom: 40px;
    filter: drop-shadow(0 0 12px rgba(22, 199, 255, 0.4));
}

.hs-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hs-menu-item {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #8fa0b9;
    text-decoration: none;
    font-size: 1.25rem;
    transition: all 0.2s ease-in-out;
    background: transparent;
}

.hs-menu-item:hover, .hs-menu-item.active {
    color: white;
    background: rgba(22, 199, 255, 0.15);
    box-shadow: inset 0 0 0 1px rgba(22, 199, 255, 0.25);
}

.hs-separator {
    width: 30px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 12px 0;
}

.hs-main-content {
    margin-left: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa; /* Fondo blanco/claro premium */
    color: #1e293b; /* Texto oscuro para contraste */
}

/* Premium Buttons */
.btn-premium {
    border: none;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 50rem;
    color: white;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-premium:hover {
    transform: translateY(-2px);
    color: white;
}

.btn-premium-cyan {
    background: linear-gradient(135deg, #16c7ff, #00a8e8);
    box-shadow: 0 4px 15px rgba(22, 199, 255, 0.3);
}

.btn-premium-cyan:hover {
    box-shadow: 0 6px 20px rgba(22, 199, 255, 0.4);
}

.btn-premium-magenta {
    background: linear-gradient(135deg, #ff0aa5, #d90088);
    box-shadow: 0 4px 15px rgba(255, 10, 165, 0.3);
}

.btn-premium-magenta:hover {
    box-shadow: 0 6px 20px rgba(255, 10, 165, 0.4);
}

.btn-premium-amber {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-premium-amber:hover {
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-premium-emerald {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-premium-emerald:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Glassmorphism Cards on Light Background */
.hs-glass-card-light {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hs-glass-card-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.hs-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Loader Overlay */
.hs-loader-overlay {
    position: fixed;
    inset: 0;
    background: #02050c;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease-in-out, visibility 0.6s;
}

.hs-loader-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.hs-loader-logo {
    width: 100px;
    height: 100px;
    animation: pulseGlow 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 30px;
}

@keyframes pulseGlow {
    0%, 100% { filter: drop-shadow(0 0 15px rgba(22, 199, 255, 0.6)) drop-shadow(0 0 30px rgba(255, 10, 165, 0.4)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 25px rgba(22, 199, 255, 0.9)) drop-shadow(0 0 50px rgba(255, 10, 165, 0.6)); transform: scale(1.05); }
}

.hs-loader-text {
    color: #16c7ff;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    height: 24px;
    text-align: center;
    animation: fadeInOut 1.5s infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-card--gradient {
    background: linear-gradient(155deg, rgba(22, 199, 255, 0.92), rgba(255, 10, 165, 0.88));
}

.hero-card__label,
.dashboard-metric span {
    display: block;
    margin-bottom: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.78;
}

.hero-card strong,
.dashboard-metric strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-card p {
    margin-top: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.dashboard-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 28px;
}

.dashboard-card {
    width: min(100%, 1120px);
    padding: 34px;
    border: 1px solid var(--hs-border);
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(10, 21, 40, 0.92), rgba(7, 15, 30, 0.96));
    box-shadow: var(--hs-shadow);
}

.dashboard-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.dashboard-logo {
    width: min(100%, 240px);
}

.dashboard-copy {
    margin-top: 34px;
}

.dashboard-copy h1 {
    margin: 18px 0 10px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.dashboard-copy p {
    max-width: 640px;
    margin: 0;
    color: var(--hs-muted);
    font-size: 1.04rem;
}

.dashboard-metric {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 991.98px) {
    .auth-panel {
        padding: 24px 14px;
    }

    .auth-card {
        padding: 26px;
    }

    .auth-footer,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .brand-copy {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-card__header h1 {
        font-size: 1.75rem;
    }
}
