:root {

    /* PIE DE PAGINA */
    --footer-bg: rgb(10,175,85);

    /* BOTON */
    --buy-btn-bg: rgb(250,250,250);

    /* TEXTO DEL BOTON */
    --buy-btn-text: rgb(10,10,10);

}

/* ==========================================================================
   RESET GENERAL
   ========================================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{
    width:100%;
    height:100%;
    overflow:hidden;
    font-family:Arial, Helvetica, sans-serif;
    background:#050505;
}


/* ==========================================================================
   ESTRUCTURA PRINCIPAL - PC / LAPTOP
   ========================================================================== */

.app{
    display:flex;
    width:100%;
    height:100vh;
}


/* ==========================================================================
   MENU IZQUIERDO - CATEGORIAS
   ========================================================================== */

.sidebar{
    width:430px;
    background:rgba(20,20,20,0.65);
    backdrop-filter:blur(4px);
    border-right:1px solid rgba(255,255,255,0.05);
    display:flex;
    flex-direction:column;
}

.brand{
    padding:35px 40px;
    font-size:20px;
    color:#00d37f;
    letter-spacing:2px;
}

.category-list{
    flex:1;
    overflow-y:auto;
    padding:20px 0 110px;
}

.category-item{
    position:relative;
    display:flex;
    align-items:center;
    gap:14px;

    padding:12px 50px 12px 70px;

    font-size:24px;
    color:#888;
    cursor:pointer;
    transition:0.2s;
    line-height:1.2;
}

.category-item:hover{
    color:#ffffff;
}

.category-item.active{
    color:#ffffff;
}

.category-item.active::before{
    content:"";
    position:absolute;
    left:65px;
    top:8px;
    bottom:8px;
    width:4px;
    background:#00d37f;
    border-radius:4px;
}

.category-item.active .cat-count{
    color:#00d37f;
}

.cat-count{
    width:45px;
    text-align:right;
    font-size:17px;
    color:#666;
    flex:0 0 45px;
}

.cat-name{
    flex:1;
}


/* ==========================================================================
   PANEL DERECHO - SUBCATEGORIAS / ECUS
   ========================================================================== */

.content{
    flex:1;
    position:relative;
    background-image:url('../img/background.jpg');
    background-position:center;
    background-size:cover;
    background-repeat:no-repeat;
}

.overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.70);
    backdrop-filter:blur(3px);
}

.ecu-panel{
    position:relative;
    z-index:2;
    width:100%;
    height:100%;
    overflow-y:auto;

    padding-left:120px;
    padding-top:80px;
    padding-bottom:120px;
}

.ecu-list{
    display:flex;
    flex-direction:column;
    gap:24px;
}

.ecu-item{
    font-size:34px;
    color:#777;
    cursor:pointer;
    transition:0.2s;
}

.ecu-item:hover{
    color:#ffffff;
}

.ecu-item.active{
    color:#ffffff;
}


.ecu-bullet{
    color:#00d37f;
    margin-right:18px;
    font-size:34px;
}

.ecu-marker{
    width:4px;
    height:28px;
    flex:0 0 4px;
    background:#00d37f;
    border-radius:4px;
}


/* ==========================================================================
   PIE DE PAGINA - BOTON DE COMPRA PC / LAPTOP
   ========================================================================== */

.footer-buy{
    position:fixed;
    left:0;
    bottom:0;
    width:100%;
    height:72px;

    /*background:rgb(156, 39, 245);                         COLOR FONDO PIE */ 
    background:var(--footer-bg);
    border-top:1px solid rgba(255,255,255,.08);

    display:flex;
    align-items:center;
    justify-content:flex-end; /* derecha */

    padding-right:40px;
    gap:18px;

    z-index:9999;
}

.footer-text{
    color:#ffffff;
    font-size:20px;
    letter-spacing:1px;
    white-space:nowrap;
}

.buy-btn{
    background:var(--buy-btn-bg);
    color:var(--buy-btn-text);
    text-decoration:none;
    padding:12px 36px;
    border-radius:8px;
    font-size:20px;
    font-weight:700;
    letter-spacing:1px;
    transition:.2s;
}

.buy-btn:hover{
    transform:translateY(-2px);
    filter:brightness(1.08);
}


/* ==========================================================================
   RESPONSIVE - CELULAR / TABLET PEQUEÑA
   Aquí editas cómo se ve en iPhone y Android
   ========================================================================== */

@media (max-width:768px){

    html,
    body{
        height:auto;
        overflow-x:hidden;
        overflow-y:auto;
    }

    .app{
        flex-direction:column;
        height:auto;
        min-height:100vh;
    }

    /* ---------------- MENU CATEGORIAS EN CELULAR ---------------- */

    .sidebar{
        width:100%;
        height:auto;
        min-height:auto;
        border-right:none;
        border-bottom:1px solid rgba(255,255,255,0.08);
    }

    .brand{
        padding:28px 28px 18px;
        font-size:18px;
    }

    .category-list{
        max-height:42vh;
        overflow-y:auto;
        padding:10px 0 20px;
    }

    .category-item{
        padding:10px 22px 10px 52px;
        font-size:22px;
        gap:10px;
    }

    .category-item.active::before{
        left:28px;
        top:10px;
        bottom:10px;
        width:4px;
    }

    .cat-count{
        width:44px;
        flex:0 0 44px;
        font-size:15px;
    }

    /* ---------------- SUBCATEGORIAS EN CELULAR ---------------- */

    .content{
        width:100%;
        min-height:58vh;
    }

    .ecu-panel{
        padding:35px 28px 110px;
    }

    .ecu-list{
        gap:10px;
    }

    .ecu-item{
        font-size:22px;
        line-height:1.25;
    }

    .ecu-bullet{
        margin-right:12px;
        font-size:24px;
    }

    .ecu-marker{
        width:4px;
        height:24px;
        flex:0 0 4px;
    }

    /* ---------------- PIE DE PAGINA EN CELULAR ---------------- */

    .footer-buy{
        height:60px;
        justify-content:flex-end;
        padding-right:12px;
        gap:8px;
    }
    
    .footer-text{
        font-size:18px;
    }
    
    .buy-btn{
        font-size:12px;
        padding:9px 14px;
    }
}


/* =========================================================
   COUNTDOWN
   ========================================================= */

.countdown-box{
    display:flex;
    align-items:center;
    gap:12px;
}

.cd-unit{
    display:flex;
    flex-direction:column;
    align-items:center;
}

.cd-number{

    min-width:56px;

    padding:6px 10px;

    background:rgba(255,255,255,.08);

    border:1px solid rgba(255,255,255,.08);

    border-radius:6px;

    color:white;

    font-size:24px;
    font-weight:700;

    text-align:center;
}

.cd-label{
    margin-top:4px;

    color:rgba(255,255,255,.75);

    font-size:10px;
    letter-spacing:1px;
}

/* =========================================================
   PC
   ========================================================= */

.footer-buy{
    justify-content:space-between;
    padding-left:30px;
    padding-right:30px;
}

.footer-cta{
    display:flex;
    align-items:center;
    gap:18px;
}

/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width:768px){

    .countdown-box{
        gap:4px;
    }

    .cd-number{
        min-width:34px;
        padding:4px 5px;
        font-size:13px;
    }

    .cd-label{
        font-size:8px;
    }

    .footer-buy{
        justify-content:space-between;
        padding-left:8px;
        padding-right:8px;
    }

    .footer-cta{
        gap:8px;
    }
}

