@import url('https://fonts.googleapis.com/css2?family=Epilogue:ital,wght@0,100..900;1,100..900&family=Funnel+Sans:ital,wght@0,300..800;1,300..800&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

/* ==========================================================================
   Cooper Suite: Slider Gallery (Culture In Action)
   ========================================================================== */

.cooper-sg-wrapper {
    --cooper-sg-font: var(--cooper-font-primary, "Funnel Sans"), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --cooper-sg-lateral: 60px;
    --cooper-sg-accent: #c8102e;
    --cooper-sg-dark: #111827;
    --cooper-sg-gray: #4b5563;
    --cooper-sg-line: #e5e7eb;
    --cooper-sg-slide-gap: 28px;
    --cooper-sg-spv: 1.6;
    --cooper-sg-dot-h: 5px;
    --cooper-sg-dot-w-inactive: 6px;
    --cooper-sg-dot-w-active: 28px;
    --cooper-sg-dot-gap: 6px;
    --cooper-sg-dot-radius: 0px;
    --cooper-sg-dot-active: #c8102e;
    --cooper-sg-dot-inactive: #cccccc;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    font-family: var(--cooper-sg-font);
    font-optical-sizing: auto;
    overflow: hidden;
}

.cooper-sg-wrapper * {
    box-sizing: border-box;
}

/* ==========================================================================
   1. Header Section
   ========================================================================== */
.cooper-sg-header {
    width: 100%;
    padding: 0 var(--cooper-sg-lateral);
    margin-bottom: 45px;
    box-sizing: border-box;
}

.cooper-sg-eyebrow {
    display: inline-block;
    color: var(--cooper-sg-accent, #c8102e);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: -0.1px;
    margin-bottom: 14px;
    line-height: 1.2;
}

.cooper-sg-heading {
    color: var(--cooper-sg-dark, #111827);
    font-size: 48px;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -1px;
    margin: 0 0 18px 0;
    word-break: normal;
    overflow-wrap: break-word;
}

.cooper-sg-desc {
    color: var(--cooper-sg-gray, #5C5C5C);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.3px;
    margin: 0;
    max-width: 620px;
    word-break: normal;
    overflow-wrap: break-word;
}

/* ==========================================================================
   2. Slider Viewport & Track
   ========================================================================== */
.cooper-sg-viewport {
    position: relative;
    width: 100%;
    height: 560px;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
    cursor: grab;
}

.cooper-sg-viewport.is-dragging {
    cursor: grabbing;
}

.cooper-sg-track {
    display: flex;
    height: 100%;
    gap: var(--cooper-sg-slide-gap, 28px);
    will-change: transform;
    transition: transform 450ms cubic-bezier(0.25, 1, 0.5, 1);
}

.cooper-sg-viewport.is-dragging .cooper-sg-track {
    transition: none !important;
}

/* ==========================================================================
   3. Slides Styling
   ========================================================================== */
.cooper-sg-slide {
    flex: 0 0 var(--cooper-sg-slide-w, calc((100% - (var(--cooper-sg-slide-gap, 28px) * (var(--cooper-sg-spv, 1.6) - 1))) / var(--cooper-sg-spv, 1.6)));
    width: var(--cooper-sg-slide-w, calc((100% - (var(--cooper-sg-slide-gap, 28px) * (var(--cooper-sg-spv, 1.6) - 1))) / var(--cooper-sg-spv, 1.6)));
    min-width: 0;
    box-sizing: border-box;
    flex-shrink: 0;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-color: #f3f4f6;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.cooper-sg-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.cooper-sg-image-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.cooper-sg-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    transition: transform 0.65s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.cooper-sg-wrapper.has-hover-zoom .cooper-sg-slide:hover img {
    transform: scale(1.04);
}

/* Optional Caption Overlay */
.cooper-sg-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 28px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    color: #ffffff;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cooper-sg-caption-sub {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 6px;
}

.cooper-sg-caption-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    color: #ffffff;
}

/* ==========================================================================
   4. Controls Bar (Prev, Dots, Next)
   ========================================================================== */
.cooper-sg-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 var(--cooper-sg-lateral);
    margin-top: 32px;
    box-sizing: border-box;
}

.cooper-sg-controls-spacer {
    width: 52px;
    height: 52px;
}

.cooper-sg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: none;
    cursor: pointer;
    border-radius: 0;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease, opacity 0.2s ease;
    padding: 0;
    outline: none;
    box-sizing: border-box;
    flex-shrink: 0;
}

