/* Recent Posts Carousel */
.rp-carousel-widget {
    position: relative;
}

.rp-carousel {
    margin-top: 15px;
}

.rp-post {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.rp-post img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

/* Botones */
.rp-carousel-btn {
    width: 35px;
}

.rp-carousel-btn span {
    filter: brightness(0) invert(1);
}

/* Responsive ajustes */
@media (max-width: 767px) {
    .rp-carousel-btn {
        width: 28px;
    }
}




.mcg-gallery-container { padding-top: 80px; padding-bottom: 80px; }
.mcg-title { font-size: 2.2rem; font-weight: 700; color: #060c40; }


.mcg-card { border-radius: 18px; overflow: hidden; cursor: pointer; transition: transform .3s ease; }
.mcg-card:hover { transform: translateY(-6px) scale(1.03); }


.mcg-img {
width: 100%;
aspect-ratio: 16/10;
object-fit: cover;
display: block;
border-radius: 12px;
}

/* ===== PAGINACIÓN RESPONSIVE ===== */
.mcg-pagination .pagination {
  flex-wrap: nowrap;
}

/* Mobile */
@media (max-width: 576px) {
  .mcg-pagination {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mcg-pagination .pagination {
    flex-wrap: nowrap;
    justify-content: flex-start;
    min-width: max-content;
    padding-bottom: 8px;
  }

  .mcg-pagination .page-item {
    flex: 0 0 auto;
  }

  .mcg-pagination .page-link {
    padding: 8px 14px;
    font-size: 14px;
    white-space: nowrap;
  }
}

/* Desktop */
@media (min-width: 577px) {
  .mcg-pagination {
    overflow-x: visible;
  }
}

/* Modal */
.mcg-modal-content { background: transparent; border: none; box-shadow: none; }
.mcg-modal-img { width: 80%;  border-radius: 14px; }


.mcg-page-link { color: #060c40; font-weight: 600; }
.pagination .active .mcg-page-link { background: #060c40; border-color: #060c40; color: #fff; }


/* banner */
.jb-parallax-banner {
    min-height: 85vh;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.jb-parallax-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1;
}

.jb-parallax-text {
    position: relative;
    z-index: 2;
    text-align: center;
}

.jb-parallax-text * {
    color: #ffffff !important;
    text-shadow: 0 4px 12px rgba(0,0,0,0.9);
}

.jb-parallax-text h2 {
    font-size: 44px;
    font-weight: 800;
}

.jb-parallax-text p {
    font-size: 20px;
    margin-top: 15px;
}

/* Botón profesional */
.jb-pro-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 14px 36px;
    border-radius: 50px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.jb-pro-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    background: linear-gradient(135deg, #27ae60, #1e8449);
}

/* Animación scroll */
.jb-parallax-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s ease;
}

.jb-parallax-reveal.jb-parallax-active {
    opacity: 1;
    transform: translateY(0);
}


/* preloader */

#jb-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.jb-loader-content {
    animation: fadeZoom 1.5s ease-in-out infinite alternate;
}

.jb-logo {
    width: 140px;
    animation: floatLogo 3s ease-in-out infinite;
}

@keyframes floatLogo {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

@keyframes fadeZoom {
    from { opacity: 0.7; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1.05); }
}


/* Before-after */
.ba-title {
    font-size: 36px;
    font-weight: 700;
    color: #000; /* Color negro */
    text-transform: uppercase; /* Título en mayúsculas */
    letter-spacing: 2px; /* Espaciado de las letras */
}

/* Subtítulo */
.ba-subtitle {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-top: 10px;
}

/* Contenedor principal de cada comparación */
.ba-compare-box {
    position: relative;
    width: 100%;
    height: 525px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
    margin-bottom: 20px;
}

/* Espaciado adicional para tabletas */
@media (min-width: 768px) and (max-width: 991px) {
    #ba-carousel-tablet .carousel-inner {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Imágenes */
.ba-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Imagen "después" recortada */
.ba-img-after {
    clip-path: inset(0 50% 0 0);
    transition: clip-path .15s ease;
}

/* Slider invisible SOLO en el centro (no bloquea botones) */
.ba-slider {
    position: absolute;
    top: 0;
    left: 20%;
    width: 60%;
    height: 100%;
    z-index: 20;
    opacity: 0;
    cursor: ew-resize;
}

/* Quitar estilos nativos del range */
.ba-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
}

.ba-slider::-moz-range-thumb {
    appearance: none;
}

.ba-slider::-webkit-slider-runnable-track {
    background: transparent;
}

.ba-slider::-moz-range-track {
    background: transparent;
}

/* Etiquetas ANTES / DESPUÉS */
.ba-label {
    position: absolute;
    top: 10px;
    padding: 5px 12px;
    background: rgba(0, 0, 0, .7);
    color: #fff;
    border-radius: 20px;
    font-size: 11px;
    z-index: 11;
}

.ba-before { left: 10px; }
.ba-after  { right: 10px; }

/* Línea blanca divisora */
.ba-divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background: #fff;
    z-index: 10;
    transform: translateX(-50%);
    pointer-events: none;
}

/* Círculo central */
.ba-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 6px rgba(0,0,0,0.4);
}

/* Separación lateral del carrusel */
#ba-carousel-pc .carousel-inner,
#ba-carousel-tablet .carousel-inner,
#ba-carousel-mobile .carousel-inner {
    padding-left: 40px;
    padding-right: 40px;
}

/* ===== Responsive ===== */

@media (max-width: 767px) {
    .ba-compare-box {
        height: 400px;
    }

    #ba-carousel-mobile .carousel-inner {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (min-width: 768px) {
    .ba-compare-box {
        height: 525px;
    }
}
/* titulo carrucel */

/* Estilo base para el título */
.responsive-title {
    font-size: 48px;
    font-style: normal;
    font-weight: 600;
    line-height: 58px;
    color: #16171A;
    margin-top: 45px; 
    margin-bottom: 25px;
}

/* Media query para dispositivos móviles */
@media (max-width: 767px) {
    .responsive-title {
        font-size: 32px; /* Tamaño más pequeño para dispositivos móviles */
        line-height: 42px; /* Ajuste en la altura de la línea */
        margin-top: 30px; /* Ajuste en el margen superior para dispositivos pequeños */
    }
}