/* =====================================================
   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: #aaa39d;

    --border:
        rgba(232,117,63,.25);

    --green: #19d98b;

}



/* =====================================================
   SIDEBAR
===================================================== */

.sidebar {

    position: fixed;

    left: 0;

    top: 0;

    width: 278px;

    height: 100vh;

    padding:
        24px 20px;

    background:
        linear-gradient(
            180deg,
            #090909,
            #080808
        );

    border-right:
        1px solid
        rgba(255,255,255,.09);

    z-index: 1000;

    display: flex;

    flex-direction: column;

}



/* =====================================================
   LOGO
===================================================== */

.logo {

    display: flex;

    align-items: center;

    gap: 13px;

    padding:
        0 10px 35px;
}


.logo-icon {

    width: 45px;

    height: 45px;

    border-radius: 8px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #ef8950,
            #c85e38
        );

    color: white;

    font-size: 17px;

    font-weight: bold;
}


.logo-text h2 {

    color:
        var(--cream);

    font-size: 20px;

    line-height: 1;
}


.logo-text span {

    display: block;

    margin-top: 5px;

    color:
        #a29b96;

    font-size: 11px;
}



/* =====================================================
   MENÚ
===================================================== */

.sidebar-menu {

    display: flex;

    flex-direction: column;

    gap: 8px;
}


.menu-item {

    height: 48px;

    display: flex;

    align-items: center;

    gap: 15px;

    padding:
        0 16px;

    border-radius: 10px;

    color:
        #ded8d2;

    text-decoration: none;

    font-size: 14px;

    transition:
        .3s ease;
}


.menu-item:hover {

    background:
        rgba(232,117,63,.12);

    color:
        white;
}


.menu-item.active {

    color: white;

    background:
        linear-gradient(
            90deg,
            #e8753f,
            #d96634
        );

    box-shadow:
        0 8px 25px
        rgba(232,117,63,.15);
}


.menu-icon {

    width: 24px;

    text-align: center;

    font-size: 22px;

    color:
        #eee5dc;
}



/* =====================================================
   PARTE INFERIOR SIDEBAR
===================================================== */

.sidebar-bottom {

    margin-top: auto;

    padding:
        16px;

    border:
        1px solid
        rgba(232,117,63,.15);

    border-radius: 10px;

    background:
        rgba(30,17,11,.55);

    display: flex;

    align-items: center;

    gap: 13px;
}


.motivation-icon {

    font-size: 27px;

    color:
        var(--orange);
}


.sidebar-bottom strong {

    display: block;

    color:
        #eee7df;

    font-size: 12px;
}


.sidebar-bottom span {

    display: block;

    color:
        #eee7df;

    font-size: 12px;

    margin-top: 3px;
}


.copyright {

    margin:
        28px 4px 2px;

    color:
        #77716d;

    font-size: 11px;
}



/* =====================================================
   PAGE
===================================================== */

.page {

    margin-left: 278px;

    min-height: 100vh;

    background:

        radial-gradient(
            circle at 75% 20%,
            rgba(75,35,18,.15),
            transparent 30%
        ),

        #080808;
}



/* =====================================================
   TOPBAR
===================================================== */

.topbar {

    height: 69px;

    padding:
        0 30px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom:
        1px solid
        rgba(255,255,255,.08);
}


.topbar-right {

    display: flex;

    align-items: center;

    gap: 25px;
}


.notification {

    position: relative;

    border: none;

    background: transparent;

    color:
        #eee5dc;

    font-size: 22px;

    cursor: pointer;
}


.notification span {

    position: absolute;

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background:
        var(--orange);

    top: 1px;

    right: -1px;
}


.user-profile {

    display: flex;

    align-items: center;

    gap: 9px;

    color:
        #eee8e2;

    font-size: 13px;
}


.user-profile b {

    color:
        #aaa39d;

    font-size: 15px;
}


.user-avatar {

    width: 35px;

    height: 35px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            145deg,
            #d8b69c,
            #754c37
        );

    color: white;

    font-weight: bold;

    border:
        2px solid
        rgba(255,255,255,.65);
}



/* =====================================================
   MAIN
===================================================== */

.main-content {

    padding:
        28px 30px 40px;

    max-width: 1450px;

    margin: auto;
}



/* =====================================================
   BANNER
===================================================== */

