/* =====================================================
   RE SHOP
   CSS PRINCIPAL
   ===================================================== */


/* ================= CONFIGURACIÓN GENERAL ================= */

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #faf8f6;
    color: #15102d;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input {
    font-family: inherit;
}


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

.header {
    background-color: hsl(266, 68%, 68%);
    color: white;
}

.header-contenido {
    width: 92%;
    max-width: 1300px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px 0;
    gap: 20px;
}


/* Logo */

.logo img {
    width: 130px;
}


/* Menú */

.menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.menu a {
    font-size: 14px;
    font-weight: bold;
    padding: 10px 0;
}

.menu .activo {
    color: white;
    border-bottom: 2px solid #ff551c;
}


/* Acciones */

.acciones {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icono {
    border: none;
    background: none;
    color: white;
    font-size: 26px;
    cursor: pointer;
}

.cuenta {
    background-color: #fff8dc;
    border: none;
    border-radius: 12px;

    padding: 13px 18px;

    color: #15102d;
    font-weight: bold;

    cursor: pointer;
}


/* ================= HERO ================= */

.hero {
    background-color: #100025;
    color: white;
    overflow: hidden;
}

.hero-contenido {
    width: 100%;
    max-width: 1400px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 470px;
}

.hero-texto {
    width: 52%;
    padding-left: 4%;
}

.hero h1 {
    font-size: 52px;
    line-height: 1.05;
    margin-bottom: 25px;
}

.hero h1 span {
    color: #ff551c;
}

.hero p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}


/* Imagen hero */

.hero-imagen {
    width: 48%;
    align-self: flex-end;

    display: flex;
    justify-content: flex-end;
}

.hero-imagen img {
    width: 100%;
}


/* ================= BUSCADOR ================= */

.buscador {
    display: flex;
    gap: 12px;
}

.campo-busqueda {
    background-color: white;
    border-radius: 12px;

    display: flex;
    align-items: center;

    width: 330px;
    padding: 0 15px;
}

.campo-busqueda span {
    color: #15102d;
    font-size: 25px;
}

.campo-busqueda input {
    width: 100%;

    border: none;
    outline: none;

    padding: 15px;

    font-size: 14px;
}

.boton-cerca {
    background-color: hsl(15, 100%, 55%);
    color: white;

    border: none;
    border-radius: 12px;

    padding: 0 22px;

    font-weight: bold;
    cursor: pointer;
}


/* ================= SECCIONES ================= */

.seccion {
    width: 92%;
    max-width: 1300px;
    margin: auto;
}

.categorias {
    padding-top: 35px;
    padding-bottom: 25px;
}

.seccion h2 {
    font-size: 22px;
    margin-bottom: 20px;
}


/* ================= CATEGORÍAS ================= */

/*
   FLEXBOX:
   Las categorías se organizan horizontalmente.
*/

