/* ============================================
   HOMIES - Estilo Minimalista Urbano
   Paleta: #da3b3c | #2f2f2f | #ffffff | #000000
   ============================================ */

:root {
    --red: #da3b3c;
    --dark: #2f2f2f;
    --white: #ffffff;
    --black: #000000;
    --gray-light: #f5f5f5;
    --gray: #e0e0e0;
    --gray-text: #717171;
    --font-main: 'Helvetica Neue', Arial, sans-serif;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

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

/* ---- NAV ---- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 3rem;
    background: var(--white);
    border-bottom: 1px solid var(--gray);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .logo img {
    height: 45px;
    width: auto;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--dark);
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--red);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-actions a {
    color: var(--dark);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.nav-actions a:hover {
    color: var(--red);
}

.cart-count {
    background: var(--red);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 50%;
    margin-left: 3px;
    vertical-align: super;
}

/* ---- MAIN ---- */
main {
    min-height: 80vh;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-block;
    padding: 0.85rem 2.2rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--red);
    color: var(--white);
}

.btn-primary:hover {
    background: #c12e2f;
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--dark);
}

.btn-outline-dark {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.5);
}

.btn-outline-dark:hover {
    background: var(--white);
    color: var(--dark);
    border-color: var(--white);
}

.btn-dark {
    background: var(--black);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--dark);
}

/* ============================================
   HERO BANNER
   ============================================ */
.hero-banner {
    position: relative;
    height: 85vh;
    min-height: 500px;
    max-height: 800px;
    background: var(--dark) url('/assets/img/hero-banner.svg') center/cover no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(47,47,47,0.95) 0%, rgba(47,47,47,0.6) 50%, rgba(218,59,60,0.15) 100%);
    z-index: 1;
}

.hero-banner-content {
    position: relative;
    z-index: 2;
    padding: 0 6rem;
    max-width: 700px;
}

.hero-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--red);
    border: 1px solid var(--red);
    padding: 0.4rem 1rem;
    margin-bottom: 1.5rem;
}

.hero-banner-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-banner-content p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* ============================================
   SECCIONES
   ============================================ */
.section {
    padding: 5rem 3rem;
}

.section-gray {
    background: var(--gray-light);
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--black);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--red);
    margin: 0.8rem auto 0;
}

/* ============================================
   CATEGORÍAS
   ============================================ */
.categories-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
}

.category-card {
    flex: 0 0 180px;
    scroll-snap-align: start;
    text-align: center;
    transition: transform 0.2s;
}

.category-card:hover {
    transform: translateY(-4px);
}

.category-card img,
.category-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gray);
    margin-bottom: 0.8rem;
}

.category-placeholder {
    background: var(--gray-light);
}

.category-card-name {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--dark);
}

/* ============================================
   CARRUSEL DE PRODUCTOS
   ============================================ */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 1.2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-track .product-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--white);
    border: 1px solid var(--gray);
    color: var(--dark);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.carousel-btn:hover {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.product-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--gray);
    transition: all 0.25s;
    overflow: hidden;
}

.product-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.product-card-img {
    position: relative;
    overflow: hidden;
}

.product-card-img img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.4s;
}

.product-card:hover .product-card-img img {
    transform: scale(1.05);
}

.product-no-img {
    width: 100%;
    aspect-ratio: 1;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-text);
    font-size: 0.8rem;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--red);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    letter-spacing: 0.5px;
}

.product-card-info {
    padding: 1rem 1.2rem;
}

.product-card-info h3 {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--dark);
    line-height: 1.3;
}

.product-card-prices {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-card-prices .price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--black);
}

.product-card-prices .price-old {
    font-size: 0.82rem;
    color: var(--gray-text);
    text-decoration: line-through;
}

/* ============================================
   PROMO BANNER
   ============================================ */
.promo-banner {
    background: var(--dark);
    padding: 5rem 3rem;
    text-align: center;
}

.promo-banner-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.8rem;
}

.promo-banner-content p {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--dark);
    color: var(--gray);
    padding: 4rem 3rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-grid h4 {
    color: var(--white);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.footer-grid ul {
    list-style: none;
}

.footer-grid ul li {
    margin-bottom: 0.5rem;
}

.footer-grid ul a {
    color: var(--gray-text);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-grid ul a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.72rem;
    color: var(--gray-text);
    letter-spacing: 0.5px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-banner-content {
        padding: 0 3rem;
    }

    .hero-banner-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0.8rem 1.5rem;
    }

    .nav-actions {
        gap: 0.8rem;
    }

    .nav-actions a,
    .nav-menu a {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .hero-banner {
        height: 70vh;
        min-height: 400px;
    }

    .hero-banner-content {
        padding: 0 2rem;
    }

    .hero-banner-content h1 {
        font-size: 2rem;
    }

    .hero-banner-content p {
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .hero-buttons .btn {
        text-align: center;
    }

    .section {
        padding: 3.5rem 1.5rem;
    }

    .section-title {
        font-size: 1.1rem;
        letter-spacing: 3px;
    }

    .category-card {
        flex: 0 0 130px;
    }

    .category-card img,
    .category-placeholder {
        width: 130px;
        height: 130px;
    }

    .carousel-track .product-card {
        flex: 0 0 200px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .promo-banner {
        padding: 3.5rem 1.5rem;
    }

    .promo-banner-content h2 {
        font-size: 1.4rem;
    }

    footer {
        padding: 3rem 1.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        display: none;
    }

    .hero-banner {
        height: 60vh;
    }

    .hero-banner-content h1 {
        font-size: 1.6rem;
    }

    .hero-tag {
        font-size: 0.6rem;
        padding: 0.3rem 0.8rem;
    }

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

    .carousel-track .product-card {
        flex: 0 0 180px;
    }

    .category-card {
        flex: 0 0 100px;
    }

    .category-card img,
    .category-placeholder {
        width: 100px;
        height: 100px;
    }

    .category-card-name {
        font-size: 0.7rem;
    }
}