.group-banner {

    min-height: 170px;

    position: relative;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding:
        28px 30px;

    border:
        1px solid
        rgba(232,117,63,.38);

    border-radius: 16px;

    background:

        linear-gradient(
            90deg,
            rgba(8,8,8,.97),
            rgba(27,13,8,.66),
            rgba(8,8,8,.65)
        ),

        linear-gradient(
            120deg,
            #311508,
            #6b2b12,
            #180b06
        );

    box-shadow:
        0 15px 45px
        rgba(0,0,0,.25);
}



/* decoración del banner */

.group-banner::after {

    content: "";

    position: absolute;

    right: 0;

    bottom: 0;

    width: 55%;

    height: 100%;

    opacity: .4;

    background:

        linear-gradient(
            transparent,
            rgba(232,117,63,.2)
        );

    pointer-events: none;
}


.banner-content {

    display: flex;

    align-items: center;

    gap: 20px;

    position: relative;

    z-index: 2;
}


.calendar-icon {

    width: 70px;

    height: 70px;

    border-radius: 13px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            145deg,
            #e8753f,
            #ca5d32
        );

    color: white;

    font-size: 40px;

    flex-shrink: 0;
}


.group-title h1 {

    color:
        white;

    font-size:
        clamp(27px, 3vw, 37px);

    margin-bottom: 5px;
}


.group-title > p {

    color:
        #e0d9d2;

    font-size: 16px;
}


.group-status {

    margin-top: 15px;

    display: flex;

    align-items: center;

    gap: 9px;

    width: fit-content;

    padding:
        8px 15px;

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius: 9px;

    background:
        rgba(5,5,5,.5);

    color:
        #eee8e1;

    font-size: 12px;
}


.members-icon {

    color:
        var(--orange);

    font-size: 17px;
}


.status-divider {

    width: 1px;

    height: 17px;

    background:
        rgba(255,255,255,.2);

    margin:
        0 5px;
}


.online-dot {

    width: 9px;

    height: 9px;

    border-radius: 50%;

    background:
        var(--green);

    box-shadow:
        0 0 10px
        rgba(25,217,139,.6);
}


.available {

    color:
        var(--green);
}



/* =====================================================
   DÍA DE AHORRO
===================================================== */

.saving-day {

    position: relative;

    z-index: 2;

    min-width: 190px;

    padding:
        17px 20px;

    border:
        1px solid
        rgba(232,117,63,.22);

    border-radius: 13px;

    background:
        rgba(12,8,6,.72);

    display: flex;

    align-items: center;

    gap: 13px;
}


.day-icon {

    color:
        var(--orange);

    font-size: 25px;
}


.saving-day strong {

    display: block;

    color:
        white;

    font-size: 16px;
}


.saving-day span {

    display: block;

    margin-top: 5px;

    color:
        #a8a19c;

    font-size: 11px;
}



/* =====================================================
   HEADER PARTICIPANTES
===================================================== */

.participants-header {

    margin-top: 25px;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 25px;
}


.participants-header h2 {

    color:
        var(--cream);

    font-size: 25px;

    margin-bottom: 7px;
}


.participants-header p {

    color:
        #918b86;

    font-size: 13px;
}



/* =====================================================
   BUSCADOR
===================================================== */

.search-box {

    width: 300px;

    height: 43px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding:
        0 14px;

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius: 10px;

    background:
        rgba(15,15,15,.8);
}


.search-box span {

    color:
        #d6cec7;

    font-size: 25px;
}


.search-box input {

    width: 100%;

    border: none;

    outline: none;

    background: transparent;

    color:
        white;

    font-size: 12px;
}


.search-box input::placeholder {

    color:
        #77716d;
}



/* =====================================================
   TARJETA PARTICIPANTES
===================================================== */

.participants-card {

    margin-top: 20px;

    padding:
        0 18px;

    border:
        1px solid
        rgba(232,117,63,.27);

    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            rgba(20,13,10,.8),
            rgba(8,8,8,.85)
        );

    overflow: hidden;
}


.participant {

    min-height: 70px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    border-bottom:
        1px solid
        rgba(255,255,255,.08);

    cursor: pointer;

    transition:
        background .25s ease,
        padding .25s ease;
}


.participant:last-of-type {

    border-bottom: none;
}


.participant:hover {

    background:
        rgba(232,117,63,.055);

    padding-left: 7px;

    padding-right: 7px;
}


