*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial,Helvetica,sans-serif;
}

body{
    background:#f4f6f9;
    color:#222;
}

/* =========================
   HEADER
========================= */

header{
    background:#0b5ed7;
    color:#fff;
    box-shadow:0 2px 10px rgba(0,0,0,.15);

    position:sticky;
    top:0;
    z-index:1000;
}

.top{
    max-width:1400px;
    margin:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px;
    gap:20px;
}

.logo a{
    color:#fff;
    font-size:32px;
    font-weight:bold;
    text-decoration:none;
}

.buscador{
    flex:1;
}

.buscador form{
    display:flex;
}

.buscador input{
    width:100%;
    padding:12px;
    border:none;
    border-radius:6px 0 0 6px;
    outline:none;
}

.buscador button{
    width:55px;
    border:none;
    background:#198754;
    color:#fff;
    cursor:pointer;
    border-radius:0 6px 6px 0;
}

.acciones a{
    color:#fff;
    text-decoration:none;
    margin-left:20px;
    font-weight:bold;
}

/* =========================
   MENÚ
========================= */

nav{
    background:#084298;
}

nav ul{
    max-width:1400px;
    margin:auto;
    list-style:none;
    display:flex;
    flex-wrap:wrap;
}

nav li a{
    display:block;
    color:#fff;
    text-decoration:none;
    padding:15px 20px;
}

nav li a:hover{
    background:#0d6efd;
}

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

.container{
    max-width:1400px;
    margin:auto;
    padding:20px;
}

/* =========================
   BANNER PCNET
========================= */

.hero-banner{
    width:100%;
    margin:0 auto 20px;
    overflow:hidden;
    border-radius:12px;
    background:#fff;
    box-shadow:0 4px 15px rgba(0,0,0,.08);
}

.hero-banner-link{
    display:block;
    width:100%;
    text-decoration:none;
}

.hero-banner-img{
    display:block;
    width:100%;
    height:auto;
    max-height:500px;
    object-fit:contain;
}

/* TABLET */

@media(max-width:1024px){

    .hero-banner{
        margin-bottom:15px;
        border-radius:10px;
    }

    .hero-banner-img{
        width:100%;
        height:auto;
    }

}

/* MÓVIL */

@media(max-width:768px){

    .hero-banner{
        width:calc(100% + 20px);
        margin:-10px -10px 15px -10px;
        border-radius:0;
    }

    .hero-banner-img{
        width:100%;
        height:auto;
        object-fit:contain;
    }

}

/* MÓVIL PEQUEÑO */

@media(max-width:480px){

    .hero-banner{
        border-radius:6px;
    }

}

/* =========================
   BUSCADOR DEL CATÁLOGO
========================= */

.buscador-catalogo{
    margin:25px 0;
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.buscador-catalogo input{
    flex:1;
    min-width:220px;
    padding:12px;
    border:1px solid #cbd5e1;
    border-radius:8px;
}

.buscador-catalogo select{
    padding:12px;
    border:1px solid #cbd5e1;
    border-radius:8px;
    background:#fff;
}

.buscador-catalogo button{
    padding:12px 22px;
    border:0;
    border-radius:8px;
    background:#0b5ed7;
    color:#fff;
    font-weight:bold;
    cursor:pointer;
}

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

.titulo-productos{
    margin-bottom:20px;
}

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

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(230px,1fr));
    gap:22px;
    align-items:stretch;
}

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

