/* Kingdom Stone — catalog Livewire bridge for Industrie theme */
[x-cloak] {
    display: none !important;
}

.ks-catalog-section {
    scroll-margin-top: 100px;
}

.ks-catalog-section .rs-section-title-wrapper {
    margin-bottom: 2.5rem;
}

.ks-catalog-filters {
    background: #fff;
    border: 1px solid rgba(97, 97, 97, 0.15);
    padding: 1.5rem 1.25rem;
    margin-bottom: 2rem;
    font-family: var(--rs-ff-body, "Space Grotesk", sans-serif);
}

.ks-catalog-filters .form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--ks-text, #0f0f0f);
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.ks-catalog-filters .form-control {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 0.65rem 1rem;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--ks-text, #0f0f0f);
    background-color: #fff;
    border: 1px solid rgba(97, 97, 97, 0.3);
    border-radius: 0;
    appearance: auto;
}

.ks-catalog-filters .form-control::placeholder {
    color: #888;
    font-size: 15px;
    opacity: 1;
}

.ks-catalog-filters .form-control:focus {
    border-color: var(--ks-accent-dark, #a67c00);
    box-shadow: 0 0 0 0.15rem rgba(212, 175, 55, 0.35);
    outline: 0;
    background-color: #fff;
}

.ks-catalog-filters .ks-filter-num {
    width: 5.5rem;
    min-height: 42px;
    padding: 0.5rem 0.65rem;
    font-size: 15px;
}

.ks-catalog-filters .rs-btn {
    min-height: 48px;
    font-size: 15px;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    white-space: nowrap;
}

/* Custom searchable select (no Tailwind / theme button reset) */
.ks-catalog-filters .ks-select {
    position: relative;
    width: 100%;
}

.ks-catalog-filters .ks-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    min-height: 48px;
    padding: 0.65rem 1rem;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--ks-text, #0f0f0f);
    text-align: left;
    background-color: #fff !important;
    border: 1px solid rgba(97, 97, 97, 0.3) !important;
    border-radius: 0;
    cursor: pointer;
}

.ks-catalog-filters .ks-select-trigger:hover,
.ks-catalog-filters .ks-select-trigger.is-open {
    border-color: var(--ks-accent-dark, #a67c00) !important;
}

.ks-catalog-filters .ks-select-trigger:focus {
    outline: 0;
    border-color: var(--ks-accent-dark, #a67c00) !important;
    box-shadow: 0 0 0 0.15rem rgba(212, 175, 55, 0.35);
}

.ks-catalog-filters .ks-select-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
}

.ks-catalog-filters .ks-select-label.is-placeholder {
    color: #888;
}

.ks-catalog-filters .ks-select-chevron {
    flex-shrink: 0;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--ks-text-muted, rgba(15, 15, 15, 0.62));
    transition: transform 0.2s ease;
}

.ks-catalog-filters .ks-select-chevron.is-open {
    transform: rotate(180deg);
}

