/* ============================= */
/* ESTILOS GENERALES */
/* ============================= */

/* Reinicio de estilos por defecto del navegador */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Estilo general del cuerpo */
body {
    background-color: #f4f4f4;
}

/* ============================= */
/* BARRA DE NAVEGACIÓN */
/* ============================= */

.navbar {
    background-color: #2f4f4f;
    padding: 15px;
}

.navbar ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

.navbar li {
    margin: 0 15px;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* ============================= */
/* PÁGINA INICIO */
/* ============================= */

/* Contenedor principal: 3 columnas en tamaño grande */
.inicio {
    display: flex;
    padding: 30px;
    gap: 20px;
}

.columna {
    flex: 1;
    background: white;
    padding: 20px;
    text-align: center;
}

.logo,
.imagen-principal {
    max-width: 100%;
}

/* ============================= */
/* PÁGINA MÁS VENDIDOS */
/* ============================= */

/* Contenedor de productos: 3 columnas en tamaño grande */
.productos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 30px;
}

.producto {
    background: white;
    padding: 15px;
    text-align: center;
}

.producto img {
    max-width: 100%;
}

.precio {
    font-weight: bold;
    margin: 10px 0;
}

/* ============================= */
/* FOOTER */
/* ============================= */

footer {
    background-color: #2f4f4f;
    color: white;
    display: flex;
    padding: 20px;
    text-align: center;
}

.footer-col {
    flex: 1;
}

.redes a {
    margin: 0 5px;
    color: white;
    font-size: 20px;
    text-decoration: none;
}

/* ================================================= */
/* MEDIA QUERIES */
/* ================================================= */

/* ============================= */
/* TAMAÑO MEDIANO */
/* Pantallas medianas (tablets) */
/* ============================= */
@media screen and (max-width: 1024px) {

    /* Cambiamos a GRID solo en tamaño mediano */
    .inicio {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    /* Logo */
    .inicio .columna:nth-child(1) {
        grid-column: 1;
    }

    /* Descripción */
    .inicio .columna:nth-child(2) {
        grid-column: 2;
    }

    /* Imagen forzada a la segunda columna */
    .inicio .imagen {
        grid-column: 2;
    }
}

/* ============================= */
/* TAMAÑO PEQUEÑO */
/* Pantallas pequeñas (celulares) */
/* ============================= */
@media screen and (max-width: 768px) {

    /* Página Inicio: 1 columna */
    .inicio {
        flex-direction: column;
    }

    .inicio .columna {
        flex: 1;
    }

    /* Página Más vendidos: 1 columna */
    .productos {
        grid-template-columns: 1fr;
    }

    /* Footer en columna */
    footer {
        flex-direction: column;
    }
}


