/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #080808;
    color: #f5f0d5;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}


/* =====================================================
   VARIABLES
===================================================== */

:root {

    --black: #080808;
    --black-2: #0d0b0a;

    --orange: #e8753f;
    --orange-light: #f18a4e;

    --cream: #f5f0d5;

    --text: #aaa39e;
    --muted: #817b76;

    --border: rgba(232, 117, 63, .28);

    --green: #13d68b;
}


/* =====================================================
   SIDEBAR
===================================================== */

.sidebar {

    position: fixed;

    left: 0;
    top: 0;

    width: 278px;
    height: 100vh;

    padding: 26px 22px;

    background: #080808;

    border-right:
        1px solid
        rgba(255,255,255,.08);

    z-index: 1000;

    display: flex;
    flex-direction: column;
}


/* =====================================================
   LOGO
===================================================== */

.logo {

    display: flex;
    align-items: center;

    gap: 14px;

    padding: 0 8px;

    margin-bottom: 42px;
}


.logo-icon {

    width: 55px;
    height: 55px;

    border-radius: 9px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #f18a4e,
            #c85e38
        );

    color: white;

    font-size: 20px;
    font-weight: bold;
}


.logo-info h2 {

    font-size: 23px;

    color: var(--cream);

    letter-spacing: .3px;
}


.logo-info span {

    display: block;

    margin-top: 2px;

    color: #a29b95;

    font-size: 12px;
}


/* =====================================================
   MENÚ SIDEBAR
===================================================== */

.sidebar-menu {

    display: flex;

    flex-direction: column;

    gap: 8px;
}


.sidebar-menu a {

    height: 53px;

    padding: 0 17px;

    display: flex;

    align-items: center;

    gap: 18px;

    border-radius: 9px;

    color: #e1ddd8;

    text-decoration: none;

    font-size: 15px;

    transition:
        background .3s ease,
        color .3s ease,
        transform .3s ease;
}


.sidebar-menu a i {

    width: 24px;

    text-align: center;

    font-size: 21px;

    color: #e6ddd6;
}


.sidebar-menu a:hover {

    background:
        rgba(232,117,63,.12);

    color: white;

    transform:
        translateX(3px);
}


.sidebar-menu a.active {

    background:
        linear-gradient(
            90deg,
            #d86a35,
            #f0783d
        );

    color: white;

    box-shadow:
        0 8px 20px
        rgba(232,117,63,.13);
}


.sidebar-menu a.active i {

    color: white;
}


/* =====================================================
   PARTE INFERIOR SIDEBAR
===================================================== */

.sidebar-bottom {

    margin-top: auto;
}


.motivation {

    min-height: 78px;

    padding: 15px;

    border:
        1px solid
        rgba(232,117,63,.2);

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            rgba(43,22,13,.65),
            rgba(16,10,8,.7)
        );

    display: flex;

    align-items: center;

    gap: 14px;
}


.motivation i {

    color: var(--orange);

    font-size: 28px;
}


.motivation span {

    color: #ddd5ce;

    font-size: 13px;

    line-height: 1.4;
}


.sidebar-bottom > p {

    margin-top: 43px;

    margin-left: 8px;

    color: #807a76;

    font-size: 11px;
}


/* =====================================================
   PAGE
===================================================== */

.page {

    margin-left: 278px;

    min-height: 100vh;

    background:

        radial-gradient(
            circle at 75% 20%,
            rgba(80,35,18,.14),
            transparent 35%
        ),

        linear-gradient(
            120deg,
            #080808,
            #0c0908
        );
}


/* =====================================================
   TOPBAR
===================================================== */

.topbar {

    height: 68px;

    border-bottom:
        1px solid
        rgba(255,255,255,.07);

    display: flex;

    align-items: center;

    justify-content: flex-end;

    padding: 0 32px;
}


.topbar-right {

    display: flex;

    align-items: center;

    gap: 25px;
}


.notification {

    position: relative;

    background: transparent;

    border: none;

    color: var(--cream);

    font-size: 21px;

    cursor: pointer;
}


.notification span {

    position: absolute;

    right: -2px;
    top: -2px;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--orange);
}


.user-menu {

    display: flex;

    align-items: center;

    gap: 10px;

    color: var(--cream);

    font-size: 14px;

    cursor: pointer;
}


.user-menu img {

    width: 37px;
    height: 37px;

    border-radius: 50%;

    object-fit: cover;

    border:
        2px solid
        rgba(255,255,255,.7);
}


.user-menu i {

    font-size: 11px;

    color: #bbb3ad;
}


