@charset "UTF-8";

/* =====================================================
   CONTENEDOR GENERAL
===================================================== */

.contenedor-principal {

    max-width: 1800px;

    margin: auto;

    padding: 24px;
}

/* =====================================================
   LAYOUT 2 COLUMNAS
===================================================== */

.layout-2col {

    display: grid;

    grid-template-columns: 240px 1fr;

    gap: 24px;

    align-items: start;
}

/* =====================================================
   SIDEBAR
===================================================== */

.sidebar.left {

    position: sticky;

    top: 20px;
}

/* =====================================================
   MENU
===================================================== */

.menu-slider {

    background: #fff;

    border-radius: 18px;

    padding: 18px;

    box-shadow:
        0 4px 14px rgba(0,0,0,0.08);
}

.menu-slider h3 {

    margin-bottom: 14px;

    color: #1e5cc8;

    font-size: 18px;

    font-weight: 800;
}

.menu-slider ul {

    list-style: none;

    padding: 0;

    margin: 0;
}

.menu-slider li {

    padding: 12px 14px;

    border-radius: 10px;

    cursor: pointer;

    transition: .25s ease;

    font-size: 14px;

    font-weight: 600;
}

.menu-slider li:hover {

    background: #1e5cc8;

    color: #fff;

    transform: translateX(4px);
}

/* =====================================================
   CONTENIDO CENTRAL
===================================================== */

.contenido-central {

    min-height: 400px;

    display: flex;

    flex-direction: column;
}

/* =====================================================
   TITULO
===================================================== */

.titulo-principal {

    text-align: center;

    font-size: 32px;

    font-weight: 800;

    margin-bottom: 30px;

    color: #1e5cc8;
}

/* =====================================================
   GRID PRODUCTOS
===================================================== */

.productos-grid {

    display:grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(240px, 1fr)
        );

    gap:26px;

    align-items:stretch;
}

/* =====================================================
   TARJETA PRODUCTO
===================================================== */

.producto-card {

    background: #fff;

    border-radius: 18px;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    position: relative;

    min-height: 100%;

    box-shadow:
        0 4px 14px rgba(0,0,0,0.06);

    transition:
        transform .28s ease,
        box-shadow .28s ease;
}

.producto-card:hover {

    transform: translateY(-6px);

    box-shadow:
        0 14px 34px rgba(0,0,0,0.14);
}

/* =====================================================
   LINK
===================================================== */

.producto-card a {

    text-decoration: none;

    color: inherit;

    display: flex;

    flex-direction: column;

    height: 100%;
}

/* =====================================================
   IMAGEN
===================================================== */

.producto-img {

    position: relative;

    padding: 18px;

    text-align: center;
}

.producto-img img {

    width: 100%;

    height: 200px;

    object-fit: contain;

    transition: transform .25s ease;
}

.producto-card:hover img {

    transform: scale(1.05);
}

/* =====================================================
   BADGE
===================================================== */

.badge {

    position: absolute;

    top: 12px;
    left: 12px;

    padding: 6px 11px;

    font-size: 11px;

    font-weight: 700;

    border-radius: 8px;

    color: #fff;

    z-index: 2;

    box-shadow:
        0 3px 8px rgba(0,0,0,0.18);
}

.badge.nuevo {
    background:#0057D9;
}

.badge.oferta {
    background:#e53935;
}

/* =====================================================
   INFO
===================================================== */

.producto-info {

    padding: 10px 16px 70px;

    text-align: center;

    flex-grow: 1;

    display: flex;

    flex-direction: column;
}

.producto-info h3 {

    font-size: 15px;

    font-weight: 700;

    margin-bottom: 8px;

    color:#0f172a;

    line-height:1.45;

    display:-webkit-box;

    -webkit-line-clamp:2;

    -webkit-box-orient:vertical;

    overflow:hidden;
}

.producto-info p {

    font-size: 13px;

    color: #64748b;

    line-height:1.6;

    display:-webkit-box;

    -webkit-line-clamp:2;

    -webkit-box-orient:vertical;

    overflow:hidden;
}

/* =====================================================
   BOTON
===================================================== */

