:root {
    --brand-primary: #e65100;
    /* naranja suave */
    --brand-dark: #c94600;
    --brand-light: #FDBA74;
    --brand-bg: #FFFFFF;
    --brand-grey: #dbdbdb;
}
.publish-button-wrapper{
    position:absolute;
    right:10px;
    top:50%;
    transform:translateY(-50%);
    z-index:10;
}
/* Cada item de categoría */
.category-container { background: white!important;}
.category-item {
    position: relative; /* base para el dropdown */
    display: inline-block;
    
}
.category-item a {
    color:#808080;
}
.category-item a:hover {
    color: #202020;
}

.category-scroll-wrapper {
    max-width: 1320px; /* igual que container-xl */
    margin: 0 auto;
    position: relative;
    padding: 0 10px;
}
/* Dropdown de subcategorías */
.category-dropdown {
    position: absolute;   /* relativo a category-item */
    top: 100%;            /* justo debajo del link principal */
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    min-width: 180px;
    display: none;
    z-index: 3000;     /* sobre todo el banner y contenido */
}

/* Mostrar dropdown al hover */
.category-item:hover .category-dropdown {
    display: block;
}

/* Links dentro del dropdown */
.category-dropdown a {
    display: block;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.category-dropdown a:hover {
    background: #f0f0f0;
}

/* Asegurarse que el contenedor de categorías no recorte */
.bg-light.border-top {
    position: relative;
    overflow: visible;
    padding:10px
}

/* Scroll horizontal de categorías */
/* Scroll horizontal categorías mobile */
.category-scroll::-webkit-scrollbar {
    display: none;
}

/* Caret icon */
.category-item > a i.fa-caret-down {
    font-size: 0.7rem;
    margin-left: 4px;
}

/************ HOME CATEGORIAS **************/
.home-categories {
    padding: 70px 0;
    background: #f5f5f5;
    overflow: hidden;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
}

.categories-slider {
    position: relative;
    overflow: visible;
}

.categories-track {
    display: flex;
    gap: 25px;
    width: max-content;
    animation: scrollCategories 30s linear infinite;
}

.category-card {
    position: relative;
    width: 280px;
    height: 340px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    text-decoration: none;
}

.category-card img {
    width: 100%;
    /* height: 100%; */
    /* object-fit: cover; */
    transition: transform .4s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px 20px;
    background: linear-gradient(to top, rgba(206, 206, 206, 0.75) 0%, rgba(239, 239, 239, 0.4) 50%, rgba(0, 0, 0, 0.0) 100%);
    color: #000;
    /*text-shadow: 0px 0px 3px #606060;*/
}

.category-overlay h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.stars {
    color: var(--brand-primary);
    font-size: 0.95rem;
}

@keyframes scrollCategories {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .category-card {
        width: 220px;
        height: 280px;
    }

    .section-title {
        font-size: 1.6rem;
    }
}