/* ══════════════════════════════════════════
   Modal Slider Builder — Frontend Styles
   ══════════════════════════════════════════ */

/* ── Botón de apertura ── */
.msb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 35px;
    border: none;
    cursor: pointer;
    transition: background 180ms ease, transform 120ms ease;
    color: #FFF;
    text-align: center;
    font-family: "Helvetica Rounded LT Std";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
    border-radius: 24px;
    background: #01C5C6;
}
.msb-btn:hover  { background: #01EBED; }
.msb-btn:active { transform: scale(0.97); }

/* ── Overlay ── */
.msb-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 280ms ease;
    backdrop-filter: blur(3px);
}
.msb-overlay.msb-open {
    opacity: 1;
    pointer-events: all;
}

/* ── Contenedor modal ── */
.msb-modal {
    position: relative;
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow: hidden;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0,0,0,0.22);
    transform: translateY(24px) scale(0.97);
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.msb-overlay.msb-open .msb-modal {
    transform: translateY(0) scale(1);
}

/* ── Botón cerrar ── */
.msb-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    border-radius: 50%;
    background: transparent;
    border: none;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: #002559;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 180ms ease;
    padding: 0;
}
.msb-close:focus{
	background: transparent;
	outline: none;
}
.msb-close:hover { background: transparent; }

/* ════════════════════════════════════════
   SWIPER PRINCIPAL
   ════════════════════════════════════════ */
.msb-main-swiper { width: 100%; }

.msb-main-prev,
.msb-main-next {
    width: 38px;
    height: 38px;
    bottom: 15px;
    top: initial;
}
.msb-main-prev:focus,
.msb-main-next:focus {
	outline: none !important;
}
.msb-main-prev::after,
.msb-main-next::after { font-size: 13px !important; font-weight: 700; }
.msb-main-prev { 
	left: 30%; 
}
.msb-main-next { 
	right: 30%; 
}

.msb-main-pagination { 
	bottom: 16px !important; 
}
.msb-main-pagination .swiper-pagination-bullet-active { 
	background: #002559; 
}

/* ════════════════════════════════════════
   CONTENIDO DE CADA DIAPOSITIVA
   ════════════════════════════════════════ */
.msb-slide { height: auto !important; }

.msb-slide-inner {
    padding: 32px 28px 80px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msb-slide-title {
    margin: 0;
    color: #002559;
    font-family: "Helvetica Rounded LT Std";
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 32px;
}
.msb-slide-desc {
    margin: 0;
    color: #6D809D;
    font-family: 'Helvetica Rounded LT Std';
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}
.msb-slide-subtitle {
    margin: 4px 0 0;
    letter-spacing: 0.04em;
    color: #4A586E;
    font-family: "Helvetica Rounded LT Std";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
}

/* ── Imagen principal de diapositiva ── */
.msb-slide-hero-image {
    border-radius: 10px;
    overflow: hidden;
    margin-top: 4px;
}
.msb-slide-hero-image img {

}

/* ════════════════════════════════════════
   SWIPER GALERÍA INTERNA
   ════════════════════════════════════════ */
.msb-gallery-wrapper {

}
.msb-gallery-swiper { width: 100%; }
.msb-img-slide { height: auto !important; }

.msb-figure {
    margin: 0;
    display: flex;
    flex-direction: column;
}
.msb-figure img {
    width: 100%;
}
.msb-figcaption {
    background: #ffffff8f;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    position: absolute;
    bottom: 0;
    width: 100%;
}
.msb-figcaption strong {
	color: #002559;
    font-family: 'Helvetica Rounded LT Std';
    font-size: 15px;
    font-style: normal;
    font-weight: 700;
    line-height: 23px;
}
.msb-figcaption span   {
	color: #002559;
    font-family: 'Helvetica Rounded LT Std';
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
}

.msb-gallery-pagination { bottom: 8px !important; }
.msb-gallery-pagination .swiper-pagination-bullet-active { background: #01696f !important; }

.msb-gallery-prev,
.msb-gallery-next {
    top: 50% !important;
    transform: translateY(-50%);
}
.msb-gallery-prev::after,
.msb-gallery-next::after { font-size: 10px !important; font-weight: 700; }
.msb-gallery-prev { left: 6px !important; }
.msb-gallery-next { right: 6px !important; }

/* ── Responsive ── */
@media (max-width: 480px) {
    .msb-modal       { border-radius: 10px; max-height: 95vh; }
    .msb-slide-inner { padding: 22px 16px 80px; }
    .msb-slide-title { 
		font-size: 18px; 
		line-height: 25px;
	}
}
