.planeacion-carousel-container {
    position: relative;
    overflow: visible;
    max-width: 950px;
    margin: 0 auto;
}

.planeacion-carousel-container .swiper {
    overflow: visible;
    padding: 20px 30px;
    margin: 0 -5px;
}

.planeacion-carousel-container .swiper-wrapper {
    align-items: stretch;
    height: auto;
}

.planeacion-carousel-container .swiper-slide {
    height: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    display: flex;
    padding: 0 5px;
}

.planeacion-carousel-container .swiper-slide-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.planeacion-carousel-container .swiper-slide-active,
.planeacion-carousel-container .swiper-slide-next,
.planeacion-carousel-container .swiper-slide-prev {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.planeacion-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    border: 3px solid #0689F4;
    box-shadow: 0 4px 20px rgba(6, 137, 244, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.planeacion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(6, 137, 244, 0.15);
}

.planeacion-card-title {
    padding: 20px;
    font-size: 1.5rem;
    font-weight: 400;
    color: #ffffff;
    background: #0689F4;
    text-align: center;
    letter-spacing: 0.5px;
    font-family: 'Helvetica', sans-serif !important;
}

.planeacion-card-content {
    flex: 1;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.planeacion-card-content p {
    margin-bottom: 0;
    width: 100%;
}

.planeacion-card-content p:last-child {
    margin-bottom: 0;
}

/* Estilos base del botón */
.planeacion-btn {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start;
    min-height: 48px;
    min-width: clamp(180px, 90%, 300px);
    padding: clamp(8px, 2vw, 12px) clamp(8px, 4vw, 12px) clamp(8px, 2vw, 12px) clamp(8px, 2vw, 12px);
    background-color: #fe9617;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-family: 'Yaro', sans-serif;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    margin: 8px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: auto;
    max-width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.planeacion-card-content p {
    justify-content: center;
}

.planeacion-btn:hover,
.planeacion-btn:focus {
    background-color: #E76F51;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #ffffff;
    text-decoration: none;
}

.planeacion-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Mejorar el centrado del número */
.planeacion-btn .numero {
    position: relative;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    background-color: #0c8af2;
    color: #ffffff;
    border-radius: 50%;
    margin-right: 16px;
    font-weight: 600;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 0 0 auto;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    line-height: 0;
    text-align: center;
    vertical-align: middle;
}

/* Contenedor interno para mejor centrado */
.planeacion-btn .numero::before {
    content: '';
    display: block;
    padding-bottom: 100%;
    grid-area: 1 / 1 / 2 / 2;
}

.planeacion-btn .numero > span {
    grid-area: 1 / 1 / 2 / 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin-top: 5px;
}

.planeacion-btn:hover .numero {
    transform: scale(1.05);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* Mejorar la coherencia del texto */
.planeacion-btn .texto {
    flex: 1 1 auto;
    text-align: left;
    white-space: normal;
    word-break: break-word;
    padding: 4px 4px 4px 0;
    min-width: 0;
    display: block;
}

/* Estilos de navegación */
.planeacion-carousel-container .elementor-swiper-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 2px solid #0689F4;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(6, 137, 244, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0;
}

.planeacion-carousel-container .elementor-swiper-button.elementor-swiper-button-hidden,
.planeacion-carousel-container .elementor-swiper-button[style*="display: none"] {
    display: none !important;
}

.planeacion-carousel-container .elementor-swiper-button i {
    font-size: 20px;
    color: #0689F4;
    transition: color 0.2s ease;
}

.planeacion-carousel-container .elementor-swiper-button:hover {
    background: #cae7ff;
    transform: translateY(-50%) scale(1.05);
}

.planeacion-carousel-container .elementor-swiper-button-prev {
    left: -25px !important;
}

.planeacion-carousel-container .elementor-swiper-button-next {
    right: -25px !important;
}

/* Estilos de paginación */
.planeacion-carousel-container .swiper-pagination {
    position: absolute;
    bottom: -1.1rem !important;
    left: 0;
    right: 0;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.planeacion-carousel-container .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #0689F4;
    opacity: 0.3;
    transition: all 0.2s ease;
    margin: 0 4px;
}

.planeacion-carousel-container .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

.planeacion-carousel-container .swiper-pagination.swiper-pagination-hidden,
.planeacion-carousel-container .swiper-pagination[style*="display: none"] {
    display: none !important;
}

/* Efectos de transición */
.planeacion-carousel-container .swiper-slide-fade {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.planeacion-carousel-container .swiper-slide-fade-active {
    opacity: 1;
}

/* Estilos para el editor de Elementor */
.elementor-editor-active .planeacion-carousel-container {
    min-height: 200px;
}

.elementor-editor-active .planeacion-card {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Estilos específicos para el editor de Elementor */
.elementor-editor-active .planeacion-btn {
    pointer-events: none;
}

/* Responsive */
@media screen and (min-width: 1024px) {
    .planeacion-btn {
        min-height: 56px;
    }
    
    .planeacion-btn .numero {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }
}

@media screen and (max-width: 1023px) {
    .planeacion-btn {
        min-height: 48px;
        min-width: 220px;
        font-size: 16px;
    }
    
    .planeacion-btn .numero {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
    }
}

@media screen and (max-width: 767px) {
    .planeacion-btn {
        min-height: 44px;
        min-width: 100%;
        width: 100%;
        font-size: 14px;
        justify-content: flex-start;
        padding: 8px 16px 8px 8px;
    }
    
    .planeacion-btn .numero {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
        margin-right: 8px;
    }
}

/* Estilos para botones sin enlace */
.planeacion-btn[href="javascript:void(0);"],
.planeacion-btn:not([href]) {
    cursor: default;
    opacity: 0.9;
}

.planeacion-btn[href="javascript:void(0);"]:hover,
.planeacion-btn:not([href]):hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #fe9617;
}

.planeacion-btn[href="javascript:void(0);"] .numero,
.planeacion-btn:not([href]) .numero {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .planeacion-carousel-container {
        padding: 20px 40px;
    }

    .planeacion-carousel-container .swiper {
        padding: 20px 40px;
    }

    .planeacion-card-title {
        font-size: 1.25rem;
        padding: 15px;
    }

    .planeacion-card-content {
        padding: 20px;
    }

    .planeacion-carousel-container .elementor-swiper-button {
        width: 35px;
        height: 35px;
    }

    .planeacion-carousel-container .elementor-swiper-button i {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .planeacion-carousel-container {
        padding: 20px 35px;
    }

    .planeacion-carousel-container .swiper {
        padding: 20px 35px;
    }

    .planeacion-carousel-container .elementor-swiper-button {
        width: 30px;
        height: 30px;
    }

    .planeacion-carousel-container .elementor-swiper-button i {
        font-size: 14px;
    }
}

/* Mejoras en la accesibilidad */
.planeacion-carousel-container .elementor-swiper-button:focus,
.planeacion-carousel-container .swiper-pagination-bullet:focus {
    outline: 2px solid #0689F4;
    outline-offset: 2px;
}

.planeacion-carousel-container .elementor-swiper-button:focus:not(:focus-visible),
.planeacion-carousel-container .swiper-pagination-bullet:focus:not(:focus-visible) {
    outline: none;
}

/* Efectos de transición personalizados */
.planeacion-carousel-container [data-effect="fade"] .swiper-slide {
    transition: opacity 0.5s ease;
}

.planeacion-carousel-container [data-effect="cube"] .swiper-slide {
    transition: transform 0.5s ease;
}

.planeacion-carousel-container [data-effect="coverflow"] .swiper-slide {
    transition: transform 0.5s ease;
}

.planeacion-carousel-container [data-effect="flip"] .swiper-slide {
    transition: transform 0.5s ease;
}

/* Asegurar consistencia en Elementor */
.elementor-editor-active .planeacion-btn,
.elementor-editor-preview .planeacion-btn {
    display: inline-flex !important;
    width: auto !important;
}

.elementor .planeacion-btn {
    text-decoration: none !important;
}

/* Mejorar la apariencia en el editor */
.elementor-editor-active .planeacion-carousel-container .swiper-slide {
    display: flex;
    justify-content: center;
}