.ks-catalog-filters .ks-select-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 1050;
    max-height: 16rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(97, 97, 97, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.ks-catalog-filters .ks-select-search-wrap {
    padding: 0.5rem;
    border-bottom: 1px solid #ececec;
}

.ks-catalog-filters .ks-select-search {
    display: block;
    width: 100%;
    min-height: 40px;
    padding: 0.5rem 0.75rem;
    font-size: 14px;
    border: 1px solid rgba(97, 97, 97, 0.25);
    background: #fafafa;
}

.ks-catalog-filters .ks-select-search:focus {
    outline: 0;
    border-color: var(--ks-accent-dark, #a67c00);
}

.ks-catalog-filters .ks-select-options {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0;
    max-height: 12rem;
    overflow-y: auto;
}

.ks-catalog-filters .ks-select-option {
    display: block;
    width: 100%;
    padding: 0.55rem 1rem;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--ks-text, #0f0f0f);
    text-align: left;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
}

.ks-catalog-filters .ks-select-option:hover {
    background: #f5f5f5 !important;
}

.ks-catalog-filters .ks-select-option.is-active {
    background: rgba(212, 175, 55, 0.35) !important;
    color: var(--ks-accent-dark, #a67c00);
    font-weight: 600;
}

.ks-catalog-filters .ks-select-empty {
    padding: 0.75rem 1rem;
    font-size: 14px;
    color: #888;
}

.ks-catalog-section .descrip {
    font-size: 16px;
    line-height: 1.6;
}

.ks-catalog-card {
    background: #fff;
    border: 1px solid rgba(97, 97, 97, 0.12);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ks-catalog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.ks-catalog-card-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0f0f0;
}

.ks-catalog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ks-catalog-card:hover .ks-catalog-card-thumb img {
    transform: scale(1.05);
}

.ks-catalog-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ks-catalog-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ks-text, #0f0f0f);
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.ks-catalog-card-title:hover {
    color: var(--ks-accent-dark, #a67c00);
}

.ks-catalog-card-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
}

.ks-catalog-card-actions .rs-btn {
    width: 100%;
    justify-content: center;
}

.ks-catalog-card-actions .ks-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(97, 97, 97, 0.25);
    background: transparent;
    font-size: 0.875rem;
    color: var(--ks-text-muted, rgba(15, 15, 15, 0.62));
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.ks-catalog-card-actions .ks-btn-outline:hover {
    border-color: var(--ks-accent-dark, #a67c00);
    color: var(--ks-accent-dark, #a67c00);
}

.ks-catalog-empty {
    text-align: center;
    color: #888;
    padding: 3rem 0;
}

.ks-catalog-loading {
    text-align: center;
    padding: 2rem;
    color: var(--ks-text-muted, rgba(15, 15, 15, 0.62));
}

.ks-pagination .page-link {
    color: var(--ks-text, #0f0f0f);
    border-radius: 0;
}

.ks-pagination .page-item.active .page-link {
    background-color: var(--ks-accent, #d4af37);
    border-color: var(--ks-accent-dark, #a67c00);
}

.ks-branch-card {
    background: #fff;
    border: 1px solid rgba(97, 97, 97, 0.12);
}

.ks-branch-card--solo {
    overflow: hidden;
}

@media only screen and (min-width: 992px) {
    .ks-branch-card--solo {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
        align-items: stretch;
    }

    .ks-branch-card--solo .ks-branch-card-thumb {
        aspect-ratio: auto;
        min-height: 100%;
        height: 100%;
    }

    .ks-branch-card--solo .ks-branch-card-body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2.5rem 2.75rem;
    }
}

.ks-branch-card--solo .ks-branch-card-title {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.ks-branch-card--solo .ks-branch-meta {
    font-size: 1.05rem;
    margin-bottom: 0.65rem;
    gap: 0.85rem;
}

.ks-branch-card-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.ks-branch-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ks-branch-card-body {
    padding: 1.5rem;
}

.ks-branch-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.ks-branch-meta {
    margin-bottom: 0.35rem;
    color: var(--ks-text-muted, rgba(15, 15, 15, 0.62));
    font-size: 0.9rem;
}

.ks-branch-meta a {
    color: inherit;
    text-decoration: none;
}

.ks-branch-meta a:hover {
    color: var(--ks-accent-dark, #a67c00);
}

.ks-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ks-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #fff;
}

.ks-contact-list a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: underline;
}

.ks-contact-list a:hover {
    color: var(--ks-gold, #d4af37);
}

.ks-contact-list i {
    color: var(--ks-gold, #d4af37);
}

/* Custom brand icons (public/images/icons) */
.ks-site-icon {
    display: block;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    object-fit: contain;
}

.ks-site-icon--sm {
    width: 44px;
    height: 44px;
}

.ks-site-icon--lg {
    width: 144px;
    height: 144px;
}

.ks-site-icon--inline {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.35rem;
}

.ks-footer-contact-row,
.ks-branch-meta,
.ks-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.ks-footer-contact-row + .ks-footer-contact-row {
    margin-top: 0.65rem;
}

.ks-footer-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.ks-about-brand-seal {
    position: absolute;
    bottom: -1rem;
    left: -1rem;
    z-index: 2;
    pointer-events: none;
    opacity: 0.95;
}

.rs-about-thumb-wrapper {
    position: relative;
}

.rs-header-call h6 {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ks-privacy-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ks-about-subtitle-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.ks-price-modal.show {
    display: block;
}

.ks-price-modal .modal-content {
    border-radius: 0;
}

.ks-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem;
}

.ks-image-lightbox img {
    max-height: 90vh;
    max-width: 100%;
    object-fit: contain;
}

.ks-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Header logo — cap size (company logos are often large PNGs) */
.rs-header-two .rs-header-logo .ks-header-logo-img,
.rs-sticky-header .rs-header-logo .ks-header-logo-img,
.offcanvas-logo .ks-header-logo-img {
    display: block;
    max-height: 54px;
    width: auto;
    max-width: 200px;
    height: auto;
    object-fit: contain;
}

@media only screen and (max-width: 991px) {
    .rs-header-two .rs-header-logo .ks-header-logo-img,
    .rs-sticky-header .rs-header-logo .ks-header-logo-img,
    .offcanvas-logo .ks-header-logo-img {
        max-height: 46px;
        max-width: 170px;
    }
}

/* Language switcher (replaces select + nice-select) */
.ks-locale-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.ks-locale-link {
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    padding: 0.35rem 0.25rem;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.ks-locale-link:hover,
.ks-locale-link.is-active {
    color: #fff;
}

.ks-locale-link.is-active {
    color: var(--ks-accent, #d4af37);
}

.ks-locale-sep {
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
    user-select: none;
}

.ks-locale-switcher--dark .ks-locale-link {
    color: var(--ks-text-muted, rgba(15, 15, 15, 0.62));
}

.ks-locale-switcher--dark .ks-locale-link:hover,
.ks-locale-switcher--dark .ks-locale-link.is-active {
    color: var(--ks-accent, #d4af37);
}

.ks-locale-switcher--dark .ks-locale-sep {
    color: #ccc;
}

/* Hide template settings gear (RTL/LTR) if main.js still injects it */
.rs-theme-settings-area {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Product detail */
.ks-product-detail {
    padding: 4rem 0;
}

.ks-product-detail .rs-section-subtitle {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    justify-content: flex-start;
}

.ks-product-detail h1.rs-section-title {
    font-size: 1.625rem;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: -0.01em;
}

@media only screen and (max-width: 991px) {
    .ks-product-detail h1.rs-section-title {
        font-size: 1.375rem;
    }
}

.ks-product-detail .ks-product-breadcrumb span:last-child {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ks-text, #0f0f0f);
    line-height: 1.4;
}

.ks-product-breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--ks-text-muted, rgba(15, 15, 15, 0.62));
}

.ks-product-breadcrumb a {
    color: var(--ks-text-muted, rgba(15, 15, 15, 0.62));
    text-decoration: none;
}

.ks-product-breadcrumb a:hover {
    color: var(--ks-accent-dark, #a67c00);
}

.ks-product-gallery-main {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0f0f0;
    position: relative;
}

.ks-product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.ks-product-thumb {
    border: 2px solid transparent;
    padding: 0;
    background: none;
    cursor: pointer;
}

.ks-product-thumb.active {
    border-color: var(--ks-accent-dark, #a67c00);
}

.ks-product-specs dt {
    color: var(--ks-text-muted, rgba(15, 15, 15, 0.62));
}

.ks-product-specs dd {
    font-weight: 600;
}

/* Promo video — mockup teléfono SVG en móvil vertical y en PC */
.ks-promo-video-section {
    scroll-margin-top: 100px;
}

.ks-promo-video-player {
    display: flex;
    justify-content: center;
    width: 100%;
}

.ks-promo-video-col-media {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Mockup teléfono — viewBox 320×640 */
.ks-phone-mockup {
    --ks-phone-h: min(58vh, 480px);
    --ks-phone-w: min(calc(var(--ks-phone-h) * 320 / 640), 88vw);
    position: relative;
    width: var(--ks-phone-w);
    height: var(--ks-phone-h);
    margin-inline: auto;
    flex-shrink: 0;
}

/* Teléfonos en portrait (pantalla vertical) */
@media (max-width: 991.98px) and (orientation: portrait) {
    .ks-phone-mockup {
        --ks-phone-h: min(68vh, 580px);
        --ks-phone-w: min(calc(var(--ks-phone-h) * 320 / 640), 92vw);
    }
}

@media (max-width: 575.98px) and (orientation: portrait) {
    .ks-phone-mockup {
        --ks-phone-h: min(72vh, 520px);
        --ks-phone-w: min(calc(var(--ks-phone-h) * 320 / 640), 94vw);
    }
}

.ks-phone-mockup__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ks-phone-mockup__svg--body {
    z-index: 0;
}

.ks-phone-mockup__svg--chrome {
    z-index: 3;
}

.ks-phone-mockup__screen {
    position: absolute;
    z-index: 1;
    left: 6.25%;
    top: 7.8125%;
    width: 87.5%;
    height: 84.6875%;
    border-radius: 8.5%;
    overflow: hidden;
    background: #000;
}

.ks-phone-mockup__screen video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 992px) {
    .ks-promo-video-col-copy {
        padding-inline-end: 1.5rem;
    }

    .ks-phone-mockup {
        --ks-phone-h: min(780px, 80vh);
        --ks-phone-w: calc(var(--ks-phone-h) * 320 / 640);
    }
}

@media (min-width: 1200px) {
    .ks-phone-mockup {
        --ks-phone-h: min(840px, 85vh);
        --ks-phone-w: calc(var(--ks-phone-h) * 320 / 640);
    }
}

/* Móvil en landscape: teléfono un poco más compacto */
@media (max-width: 991.98px) and (orientation: landscape) {
    .ks-phone-mockup {
        --ks-phone-h: min(75vh, 420px);
        --ks-phone-w: min(calc(var(--ks-phone-h) * 320 / 640), 40vw);
    }
}
