.caja {
    background: transparent;
    color: white;
    padding: 20px;
    border: 2px solid rgb(255, 255, 255);
    width: 250px;
    border-radius: 4px;
    animation: aparecer 0.5s ease forwards;
    opacity: 0;
    transition: transform 0.2s ease;

    display: inline-block;
}




body {
    animation: aparecer 0.5s ease forwards;
    background-color: #000;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
}


::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}


::-webkit-scrollbar-button {
    display: none;
}


* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

header {
    width: 100%;
    padding: 10px 0 0 20px;
    margin: 0 0 -10px 0;
    border-bottom: 2px solid #ffffff;
    position: relative;
    margin-bottom: -10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.workspace-title-header {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    margin-top: -10px;
}

.workspace-title-header h2 {
    font-size: 48px;
    font-weight: 700;
    color: #000000;
    margin: 0;
    letter-spacing: 2px;
    white-space: nowrap;
    text-transform: uppercase;
    position: relative;
    font-family: 'Roboto', sans-serif;
    text-shadow:

        -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 2px 0 #fff,
        -2px 0px 0 #fff, 2px 0px 0 #fff, 0px -2px 0 #fff, 0px 2px 0 #fff,

        -1.5px -1.5px 0 #fff, 1.5px -1.5px 0 #fff, -1.5px 1.5px 0 #fff, 1.5px 1.5px 0 #fff,

        -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff,
        -1px 0px 0 #fff, 1px 0px 0 #fff, 0px -1px 0 #fff, 0px 1px 0 #fff,

        -0.5px -0.5px 0 #fff, 0.5px -0.5px 0 #fff, -0.5px 0.5px 0 #fff, 0.5px 0.5px 0 #fff,

        0 0 1px #fff;
}

.workspace-title-header h2::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    color: #ffffff;
    text-shadow:

        -1px -1px 0 rgba(255, 255, 255, 0.8),
        1px -1px 0 rgba(255, 255, 255, 0.8),
        -1px 1px 0 rgba(255, 255, 255, 0.8),
        1px 1px 0 rgba(255, 255, 255, 0.8),

        0 0 3px #fff,
        0 0 6px #fff,
        0 0 10px rgba(255, 255, 255, 0.5);
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    animation: writing-effect 6s ease-in-out infinite;
}

@keyframes writing-effect {
    0% {
        clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    }

    45% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    55% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    100% {
        clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    }
}

.Title {
    color: #ffffff;
    font-size: 60px;
    font-weight: bold;
    font-family: "Roboto", sans-serif;
    margin: 0;
    display: inline-block;
}

.btn-signin {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 6px;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-signin:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-signin:active {
    transform: translateY(0);
}


input {
    background-color: transparent;
    border: solid 2px;
    border-color: #ffffff;
    color: white;

}


input:focus {
    outline: none;
    border-color: rgb(255, 255, 255);
}

.login {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.4s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.login:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.9);
}

.login:active {
    transform: translateY(0px);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

input:invalid {
    border: 2px solid #ffffff;
}

input:valid {
    border: 2px solid #ffffff;
}

.aviso {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);

    background: #111;
    color: #fff;
    padding: 12px 20px;
    border: 2px solid #fff;
    border-radius: 6px;
    font-size: 16px;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.aviso.show {
    opacity: 1;
}

.user_home {
    min-height: 100vh;
    padding: 0 !important;
    overflow-x: hidden;
    text-align: left !important;
}

.main-content {
    position: static !important;
    margin: 0 !important;
    margin-top: 20px !important;
    padding: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    float: none !important;
    clear: both !important;
}

.main-content h1,
.main-content p,
.main-content form {
    text-align: left !important;
    width: 100% !important;
    color: white !important;
    margin-bottom: 15px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

.main-content form button {
    margin: 0 !important;
    text-align: left !important;
}

.user_home .p {
    color: white;
}

.inbox-wrapper {
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: 'Roboto', sans-serif;
}

.account-wrapper {
    position: fixed;
    top: 20px;
    right: 100px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: 'Roboto', sans-serif;
}

.btn-inbox,
.btn-account {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    color: white;
    overflow: hidden;
    will-change: transform;
}

.btn-inbox::before,
.btn-account::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-inbox:hover,
.btn-account:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3), 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-inbox:hover::before,
.btn-account:hover::before {
    opacity: 1;
}

.btn-inbox:active,
.btn-account:active {
    transform: scale(0.95);
}

.badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 6px;
    border-radius: 50%;
    border: 2px solid #000;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    animation: bounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounce {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}


.inbox-panel,
.account-panel {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    width: 350px;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    padding: 20px;
    z-index: 10000;
    transform-origin: top right;
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    visibility: hidden;
}

.inbox-panel.show,
.account-panel.show {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    visibility: visible;
}

.account-panel {
    width: 250px;
}

.panel-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 15px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-title1 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 15px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}