/* BOTÓN MÓVIL */

.menu-button {

    display: none;

    border: none;

    background: transparent;

    color: white;

    font-size: 24px;

    cursor: pointer;
}


/* =====================================================
   DASHBOARD
===================================================== */

.dashboard {

    padding: 20px 30px 40px;

    display: grid;

    grid-template-columns:
        minmax(0, 1.6fr)
        minmax(330px, .9fr);

    gap: 22px;
}


.left-column,
.right-column {

    min-width: 0;
}


/* =====================================================
   PERFIL HEADER
===================================================== */

.profile-header {

    position: relative;

    overflow: hidden;

    min-height: 380px;

    padding: 28px 22px 20px;

    border:
        1px solid
        rgba(232,117,63,.27);

    border-radius: 12px;

    background: #0c0c0c;
}


.profile-background {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(8,8,8,.88),
            rgba(8,8,8,.57)
        ),
        url("imagenes/la-paz.jpg")
        center/cover no-repeat;

    opacity: .72;

    z-index: 0;
}


.profile-content {

    position: relative;

    z-index: 1;

    display: flex;

    align-items: center;

    gap: 25px;
}


.profile-photo {

    width: 140px;
    height: 140px;

    flex-shrink: 0;

    object-fit: cover;

    border-radius: 50%;

    border:
        2px solid
        rgba(255,255,255,.65);

    box-shadow:
        0 0 0 7px
        rgba(0,0,0,.18);
}


.profile-main {

    min-width: 0;
}


.name-line {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 13px;
}


.name-line h1 {

    color: white;

    font-size: 32px;

    line-height: 1.1;
}


.online {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 6px 12px;

    border-radius: 20px;

    color: #d8ffef;

    background:
        rgba(0,180,110,.22);

    border:
        1px solid
        rgba(0,210,130,.45);

    font-size: 11px;
}


.online i {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--green);
}


.group-name {

    margin-top: 14px;

    color: #ddd6d0;

    font-size: 15px;
}


.group-name i {

    margin-right: 12px;

    color: var(--orange);

    font-size: 21px;
}


.phrase {

    margin-top: 19px;

    color: #d7d0ca;

    font-size: 15px;

    line-height: 1.4;

    font-style: italic;
}


/* =====================================================
   STATS
===================================================== */

.stats {

    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 8px;

    margin-top: 24px;
}


.stat-card {

    min-height: 79px;

    padding: 13px 15px;

    border:
        1px solid
        rgba(255,255,255,.1);

    border-radius: 10px;

    background:
        rgba(9,9,10,.9);

    display: flex;

    align-items: center;

    gap: 15px;
}


.stat-icon {

    width: 39px;
    height: 39px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: var(--orange);

    font-size: 23px;
}


.stat-card span {

    display: block;

    color: #aaa29d;

    font-size: 11px;

    margin-bottom: 6px;
}


.stat-card strong {

    color: #eee9e4;

    font-size: 16px;
}


/* =====================================================
   TABS
===================================================== */

.tabs {

    margin-top: 15px;

    height: 50px;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    border-bottom:
        1px solid
        rgba(255,255,255,.12);
}


.tab {

    position: relative;

    border: none;

    background: transparent;

    color: #938d88;

    font-size: 14px;

    cursor: pointer;

    transition: .3s;
}


.tab:hover {

    color: white;
}


.tab.active {

    color: var(--orange);

    font-weight: bold;
}


.tab.active::after {

    content: "";

    position: absolute;

    bottom: -1px;

    left: 0;
    right: 0;

    height: 3px;

    background: var(--orange);
}


/* =====================================================
   CONTENIDO TABS
===================================================== */

.tab-content {

    display: none;

    margin-top: 15px;
}


.tab-content.active {

    display: block;
}


/* =====================================================
   INFO CARD
===================================================== */

.info-card {

    padding: 22px 28px;

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            rgba(15,15,16,.96),
            rgba(8,8,9,.98)
        );
}


.card-title {

    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 17px;
}


.card-title i {

    color: var(--orange);

    font-size: 21px;
}


.card-title h3 {

    color: #eae5df;

    font-size: 15px;
}


.info-list {

    display: flex;

    flex-direction: column;

    gap: 11px;
}


.info-list > div {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    align-items: center;
}


.info-list span {

    color: #aaa39e;

    font-size: 13px;
}


.info-list span i {

    width: 20px;

    margin-right: 4px;

    color: #8e8883;
}


.info-list strong {

    color: #e4dfda;

    font-size: 13px;

    font-weight: normal;
}


