/* Contenedor principal del carrusel */
.cdmx-cat-carousel {
    padding: 2.5rem 1rem;
    background: #fff;
    font-family: 'Montserrat', sans-serif;
}

/* Encabezado del carrusel */
.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.carousel-header h2 {
    font-size: 2rem;
    color: #663399;
    font-weight: bold;
}

/* Botones "Ver mapa" y "Ver todo" */
.carousel-actions {
    display: flex;
}

.carousel-actions a {
    margin-left: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.carousel-actions a:hover {
    background: #6d1c8d;
}

/* Wrapper del carrusel */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
}

/* Contenedor de tarjetas */
.carousel-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
}

/* Tarjeta individual */
.cdmx-carousel-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 303px;
    height: 322px;
    border-radius: 12px;
    overflow: hidden;
    background: #eee;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.cdmx-carousel-item:hover {
    transform: translateY(-4px);
}

.cdmx-carousel-item a {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
}

/* Imagen de la tarjeta */
.cdmx-carousel-item img,
.item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
}

/* Título superpuesto */
.cdmx-carousel-item .item-title,
.item-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    padding: 0.75rem 0.5rem;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 2;
}

/* Variante de título negro */
.titulo-negro {
    color: #000;
    font-weight: 800;
}

/* Flechas de navegación */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: transparent;
    border: none;
    color: #FF4991;
    font-size: 4rem;
    font-weight: 800;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.carousel-arrow.left {
    left: 0.5rem;
}

.carousel-arrow.right {
    right: 0.5rem;
}

/* Responsive - Desktop */
@media (min-width: 769px) {
    .carousel-container {
        justify-content: center;
        gap: 4rem;
        padding: 2rem 5rem;
    }

    .cdmx-carousel-item {
        border-radius: 16px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .carousel-header {
        justify-content: center;
    }

    .carousel-header h2 {
        font-size: 1.6rem;
    }
}