#listaInvitaciones {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.invitacion {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s ease;
}

.invitacion:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(-2px);
    border-color: rgba(255, 255, 255, 0.1);
}

.invitacion:last-child {
    margin-bottom: 0;
}

.invitacion strong {
    color: #fff;
    font-size: 15px;
    display: block;
    margin-bottom: 4px;
}

.invitacion small {
    color: #aaa;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.acciones {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}

.btn-accept,
.btn-reject {
    flex: 1;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.3px;
}

.btn-accept {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: none;
}

.btn-reject {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 82, 82, 0.3);
    color: rgba(255, 82, 82, 0.9);
}

.btn-accept:hover {
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.btn-reject:hover {
    box-shadow: 0 0 12px rgba(255, 82, 82, 0.4);
    border-color: rgba(255, 82, 82, 0.6);
    color: rgba(255, 82, 82, 1);
}


#listaInvitaciones p {
    color: rgba(255, 255, 255, 0.4) !important;
    font-style: italic;
    font-size: 14px;
    padding: 20px 0;
}


.account-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 15px;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(-3px);
}

.menu-item-logout:hover {
    background: rgba(255, 82, 82, 0.1);
    border-color: rgba(255, 82, 82, 0.3);
    color: #ff5252;
}

.menu-icon {
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
}

.menu-text {
    flex: 1;
    font-weight: 500;
}


.settings-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.settings-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.settings-section:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.settings-section h3 {
    color: white;
    margin: 0 0 20px 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-section label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    font-size: 14px;
}

.settings-section input {
    width: 100%;
    max-width: 400px;
    padding: 10px 12px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.btn-save {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    transition: all 0.4s ease;
    box-shadow: none;
}

.btn-save:hover {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.btn-delete-account {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 82, 82, 0.4);
    color: white;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    transition: all 0.4s ease;
    box-shadow: none;
}

.btn-delete-account:hover {
    box-shadow: 0 0 15px rgba(255, 82, 82, 0.5);
    border-color: rgba(255, 82, 82, 0.7);
    transform: translateY(-1px);
}

.danger-zone {
    border-color: rgba(255, 82, 82, 0.3) !important;
    background: rgba(255, 0, 0, 0.02) !important;
}

.danger-zone h3 {
    color: #ff5252;
}


@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}




.welcome-section {
    margin-bottom: 40px;
    animation: aparecer 0.6s ease forwards;
}

.welcome-section-centered {
    margin-bottom: 40px;
    animation: aparecer 0.6s ease forwards;
    text-align: center !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.welcome-section-centered h1 {
    font-size: 64px !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 20px !important;
    letter-spacing: -1px;
}

.welcome-section h1 {
    font-size: 42px !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px !important;
    letter-spacing: -0.5px;
}

.welcome-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    margin-top: 5px;
    font-weight: 400;
}


.actions-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: aparecer 0.8s ease forwards 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
    max-width: 700px;
}

.actions-title {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.3px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}


.btn-action-primary {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    text-decoration: none;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.btn-action-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.6s ease;
}

.btn-action-primary::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0) 30%,
            rgba(255, 255, 255, 0) 70%,
            rgba(255, 255, 255, 0.1) 100%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}





.btn-action-primary:hover::before {
    left: 100%;
}

.btn-action-primary:hover::after {
    opacity: 1;
}

.btn-action-primary:hover {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4), 0 12px 25px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.85);
    transform: translateY(-4px) scale(1.01);
}

.btn-action-primary:active {
    transform: translateY(0px);
}


.btn-icon {
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    flex-shrink: 0;
    transition: all 0.4s ease;
    position: relative;
}

