﻿/* ============================================================
   PAGINA PRODUCTOS
============================================================ */

.productos-pagina {
    width: 100%;
    min-height: 700px;
    padding-top: 70px;
    padding-bottom: 90px;
    background: #F6F9FC;
}

    .productos-pagina .contenedor {
        width: calc(100% - 40px);
        max-width: 1280px;
        margin-left: auto;
        margin-right: auto;
    }


/* ============================================================
   ENCABEZADO
============================================================ */

.productos-encabezado {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
    text-align: center;
}

    .productos-encabezado > span {
        display: inline-block;
        margin-bottom: 12px;
        color: #2E8DF4;
        font-size: 13px;
        font-weight: 800;
        letter-spacing: 1.5px;
    }

    .productos-encabezado h1 {
        margin-top: 0;
        margin-bottom: 15px;
        color: #14263B;
        font-size: 42px;
        font-weight: 800;
        line-height: 1.1;
    }

    .productos-encabezado p {
        max-width: 650px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 0;
        color: #718397;
        font-size: 17px;
        line-height: 1.7;
    }


/* ============================================================
   BUSCADOR DE PRODUCTOS
============================================================ */

.productos-buscador {
    max-width: 760px;
    margin: 38px auto 42px auto;
}

.productos-buscador-caja {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid #DCE5EE;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

    .productos-buscador-caja:focus-within {
        border-color: #2E8DF4;
        box-shadow: 0 8px 26px rgba(46, 141, 244, 0.10);
    }

    .productos-buscador-caja > i {
        margin-left: 20px;
        color: #2E8DF4;
        font-size: 19px;
    }

    .productos-buscador-caja input {
        width: 100%;
        min-height: 56px;
        padding: 0 16px;
        background: transparent;
        border: 0;
        outline: none;
        color: #14263B;
        font-size: 14px;
    }

        .productos-buscador-caja input::placeholder {
            color: #9CA3AF;
        }

    .productos-buscador-caja button {
        width: 50px;
        height: 56px;
        flex-shrink: 0;
        display: none;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 0;
        color: #718397;
        cursor: pointer;
        font-size: 15px;
    }

        .productos-buscador-caja button:hover {
            color: #2E8DF4;
        }

.productos-buscador-resultado {
    min-height: 20px;
    margin-top: 10px;
    color: #718397;
    font-size: 12px;
    text-align: center;
}


/* ============================================================
   FILTROS
============================================================ */

.productos-filtros {
    margin-bottom: 32px;
}

    .productos-filtros h2 {
        margin-top: 0;
        margin-bottom: 15px;
        color: #14263B;
        font-size: 16px;
        font-weight: 700;
    }

.productos-familias,
.productos-categorias {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

    .productos-familias a,
    .productos-categorias a {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding-left: 18px;
        padding-right: 18px;
        border: 1px solid #E1E4E8;
        border-radius: 10px;
        background: #FFFFFF;
        color: #444444;
        font-size: 12px;
        font-weight: 700;
        text-decoration: none;
        transition: all 0.2s ease;
    }

        .productos-familias a:hover,
        .productos-categorias a:hover {
            border-color: #2E8DF4;
            color: #2E8DF4;
            transform: translateY(-1px);
        }

        .productos-familias a.seleccionado,
        .productos-categorias a.seleccionado {
            border-color: #2E8DF4;
            background: #2E8DF4;
            color: #FFFFFF;
        }


/* ============================================================
   GRID PRODUCTOS
============================================================ */

.productos-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-top: 42px;
}


/* ============================================================
   TARJETA PRODUCTO
============================================================ */

.producto-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #DCE5EE;
    border-radius: 18px;
    background: #FFFFFF;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .producto-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 14px 35px rgba(0, 0, 0, 0.10);
    }


/* ============================================================
   IMAGEN PRODUCTO
============================================================ */

.producto-card-imagen {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-bottom: 1px solid #F0F0F0;
}

    .producto-card-imagen img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 20px;
        transition: transform 0.3s ease;
    }

.producto-card:hover .producto-card-imagen img {
    transform: scale(1.04);
}


