.ksg,
.ksg * {
    box-sizing: border-box;
}

.ksg {
    --ksg-green: #05363a;
    --ksg-gold: #b28c58;
    --ksg-gold-light: #d2a367;
    position: relative;
    width: 100%;
    font-family: "Inter Tight", sans-serif;
}

.ksg-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.ksg-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(5, 54, 58, 0.1);
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(5, 54, 58, 0.1);
    transition: transform .25s ease, box-shadow .25s ease;
}

.ksg-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(5, 54, 58, 0.16);
}

.ksg-card__image {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e9efef;
}

.ksg-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.ksg-card:hover .ksg-card__image img {
    transform: scale(1.035);
}

.ksg-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #dfe9e8, #f5eee3);
}

.ksg-card__body {
    padding: 20px;
}

.ksg-card__location {
    margin: 0 0 7px;
    color: var(--ksg-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ksg-card__title {
    margin: 0;
    color: var(--ksg-green);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.ksg-card__title a {
    color: inherit;
    text-decoration: none;
}

.ksg-card__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 16px;
    margin: 15px 0 0;
    padding: 14px 0 0;
    color: rgba(5, 54, 58, .7);
    border-top: 1px solid rgba(5, 54, 58, .1);
    font-size: 13px;
    list-style: none;
}

.ksg-card__facts li {
    position: relative;
}

.ksg-card__facts li + li::before {
    position: absolute;
    top: 50%;
    left: -10px;
    width: 3px;
    height: 3px;
    background: var(--ksg-gold-light);
    border-radius: 50%;
    content: "";
}

.ksg-card__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--ksg-green);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.ksg-card__button span {
    color: var(--ksg-gold);
    transition: transform .2s ease;
}

.ksg-card__button:hover span {
    transform: translateX(4px);
}

.ksg-message {
    padding: 18px;
    color: #05363a;
    background: #fff;
    border: 1px solid rgba(5, 54, 58, .12);
    border-radius: 14px;
}

/* Catalogo completo */
.ksg-load-more-wrap {
    position: relative;
    display: flex;
    min-height: 100px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    padding-top: 32px;
}

.ksg-load-more-wrap[hidden],
.ksg-end-message[hidden],
.ksg-loading[hidden] {
    display: none !important;
}

.ksg-load-more {
    min-height: 48px;
    padding: 0 26px;
    color: #fff;
    background: linear-gradient(90deg, var(--ksg-gold-light), var(--ksg-gold));
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    font: 700 14px/1 "Inter Tight", sans-serif;
    cursor: pointer;
}

.ksg-load-more:hover {
    color: #fff;
    background: linear-gradient(90deg, var(--ksg-gold-light), var(--ksg-gold));
    filter: brightness(1.05);
}

.ksg-load-more:disabled {
    opacity: .65;
    cursor: wait;
}

.ksg-loading,
.ksg-end-message {
    margin: 12px 0 0;
    color: rgba(5, 54, 58, .68);
    font-size: 14px;
    text-align: center;
}

.ksg-sentinel {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
}

/* Carrossel */
.ksg--carrossel {
    padding: 0 48px;
}

.ksg--carrossel .ksg-carousel-viewport {
    overflow: hidden;
}

.ksg--carrossel .ksg-list {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.ksg--carrossel .ksg-list::-webkit-scrollbar {
    display: none;
}

.ksg--carrossel .ksg-card {
    flex: 0 0 calc((100% - 48px) / 3);
    scroll-snap-align: start;
}

.ksg-carousel-button {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #fff;
    background: var(--ksg-green);
    border: 0;
    border-radius: 50%;
    box-shadow: none;
    font: 32px/1 Arial, sans-serif;
    cursor: pointer;
    transform: translateY(-50%);
}

.ksg-carousel-button--prev { left: 0; }
.ksg-carousel-button--next { right: 0; }
.ksg-carousel-button:hover { color: #fff; background: var(--ksg-gold); }
.ksg-carousel-button:disabled { opacity: .35; cursor: default; }

@media (max-width: 991px) {
    .ksg-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ksg--carrossel .ksg-card { flex-basis: calc((100% - 24px) / 2); }
}

@media (max-width: 767px) {
    .ksg-list { grid-template-columns: 1fr; }
    .ksg--carrossel { padding: 0 36px; }
    .ksg--carrossel .ksg-card { flex-basis: 100%; }
    .ksg--carrossel .ksg-list { gap: 16px; }
    .ksg-carousel-button { width: 32px; height: 32px; font-size: 26px; }
    .ksg-card__body { padding: 18px; }
}