.btn-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.15) 0%,
            transparent 50%,
            rgba(255, 255, 255, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-action-primary:hover .btn-icon {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.btn-action-primary:hover .btn-icon::before {
    opacity: 1;
}


.btn-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.btn-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.3px;
}

.btn-description {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}






@media (max-width: 768px) {
    .actions-grid {
        grid-template-columns: 1fr;
    }

    .welcome-section h1 {
        font-size: 32px !important;
    }

    .actions-container {
        padding: 25px;
    }
}



.stats-card {
    position: fixed;
    top: 140px;
    right: 30px;
    width: 280px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    animation: aparecer 1s ease forwards 0.4s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.stats-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-family: 'Roboto', sans-serif;
}

.stat-item {
    margin-bottom: 18px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(-3px);
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 500;
}

.stat-value {
    color: white;
    font-size: 28px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
}

.stat-value-small {
    color: white;
    font-size: 16px;
    font-weight: 500;
}

@media (max-width: 1200px) {
    .stats-card {
        display: none;
    }
}




.form-card {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    margin-top: 20px;
}

.elegant-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-primary-form {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-primary-form:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.btn-secondary-form {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary-form:hover {
    background: rgba(0, 0, 0, 0.7);
}


.workspace-section {
    margin-bottom: 50px;
    padding-top: 10px;
    width: 100%;
}


.section-header-with-action {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.section-title {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    padding-bottom: 0;
    border-bottom: none;
    font-family: 'Roboto', sans-serif;
}


.btn-add-workspace {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 24px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-add-workspace:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4), 0 6px 20px rgba(0, 0, 0, 0.5);
}

.btn-add-workspace:active {
    transform: rotate(90deg) scale(0.95);
}


.workspaces-grid {
    display: flex;
    flex-direction: row;
    gap: 25px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 15px;
    scroll-behavior: smooth;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.7);
}

/* Animaciones para Socket.IO - Real-time updates */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

.workspace-card-modern {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 25px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    min-width: 320px;
    flex-shrink: 0;
}

.workspace-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transition: left 0.5s ease;
}

.workspace-card-modern:hover::before {
    left: 100%;
}

.workspace-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
}