/* ============================================================
   BADGE
============================================================ */

.home-producto-badge {
    min-height: 34px;
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 13px;
    padding-right: 13px;
    border-radius: 9px;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.7px;
    white-space: nowrap;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.10);
}

.home-producto-badge-nuevo {
    background: #16A34A;
}

.home-producto-badge-reacondicionado {
    background: #C0392B;
}


/* ============================================================
   SIN IMAGEN
============================================================ */

.producto-sin-imagen {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #B8BEC7;
    background: #F5F6F8;
    font-size: 55px;
}


/* ============================================================
   CONTENIDO TARJETA
============================================================ */

.producto-card-contenido {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px;
}

.producto-categoria {
    display: block;
    margin-bottom: 8px;
    color: #2E8DF4;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.producto-card-contenido h3 {
    min-height: 48px;
    margin-top: 0;
    margin-bottom: 8px;
    color: #101F2C;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.4;
}

.producto-card-contenido > p {
    margin-top: 0;
    margin-bottom: 20px;
    color: #8A8F98;
    font-size: 13px;
    font-weight: 500;
}


/* ============================================================
   PRECIO
============================================================ */

.producto-precio {
    margin-top: auto;
    margin-bottom: 30px;
}

    .producto-precio span {
        display: block;
        margin-bottom: 3px;
        color: #90959D;
        font-size: 11px;
        font-weight: 600;
    }

    .producto-precio strong {
        display: block;
        color: #2E8DF4;
        font-size: 25px;
        font-weight: 800;
    }


/* ============================================================
   BOTON
============================================================ */

.producto-boton {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 10px;
    background: #101F2C;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

    .producto-boton:hover {
        background: #3CA6FF;
        color: #FFFFFF;
        transform: translateY(-1px);
    }

    .producto-boton i {
        font-size: 15px;
    }


/* ============================================================
   SIN PRODUCTOS
============================================================ */

.productos-vacio {
    grid-column: 1 / -1;
    padding: 70px 30px;
    border: 1px solid #DCE5EE;
    border-radius: 18px;
    background: #FFFFFF;
    text-align: center;
}

    .productos-vacio i {
        display: block;
        margin-bottom: 18px;
        color: #2E8DF4;
        font-size: 52px;
    }

    .productos-vacio h3 {
        margin-top: 0;
        margin-bottom: 10px;
        color: #14263B;
        font-size: 22px;
        font-weight: 800;
    }

    .productos-vacio p {
        margin: 0;
        color: #777777;
        font-size: 15px;
    }


/* ============================================================
   RESPONSIVE 1100
============================================================ */

@media (max-width: 1100px) {

    .productos-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* ============================================================
   RESPONSIVE 850
============================================================ */

@media (max-width: 850px) {

    .productos-pagina {
        padding-top: 50px;
        padding-bottom: 70px;
    }

    .productos-encabezado h1 {
        font-size: 36px;
    }

    .productos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ============================================================
   RESPONSIVE 600
============================================================ */

@media (max-width: 600px) {

    .productos-pagina .contenedor {
        width: calc(100% - 28px);
    }

    .productos-pagina {
        padding-top: 38px;
        padding-bottom: 55px;
    }

    .productos-encabezado {
        margin-bottom: 35px;
    }

        .productos-encabezado h1 {
            font-size: 31px;
        }

        .productos-encabezado p {
            font-size: 15px;
        }

    .productos-familias,
    .productos-categorias {
        gap: 8px;
    }

        .productos-familias a,
        .productos-categorias a {
            min-height: 40px;
            padding-left: 14px;
            padding-right: 14px;
            font-size: 11px;
        }

    .productos-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 30px;
    }

    .producto-card-imagen {
        height: 280px;
    }

    .producto-card-contenido h3 {
        min-height: auto;
    }
}

.producto-stock {
    min-height: 34px;
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 13px;
    padding-right: 13px;
    border-radius: 9px;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.3px;
    white-space: nowrap;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.10);
}

.producto-stock-positivo {
    background: #16A34A;
}

.producto-stock-cero {
    background: #C0392B;
}