.participant-info {

    display: flex;

    align-items: center;

    gap: 14px;

    min-width: 0;
}



/* =====================================================
   AVATARES
===================================================== */

.avatar {

    width: 44px;

    height: 44px;

    min-width: 44px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: white;

    font-weight: bold;

    font-size: 12px;

    border:
        2px solid
        rgba(255,255,255,.2);

    box-shadow:
        0 3px 12px
        rgba(0,0,0,.35);
}


.avatar-orange {

    background:
        linear-gradient(
            145deg,
            #c77a4d,
            #512d1c
        );
}


.avatar-blue {

    background:
        linear-gradient(
            145deg,
            #657b91,
            #1d2934
        );
}


.avatar-pink {

    background:
        linear-gradient(
            145deg,
            #b98c80,
            #54362f
        );
}


.avatar-gray {

    background:
        linear-gradient(
            145deg,
            #7d858a,
            #30363a
        );
}


.avatar-red {

    background:
        linear-gradient(
            145deg,
            #a9695b,
            #42201d
        );
}


.avatar-dark {

    background:
        linear-gradient(
            145deg,
            #5d6971,
            #1b2226
        );
}


.avatar-purple {

    background:
        linear-gradient(
            145deg,
            #80677a,
            #302530
        );
}



/* =====================================================
   NOMBRE
===================================================== */

.participant-name {

    min-width: 0;
}


.participant-name h3 {

    color:
        #eee9e4;

    font-size: 14px;

    font-weight: 500;
}


.participant-name p {

    margin-top: 4px;

    color:
        #8d8782;

    font-size: 11px;
}


.participant-name p.leader {

    color:
        var(--orange);
}


.crown {

    color:
        var(--orange);

    margin-left: 6px;

    font-size: 15px;
}



/* =====================================================
   ESTADO
===================================================== */

.participant-action {

    display: flex;

    align-items: center;

    gap: 25px;
}


.online {

    min-width: 67px;

    padding:
        7px 10px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 5px;

    border-radius: 8px;

    color:
        #57e6aa;

    background:
        rgba(0,190,120,.14);

    font-size: 10px;

    border:
        1px solid
        rgba(0,190,120,.18);
}


.online i {

    width: 6px;

    height: 6px;

    border-radius: 50%;

    background:
        #1ce58f;

    box-shadow:
        0 0 7px
        rgba(28,229,143,.8);
}


.arrow {

    color:
        #aaa39c;

    font-size: 27px;

    line-height: 1;
}



/* =====================================================
   SIN RESULTADOS
===================================================== */

.no-results {

    display: none;

    padding:
        35px 15px;

    text-align: center;

    color:
        #817a75;

    font-size: 13px;
}



/* =====================================================
   BOTÓN MENÚ CELULAR
===================================================== */

.mobile-menu {

    display: none;

    position: fixed;

    top: 15px;

    left: 15px;

    width: 42px;

    height: 42px;

    border: none;

    border-radius: 9px;

    background:
        var(--orange);

    color: white;

    font-size: 22px;

    z-index: 2000;

    cursor: pointer;
}



/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1100px) {

    .sidebar {

        width: 230px;

    }


    .page {

        margin-left: 230px;

    }


    .main-content {

        padding:
            25px 22px 35px;

    }


    .saving-day {

        min-width: 160px;

    }


    .participants-card {

        padding:
            0 14px;

    }

}



/* =====================================================
   TABLET PEQUEÑA
===================================================== */

@media (max-width: 850px) {

    .sidebar {

        width: 245px;

        transform:
            translateX(-100%);

        transition:
            transform .3s ease;

    }


    .sidebar.open {

        transform:
            translateX(0);

        box-shadow:
            15px 0 40px
            rgba(0,0,0,.6);

    }


    .page {

        margin-left: 0;

    }


    .mobile-menu {

        display: block;

    }


    .topbar {

        padding-left: 75px;

    }


    .group-banner {

        flex-direction: column;

        align-items: flex-start;

        gap: 20px;

    }


    .saving-day {

        width: 100%;

    }

}



/* =====================================================
   CELULAR
===================================================== */

