.mi-carousel {
    margin-top: 5rem;
    width: 100vw;
    max-width: 100%;
    margin-left: 50%;
    transform: translateX(-50%);
}

.mi-carousel-inner {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.mi-carousel-track {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
}

.mi-carousel-item {
    flex: 0 0 70%;
    padding: 0 1rem;
    box-sizing: border-box;
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0.5;
    transform: scale(0.75);
}

@media (min-width: 1024px) {
    .mi-carousel-item {
        flex: 0 0 24rem;
    }
}

.mi-carousel-item.is-active {
    opacity: 1;
    transform: scale(1);
}

.mi-carousel-img {
    display: block;
    margin: 0 auto 1rem auto;
    max-width: 75%;
}

.mi-carousel-text {
    text-align: center;
}

.mi-carousel-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
    .mi-carousel-title {
        font-size: 1.125rem;
    }
}

@media (min-width: 1024px) {
    .mi-carousel-title {
        font-size: 1.25rem;
    }
}

.mi-carousel-desc {
    font-size: 0.9rem;
}

@media (min-width: 640px) {
    .mi-carousel-desc {
        font-size: 1rem;
    }
}

.mi-carousel-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem auto 0 auto;
    max-width: 64rem;
    padding: 0 1rem;
    box-sizing: border-box;
}

.mi-carousel-prev,
.mi-carousel-next {
    border: none;
    background: #111827;
    color: #ffffff;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mi-carousel-prev:disabled,
.mi-carousel-next:disabled {
    opacity: 0.4;
    cursor: default;
}

.mi-carousel-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.mi-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    background: #d1d5db;
    cursor: pointer;
    padding: 0;
}

.mi-carousel-dot.is-active {
    width: 18px;
    background: #111827;
}

/* Estilos extra para el editor */

.mi-carousel-editor {
    border: 1px dashed #d1d5db;
    padding: 16px;
    border-radius: 4px;
}

.mi-carousel-editor-item {
    background: #f9fafb;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 12px;
}

.mi-carousel-editor-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.mi-carousel-editor-body {
    display: flex;
    gap: 12px;
}

.mi-carousel-editor-image {
    min-width: 160px;
}

.mi-carousel-editor-text .mi-carousel-title,
.mi-carousel-editor-text .mi-carousel-desc {
    text-align: left;
}
