:root {
    --pink: #e88fb4;
    --dark: #1d2b3a;
    --gold: #d4ac0d;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.modtopping {
    padding: 30px 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.modtopping__header {
    text-align: center;
    margin-bottom: 50px;
}

.modtopping__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--dark);
    margin: 0;
    font-weight: 700;
}

.modtopping__title i {
    font-style: italic;
    color: var(--pink);
}

.modtopping__container {
    width: 100%;
    max-width: 1100px;
    position: relative;
    padding: 0 50px;
    box-sizing: border-box;
}

.modtopping__carousel-viewport {
    overflow: hidden;
    border-radius: 40px;
}

.modtopping__carousel {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    cursor: grab;
    user-select: none;
}

.modtopping__carousel.grabbing {
    cursor: grabbing;
}

.modtopping__card {
    flex: 0 0 calc(33.333% - 13.5px);
    height: 480px;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.modtopping__img {
    user-select: none;
    -webkit-user-drag: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.modtopping__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(29, 43, 58, 0.9) 0%, rgba(29, 43, 58, 0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 35px 25px;
    box-sizing: border-box;
}

.modtopping__category {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--pink);
    margin-bottom: 5px;
}

.modtopping__card-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--white);
    margin: 0;
}

/* --- Navegación --- */
.modtopping__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--pink);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.modtopping__arrow:hover {
    background: var(--pink);
    color: var(--white);
    border-color: var(--pink);
}

.modtopping__arrow--prev {
    left: 0;
}

.modtopping__arrow--next {
    right: 0;
}

.modtopping__pagination {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 40px;
}

.modtopping__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #e2e8f0;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    padding: 0;
}

.modtopping__dot--active {
    background-color: var(--gold);
    transform: scale(1.3);
    box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--gold);
}

@media (max-width: 1024px) {
    .modtopping__card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .modtopping__container {
        padding: 0 20px;
    }

    .modtopping__card {
        flex: 0 0 85%;
    }

    .modtopping__arrow {
        width: 65px;
        height: 65px;
    }
}

@media (max-width: 576px) {
    .modtopping__header {
        margin-bottom: 10px;
    }

    .modtopping__pagination {
        margin-top: 20px;
    }

    .modtopping__dot {
        width: 20px;
        height: 20px;
    }
}



/* Carrusel Nuevo */
.snack-module {
    width: 100%;
    padding: 20px 0;
    background-color: #fff9fb; /* Fondo rosado muy tenue */
}

.snack-module .snack-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.snack-module .snack-category-title {
    font-style: italic;
    color: #d4a75b; 
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 60px; 
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.snack-module .snack-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 80px;
}

/* Tarjeta Principal */
.snack-module .snack-card {
    background: #fff;
    border: 1px solid #f0d8a8; /* Borde dorado suave */
    border-radius: 15px;
    padding: 60px 20px 30px 20px; /* Padding superior alto para la imagen */
    text-align: center;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.snack-module .snack-card:hover {
    transform: translateY(-5px);
}

/* Círculo Flotante de Imagen */
.snack-module .snack-img-wrapper {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    background: #333; /* Fondo para la imagen */
    border: 4px solid #fff;
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.snack-module .snack-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.snack-module .snack-img-wrapper.bg-teal {
    background-color: #26a69a;
}

/* Botones Icono (Corazón / Plus) */
.snack-module .snack-fav-btn,
.snack-module .snack-add-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: 1px solid #f0d8a8;
    color: #d4a75b;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Textos */
.snack-module .snack-name {
    font-size: 18px;
    color: #111;
    margin: 10px 0 5px 0;
    font-weight: 700;
}

.snack-module .snack-tag {
    font-size: 11px;
    color: #d4a75b;
    letter-spacing: 1px;
    font-weight: 600;
}

/* --- LÓGICA DE CARRUSEL (Mobile y +4 items) --- */
@media (max-width: 900px) {
    .snack-module .snack-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 60px 10px 20px 10px; /* Padding extra para sombras y flotantes */
        gap: 20px;
        scrollbar-width: none; /* Ocultar scroll en Firefox */
    }

    .snack-module .snack-grid::-webkit-scrollbar {
        display: none; /* Ocultar scroll en Chrome/Safari */
    }

    .snack-module .snack-card {
        min-width: 240px; /* Tamaño fijo en carrusel */
        scroll-snap-align: center;
    }
}