.card{
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:14px;
    overflow:hidden;

    display:flex;
    flex-direction:column;

    min-height:100%;

    box-shadow:0 4px 14px rgba(15,23,42,.06);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.card:hover{
    transform:translateY(-4px);
    box-shadow:0 10px 24px rgba(15,23,42,.12);
    border-color:#bfdbfe;
}

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

.foto{
    width:100%;
    height:230px;

    object-fit:contain;

    background:#fff;
    padding:18px;

    border-bottom:1px solid #f1f5f9;
}

/* =========================
   NOMBRE
========================= */

.card h3{
    margin:0;

    padding:16px 16px 8px;

    font-size:15px;
    line-height:1.4;
    font-weight:700;

    color:#0f172a;

    min-height:72px;

    overflow:hidden;

    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
}

/* =========================
   PRECIO
========================= */

.precio{
    padding:8px 16px 4px;

    color:#0b5ed7;

    font-size:26px;
    line-height:1;
    font-weight:800;
}

/* =========================
   BOTÓN
========================= */

.boton{
    margin:auto 16px 16px;

    display:block;

    padding:12px 14px;

    text-align:center;
    text-decoration:none;

    border-radius:8px;

    background:#0b5ed7;
    color:#fff;

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

    transition:
        background .2s ease,
        transform .2s ease;
}

.boton:hover{
    background:#084298;
}

.boton:active{
    transform:scale(.98);
}

/* =========================
   PRODUCTO SIN IMAGEN
========================= */

.card img[src*="sin-imagen"]{
    opacity:.75;
    background:#f8fafc;
}

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

@media(max-width:1024px){

    .grid{
        grid-template-columns:repeat(auto-fill,minmax(210px,1fr));
        gap:18px;
    }

    .foto{
        height:210px;
    }

}

/* =========================
   MÓVIL
========================= */

@media(max-width:768px){

    .grid{
        grid-template-columns:repeat(2,1fr);
        gap:12px;
    }

    .card{
        border-radius:10px;
    }

    .foto{
        height:170px;
        padding:12px;
    }

    .card h3{
        padding:12px 12px 6px;

        font-size:13px;
        line-height:1.35;

        min-height:62px;
    }

    .precio{
        padding:6px 12px 2px;

        font-size:21px;
    }

    .boton{
        margin:auto 12px 12px;

        padding:10px;

        font-size:13px;
    }

}

/* =========================
   CONTENEDOR DE IMAGEN
========================= */

.producto-imagen{
    position:relative;
    width:100%;
    background:#fff;
    border-bottom:1px solid #f1f5f9;
}

.producto-imagen .foto{
    border-bottom:0;
}


/* =========================
   INSIGNIAS
========================= */

.insignias{
    position:absolute;
    top:12px;
    left:12px;

    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:6px;

    z-index:2;
}

.insignia{
    display:inline-block;

    padding:6px 10px;

    border-radius:6px;

    color:#fff;

    font-size:11px;
    font-weight:800;
    letter-spacing:.4px;

    box-shadow:0 2px 6px rgba(0,0,0,.12);
}

.insignia.oferta{
    background:#dc2626;
}

.insignia.nuevo{
    background:#0b5ed7;
}


/* =========================
   STOCK
========================= */

.estado-stock{
    padding:0 16px 8px;

    font-size:13px;
    font-weight:700;
}

.estado-stock.disponible{
    color:#15803d;
}

.estado-stock.agotado{
    color:#dc2626;
}


/* =========================
   MÓVIL
========================= */

@media(max-width:768px){

    .insignias{
        top:8px;
        left:8px;
        gap:4px;
    }

    .insignia{
        padding:5px 7px;
        font-size:9px;
        border-radius:5px;
    }

    .estado-stock{
        padding:0 12px 6px;
        font-size:11px;
    }

}

/* =========================
   MÓVIL PEQUEÑO
========================= */

@media(max-width:420px){

    .grid{
        grid-template-columns:1fr;
    }

    .foto{
        height:220px;
    }

    .card h3{
        font-size:14px;
        min-height:auto;
    }

    .precio{
        font-size:24px;
    }

}

/* =========================
   PAGINACIÓN
========================= */

.paginacion{
    margin:30px 0;
    text-align:center;
}

.paginacion a{
    display:inline-block;
    padding:10px 15px;
    margin:4px;
    text-decoration:none;
    border-radius:6px;
    background:#e5e7eb;
    color:#111827;
}

.paginacion a.activo{
    background:#0b5ed7;
    color:#fff;
}

/* =========================
   FOOTER
========================= */

footer{
    margin-top:50px;
    background:#212529;
    color:#fff;
    text-align:center;
}

.footer-contenido{
    max-width:1400px;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:40px;
    padding:40px 20px;
}

.footer-contenido h3{
    margin-bottom:15px;
}

.footer-contenido p,
.footer-contenido li{
    color:#d1d5db;
    line-height:28px;
}

.footer-contenido ul{
    list-style:none;
}

.footer-contenido a{
    color:#d1d5db;
    text-decoration:none;
}

.footer-contenido a:hover{
    color:#fff;
}

.copyright{
    text-align:center;
    border-top:1px solid #444;
    padding:20px;
    color:#bbb;
}

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

@media(max-width:1024px){

    .hero-banner-imagen img{
        height:350px;
    }

    .hero-banner-contenido{
        width:55%;
        padding:30px;
    }
}

/* =========================
   MÓVIL
========================= */

@media(max-width:900px){

    .top{
        flex-direction:column;
    }

    nav ul{
        flex-direction:column;
    }
}

@media(max-width:768px){

    .container{
        max-width:1400px;
        margin:auto;
        padding:20px;
    }

    .hero-banner{
        width:calc(100% + 40px);
        margin:-20px -20px 20px -20px;
        overflow:hidden;
        border-radius:0;
        background:#fff;
    }

    .hero-banner-imagen{
        border-radius:12px;
    }

    .hero-banner-imagen img{
        height:300px;
    }

    .hero-banner-overlay{
        align-items:flex-end;

        background:linear-gradient(
            0deg,
            rgba(15,23,42,.90) 0%,
            rgba(15,23,42,.55) 45%,
            rgba(15,23,42,0) 80%
        );
    }

    .hero-banner-contenido{
        width:100%;
        padding:20px;
    }

    .hero-banner-contenido h1{
        color:#fff;
        font-size:27px;
    }

    .hero-banner-contenido p{
        color:#e2e8f0;
        font-size:15px;
    }

    .buscador-catalogo{
        display:block;
    }

    .buscador-catalogo input,
    .buscador-catalogo select,
    .buscador-catalogo button{
        width:100%;
        margin-bottom:10px;
    }
}

/* =========================
   MÓVIL PEQUEÑO
========================= */

@media(max-width:480px){

    .hero-banner-imagen img{
        height:250px;
    }

    .hero-banner-contenido{
        padding:16px;
    }

    .hero-banner-contenido h1{
        font-size:23px;
    }

    .hero-banner-contenido p{
        font-size:14px;
    }

    .logo a{
        font-size:26px;
    }
}