.section-divider {

    height: 1px;

    background:
        rgba(255,255,255,.14);

    margin: 18px 0;
}


/* ESTADO */

.status {

    display: inline-flex;

    align-items: center;

    width: fit-content;

    gap: 7px;

    padding: 5px 12px;

    border-radius: 15px;

    color: #caffea !important;

    background:
        rgba(0,190,120,.2);
}


.status i {

    width: 6px !important;
    height: 6px;

    border-radius: 50%;

    background: var(--green);

    display: inline-block;
}


/* =====================================================
   NOTA
===================================================== */

.note-box {

    min-height: 58px;

    padding: 12px 15px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    border:
        1px solid
        rgba(255,255,255,.08);

    border-radius: 9px;

    background:
        #15171b;
}


.note-box p {

    color: #d0cbc6;

    font-size: 12px;

    line-height: 1.5;
}


.note-box button {

    border: none;

    background: transparent;

    color: var(--orange);

    cursor: pointer;

    font-size: 15px;
}


/* =====================================================
   BOTÓN MENSAJE
===================================================== */

.message-button {

    width: 100%;

    height: 41px;

    margin-top: 17px;

    border:
        2px solid
        var(--orange);

    border-radius: 9px;

    background: transparent;

    color: var(--orange);

    font-size: 13px;

    cursor: pointer;

    transition: .3s;
}


.message-button:hover {

    background:
        var(--orange);

    color: #090909;

    box-shadow:
        0 0 20px
        rgba(232,117,63,.18);
}


/* =====================================================
   COLUMNA DERECHA
===================================================== */

.right-column {

    display: flex;

    flex-direction: column;

    gap: 20px;
}


.side-card {

    padding: 20px;

    border:
        1px solid
        rgba(255,255,255,.13);

    border-radius: 12px;

    background:
        rgba(10,10,10,.9);
}


.side-title {

    display: flex;

    align-items: center;

    gap: 17px;

    margin-bottom: 17px;
}


.side-title i {

    color: var(--orange);

    font-size: 25px;
}


.side-title h2 {

    color: #e8e3de;

    font-size: 16px;
}


/* =====================================================
   RESUMEN
===================================================== */

.summary {

    min-height: 205px;

    padding: 23px;

    display: flex;

    align-items: center;

    gap: 30px;

    border:
        1px solid
        rgba(255,255,255,.13);

    border-radius: 11px;
}


/* CÍRCULO */

.progress-circle {

    width: 150px;

    height: 150px;

    flex-shrink: 0;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        conic-gradient(
            var(--orange) 0deg 210deg,
            #633a29 210deg 360deg
        );

    position: relative;
}


.progress-circle::before {

    content: "";

    position: absolute;

    inset: 10px;

    border-radius: 50%;

    background: #0d0d0e;
}


.circle-inner {

    position: relative;

    z-index: 2;

    display: flex;

    flex-direction: column;

    align-items: center;
}


.circle-inner strong {

    color: white;

    font-size: 22px;
}


.circle-inner span {

    margin-top: 4px;

    color: #aaa39d;

    font-size: 12px;
}


/* DATOS RESUMEN */

.summary-data {

    width: 100%;

    display: flex;

    flex-direction: column;

    gap: 18px;
}


