/* ============================================================
   Momentum Slider Shortcode — momentum-slider.css
   Coloca este archivo en la misma carpeta que el plugin PHP
   ============================================================ */

/* Contenedor principal del shortcode */
.ms-shortcode-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Área donde viven todos los sliders */
.ms-sliders-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

/* ── SLIDER: Imágenes ──────────────────────────────────── */
.ms--images {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 430px;
    max-width: 100%;
    left: calc(50% - (700px / 2 - 70px));
}

.ms--images .ms-track {
    display: flex;
    position: absolute;
    white-space: nowrap;
    padding: 0;
    margin: 0;
    list-style: none;
    left: calc(50% - 350px);
}

.ms--images.ms-container--horizontal .ms-track {
    left: -70px;
}

.ms--images .ms-slide {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 800px;
    height: 400px;
    user-select: none;
}

.ms--images .ms-slide__image-container {
    width: 95%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.ms--images .ms-slide__image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* ── SLIDER: Números ───────────────────────────────────── */
.ms--numbers {
    position: absolute;
    overflow: hidden;
    width: 240px;
    height: 240px;
    left: calc(50% - (700px / 2 + 60px));
    top: calc(50% - (400px / 2 + 240px / 2 - -50px));
    z-index: -1;
    pointer-events: none;
}

.ms--numbers .ms-track {
    display: flex;
    position: absolute;
    white-space: nowrap;
    padding: 0;
    margin: 0;
    list-style: none;
    left: calc(50% - 120px);
}

.ms--numbers .ms-slide {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 240px;
    font-size: 9em;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.2);
    user-select: none;
}

/* ── SLIDER: Títulos ───────────────────────────────────── */
.ms--titles {
    position: absolute;
    overflow: hidden;
    width: 770px;
    height: 220px;
    left: calc(50% - (700px / 2 + 70px));
    top: calc(50% - 135px);
    z-index: 1;
    pointer-events: none;
}

.ms--titles .ms-track {
    display: flex;
    position: absolute;
    white-space: normal;
    padding: 0;
    margin: 0;
    list-style: none;
    flex-direction: column-reverse;
    bottom: calc(50% - 85px);
}

.ms--titles .ms-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 170px;
    font-size: 3.3em;
    font-weight: 600;
    user-select: none;
    color: #fff;
}

.ms--titles .ms-slide h3 {
    font-family: 'Druk Cyr', Helvetica, Arial, sans-serif;
    margin: 0;
    font-size: 70px;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px black;
    color: #FFFFFF;
    text-transform: uppercase;
}

/* ── SLIDER: Links ─────────────────────────────────────── */
.ms--links {
    position: absolute;
    overflow: hidden;
    width: 120px;
    height: 60px;
    left: calc(50% - (700px / 2 + 70px));
    top: calc(50% + (170px / 2 + 20px));
    z-index: 1;
}

.ms--links .ms-track {
    display: flex;
    position: absolute;
    white-space: normal;
    padding: 0;
    margin: 0;
    list-style: none;
    flex-direction: column;
    top: calc(50% - 30px);
}

.ms--links .ms-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 60px;
    user-select: none;
}

.ms-sliders-container.wpb_wrapper ul li, 
.ms-sliders-container > .wpb_wrapper ul li,
.ms-sliders-container .ms-pagination .ms-pagination__item,
.ms-sliders-container > * ul li,
.ms-sliders-container ul li,
.ms-sliders-container * > ul li, 
.ms-pagination__item *,
.ms-pagination__item {
    list-style-type: none !important;
    background: none !important;
    background-position: none !important;
    background-size: none;
    padding: 0;
    margin-left: 0;
}

.ms--links .ms-slide__link {
    font-weight: 600;
    padding: 5px 0 8px;
    border-bottom: 2px solid #C1D100;
    cursor: pointer;
    color: #fff;
    text-decoration: none;
}

.ms--links .ms-slide__link:hover {
    opacity: 0.8;
}

/* ── PAGINACIÓN ────────────────────────────────────────── */
.ms-pagination {
    display: flex;
    position: absolute;
    left: calc(50% - (700px / 2 + 70px));
    top: calc(90%);
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    z-index: 1;
}

.ms-pagination__button {
    display: inline-block;
    position: relative;
    width: 36px;
    height: 20px;
    margin: 0 5px;
    cursor: pointer;
}

.ms-pagination__button:before,
.ms-pagination__button:after {
    content: '';
    position: absolute;
    left: 0;
    top: calc(50% - 1px);
    width: 100%;
    box-shadow: 0 1px 0 #0B0D14;
}

.ms-pagination__button:before {
    height: 2px;
    background-color: #596101;
}

.ms-pagination__button:after {
    height: 3px;
    background-color: #C1D100;
    opacity: 0;
    transition: 0.5s opacity;
}

.ms-pagination__item--active .ms-pagination__button:after {
    opacity: 1;
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media screen and (max-width: 860px) {
    .ms--numbers {
        left: calc(50% - 120px);
    }
    .ms--titles {
        left: calc(50% - 200px);
        top: calc(50% - 135px);
        text-align: center;
    }
    .ms--links {
        left: calc(50% - 60px);
        top: calc(50% + 80px);
    }
    .ms-pagination {
        left: 50%;
        top: calc(100% - 50px);
        transform: translateX(-50%);
    }
}

@media screen and (max-width: 600px) {
    .ms--images {
        overflow: visible;
    }
}

@media screen and (max-width: 400px) {
    .ms--titles .ms-slide {
        transform: scale(0.8);
    }
}
