:root {
    --primary-red: #e61e25;
    --dark-bg: #1a1a1a;
    --light-gray: #f5f5f5;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { font-family: 'Inter', sans-serif; color: #333; line-height: 1.3; }

.container { max-width: 1600px; margin: 0 auto; padding: 0 20px; }
p.subtitle {
    opacity: 0.5;
}
/* HEADER PRINCIPAL */
.main-header {
    background-color: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #ececec;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.header-logo {
    height: 36px;
    display: block;
}

/* NAVEGACIÓN */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
}

.main-nav ul li a {
    text-decoration: none;
    color: #666;
    font-size: 0.875rem;
    font-weight: 400;
    transition: color 0.2s ease;
    letter-spacing: 0.01em;
}

.main-nav ul li a:hover {
    color: #e61e25;
}

/* ACCIONES (BUSCAR Y CARRITO) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    cursor: pointer;
}

.search-text {
    font-size: 0.875rem;
    font-weight: 400;
    color: #666;
}

.icon-search, .icon-cart {
    display: flex;
    align-items: center;
    color: #444;
}

.icon-search img, .icon-cart img {
    display: block;
}

.cart-wrapper {
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .main-nav {
        display: none; /* Aquí implementarías un menú hamburguesa */
    }
}
/* HERO */
.hero {
    height: 80vh; background-size: cover; background-position: center;
    display: flex; align-items: center; padding: 0 10%; color: var(--white);
}
.hero-content { max-width: 600px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; font-weight: 800; }
.btn { padding: 12px 30px; border-radius: 30px; text-decoration: none; display: inline-block; }
.btn-primary { background: var(--primary-red); color: white; border: 2px solid var(--primary-red); }
.btn-outline { border: 1px solid white; color: white; background: transparent; }
.btn-link { color: white; background: none; padding-left: 0; padding-right: 0; border: none; }
.hero-buttons { display: flex; align-items: center; gap: 24px; margin-top: 30px; }

/* BANNER WIDE */
.banner-wide {
    height: 510px;
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    margin: 40px auto;
    display: flex;
    align-items: center;
    padding: 0 70px;
    color: white;
    position: relative;
    overflow: hidden;
}

.banner-wide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.65) 40%, transparent);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 480px;
}

.banner-content h2 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
}

.banner-content p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 28px;
    line-height: 1.5;
    width: 80%;
}

.cat-card h3 {
    font-size: 25px;
    padding-bottom: 12px;
}
/* CATEGORIES GRID */
.categories-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px; margin: 50px auto;
}
.cat-card {
    background: var(--light-gray); padding: 40px; border-radius: 20px;
    text-align: center; transition: transform 0.3s;
}
.cat-card:hover { transform: translateY(-5px); }
.cat-card img { max-width: 100%; height: 200px; object-fit: contain; }

/* NEWSLETTER */
.newsletter { background: #222; color: white; padding: 60px 0; }
.news-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.news-form input { padding: 15px; border-radius: 30px 0 0 30px; border: none; width: 300px; }
.news-form button { padding: 15px 30px; border-radius: 0 30px 30px 0; border: none; background: var(--primary-red); color: white; cursor: pointer; }
.mini-categories {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 60px 0;
    gap: 20px;
    text-align: center;
    overflow-x: auto; /* Permite scroll horizontal en móviles si no caben */
}

.mini-cat-item {
    flex: 1;
    min-width: 100px; /* Evita que se aplasten demasiado */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.mini-cat-item:hover {
    transform: translateY(-5px);
}

.mini-cat-item img {
    width: 60px; /* Ajusta según el tamaño de tus assets */
    height: 60px;
    object-fit: contain;
}

.mini-cat-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    white-space: nowrap; /* Mantiene el texto en una sola línea */
}

/* PROMOTIONS SECTION */
.promotions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 60px;
}

.main-promo, .promo-card {
    background-size: cover;
    background-position: center;
    border-radius: 40px; /* Bordes muy redondeados como en Figma */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 60px;
    color: white;
}

/* Efecto de sombra para que el texto resalte sobre cualquier imagen */
.main-promo::before, .promo-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.5), transparent);
    z-index: 1;
}

.promo-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin-left: 22px;
}
.promo-content p {
    padding-bottom: 17px;
}
.main-promo { height: 650px; }
.main-promo h2 { font-size: 3rem; margin-bottom: 15px; font-weight: 800; }
.news-flex h3 {
    font-size: 24px;
    width: 24%;
    margin-left: 10%;
}
/* Grid para las dos tarjetas de abajo */
.secondary-promos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.promo-card { height: 350px; padding: 40px; }
.promo-card h3 { font-size: 1.8rem; margin-bottom: 20px; font-weight: 700; }

/* BOTONES ESPECÍFICOS */
.btn-white {
    background: white;
    color: black;
    font-weight: 600;
    border-radius: 30px;
    padding: 12px 30px;
    text-decoration: none;
}

.btn-outline-white {
    border: 1.5px solid white;
    color: white;
    background: transparent;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
}

.main-footer {
    background-color: #0f0f0f; /* Negro profundo del diseño */
    color: #888; /* Gris suave para los textos */
    padding: 80px 0 40px 0;
    font-size: 0.9rem;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: #aaa;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #fff;
}

/* Columna de Marca y Redes */
.brand-col .footer-logo {
    width: 120px;
    margin-bottom: 20px;
}

.brand-col p {
    margin-bottom: 25px;
    line-height: 1.5;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #1a1a1a;
    border-radius: 50%;
    transition: background 0.3s;
}

.social-icons a:hover {
    background: #333;
}

/* Parte Inferior (Copyright y Legal) */
.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.legal-links a {
    color: #888;
    text-decoration: none;
    margin-left: 20px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .footer-top-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .brand-col {
        grid-column: span 2;
        margin-bottom: 30px;
    }
}

@media (max-width: 600px) {
    .footer-top-grid {
        grid-template-columns: 1fr;
    }
    .brand-col { grid-column: span 1; }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    p.subtitle {
        opacity: 0.8;
    }
    .hero-buttons {
        gap: 46px;
        
    }
    .news-flex h3 {
        width: 86%;
        margin-left: 0;
    }

    .news-form input {
        padding: 15px 10px 15px 15px;
        border-radius: 30px;
        border: none;
        width: 300px;
        margin-bottom: 10px;
    }

    .news-form button {  
        border-radius: 30px;
    }
    .main-footer{
        text-align: center ;
    }
    .social-icons {
        display: flex;
        gap: 15px;
        align-items: center;
        padding-left: 30%;
    }
}
/* RESPONSIVE */
@media (max-width: 768px) {
    .secondary-promos {
        grid-template-columns: 1fr; /* Una encima de otra en móvil */
    }
    .main-promo { height: 400px; padding: 30px; }
    .main-promo h2 { font-size: 2rem; }
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 900px) {
    .mini-categories {
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* 4 columnas en tablet */
        gap: 30px 10px;
    }
}

@media (max-width: 480px) {
    .mini-categories {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en móvil */
    }
}
/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links { display: none; } /* Aquí podrías agregar un menú hamburguesa */
    .hero h1 { font-size: 2.2rem; }
    .news-flex { flex-direction: column; text-align: center; gap: 20px; }
}