/* ============================================================
   WIDGET 1: BOTONES (HAZT-CATEGORIES-LIST)
   ============================================================ */

.hazt-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap; 
    width: 100%;
}

/* ORIENTACIÓN */
.hazt-layout-horizontal {
    flex-direction: row;
}

.hazt-layout-vertical {
    flex-direction: column;
}

.hazt-layout-vertical .hazt-cat-item {
    width: 100%;
}

.hazt-layout-vertical .hazt-cat-item a {
    display: flex;
    width: 100%;
}

/* ESTILO DE BOTÓN (ESTRUCTURAL) */
.hazt-cat-item a {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    border-style: solid; 
}

.hazt-cat-item a:hover {
    transform: translateY(-1px);
}

/* Contador */
.hazt-cat-count {
    font-size: 0.8em;
    opacity: 0.8;
    margin-left: 10px;
    pointer-events: none;
}

/* ============================================================
   WIDGET 2: CARRUSEL (HAZT-CAROUSEL)
   ============================================================ */

/* Contenedor externo para evitar cortes en el hover */
.hazt-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 10px 0; /* Espacio extra para que el efecto "scale" no se corte */
}

.hazt-carousel-container {
    width: 100%;
}

/* Cada item del carrusel */
.hazt-carousel-item a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Imagen de la categoría */
.hazt-carousel-img {
    width: 100%;
    padding-bottom: 100%; /* Cuadrado: mantiene aspect ratio 1:1 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 15px;
    background-color: #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

/* Efecto Hover en la imagen */
.hazt-carousel-item:hover .hazt-carousel-img {
    transform: scale(1.08); /* Crece un poco más */
}

/* Título debajo de la imagen */
.hazt-carousel-title {
    font-weight: 700;
    text-align: center;
    color: #000;
    margin-top: 5px;
    line-height: 1.2;
}

/* Flechas de navegación */
.hazt-carousel-container {
    position: relative;
}

.hazt-carousel-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    user-select: none;
    font-size: 24px;
    color: #333;
    background: rgba(255, 255, 255, 0.85);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s ease, background 0.3s ease;
}

.hazt-carousel-arrow:hover {
    background: rgba(255, 255, 255, 1);
}

.hazt-carousel-arrow-prev {
    left: -18px;
}

.hazt-carousel-arrow-next {
    right: -18px;
}

.hazt-carousel-arrow.swiper-button-disabled {
    opacity: 0.3;
    cursor: default;
}

/* En móvil, flechas dentro del carrusel */
@media (max-width: 767px) {
    .hazt-carousel-arrow-prev {
        left: 4px;
    }
    .hazt-carousel-arrow-next {
        right: 4px;
    }
}

/* Ajuste para que Swiper funcione correctamente */
.swiper-slide {
    height: auto; /* Permite que el slide se ajuste al contenido */
}