.producto-btn {

    position: absolute;

    bottom: 0;

    width: 100%;

    background: #1e5cc8;

    color: #fff;

    text-align: center;

    padding: 14px;

    font-weight: 700;

    letter-spacing: .3px;

    transform: translateY(100%);

    opacity: 0;

    transition: .28s ease;
}

.producto-card:hover .producto-btn {

    transform: translateY(0);

    opacity: 1;
}

/* =====================================================
   SIN PRODUCTOS
===================================================== */

.no-productos {

    text-align: center;

    color: #777;

    margin-top: 50px;

    font-size: 16px;
}

/* =====================================================
   MONITORES GRANDES
   24" / 27"
===================================================== */

@media (min-width:1600px){

    .contenedor-principal{
        max-width:2100px;
    }

    .productos-grid{
        gap:34px;
    }

    .producto-img img{
        height:240px;
    }

    .producto-info h3{
        font-size:17px;
    }

    .producto-info p{
        font-size:14px;
    }
}

/* =====================================================
   LAPTOPS 19" / 15"
===================================================== */

@media (max-width:1400px){

    .productos-grid{
        gap:22px;
    }
}

/* =====================================================
   LAPTOPS 14"
===================================================== */

@media (max-width:1200px){

    .layout-2col{

        grid-template-columns:220px 1fr;

        gap:18px;
    }

    .productos-grid{

        grid-template-columns:
            repeat(auto-fill, minmax(220px,1fr));

        gap:20px;
    }

    .producto-img img{
        height:180px;
    }
}

/* =====================================================
   TABLET HORIZONTAL
===================================================== */

@media (max-width:992px){

    .contenedor-principal{
        padding:18px;
    }

    .layout-2col{

        grid-template-columns:1fr;

        gap:20px;
    }

    .sidebar.left{

        position:relative;

        top:auto;
    }

    .menu-slider{
        border-radius:16px;
    }

    .titulo-principal{
        font-size:26px;
    }

    .productos-grid{

        grid-template-columns:
            repeat(auto-fill,minmax(210px,1fr));

        gap:18px;
    }

    .producto-card{
        border-radius:16px;
    }

    .producto-img img{
        height:170px;
    }
}

/* =====================================================
   TABLET VERTICAL
===================================================== */

@media (max-width:768px){

    .contenedor-principal{
        padding:16px;
    }

    .titulo-principal{

        font-size:22px;

        margin-bottom:22px;
    }

    .productos-grid{

        grid-template-columns:
            repeat(2,minmax(0,1fr));

        gap:16px;
    }

    .producto-card{
        border-radius:15px;
    }

    .producto-img{
        padding:14px;
    }

    .producto-img img{
        height:150px;
    }

    .producto-info{
        padding:10px 12px 62px;
    }

    .producto-info h3{
        font-size:14px;
    }

    .producto-info p{
        font-size:12px;
    }

    .producto-btn{
        padding:12px;
    }
}

/* =====================================================
   TELEFONOS GRANDES
===================================================== */

@media (max-width:580px){

    .contenedor-principal{
        padding:14px;
    }

    .menu-slider{
        padding:14px;
    }

    .titulo-principal{
        font-size:20px;
    }

    .productos-grid{

        grid-template-columns:1fr 1fr;

        gap:12px;
    }

    .producto-card{
        border-radius:14px;
    }

    .producto-img img{
        height:130px;
    }

    .producto-info{
        padding:10px 10px 56px;
    }

    .producto-info h3{
        font-size:13px;
    }

    .producto-info p{
        font-size:11px;
    }

    .badge{

        padding:5px 8px;

        font-size:10px;
    }

    .producto-btn{

        padding:11px;

        font-size:13px;
    }
}

/* =====================================================
   TELEFONOS PEQUEÑOS
===================================================== */

@media (max-width:420px){

    .productos-grid{

        grid-template-columns:1fr;
    }

    .producto-card{
        border-radius:13px;
    }

    .producto-img img{
        height:180px;
    }

    .producto-info h3{
        font-size:14px;
    }

    .producto-info p{
        font-size:12px;
    }

    .producto-btn{

        opacity:1;

        transform:none;

        position:relative;
    }
}