/**
 * GMoney Cards-slider - Frontend Layout & Styles
 *
 * Author: Valsan Fox
 * Plugin: GMoney Cards-slider
 */

.gmoney-cards-slider-widget {
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.gmoney-cards-slider-main-wrapper {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Tarjeta Principal Unificada */
.gmoney-cards-slider-box {
    width: 100%;
    background-color: #E8F1F2;
    border-radius: 24px;
    padding: 48px 56px 48px 56px;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 48px;
    transition: background-color 0.3s ease, border-radius 0.3s ease;
}

/* Botones Laterales de Navegación */
.gmoney-nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-shrink: 0;
    justify-content: center;
}

.gmoney-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    color: #182b39;
    background-color: transparent;
    border: 1px solid #182b39;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    text-align: center;
    min-width: 160px;
    box-sizing: border-box;
}

.gmoney-nav-btn:hover,
.gmoney-nav-btn.is-active {
    color: #ffffff;
    background-color: #305672;
    border-color: #305672;
}

/* Contenedor del Carrusel Swiper */
.gmoney-cards-slider-container {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    overflow: hidden;
    padding-bottom: 0 !important;
}

/* Contenido Interno de cada Slide (2 Columnas) */
.gmoney-slide-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 380px;
    gap: 40px;
    box-sizing: border-box;
}

/* Columna Izquierda (50%) */
.gmoney-slide-left {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

/* Título del Slide */
.gmoney-slide-title {
    font-family: inherit;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px 0;
    color: #20B26C;
    transition: color 0.3s ease;
}

/* Descripción del Slide */
.gmoney-slide-description {
    font-family: inherit;
    font-size: 18px;
    line-height: 1.5;
    color: #333333;
    margin: 0 0 20px 0;
}

/* Subtítulo del Slide (ej: Uso) */
.gmoney-slide-subtitle {
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 14px 0;
    color: #1F2937;
}

/* Lista de Características */
.gmoney-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Notas / Información Adicional al pie del slide */
.gmoney-slide-notes {
    font-family: inherit;
    font-size: 12px;
    line-height: 1.45;
    color: #333333;
    margin-top: 20px;
}

.gmoney-slide-notes p {
    margin: 0 0 4px 0;
}

.gmoney-slide-notes p:last-child {
    margin-bottom: 0;
}

.gmoney-slide-notes strong,
.gmoney-slide-notes b {
    font-weight: 700;
    color: #111827;
}

.gmoney-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Ícono alineado verticalmente con el texto */
.gmoney-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #20B26C;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.gmoney-feature-icon svg,
.gmoney-feature-icon i {
    width: 1em;
    height: 1em;
    font-size: inherit;
    fill: currentColor;
}

/* Texto de la Característica */
.gmoney-feature-text {
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    color: #1F2937;
    line-height: 1.4;
}

/* Columna Derecha (50%): SVG / Contenido Multimedia */
.gmoney-slide-right {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: visible;
}

.gmoney-media-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    position: relative;
}

.gmoney-media-container img,
.gmoney-media-container object,
.gmoney-media-container svg {
    max-width: 100%;
    max-height: 380px;
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0 auto;
}

.gmoney-animated-svg-object {
    width: 100%;
    height: auto;
    max-height: 380px;
    pointer-events: none;
    overflow: visible;
}

/* Paginación Personalizada Swiper - Ubicada FUERA de la Tarjeta */
.gmoney-swiper-pagination.swiper-pagination {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 10;
    margin-top: 24px;
}

.gmoney-swiper-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #0073FF;
    opacity: 0.4;
    margin: 0 !important;
    cursor: pointer;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-radius 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s ease,
                background-color 0.35s ease;
}

/* Estado Activo: Transición a Píldora */
.gmoney-swiper-pagination .swiper-pagination-bullet-active {
    width: 32px;
    height: 8px;
    border-radius: 10px;
    opacity: 1;
    background-color: #0073FF;
}

/* Adaptabilidad Responsive (Pantallas Tablet y Móviles < 1024px) */
@media (max-width: 1024px) {
    .gmoney-cards-slider-widget {
        width: 100% !important;
    }

    .gmoney-cards-slider-main-wrapper {
        width: 100% !important;
    }

    .gmoney-cards-slider-box {
        flex-direction: column !important;
        padding: 32px 24px !important;
        gap: 28px !important;
        align-items: center !important;
        width: 100% !important;
    }

    .gmoney-nav-buttons {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        justify-content: center !important;
        gap: 12px !important;
    }

    .gmoney-nav-btn {
        flex: 1 1 auto !important;
        min-width: 120px !important;
        padding: 12px 20px !important;
        font-size: 15px !important;
        text-align: center !important;
    }

    .gmoney-cards-slider-container {
        width: 100% !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .gmoney-slide-content {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: auto !important;
        gap: 24px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .gmoney-slide-left,
    .gmoney-slide-right {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        box-sizing: border-box !important;
    }

    .gmoney-slide-title {
        font-size: 2rem !important;
        margin-bottom: 14px !important;
    }

    .gmoney-slide-description {
        font-size: 1.1rem !important;
        margin-bottom: 20px !important;
    }

    .gmoney-features-list {
        margin: 0 auto 10px auto !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        max-width: 100% !important;
    }

    .gmoney-feature-text {
        font-size: 1rem !important;
    }

    .gmoney-slide-right {
        margin-top: 10px !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    .gmoney-media-container {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        min-height: 180px !important;
    }

    .gmoney-media-container img,
    .gmoney-media-container object,
    .gmoney-media-container svg,
    .gmoney-animated-svg-object {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        max-height: 260px !important;
        display: block !important;
        margin: 0 auto !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Dispositivos Móviles (< 768px) */
@media (max-width: 767px) {
    .gmoney-cards-slider-box {
        padding: 24px 16px !important;
        border-radius: 20px !important;
        gap: 20px !important;
    }

    .gmoney-nav-btn {
        width: 100% !important;
        flex: 1 1 100% !important;
        min-width: 100% !important;
        padding: 10px 16px !important;
        font-size: 14px !important;
    }

    .gmoney-slide-title {
        font-size: 1.5rem !important;
        line-height: 1.25 !important;
    }

    .gmoney-slide-description {
        font-size: 0.95rem !important;
    }

    .gmoney-feature-text {
        font-size: 0.9rem !important;
    }

    .gmoney-media-container img,
    .gmoney-media-container object,
    .gmoney-media-container svg,
    .gmoney-animated-svg-object {
        max-height: 200px !important;
    }
}
