* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f3f3f3;
    font-family: Arial, sans-serif;
    color: #172f4f;
}


/* =====================================================
   MENÚ
===================================================== */

nav {
    margin: 16px 10px;
    padding: 14px 25px;
    background: #ff7625;
}

nav a {
    margin-right: 35px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 14px;
}


/* =====================================================
   CONTENEDOR
===================================================== */

.contenedor {
    padding: 0 30px 40px 30px;
}

h1 {
    font-size: 40px;
}

h2 {
    font-size: 20px;
    background: #eeeeee;
    display: inline-block;
    padding: 8px;
}


/* =====================================================
   CATEGORÍAS
===================================================== */

.categorias {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 45px;
}

.categoria {
    min-height: 120px;
    padding: 25px 20px;
    border: 1px solid #ff7625;
    background: white;

    display: flex;
    justify-content: space-between;
    align-items: center;

    text-decoration: none;
    color: #172f4f;

    font-size: 22px;
}

.categoria:hover {
    background: #fff3ec;
}


/* =====================================================
   LISTA DE PRODUCTOS
===================================================== */

.productos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;

    width: 100%;
    max-width: 100%;

    margin-top: 30px;
}


/* TARJETA */

.producto {
    display: block;

    width: 100%;
    min-width: 0;

    background: white;

    text-decoration: none;
    color: #172f4f;

    overflow: hidden;

    transition: transform 0.2s ease;
}

.producto:hover {
    transform: translateY(-3px);
    background: #fff3ec;
}


/* =====================================================
   TÍTULO DEL PRODUCTO
===================================================== */

.producto-titulo {
    min-height: 58px;

    padding: 14px 16px;

    border-left: 5px solid #ff7625;

    background: white;

    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 22px;
    color: #111;
}

.producto-titulo .flecha {
    font-size: 24px;
    color: #172f4f;
    margin-left: 10px;
}


/* =====================================================
   IMAGEN DEL PRODUCTO
===================================================== */

.producto-imagen {
    width: 100%;
    max-width: 100%;

    background: #eee;

    overflow: hidden;
}

.producto-imagen img {
    display: block;

    width: 100%;
    max-width: 100%;

    height: 280px;

    object-fit: cover;

    transition: transform 0.25s ease;
}

.producto:hover .producto-imagen img {
    transform: scale(1.02);
}


/* SIN IMAGEN */

.sin-imagen-producto {
    width: 100%;
    height: 280px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #ddd;

    color: #666;

    font-size: 18px;
}


/* =====================================================
   DETALLE DEL PRODUCTO
===================================================== */

/* =====================================================
   DETALLE DEL PRODUCTO
===================================================== */

.detalle-producto {
    display: flex;

    align-items: flex-start;

    gap: 25px;

    margin-top: 30px;

    width: 100%;

    max-width: 1000px;
}


/* =====================================================
   IMAGEN DEL PRODUCTO
===================================================== */

.imagen-producto {
    width: 45%;

    flex-shrink: 0;
}


.imagen-producto img {
    display: block;

    width: 100%;

    max-width: 420px;

    height: auto;
}


/* =====================================================
   DESCRIPCIÓN DEL PRODUCTO
===================================================== */

.descripcion-producto {
    width: 55%;

    background: white;

    padding: 25px;

    margin: 0;
}


.descripcion-producto h2 {
    background: none;
    padding: 0;
}

.descripcion-producto li {
    margin-bottom: 15px;
    line-height: 1.6;
}


/* =====================================================
   VOLVER
===================================================== */

.volver {
    display: inline-block;
    margin-top: 20px;

    color: #ff7625;

    text-decoration: none;

    font-weight: bold;
}


/* =====================================================
   SIN IMAGEN - DETALLE
===================================================== */

.sin-imagen {
    padding: 100px 20px;
    background: #ddd;
    text-align: center;
}


/* =====================================================
   BOTONES DEL PRODUCTO
===================================================== */

.botones-producto {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.boton-pdf,
.boton-whatsapp {
    display: inline-block;

    padding: 14px 22px;

    border-radius: 5px;

    text-decoration: none;

    font-weight: bold;

    color: white;
}

.boton-pdf {
    background: #d32f2f;
}

.boton-whatsapp {
    background: #25d366;
}

.boton-pdf:hover,
.boton-whatsapp:hover {
    opacity: 0.85;
}


/* =====================================================
   TABLET
===================================================== */

@media (min-width: 601px) and (max-width: 900px) {

    .productos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px;
    }

}


/* =====================================================
   CELULARES
===================================================== */

@media (max-width: 600px) {

    /* CONTENEDOR */

    .contenedor {
        padding: 0 10px 30px 10px;
    }


    /* TÍTULOS */

    h1 {
        font-size: 30px;
    }


    /* MENÚ */

    nav {
        margin: 10px;

        padding: 14px 10px;

        display: flex;

        justify-content: center;

        flex-wrap: wrap;

        gap: 12px;
    }

    nav a {
        margin-right: 0;
        font-size: 12px;
    }


    /* =================================================
       CATEGORÍAS
    ================================================= */

    .categorias {
        grid-template-columns: 1fr;

        gap: 20px;

        width: 100%;

        margin-top: 25px;
    }

    .categoria {
        width: 100%;

        min-height: 130px;

        padding: 30px 25px;

        font-size: 24px;
    }

    .categoria span {
        font-size: 30px;
    }


    /* =================================================
       PRODUCTOS
    ================================================= */

    .productos {
        grid-template-columns: 1fr;

        gap: 20px;

        width: 100%;

        max-width: 100%;

        margin-top: 25px;
    }

    .producto {
        width: 100%;

        max-width: 100%;

        min-width: 0;
    }


    /* TÍTULO */

    .producto-titulo {
        width: 100%;

        min-height: 55px;

        padding: 13px 15px;

        font-size: 19px;
    }

    .producto-titulo .flecha {
        font-size: 23px;
    }


    /* IMAGEN */

    .producto-imagen {
        width: 100%;

        max-width: 100%;

        overflow: hidden;
    }

    .producto-imagen img {
        display: block;

        width: 100%;

        max-width: 100%;

        height: 200px;

        object-fit: cover;
    }


    /* SIN IMAGEN */

    .sin-imagen-producto {
        width: 100%;

        height: 200px;
    }


    /* =================================================
       DETALLE DEL PRODUCTO
    ================================================= */

    .detalle-producto {
        flex-direction: column;

        gap: 20px;
    }

    .imagen-producto,
    .descripcion-producto {
        width: 100%;
    }


    /* =================================================
       BOTONES
    ================================================= */

    .botones-producto {
        flex-direction: column;
    }

    .boton-pdf,
    .boton-whatsapp {
        width: 100%;

        text-align: center;
    }

}