.summary-data > div {

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.summary-data span {

    color: #d2ccc7;

    font-size: 13px;
}


.summary-data strong {

    color: white;

    font-size: 15px;
}


.green-dot,
.orange-dot {

    display: inline-block;

    width: 10px;
    height: 10px;

    border-radius: 50%;

    margin-right: 8px;
}


.green-dot {

    background: #24bd8c;
}


.orange-dot {

    background: var(--orange);
}


.total-saved {

    padding-top: 17px;

    border-top:
        1px solid
        rgba(255,255,255,.15);

    flex-direction: column !important;

    align-items: flex-start !important;

    gap: 5px !important;
}


.total-saved span i {

    color: var(--orange);

    margin-right: 8px;
}


/* =====================================================
   PAGOS
===================================================== */

.payments {

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius: 10px;

    overflow: hidden;
}


.payment {

    min-height: 53px;

    padding: 0 13px;

    display: grid;

    grid-template-columns:
        1fr 80px 105px;

    align-items: center;

    gap: 10px;

    border-bottom:
        1px solid
        rgba(255,255,255,.1);
}


.payment:last-child {

    border-bottom: none;
}


.payment span {

    color: #d2ccc7;

    font-size: 12px;
}


.payment strong {

    color: #e5dfd9;

    font-size: 13px;
}


.payment em {

    justify-self: end;

    padding: 6px 11px;

    border-radius: 15px;

    font-size: 10px;

    font-style: normal;
}


.payment em i {

    display: inline-block;

    width: 6px;
    height: 6px;

    margin-right: 5px;

    border-radius: 50%;
}


.completed {

    color: #8ef0c9;

    background:
        rgba(0,180,110,.18);

    border:
        1px solid
        rgba(0,210,130,.28);
}


.completed i {

    background: var(--green);
}


.pending {

    color: #ffb06c;

    background:
        rgba(210,105,30,.17);

    border:
        1px solid
        rgba(232,117,63,.3);
}


.pending i {

    background: var(--orange);
}


/* =====================================================
   ACCIONES
===================================================== */

.actions-grid {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 12px;
}


.actions-grid button {

    min-height: 57px;

    padding: 10px;

    display: flex;

    align-items: center;

    gap: 15px;

    border:
        1px solid
        rgba(255,255,255,.28);

    border-radius: 10px;

    background: transparent;

    color: #e6e1dc;

    cursor: pointer;

    transition: .3s;
}


.actions-grid button i {

    color: var(--orange);

    font-size: 21px;
}


.actions-grid button:hover {

    border-color: var(--orange);

    background:
        rgba(232,117,63,.08);

    transform:
        translateY(-2px);
}


/* =====================================================
   ANIMACIONES
===================================================== */

.reveal {

    opacity: 0;

    transform:
        translateY(30px);

    transition:
        opacity .7s ease,
        transform .7s ease;
}


.reveal.show {

    opacity: 1;

    transform:
        translateY(0);
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1150px) {

    .sidebar {

        width: 230px;
    }

    .page {

        margin-left: 230px;
    }

    .dashboard {

        grid-template-columns:
            1fr;
    }

    .right-column {

        display: grid;

        grid-template-columns:
            1fr 1fr;
    }

    .quick-actions {

        grid-column:
            1 / -1;
    }

}


/* =====================================================
   TABLET PEQUEÑA
===================================================== */

@media (max-width: 900px) {

    .sidebar {

        transform:
            translateX(-100%);

        transition:
            transform .3s ease;

        width: 270px;
    }

    .sidebar.open {

        transform:
            translateX(0);
    }

    .page {

        margin-left: 0;
    }

    .menu-button {

        display: block;

        margin-right: auto;
    }

    .topbar {

        justify-content:
            space-between;

        padding:
            0 20px;
    }

    .dashboard {

        padding:
            20px;
    }

}


/* =====================================================
   MÓVIL
===================================================== */

@media (max-width: 650px) {

    .topbar {

        height: 62px;
    }

    .user-menu span {

        display: none;
    }

    .dashboard {

        padding:
            15px 12px 30px;
    }

    .profile-header {

        padding:
            20px 15px;
    }

    .profile-content {

        flex-direction:
            column;

        align-items:
            flex-start;

        gap: 18px;
    }

    .profile-photo {

        width: 105px;
        height: 105px;
    }

    .name-line h1 {

        font-size: 27px;
    }

    .phrase {

        font-size: 13px;
    }

    .stats {

        grid-template-columns:
            1fr;

        gap: 8px;
    }

    .stat-card {

        min-height: 65px;
    }

    .tabs {

        overflow-x: auto;

        grid-template-columns:
            repeat(3, minmax(130px, 1fr));
    }

    .tab {

        font-size: 12px;
    }

    .info-card {

        padding:
            18px 15px;
    }

    .info-list > div {

        grid-template-columns:
            1fr;

        gap: 5px;
    }

    .info-list strong {

        padding-left: 24px;
    }

    .right-column {

        display: flex;

        flex-direction: column;
    }

    .summary {

        flex-direction:
            column;

        padding: 20px;

        gap: 25px;
    }

    .progress-circle {

        width: 130px;
        height: 130px;
    }

    .payment {

        grid-template-columns:
            1fr 70px;

        padding:
            10px 12px;
    }

    .payment em {

        grid-column:
            1 / -1;

        justify-self:
            start;
    }

}


/* =====================================================
   MÓVIL PEQUEÑO
===================================================== */

@media (max-width: 400px) {

    .logo {

        margin-bottom: 30px;
    }

    .dashboard {

        padding:
            10px;
    }

    .profile-header {

        border-radius: 9px;
    }

    .name-line h1 {

        font-size: 24px;
    }

    .online {

        font-size: 9px;

        padding:
            5px 8px;
    }

    .actions-grid {

        grid-template-columns:
            1fr;
    }

    .payment strong {

        font-size: 11px;
    }

}