.categorias-lista {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.categoria {
    flex: 1;
    min-width: 150px;

    height: 80px;

    background-color: hsl(275, 33%, 93%);
    border-radius: 14px;

    display: flex;
    align-items: center;

    overflow: hidden;

    font-weight: bold;
}

.categoria img {
    width: 75px;
    height: 80px;

    object-fit: cover;
}

.categoria span {
    padding: 15px;
}

.activa-categoria {
    background-color: #100025;
    color: white;
}


/* ================= TÍTULO DE SECCIÓN ================= */

.productos-seccion {
    padding: 30px 0;
}

.titulo-seccion {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.titulo-seccion h2 {
    margin-bottom: 20px;
}

.titulo-seccion a {
    color: #ff551c;
    font-weight: bold;
}


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

/*
   GRID:
   Las tarjetas forman 3 columnas en computadora.
*/

.productos {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 30px;
}


/* Tarjeta */

.producto {
    background-color: white;

    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 3px 12px rgba(20, 10, 40, 0.08);
}

.producto > img {
    width: 100%;
    height: 180px;

    object-fit: cover;
}

.producto-contenido {
    padding: 16px;
}

.producto h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.negocio {
    font-size: 14px;
    margin-bottom: 25px;
}


/* Precio y distancia */

.producto-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.precios {
    display: flex;
    align-items: center;
    gap: 15px;
}

.precios strong {
    color: #ff4518;
    font-size: 18px;
}

.precios del {
    color: #777;
    font-size: 13px;
}

.distancia {
    font-size: 13px;
    font-weight: bold;
}


/* Disponibilidad */

.disponible {
    color: #ff4518;
    font-size: 13px;
    margin-top: 20px;
}


/* ================= BENEFICIOS ================= */

.beneficios {
    width: 92%;
    max-width: 1300px;

    margin: 25px auto 50px;

    background-color: hsl(275, 33%, 93%);

    border-radius: 15px;

    padding: 25px;

    display: flex;
    justify-content: space-around;
    align-items: center;

    gap: 30px;
}

.beneficio {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.beneficio-icono {
    width: 55px;
    height: 55px;

    border-radius: 50%;

    background-color: #100025;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 25px;

    flex-shrink: 0;
}

.beneficio h3 {
    font-size: 15px;
    margin-bottom: 8px;
}

.beneficio p {
    font-size: 13px;
}


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

.footer {
    background-color: hsl(266, 68%, 68%);
    color: white;

    padding-top: 40px;
}

.footer-contenido {
    width: 92%;
    max-width: 1300px;

    margin: auto;

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr 1fr;

    gap: 40px;
}

.logo-footer {
    width: 110px;
    margin-bottom: 20px;
}

.footer-columna {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-columna p {
    font-size: 13px;
    line-height: 1.7;
    max-width: 200px;
}

.footer-columna h3 {
    font-size: 15px;
    margin-bottom: 5px;
}

.footer-columna a {
    font-size: 13px;
}

.redes {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.redes a {
    font-size: 22px;
}

.copyright {
    width: 92%;
    max-width: 1300px;

    margin: 40px auto 0;

    padding: 20px 0;

    border-top: 1px solid rgba(255,255,255,0.2);

    text-align: center;

    font-size: 13px;
}


/* =====================================================
   BREAKPOINT 1200 PX
   LAPTOPS
   ===================================================== */

@media (max-width: 1200px) {

    .hero h1 {
        font-size: 45px;
    }

    .menu {
        gap: 20px;
    }

    .productos {
        gap: 20px;
    }

}


/* =====================================================
   BREAKPOINT 768 PX
   TABLETS
   ===================================================== */

@media (max-width: 768px) {

    /* Header */

    .header-contenido {
        flex-wrap: wrap;
    }

    .menu {
        order: 3;

        width: 100%;

        justify-content: center;

        gap: 25px;
    }

    .menu a {
        font-size: 12px;
    }


    /* Hero */

    .hero-contenido {
        flex-direction: column;

        text-align: center;

        padding-top: 45px;
    }

    .hero-texto {
        width: 100%;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-imagen {
        width: 70%;
        margin-top: 20px;
    }

    .buscador {
        justify-content: center;
    }


    /* Categorías */

    .categorias-lista {
        display: grid;

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

    .categoria {
        width: 100%;
    }


    /* Productos */

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


    /* Beneficios */

    .beneficios {
        flex-direction: column;
        align-items: flex-start;
    }

    .beneficio {
        width: 100%;
    }


    /* Footer */

    .footer-contenido {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* =====================================================
   BREAKPOINT 576 PX
   MOBILES
   ===================================================== */

@media (max-width: 576px) {

    /* Header */

    .header-contenido {
        width: 88%;
    }

    .logo img {
        width: 105px;
    }

    .icono {
        font-size: 20px;
    }

    .cuenta {
        padding: 10px;
        font-size: 12px;
    }

    .menu {
        display: none;
    }


    /* Hero */

    .hero-contenido {
        width: 88%;
        min-height: auto;
    }

    .hero-texto {
        padding-top: 35px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-imagen {
        width: 100%;
    }


    /* Buscador */

    .buscador {
        flex-direction: column;
    }

    .campo-busqueda {
        width: 100%;
    }

    .boton-cerca {
        padding: 15px;
    }


    /* Categorías */

    .seccion {
        width: 88%;
    }

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

    .categoria {
        height: 70px;
    }

    .categoria img {
        width: 70px;
        height: 70px;
    }


    /* Productos */

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

    .producto > img {
        height: 200px;
    }


    /* Títulos */

    .titulo-seccion a {
        font-size: 12px;
    }


    /* Beneficios */

    .beneficios {
        width: 88%;
        padding: 20px;
    }


    /* Footer */

    .footer-contenido {
        width: 88%;

        grid-template-columns: 1fr;

        gap: 30px;
    }

    .copyright {
        width: 88%;
    }

}