.workspace-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.workspace-header h3 {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.workspace-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.workspace-badge.owner {
    background: rgba(150, 201, 61, 0.15);
    color: #96c93d;
    border: 1px solid rgba(150, 201, 61, 0.3);
}

.workspace-badge.member {
    background: rgba(100, 149, 237, 0.15);
    color: #6495ed;
    border: 1px solid rgba(100, 149, 237, 0.3);
}

.workspace-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.workspace-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-workspace-enter,
.btn-workspace-manage {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-workspace-enter {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-workspace-manage {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}


.empty-state {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 50px 30px;
    text-align: center;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    margin: 0 0 20px 0;
}


.quick-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
}


@media (max-width: 768px) {
    .workspaces-grid {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 25px 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .login {
        width: 100%;
    }
}



.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.task-card {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.task-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transition: left 0.5s ease;
}

.task-card:hover::before {
    left: 100%;
}

.task-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.task-header h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.task-status-badge {
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.task-status-badge.pendiente {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.task-status-badge.progreso {
    background: rgba(33, 150, 243, 0.15);
    color: #2196f3;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.task-status-badge.completado {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.task-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.task-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.btn-task-view {
    padding: 6px 14px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

.workspace-actions-header {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .tasks-grid {
        grid-template-columns: 1fr;
    }
}




.btn-back-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.btn-back-fixed:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3), 0 6px 20px rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}


.role-group {
    margin-bottom: 40px;
}

.role-group-title {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-family: 'Roboto', sans-serif;
}


.members-horizontal {
    display: flex;
    flex-direction: row;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 15px;
    scroll-behavior: smooth;
}


.members-horizontal::-webkit-scrollbar {
    height: 8px;
}

.members-horizontal::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.members-horizontal::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.members-horizontal::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}


.member-card {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    min-width: 350px;
    flex-shrink: 0;
}

.member-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.member-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.member-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}

.member-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.member-details h4 {
    color: white;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.member-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rol-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 6px 12px;
    color: white;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rol-select:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.rol-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
}

.rol-select option {
    background: #000;
    color: white;
    padding: 10px;
}

.btn-member-remove {
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid rgba(255, 82, 82, 0.3);
    color: #ff5252;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-member-remove:hover {
    background: rgba(255, 82, 82, 0.2);
    border-color: rgba(255, 82, 82, 0.5);
    transform: scale(1.1);
}

.workspace-badge.colaborador {
    background: rgba(158, 158, 158, 0.15);
    color: #9e9e9e;
    border: 1px solid rgba(158, 158, 158, 0.3);
}

.workspace-badge.admin {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

@media (max-width: 768px) {
    .members-grid {
        grid-template-columns: 1fr;
    }

    .member-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .member-actions {
        width: 100%;
        justify-content: space-between;
    }
}



.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
    width: 100%;
}

.kanban-column {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 500px;
    transition: all 0.3s ease;
    background-clip: padding-box;
    transform: translateZ(0);
}

.kanban-column:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.kanban-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}


.kanban-todo .kanban-header {
    border-bottom-color: #ff0000;
}

.kanban-progress .kanban-header {
    border-bottom-color: #fbbf24;
}

.kanban-testing .kanban-header {
    border-bottom-color: #a78bfa;
}

.kanban-completed .kanban-header {
    border-bottom-color: #34d399;
}

.kanban-header h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kanban-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-count {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
}

.btn-add-task {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 16px;
    font-weight: 700;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-add-task:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.kanban-tasks {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding-right: 5px;
}


.kanban-tasks::-webkit-scrollbar {
    width: 6px;
}

.kanban-tasks::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.kanban-tasks::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.kanban-tasks::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}


@media (max-width: 1200px) {
    .kanban-board {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .kanban-board {
        grid-template-columns: 1fr;
    }
}



.kanban-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.status-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.status-pendiente {
    background-color: #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.status-progreso {
    background-color: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.status-testing {
    background-color: #a78bfa;
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
}

.status-completado {
    background-color: #34d399;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}

.kanban-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.kanban-card-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.kanban-card-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kanban-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.kanban-card-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kanban-card-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.kanban-card-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}


.kanban-card.dragging {
    opacity: 0.4;
    cursor: grabbing;
}

.kanban-column.drag-over {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}



:root {
    --auth-primary-glow: radial-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    --auth-card-border: rgba(255, 255, 255, 0.15);
    --auth-card-bg: rgba(0, 0, 0, 0.6);
}


.bg-mesh {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(50px);
    opacity: 0.4;
    display: flex;
    align-items: center;
    justify-content: center;
}


.bg-blob {
    display: none;

}

@keyframes authMove {
    from {
        transform: translate(-20%, -20%) rotate(0deg);
    }

    to {
        transform: translate(20%, 20%) rotate(360deg);
    }
}


.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}


.auth-card {
    background: var(--auth-card-bg);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 28px;
    padding: 60px 45px;
    max-width: 440px;
    width: 100%;
    animation: authCardEnter 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}


.auth-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 28px;
    padding: 2px;
    background:
        linear-gradient(90deg,
            transparent 0%,
            transparent 40%,
            rgba(255, 255, 255, 0.8) 50%,
            transparent 60%,
            transparent 100%) 0 0 / 400% 100%,
        linear-gradient(0deg,
            transparent 0%,
            transparent 40%,
            rgba(255, 255, 255, 0.8) 50%,
            transparent 60%,
            transparent 100%) 0 0 / 100% 400%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: authBorderTrace 10s linear infinite;
    pointer-events: none;
}

@keyframes authBorderTrace {
    0% {
        background-position: 0% 0%, 0% 0%;
    }

    25% {
        background-position: 100% 0%, 0% 0%;
    }

    50% {
        background-position: 100% 0%, 0% 100%;
    }

    75% {
        background-position: 0% 0%, 0% 100%;
    }

    100% {
        background-position: 0% 0%, 0% 0%;
    }
}


@keyframes authCardEnter {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


.auth-logo {
    text-align: center;
    margin-bottom: 35px;
    transition: transform 0.5s ease;
}

.auth-logo img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
    animation: authLogoFloat 4s ease-in-out infinite;
}

@keyframes authLogoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}


.auth-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    text-align: center;
    margin: -20px 0 45px 0;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}


