/* ==========================================================
   Muchacho Slider — front-end styles
   All colors/fonts/sizes read from CSS variables set inline
   (see muchacho_slider_assets()); fallback values match the
   original brand look so the slider works even without any
   settings saved yet.
========================================================== */
.muchacho-slider {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 40px auto;
    padding: 85px 90px;
    background-color: var(--muchacho-bg, #f7f4eb);
    font-family: var(--muchacho-font, Georgia, 'Times New Roman', serif);
    box-sizing: border-box;
}
.muchacho-slider *,
.muchacho-slider *::before,
.muchacho-slider *::after {
    box-sizing: border-box;
}

/* Decorative frame overlay: sits above the background color,
   below the slide content, and never gets clipped or overridden
   because it's a dedicated element with its own inline background. */
.muchacho-frame {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 1;
}

.muchacho-slider-track {
    position: relative;
    z-index: 2;
}

.muchacho-slide {
    display: none;
    grid-template-columns: 1fr 1px 1fr;
    align-items: center;
    gap: 40px;
    opacity: 0;
    transition: opacity .4s ease;
}
.muchacho-slide.is-active {
    display: grid;
    opacity: 1;
}

.muchacho-slide-media {
    width: 100%;
}
.muchacho-slide-media img,
.muchacho-slide-media-placeholder {
    width: 100%;
    height: var(--muchacho-image-height, 440px);
    object-fit: cover;
    display: block;
    background: #ddd6c4;
    border-radius: 4px;
}

.muchacho-slide-divider {
    width: 1px;
    height: 100%;
    min-height: 320px;
    background: var(--muchacho-divider, #c9c2ae);
    justify-self: center;
}

.muchacho-slide-content {
    padding: 0 10px;
}

/* Order inside content: Heading -> Label -> Description -> Button -> Nav */
.muchacho-slide-title {
    font-size: 26px;
    line-height: 1.3;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--muchacho-heading, #2f251d);
    margin: 0 0 10px;
    font-family: inherit;
}

.muchacho-slide-label {
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-size: 12px;
    color: var(--muchacho-label, #2f251d);
    margin: 0 0 16px;
}

.muchacho-slide-text p {
    font-size: 14px;
    line-height: 1.75;
    font-weight: 600;
    color: var(--muchacho-text, #3a3226);
    margin: 0 0 16px;
    font-family: inherit;
}

.muchacho-slide-btn {
    display: inline-block;
    background: var(--muchacho-btn-bg, #2f251d);
    color: var(--muchacho-btn-text, #fff7e8);
    padding: 13px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin: 6px 0 30px;
    font-family: inherit;
    transition: opacity .25s ease;
}
.muchacho-slide-btn:hover {
    opacity: .82;
}

.muchacho-slide-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--muchacho-divider, #d8d2c0);
    padding-top: 16px;
}

.muchacho-slide-count {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--muchacho-pagination, #2f251d);
    border-radius: 999px;
    overflow: hidden;
    font-size: 13px;
    color: var(--muchacho-pagination, #2f251d);
    font-family: inherit;
}
.muchacho-current,
.muchacho-total {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    min-width: 16px;
}
.muchacho-count-divider {
    width: 1px;
    align-self: center;
    height: 18px;
    background: var(--muchacho-pagination, #2f251d);
}

.muchacho-slide-arrows {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--muchacho-arrow, #2f251d);
    border-radius: 999px;
    overflow: hidden;
}
.muchacho-slide-arrows button {
    border: none;
    background: transparent;
    color: var(--muchacho-arrow, #2f251d);
    font-size: 12px;
    padding: 8px 20px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.muchacho-slide-arrows button.muchacho-prev {
    border-right: 1px solid var(--muchacho-arrow, #2f251d);
}
.muchacho-slide-arrows button:hover {
    background: var(--muchacho-arrow, #2f251d);
    color: var(--muchacho-btn-text, #fff7e8);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 768px) {
    .muchacho-slider {
        margin: 20px auto;
        padding: 50px 32px;
    }
    .muchacho-slide {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .muchacho-slide-divider {
        display: none;
    }
    .muchacho-slide-media img,
    .muchacho-slide-media-placeholder {
        height: 260px;
    }
    .muchacho-slide-title {
        font-size: 22px;
    }
}