@media (max-width: 650px) {

    .topbar {

        height: 68px;

        padding:
            0 18px 0 70px;

    }


    .notification {

        display: none;

    }


    .user-profile span {

        display: none;

    }


    .main-content {

        padding:
            18px 14px 30px;

    }


    .group-banner {

        padding:
            20px 18px;

        border-radius: 13px;

    }


    .banner-content {

        align-items: flex-start;

    }


    .calendar-icon {

        width: 55px;

        height: 55px;

        font-size: 30px;

    }


    .group-title h1 {

        font-size: 25px;

    }


    .group-title > p {

        font-size: 12px;

    }


    .group-status {

        flex-wrap: wrap;

        font-size: 10px;

    }


    .participants-header {

        margin-top: 22px;

        display: block;

    }


    .participants-header h2 {

        font-size: 21px;

    }


    .participants-header p {

        font-size: 12px;

        line-height: 1.5;

    }


    .search-box {

        width: 100%;

        margin-top: 15px;

    }


    .participants-card {

        margin-top: 16px;

        padding:
            0 12px;

        border-radius: 12px;

    }


    .participant {

        min-height: 68px;

    }


    .participant:hover {

        padding-left: 3px;

        padding-right: 3px;

    }


    .avatar {

        width: 40px;

        height: 40px;

        min-width: 40px;

    }


    .participant-info {

        gap: 10px;

    }


    .participant-name h3 {

        font-size: 12px;

    }


    .participant-name p {

        font-size: 10px;

    }


    .participant-action {

        gap: 7px;

    }


    .online {

        min-width: 58px;

        padding:
            6px 7px;

        font-size: 8px;

    }


    .arrow {

        font-size: 22px;

    }

}



/* =====================================================
   CELULAR PEQUEÑO
===================================================== */

@media (max-width: 400px) {

    .main-content {

        padding-left: 10px;

        padding-right: 10px;

    }


    .group-banner {

        padding:
            16px;

    }


    .calendar-icon {

        width: 48px;

        height: 48px;

        font-size: 25px;

    }


    .group-title h1 {

        font-size: 21px;

    }


    .saving-day {

        padding:
            13px;

    }


    .participant-action .online {

        display: none;

    }

}

/* =====================================================
   EXTRAS: turno de la semana, chips, Mis pagos
===================================================== */

.turno-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 22px;
    padding: 22px 26px;
    border: 1px solid rgba(232,117,63,.38);
    border-radius: 16px;
    background: linear-gradient(120deg, rgba(60,26,12,.9), rgba(20,10,6,.9));
}

.turno-card small {
    display: block;
    color: var(--orange);
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: bold;
}

.turno-card h2 {
    color: #fff;
    font-size: clamp(22px, 2.6vw, 30px);
    margin: 8px 0 6px;
}

.turno-card p {
    color: #cfc8c1;
    font-size: 13px;
}

.turno-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    font-size: 12px;
    color: #cfc8c1;
}

.chip {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: normal;
    border: 1px solid;
    white-space: nowrap;
}

.chip-orange { color: #f6a273; background: rgba(232,117,63,.14); border-color: rgba(232,117,63,.30); }
.chip-green  { color: #57e6aa; background: rgba(0,190,120,.14);  border-color: rgba(0,190,120,.20); }
.chip-gray   { color: #aaa39d; background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }

.participant.yo {
    outline: 1.5px solid var(--orange);
    border-radius: 12px;
    background: rgba(232,117,63,.07);
}

.page-title h1 {
    color: #fff;
    font-size: clamp(26px, 3vw, 34px);
}

.page-title h1 span { color: var(--orange); }

.page-title p {
    margin-top: 6px;
    color: #a29b96;
    font-size: 13px;
}

.pay-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 22px;
}

.box {
    margin-top: 18px;
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(20,12,8,.7);
}

.pay-stats .box { margin-top: 0; }

.box small { color: #8d8782; font-size: 11px; }

.box strong {
    display: block;
    margin-top: 8px;
    font-size: 22px;
    color: #fff;
}

.box h3 { color: #fff; font-size: 16px; margin-bottom: 10px; }

.box p { color: #bdb6af; font-size: 13px; line-height: 1.6; }

.hist-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.3fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,.07);
    font-size: 13px;
    color: #eee9e4;
}

.hist-row strong { margin: 0; font-size: 13px; }

@media (max-width: 850px) {
    .turno-card { flex-direction: column; align-items: flex-start; }
    .turno-side { align-items: flex-start; }
    .pay-stats  { grid-template-columns: 1fr; }
    .hist-row   { grid-template-columns: 1fr 1fr; }
}