       /*
    BEM = BLOCK ELEMENT MODIFIER
    BEM PERMITE REUTILIZAR CODIGOS
    CUALQUIER ETIQUETAS PUEDE TENER CLASES
*/
:root { /* Esta propiedad sirve para trabajar con variables */
    --primario: #1abc9c;
    --primarioClaro: #f39c12;
    --secundario: #16a085;
    --secundarioClaro: #f1c40f;
    --blanco: white;
    --gris: #7f8c8d;    
}

*,
*::after,
*::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
font-size: 62.5%; /*Se transformo la fuente base en 10 px  */
}

.contenedor {
    max-width: 120rem;
    margin-left: auto;
    margin-right: auto;
}

body {
        font-family: 'Poppins', sans-serif;
        margin: 0;
        padding: 0;
        background-color: #f9f9f9;
        color: #333;
    }

.header {
    background: #fff;
    padding: 1rem 1rem;
    text-transform: uppercase;
}

.header-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    
}

/* LOGO */
.logo img {
    width: 250px;
    height: auto;
    justify-content: space-between;
}

/* NAV CENTRADO */
.nav {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

/* LINKS */
.nav--link {
    text-decoration: none;
    color: #111;
    font-size: 1.6rem;
    padding: .7rem 1.4rem;
    font-weight: 600;
    border-radius: 2rem;
    transition: all .3s;
}

/* HOVER */
.nav--link:hover {
    background-color: #5cdbc8;
}

/* OFERTAS */
.nav--link.activos {
    background-color: red;
    color: #fff;
}

/* ======================
   RESPONSIVE
====================== */
@media (max-width: 900px) {

    .header-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .logo {
        text-align: center;
    }

    .logo img {
        width: 220px;
    }

    .nav {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .nav--link {
        width: 90%;
        text-align: center;
        font-size: 1.6rem;
    }
}
       
       .products {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 30px;
            margin-bottom: 2rem;
        }

        .product-card {
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
            padding: 15px;
            width: 300px;
        }

        .product-card img {
            width: 100%;
            border-radius: 8px;
        }

        h2{
            font-size: 3rem;
            text-align: center;
            margin-bottom: 2rem;
            color: var(--primario);
            font-weight: bold;
        }
        p{
            font-size: 2rem;
            color: var(--primario);
            font-weight: bold;            
        }


/* ===== FOOTER GENERAL ===== */
.footer {
    background: #0d1b2a;
    color: #ffffff;
    padding: 60px 40px 20px;
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1300px;
    margin: auto;
}

/* ===== COLUMNAS ===== */
.footer-col h3 {
    font-size: 30px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
    font-size: 15px;
}

.footer-col ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primario);
}

/* ===== LOGO + DESCRIPCION ===== */
.footer-logo {
    width: 350px;
    height: 100px;
    margin-bottom: 15px;
}

.footer-col p {
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 17px;
}

/* ===== REDES SOCIALES ===== */
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #1b263b;
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 22px;
    transition: 0.3s;
}

.footer-social a:hover {
    background: var(--primario);
}

/* ===== CONTACTO ===== */
.contact-info li {
    color: #ddd;
    margin-bottom: 12px;
    font-size: 15px;
}

/* ===== PARTE INFERIOR ===== */
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid var(--gris);
    padding-top: 15px;
    font-size: 22px;
    color: var(--secundario);
}

/* ===== RESPONSIVE ===== */

/* Tablets horizontales */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
        margin-top: 15px;
    }
}

/* Tablets verticales / móviles grandes */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h3 {
        font-size: 18px;
    }

    .footer-col p {
        font-size: 15px;
    }

    .footer-col ul li {
        font-size: 14px;
    }

    .footer-social a {
        width: 35px;
        height: 35px;
        font-size: 15px;
        margin-right: 8px;
    }

    .footer-logo {
        width: 130px;
        margin-bottom: 10px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .footer {
        padding: 40px 20px 20px;
    }

    .footer-col h3 {
        font-size: 16px;
    }

    .footer-col p {
        font-size: 14px;
    }

    .footer-col ul li {
        font-size: 13px;
    }

    .footer-social a {
        width: 32px;
        height: 32px;
        font-size: 14px;
        margin-right: 6px;
    }

    .footer-bottom {
        font-size: 12px;
    }
}