.auth-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.auth-form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-form-group label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding-left: 5px;
}

.auth-form-group input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px 20px;
    color: white;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-form-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}


.auth-submit-btn {
    background: #fff;
    color: #000;
    border: none;
    border-radius: 12px;
    padding: 18px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
    background: #f8f8f8;
}

.auth-submit-btn:active {
    transform: translateY(0);
}


.auth-link {
    text-align: center;
    margin-top: 35px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 15px;
}

.auth-link a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
    position: relative;
}

.auth-link a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

.auth-link a:hover::after {
    width: 100%;
}


.error-message {
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid rgba(255, 82, 82, 0.2);
    color: #ff5252;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 14px;
    text-align: center;
    animation: authShake 0.5s ease;
}

@keyframes authShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}


@media (max-width: 480px) {
    .auth-card {
        padding: 40px 25px;
    }
}


.auth-card-small {
    max-width: 396px;

    padding: 45px 40px;

}

.auth-card-small .auth-logo img {
    max-width: 252px;

}

.auth-card-small .auth-form-group input {
    padding: 13px 16px;

    font-size: 14px;
}

.auth-card-small .auth-submit-btn {
    padding: 14px;

    font-size: 14px;
}




.user-home-body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    background: #000;
    font-family: 'Outfit', sans-serif;
    display: flex;
    flex-direction: column;
}


.btn-stats-toggle-home {
    position: fixed;
    top: 28px;
    right: 180px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 10px 20px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 101;
}

.btn-stats-toggle-home:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}



.home-hero {
    margin-top: 30px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: heroFadeIn 0.8s ease-out;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin: 0 0 8px 0;
    text-align: center;
}

.hero-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    text-align: center;
    margin: 0;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.home-actions-section {
    display: flex;
    gap: 25px;
    padding: 0 60px;
    margin-bottom: 25px;
}

.action-card {
    flex: 1;
    height: 150px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    text-decoration: none;
    color: white;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.action-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.3);
}


.action-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    padding: 2px;
    background:
        linear-gradient(90deg,
            transparent 0%,
            transparent 40%,
            rgba(255, 255, 255, 0.8) 50%,
            transparent 60%,
            transparent 100%) 0 0 / 400% 100%,
        linear-gradient(0deg,
            transparent 0%,
            transparent 40%,
            rgba(255, 255, 255, 0.8) 50%,
            transparent 60%,
            transparent 100%) 0 0 / 100% 400%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    animation: none;
    pointer-events: none;
    z-index: -1;
}

.action-card:hover::before {
    opacity: 1;
    animation: authBorderTrace 4s linear infinite;
}

.action-card-icon {
    font-size: 56px;
    font-weight: 300;
    color: white;
    min-width: 70px;
    text-align: center;
    line-height: 1;
}

.action-card-content h3 {
    margin: 0 0 6px 0;
    font-size: 22px;
    font-weight: 600;
}

.action-card-content p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}


.home-workspaces-grid {
    flex: 1;
    padding: 0 60px 40px;
    overflow-y: auto;
    overflow-x: hidden;
}

.grid-title {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 20px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.workspaces-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.workspace-card {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.workspace-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.workspace-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.workspace-card h4 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 600;
}

.workspace-card p {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.workspace-card-add {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    background: transparent;
}

.workspace-card-add:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.02);
}

.workspace-icon-add {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1;
}


.stats-drawer {
    position: fixed;
    right: -320px;
    top: 0;
    bottom: 0;
    width: 300px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    padding-top: 80px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.3s ease,
        visibility 0.3s ease;
    z-index: 90;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
}

.stats-drawer.open {
    right: 0;
    visibility: visible;
    opacity: 1;
}

.stats-drawer-title {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 30px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.stat-item {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: white;
}

.stat-value-small {
    font-size: 18px;
    font-weight: 600;
    color: white;
}


@media (max-width: 1440px) {
    .workspaces-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-title {
        font-size: 42px;
    }
}

@media (max-width: 1024px) {
    .workspaces-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-actions-section {
        flex-direction: column;
    }

    .action-card {
        height: 140px;
    }

    .hero-title {
        font-size: 36px;
    }

    .home-header,
    .home-workspaces-grid,
    .home-actions-section {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 768px) {
    .workspaces-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .action-card-icon {
        font-size: 48px;
    }
}



.settings-page-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: #000;
    font-family: 'Outfit', sans-serif;
}

.settings-page-body header {
    padding-top: 5px;
    padding-bottom: 5px;
}

.settings-main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 20px;
}