.cooper-sg-btn:focus-visible {
    outline: 2px solid var(--cooper-sg-accent, #c8102e);
    outline-offset: 2px;
}

.cooper-sg-btn:active {
    transform: scale(0.96);
}

.cooper-sg-btn.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Botón Izquierdo (Prev) */
.cooper-sg-prev {
    background-color: #e5e7eb;
    color: #1f2937;
}

.cooper-sg-prev svg {
    stroke: #1f2937;
    fill: none;
}

.cooper-sg-prev:hover {
    background-color: #d1d5db;
    color: #111827;
}

.cooper-sg-prev:hover svg {
    stroke: #111827;
}

/* Botón Derecho (Next - Cooper Signature Red) */
.cooper-sg-next {
    background-color: var(--cooper-sg-accent, #c8102e);
    color: #ffffff;
}

.cooper-sg-next svg {
    stroke: #ffffff;
    fill: none;
}

.cooper-sg-next:hover {
    background-color: #9e0c24;
    color: #ffffff;
}

.cooper-sg-next:hover svg {
    stroke: #ffffff;
}

/* ==========================================================================
   5. Pagination (Cooper Signature Dashes)
   ========================================================================== */
.cooper-sg-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cooper-sg-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--cooper-sg-dot-gap, 6px);
}

.cooper-sg-dot {
    position: relative;
    border: none;
    padding: 0;
    margin: 0;
    width: var(--cooper-sg-dot-w-inactive, 6px);
    height: var(--cooper-sg-dot-h, 5px);
    border-radius: var(--cooper-sg-dot-radius, 0px);
    background-color: var(--cooper-sg-dot-inactive, #cccccc);
    cursor: pointer;
    overflow: hidden;
    transition: width 0.38s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.35s ease, height 0.25s ease;
    outline: none;
}

.cooper-sg-dot:focus-visible {
    outline: 2px solid var(--cooper-sg-dot-active, #c8102e);
    outline-offset: 2px;
}

.cooper-sg-dot:hover:not(.is-active) {
    background-color: #9ca3af;
}

/* Active Dash: Indicador central estilo Cooper (Barra activa sólida roja) */
.cooper-sg-dot.is-active {
    width: var(--cooper-sg-dot-w-active, 28px);
    background-color: var(--cooper-sg-dot-active, #c8102e);
}

/* Circular Dots alternative */
.cooper-sg-pagination[data-type="dots"] .cooper-sg-dot {
    width: var(--cooper-sg-dot-h, 8px);
    height: var(--cooper-sg-dot-h, 8px);
    border-radius: 50%;
}

.cooper-sg-pagination[data-type="dots"] .cooper-sg-dot.is-active {
    width: var(--cooper-sg-dot-w-active, 24px);
    border-radius: 999px;
}

/* Numbers / Fraction alternative */
.cooper-sg-fraction {
    font-size: 15px;
    font-weight: 700;
    color: var(--cooper-sg-dark, #111827);
    letter-spacing: 0.05em;
    font-variant-numeric: tabular-nums;
}

.cooper-sg-fraction .cooper-sg-sep {
    margin: 0 4px;
    color: #9ca3af;
    font-weight: 400;
}

.cooper-sg-fraction .cooper-sg-total {
    color: #6b7280;
}

/* ==========================================================================
   6. Responsive Adaptations
   ========================================================================== */

/* Widescreen (1920px and above) */
@media (min-width: 1920px) {
    .cooper-sg-wrapper {
        --cooper-sg-slide-gap: 32px;
        --cooper-sg-spv: 1.7;
    }

    .cooper-sg-eyebrow {
        font-size: 16px;
    }

    .cooper-sg-heading {
        font-size: 66px;
        line-height: 1.1;
    }

    .cooper-sg-desc {
        font-size: 24px;
    }
}

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
    .cooper-sg-wrapper {
        --cooper-sg-lateral: 40px;
        --cooper-sg-slide-gap: 20px;
        --cooper-sg-spv: 1.3;
    }

    .cooper-sg-viewport {
        height: 440px;
    }

    .cooper-sg-heading {
        font-size: 38px;
    }
}

/* Mobile (767px and below) */
@media (max-width: 767px) {
    .cooper-sg-wrapper {
        --cooper-sg-lateral: 4vw;
        --cooper-sg-slide-gap: 16px;
        --cooper-sg-spv: 1.15;
    }

    .cooper-sg-header {
        margin-bottom: 28px;
    }

    .cooper-sg-eyebrow {
        font-size: 3.5vw;
    }

    .cooper-sg-heading {
        font-size: 8vw;
        line-height: 1.1;
        margin-bottom: 14px;
    }

    .cooper-sg-desc {
        font-size: 4.6vw;
        line-height: 1.4;
    }

    .cooper-sg-viewport {
        height: 380px;
    }

    .cooper-sg-controls {
        margin-top: 24px;
    }

    .cooper-sg-btn {
        width: 46px;
        height: 46px;
    }

    .cooper-sg-controls-spacer {
        width: 46px;
        height: 46px;
    }

    .cooper-sg-dot {
        height: var(--cooper-sg-dot-h, 5px);
        width: var(--cooper-sg-dot-w-inactive, 6px);
    }

    .cooper-sg-dot.is-active {
        width: var(--cooper-sg-dot-w-active, 28px);
    }
}

