/* Reset y estilos base */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #ffffff;
}

/* Estilos para el Banner Principal - Pegado arriba */
.hero-banner {
    width: 100vw;
    margin: 0;
    padding: 0;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 0;
    overflow: hidden;
    background-color: #ffffff;
}

.banner-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center center;
    min-height: 200px;
    max-width: 100%;
    background-color: #ffffff;
}

/* Estilos para la Sección de Categorías */
.categories-section {
    width: 100vw;
    padding: 60px 0;
    background: #ffffff;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.categories-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0;
    width: 100%;
}

.category-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 1px solid rgba(0,190,3,0.1);
    position: relative;
    margin: 0;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00be03, #00a802);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,190,3,0.15);
    border-color: rgba(0,190,3,0.3);
    z-index: 10;
}

.category-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.category-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Estilos para la Sección de Productos */
.products-section {
    width: 100vw;
    padding: 60px 0;
    background: #ffffff;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.woocommerce-products {
    margin: 0;
    padding: 0 20px;
}

.view-all-products {
    text-align: center;
    margin-top: 50px;
    padding: 0 20px;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #00be03, #00a802);
    color: #ffffff !important;
    padding: 16px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,190,3,0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00a802, #008f01);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,190,3,0.4);
    color: #ffffff !important;
}

.btn-primary:visited {
    color: #ffffff !important;
}

.btn-primary:active {
    color: #ffffff !important;
}

/* Responsive Design - Desktop Large */
@media (max-width: 1400px) {
    .categories-container {
        padding: 0 25px;
    }
    
    .woocommerce-products {
        padding: 0 25px;
    }
    
    .view-all-products {
        padding: 0 25px;
    }
}

/* Responsive Design - Desktop */
@media (max-width: 1200px) {
    .categories-grid {
        gap: 15px;
    }
}

/* Responsive Design - Tablet */
@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .category-image {
        height: 180px;
    }
    
    .categories-section {
        padding: 50px 0;
    }
    
    .products-section {
        padding: 50px 0;
    }
}

/* Responsive Design - Mobile Large */
@media (max-width: 768px) {
    .categories-container {
        padding: 0 20px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .category-image {
        height: 160px;
    }
    
    .hero-banner {
        margin-bottom: 0;
    }
    
    .categories-section {
        padding: 40px 0;
    }
    
    .products-section {
        padding: 40px 0;
    }
    
    .btn-primary {
        padding: 14px 30px;
        font-size: 0.9rem;
        color: #ffffff !important;
    }
    
    .woocommerce-products {
        padding: 0 15px;
    }
    
    .view-all-products {
        padding: 0 15px;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 576px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-image {
        height: 180px;
    }
    
    .hero-banner {
        margin-bottom: 0;
    }
    
    .categories-section {
        padding: 30px 0;
    }
    
    .products-section {
        padding: 30px 0;
    }
    
    .view-all-products {
        margin-top: 40px;
    }
    
    .btn-primary {
        color: #ffffff !important;
    }
}

/* Responsive Design - Mobile Small */
@media (max-width: 480px) {
    .category-image {
        height: 160px;
    }
    
    .btn-primary {
        padding: 12px 25px;
        font-size: 0.85rem;
        color: #ffffff !important;
    }
}

/* Responsive Design - Mobile Extra Small */
@media (max-width: 360px) {
    .btn-primary {
        padding: 10px 20px;
        font-size: 0.8rem;
        color: #ffffff !important;
    }
}

/* Fix específico para el banner en móvil */
@media (max-width: 768px) {
    .hero-banner {
        width: 100vw;
        max-width: 100vw;
        overflow: hidden;
        margin-left: -50vw;
        margin-right: -50vw;
    }
    
    .banner-container {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        padding: 0;
    }
    
    .hero-image {
        min-height: 150px;
        object-fit: contain;
        object-position: center center;
        width: 100%;
        max-width: 100%;
        height: auto;
        background-color: #ffffff;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        width: 100vw;
        max-width: 100vw;
        overflow: hidden;
        margin-left: -50vw;
        margin-right: -50vw;
    }
    
    .banner-container {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        padding: 0;
    }
    
    .hero-image {
        min-height: 120px;
        object-fit: contain;
        object-position: center center;
        width: 100%;
        max-width: 100%;
        height: auto;
        background-color: #ffffff;
    }
}

@media (max-width: 360px) {
    .hero-banner {
        width: 100vw;
        max-width: 100vw;
        overflow: hidden;
        margin-left: -50vw;
        margin-right: -50vw;
    }
    
    .banner-container {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        padding: 0;
    }
    
    .hero-image {
        min-height: 100px;
        object-fit: contain;
        object-position: center center;
        width: 100%;
        max-width: 100%;
        height: auto;
        background-color: #ffffff;
    }
}