.settings-title-section {
    text-align: center;
    margin-bottom: 10px;
}

.settings-page-title {
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin: 0 0 10px 0;
}

.settings-page-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    margin: 0;
}

.settings-message {
    background: rgba(150, 201, 61, 0.1);
    border: 1px solid rgba(150, 201, 61, 0.3);
    color: #96c93d;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
    font-size: 15px;
}

.settings-message.error {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}


.settings-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px 25px;
    transition: all 0.3s ease;
}

.settings-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.settings-card-wide {
    grid-column: 1 / -1;
}

.settings-card-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-form-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.settings-form-columns button {
    grid-column: 1 / -1;
}

.settings-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-form-group label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.settings-current-value {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 14px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.settings-current-value span {
    color: white;
    font-weight: 600;
}

.settings-form-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 12px 16px;
    color: white;
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
}

.settings-form-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.settings-form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.settings-btn-save {
    background: white;
    color: #000;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.settings-btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.settings-card-danger {
    border-color: rgba(255, 107, 107, 0.3);
    background: rgba(255, 107, 107, 0.05);
}

.settings-card-danger:hover {
    border-color: rgba(255, 107, 107, 0.5);
}

.settings-danger-warning {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

.settings-btn-delete {
    background: transparent;
    color: #ff6b6b;
    border: 2px solid #ff6b6b;
    border-radius: 10px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.settings-btn-delete:hover {
    background: #ff6b6b;
    color: white;
    transform: translateY(-2px);
}

.settings-btn-back {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 12px 28px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.settings-btn-back:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(-4px);
}

@media (max-width: 1024px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .settings-form-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .settings-page-title {
        font-size: 32px;
    }

    .settings-card {
        padding: 25px 20px;
    }
}

.settings-card-back {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.settings-back-description {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 auto 0;
    flex-grow: 1;
}

.settings-btn-back-full {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px 24px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
    margin-top: 20px;
}

.settings-btn-back-full:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(-4px);
}

.settings-card-nav {
    display: flex;
    flex-direction: column;
}

.settings-back-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

.settings-btn-back-grid {
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 10px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
    height: fit-content;
}

.settings-btn-back-grid:hover {
    background: white;
    color: black;
    transform: translateY(-2px);
}



.terms-content {
    margin-top: 30px;
}

.terms-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.terms-section:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.terms-section h2 {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terms-section h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 500;
    margin: 20px 0 12px 0;
}

.terms-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 15px;
}

.terms-section ul {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin: 15px 0;
    padding-left: 25px;
}

.terms-section ul li {
    margin-bottom: 10px;
    font-size: 15px;
}

.terms-section strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.terms-checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.terms-checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.terms-checkbox-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
}

.terms-checkbox-label a {
    color: white;
    text-decoration: underline;
    font-weight: 500;
    transition: all 0.3s ease;
}

.terms-checkbox-label a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* CardBOX proyectos */
.cardbox-proyecto {
    position: relative;
    width: 300px;
    height: 350px;
    border-radius: 14px;
    z-index: 1111;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 20px 20px 60px #bebebe, -20px -20px 60px #ffffff;
    ;
}

.bg-proyecto {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 190px;
    height: 240px;
    z-index: 2;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(24px);
    border-radius: 10px;
    overflow: hidden;
    outline: 2px solid white;
}

.blob-proyecto {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #ff0000;
    opacity: 1;
    filter: blur(12px);
    animation: blob-bounce 5s infinite ease;
}

@keyframes blob-bounce {
    0% {
        transform: translate(-100%, -100%) translate3d(0, 0, 0);
    }

    25% {
        transform: translate(-100%, -100%) translate3d(100%, 0, 0);
    }

    50% {
        transform: translate(-100%, -100%) translate3d(100%, 100%, 0);
    }

    75% {
        transform: translate(-100%, -100%) translate3d(0, 100%, 0);
    }

    100% {
        transform: translate(-100%, -100%) translate3d(0, 0, 0);
    }
}

/* CardBOX proyectos END */