/* Slidekreatic - Estilos Frontend Performance-First */

/* Group Title */
.sk-group-title {
    text-align: center;
    margin-bottom: 25px;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--sk-title-color, #333);
}

@media (max-width: 768px) {
    .sk-group-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
}

/* Base Wrap */
.sk-slider-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
    min-height: 400px;
    /* Mínimo por defecto para Hero */
}

.sk-slider-container,
.sk-slides-flow {
    position: relative;
    width: 100%;
    height: inherit;
    min-height: inherit;
}

/* Motor de Scroll Nativo con Snap */
.sk-slides-flow {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    height: 100%;
    min-height: inherit;
}

.sk-cpt .sk-slides-flow,
.sk-opc .sk-slides-flow {
    display: flex !important;
    /* Forzar flex en CPT/OPC para evitar rotura por Fade */
}

[data-animation="fade"] .sk-slides-flow {
    overflow-x: hidden;
    display: block;
    position: relative;
    scroll-snap-type: none;
}

.sk-slides-flow::-webkit-scrollbar {
    display: none;
    /* Ocultar en Chrome/Safari */
}

/* Modo Hero: 1 Slide visible */
.sk-hero .sk-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: inherit;
    display: flex;
    box-sizing: border-box;
    transition: opacity 0.6s ease-in-out;
}

[data-animation="fade"] .sk-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s;
}

[data-animation="fade"] .sk-slide.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
    visibility: visible;
}

.sk-img-fluid {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hero Content Layer */
.sk-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.sk-video-bg,
.sk-video-container {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sk-video-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    /* 16:9 ratio */
    min-height: 100vh;
    min-width: 177.77vh;
    /* 16:9 ratio */
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.sk-slide-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
    z-index: 2;
}

.sk-slide-content {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    align-items: center;
    color: #fff;
    padding: 100px 50px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.1);
    /* Overlay sutil */
}

.sk-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.sk-slide-content .sk-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    max-width: 800px;
}

.sk-slide-content .sk-description {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.sk-btn {
    display: inline-block;
    text-decoration: none;
}

/* Modo CPT/OPC: Columnas Variables */
.sk-cpt .sk-slide-card,
.sk-opc .sk-slide-card {
    flex: 0 0 calc(100% / var(--sk-cols-desktop, 3));
    scroll-snap-align: start;
    padding: 10px;
    box-sizing: border-box;
}

@media (max-width: 1024px) {

    .sk-cpt .sk-slide-card,
    .sk-opc .sk-slide-card {
        flex: 0 0 calc(100% / var(--sk-cols-tablet, 2));
    }
}

@media (max-width: 600px) {

    .sk-cpt .sk-slide-card,
    .sk-opc .sk-slide-card {
        flex: 0 0 calc(100% / var(--sk-cols-mobile, 1));
    }
}

/* Navegación y Controles */
.sk-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.sk-nav button {
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    font-size: 40px;
    padding: 10px 20px;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.3s;
}

.sk-nav button:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Dots / Puntos */
.sk-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

/* Dots afuera (CPT) */
.sk-cpt .sk-dots {
    margin-top: 20px;
}

/* Dots adentro (Hero) */
.sk-hero .sk-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0;
}

.sk-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.sk-dot.active {
    background: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.sk-cpt .sk-dot,
.sk-opc .sk-dot {
    background: #ccc;
}

.sk-cpt .sk-dot.active,
.sk-opc .sk-dot.active {
    background: #2271b1;
}

/* Estilos de Card (CPT) */
.sk-card-inner {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    height: 100%;
}

.sk-thumbnail {
    position: relative;
}

.sk-thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.sk-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #2271b1;
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
}

.sk-content {
    padding: 15px;
}

.sk-content h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #1d2327;
}

.sk-meta-info {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}



.sk-link {
    text-decoration: none;
    color: #2271b1;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

.sk-link:hover {
    text-decoration: underline;
}

/* Lightbox / Zoom */
.sk-zoomable {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.sk-zoomable:hover {
    transform: scale(1.02);
}

.sk-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: zoom-out;
}

.sk-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sk-lightbox-content {
    max-width: 90%;
    max-height: 90%;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sk-lightbox-overlay.active .sk-lightbox-content {
    transform: scale(1);
}

.sk-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.sk-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    padding: 10px;
    z-index: 1000000;
}