/* Kennerverse Comparador — CSS v3.0.0 */

#kv-root {
    font-family: var(--e-global-typography-text-font-family, 'Roboto'), sans-serif;
    font-size: 14px;
    color: var(--e-global-color-text, #ffffff);
    width: 100%;
}
#kv-root *, #kv-root *::before, #kv-root *::after { box-sizing: border-box; }

/* ── BARRA INFERIOR ── */
.kv-bottom-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding-top: 16px;
    margin-top: 6px;
    flex-wrap: wrap;
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: #1b252f;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.kv-comp-counter {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    margin-right: auto;
    animation: kvFadeIn 0.2s ease;
}
.kv-comp-counter strong { color: var(--e-global-color-primary, #FFDE01); }

/* Toast — siempre fijo en pantalla */
.kv-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 90vw;
    z-index: 99999;
    text-align: center;
    background: rgba(27,37,47,0.96);
    border: 1px solid var(--e-global-color-accent, #FA8B04);
    color: var(--e-global-color-accent, #FA8B04);
    font-size: 12px;
    font-family: var(--e-global-typography-text-font-family, 'Roboto'), sans-serif;
    padding: 0 16px;
    border-radius: 3px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 0.25s, max-height 0.25s, padding 0.25s;
    white-space: nowrap;
}
.kv-toast.visible {
    opacity: 1;
    max-height: 60px;
    padding: 9px 16px;
}

/* Botones */
.kv-btn-comparar, .kv-btn-volver, .kv-btn-reset {
    font-family: var(--e-global-typography-text-font-family, 'Roboto'), sans-serif;
    font-size: 12px; font-weight: 400; text-transform: uppercase;
    border-radius: 3px; cursor: pointer; transition: opacity 0.2s;
    margin: 0; padding: 9px 22px; line-height: 1; border: none;
}
.kv-btn-comparar { background-color: var(--e-global-color-accent, #FA8B04); color: #fff; }
.kv-btn-comparar:hover:not(:disabled) { opacity: 0.85; }
.kv-btn-comparar:disabled { opacity: 0.28; cursor: not-allowed; }
.kv-btn-volver {
    background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.15) !important;
}
.kv-btn-volver:hover { background: rgba(255,255,255,0.13); color: #fff; }
.kv-btn-desel {
    background: transparent;
    color: rgba(250,139,4,0.7);
    border: 1px solid rgba(250,139,4,0.4) !important;
    border-radius: 3px;
    padding: 8px 18px;
}
.kv-btn-desel:hover:not(:disabled) {
    background: rgba(250,139,4,0.1);
    border-color: var(--e-global-color-accent, #FA8B04) !important;
    color: var(--e-global-color-accent, #FA8B04);
}
.kv-btn-desel:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    border-color: rgba(255,255,255,0.15) !important;
    color: rgba(255,255,255,0.2);
}

/* ── GRUPOS ── */
.kv-grupo-sep {
    height: 1px; background: rgba(255,222,1,0.1); margin: 20px 0;
}
.kv-grupo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

/* ── TARJETAS ── */
.kv-tarjeta {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px; background: rgba(255,255,255,0.03);
    overflow: hidden; display: flex; flex-direction: column;
    transition: border-color 0.2s;
}
.kv-tarjeta.principal  { border-color: rgba(255,222,1,0.18); }
.kv-tarjeta.subvariante { border-left: 2px solid rgba(255,222,1,0.22); }
.kv-tarjeta.selected   { border-color: var(--e-global-color-primary, #FFDE01) !important; background: rgba(255,222,1,0.04); }
.kv-tarjeta.kv-highlight { animation: kv-pulse-highlight 2.8s ease-out forwards; }
@keyframes kv-pulse-highlight {
    0%   { background: rgba(255,222,1,0.14); box-shadow: 0 0 0 2px rgba(255,222,1,0.95) inset, 0 0 24px 6px rgba(255,222,1,0.35); }
    50%  { background: rgba(255,222,1,0.07); box-shadow: 0 0 0 2px rgba(255,222,1,0.5)  inset, 0 0 32px 8px rgba(255,222,1,0.12); }
    100% { background: rgba(255,222,1,0.03); box-shadow: none; }
}

/* ── Botón copiar enlace de variante ── */
.kv-copy-link {
    display: inline-flex; align-items: center; justify-content: center;
    background: none; border: none; padding: 1px 3px; margin-left: 4px;
    color: rgba(255,222,1,0.45); cursor: pointer; vertical-align: middle;
    border-radius: 3px; transition: color 0.15s, background 0.15s;
    line-height: 1;
}
.kv-copy-link:hover { color: rgba(255,222,1,0.9); background: rgba(255,222,1,0.08); }

/* Header tarjeta */
.kv-tarjeta-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 8px; padding: 8px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.15);
}
.kv-tarjeta-titulo {
    display: flex; align-items: flex-start; gap: 5px; min-width: 0; flex: 1;
}
.kv-col-icon { display: flex; align-items: center; flex-shrink: 0; margin-top: 1px; }
.kv-col-icon.tiene    { color: #ffffff; }
.kv-col-icon.no-tiene { color: rgba(255,255,255,0.2); }
.kv-tarjeta-nombre {
    font-size: 10px; font-weight: 500; color: var(--e-global-color-primary, #FFDE01);
    word-break: break-word; line-height: 1.35;
}

/* Header derecho: ID + badge + checkbox */
.kv-header-right {
    display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0;
}
.kv-header-id-row {
    display: flex; align-items: center; gap: 4px;
}
.kv-tarjeta-id {
    font-size: inherit; color: rgb(255,222,1);
    letter-spacing: 0.5px; text-transform: uppercase; white-space: nowrap;
}
.kv-sub-badge {
    font-size: 7px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
    background: rgba(255,222,1,0.1); color: rgba(255,222,1,0.5);
    border: 1px solid rgba(255,222,1,0.2); border-radius: 2px; padding: 1px 5px;
    white-space: nowrap;
}

/* Checkbox */
.kv-check-label {
    display: flex; align-items: center; gap: 5px; cursor: pointer;
    font-size: 8px; font-weight: 500;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase; letter-spacing: 0.8px;
    user-select: none; white-space: nowrap; transition: all 0.15s;
    padding: 3px 7px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
}
.kv-check-label:hover {
    border-color: rgba(255,222,1,0.35);
    background: rgba(255,222,1,0.06);
    color: rgba(255,255,255,0.6);
}
.kv-check-label.checked {
    border-color: var(--e-global-color-primary, #FFDE01);
    background: rgba(255,222,1,0.12);
    color: var(--e-global-color-primary, #FFDE01);
}
.kv-check-input { display: none; }
.kv-check-box {
    width: 13px; height: 13px;
    border: 1.5px solid rgba(255,222,1,0.35);
    border-radius: 2px; display: flex; align-items: center; justify-content: center;
    font-size: 8px; color: transparent; background: transparent;
    transition: all 0.15s; flex-shrink: 0;
}
.kv-check-label.checked .kv-check-box {
    background: var(--e-global-color-primary, #FFDE01);
    border-color: var(--e-global-color-primary, #FFDE01); color: #1b252f;
}

/* ── GALERÍA EN TARJETA ── */
.kv-tarjeta-gal { display: flex; flex-direction: column; }
.kv-tarjeta-img-wrap {
    position: relative; aspect-ratio: 1;
    background: rgba(0,0,0,0.2); overflow: hidden;
}
.kv-tarjeta-img-wrap img {
    width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.15s;
}
.kv-nav-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 26px; height: 26px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18) !important;
    background: rgba(27,37,47,0.82); color: rgba(255,255,255,0.8);
    font-size: 16px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 2; transition: all 0.15s;
    backdrop-filter: blur(4px); padding: 0; margin: 0; line-height: 1;
}
.kv-nav-arrow:hover { background: var(--e-global-color-accent, #FA8B04); border-color: var(--e-global-color-accent, #FA8B04) !important; color: #fff; }
.kv-nav-arrow:disabled, .kv-nav-arrow:disabled:hover {
    opacity: 0.15; cursor: default;
    background: rgba(27,37,47,0.82); border-color: rgba(255,255,255,0.18) !important; color: rgba(255,255,255,0.8);
}
.kv-nav-arrow.prev { left: 6px; }
.kv-nav-arrow.next { right: 6px; }
.kv-gal-counter {
    position: absolute; bottom: 7px; right: 7px;
    font-size: 9px; color: rgba(255,255,255,0.6);
    background: rgba(0,0,0,0.55); padding: 2px 6px; border-radius: 10px;
    backdrop-filter: blur(4px);
}
.kv-nav-dots {
    display: flex; gap: 4px; justify-content: center;
    padding: 6px; background: rgba(0,0,0,0.12);
}
.kv-nav-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: rgba(255,255,255,0.2); cursor: pointer;
    transition: background 0.15s; flex-shrink: 0;
}
.kv-nav-dot.active { background: var(--e-global-color-primary, #FFDE01); }
.kv-gal-thumbs {
    display: flex; gap: 3px; padding: 5px;
    background: rgba(0,0,0,0.1); overflow-x: auto; scrollbar-width: none;
}
.kv-gal-thumbs::-webkit-scrollbar { display: none; }
.kv-thumb {
    width: 40px; height: 40px; border-radius: 2px; overflow: hidden;
    cursor: pointer; flex-shrink: 0;
    border: 1.5px solid transparent; transition: border-color 0.15s, opacity 0.15s; opacity: 0.5;
}
.kv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kv-thumb:hover { opacity: 0.8; }
.kv-thumb.active { border-color: var(--e-global-color-primary, #FFDE01); opacity: 1; }
.kv-sin-imagen {
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.18); font-size: 11px; background: rgba(0,0,0,0.1);
}

/* ── 360° THUMB EN TIRA ── */
.kv-thumb-360 { position: relative; }
.kv-thumb-360-icon {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.45); transition: background 0.15s;
}
.kv-thumb-360-icon svg { width: 16px; height: 16px; stroke: #fff; }
.kv-thumb-360:hover .kv-thumb-360-icon { background: rgba(250,139,4,0.7); }
.kv-thumb-360.active .kv-thumb-360-icon { background: rgba(0,0,0,0.3); }

/* ── 360° BADGE EN ÁREA PRINCIPAL ── */
.kv-360-badge {
    position: absolute; inset: 0; cursor: pointer; overflow: hidden;
}
.kv-360-preview-img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.kv-360-overlay-content {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.38); gap: 8px; transition: background 0.2s;
}
.kv-360-badge:hover .kv-360-overlay-content { background: rgba(0,0,0,0.22); }
.kv-360-icon-ring {
    display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff;
}
.kv-360-icon-ring svg { width: 32px; height: 32px; stroke: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5)); }
.kv-360-icon-ring span { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-shadow: 0 1px 3px rgba(0,0,0,0.6); }
.kv-360-tap-hint { font-size: 10px; color: rgba(255,255,255,0.75); letter-spacing: 0.5px; }

/* ── NOTIFICACIÓN 360° EN LIGHTBOX ── */
#kv-lb-360-notif {
    position: absolute; bottom: 64px; left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,0.65); color: #fff; font-size: 12px;
    padding: 6px 14px; border-radius: 20px; white-space: nowrap;
    backdrop-filter: blur(6px); pointer-events: none; z-index: 10;
}

/* ── META DE TARJETA ── */
.kv-tarjeta-meta { padding: 9px 10px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.kv-comp-tags { display: flex; flex-wrap: wrap; gap: 3px; }
.kv-tag {
    font-size: 9px; font-weight: 500; letter-spacing: .5px;
    padding: 2px 6px; border-radius: 2px; text-transform: uppercase;
}
.kv-tag-maker        { background:rgba(255,222,1,.1);   color:#FFDE01; border:1px solid rgba(255,222,1,.2); }
.kv-tag-tipo-oficial    { background:rgba(97,206,112,.1); color:#7ddc8e; border:1px solid rgba(97,206,112,.2); }
.kv-tag-tipo-no-oficial { background:rgba(250,139,4,.1);  color:#FA8B04; border:1px solid rgba(250,139,4,.2); }

.kv-coo-valor {
    font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.82);
    border-left: 2px solid var(--e-global-color-primary, #FFDE01);
    padding: 3px 0 3px 9px; margin: 0;
    line-height: 1.6; overflow: visible;
}

/* ── TABS ES/EN ── */
.kv-desc-tabs {
    display: flex; gap: 0;
}
.kv-desc-tab {
    font-size: 9px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
    padding: 4px 8px; cursor: pointer; color: rgba(255,255,255,0.25);
    border-bottom: 2px solid transparent; margin-bottom: -1px;
    transition: all 0.15s; user-select: none;
}
.kv-desc-tab.active { color: var(--e-global-color-accent, #FA8B04); border-bottom-color: var(--e-global-color-accent, #FA8B04); }
.kv-desc-content { font-size: 10px; color: rgba(255,255,255,0.5); line-height: 1.6; padding-top: 5px; }
.kv-desc-panel { display: none; }
.kv-desc-panel.active { display: block; }

/* ── MODAL: COMPARADOR DE EMPAQUES (cardbacks / bolsas / cajas) ──
   Se muestra en overlay fijo para que el scroll no exponga el resto
   de la página (portfolios, nav) mientras se compara. */
body.kv-emp-modal-open { overflow: hidden; }
.kv-emp-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 98000;
    background: #12181f;
    overflow-y: auto;
    padding: 24px 16px 48px;
}
.kv-emp-modal-overlay.open { display: block; }
.kv-emp-modal-inner {
    max-width: 1100px;
    margin: 0 auto;
    font-family: var(--e-global-typography-text-font-family, 'Roboto'), sans-serif;
    font-size: 14px;
    color: var(--e-global-color-text, #ffffff);
}
.kv-emp-modal-inner *, .kv-emp-modal-inner *::before, .kv-emp-modal-inner *::after { box-sizing: border-box; }
@media (max-width: 1023px) {
    .kv-emp-modal-overlay { padding: 16px 10px 40px; }
}

/* ── VISTA COMPARADOR ── */
.kv-result-grid {
    display: grid; gap: 1px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 4px; overflow: hidden; overflow-x: auto; width: 100%;
}
.kv-result-col-header { padding: 10px 12px; background: rgba(255,222,1,0.06); border-bottom: 1px solid rgba(255,222,1,0.12); }
.kv-result-col-name { font-size: 11px; font-weight: 500; color: var(--e-global-color-primary, #FFDE01); margin-bottom: 2px; }
.kv-result-col-id { font-size: 9px; color: rgba(255,255,255,0.3); letter-spacing: 1px; text-transform: uppercase; display: flex; align-items: center; gap: 4px; }
.kv-nav-gal { background: rgba(0,0,0,0.2); }
.kv-nav-gal-img { overflow: hidden; position: relative; }
.kv-nav-gal-img img { width: 100%; height: auto; object-fit: contain; display: block; transition: opacity 0.15s; }
.kv-attr-label {
    padding: 9px 12px; font-size: 9px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
    color: rgba(255,255,255,0.3); background: rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.05); border-right: 1px solid rgba(255,255,255,0.05);
    white-space: nowrap; display: flex; align-items: center; gap: 5px;
}
.kv-corner { background: rgba(255,222,1,0.04); border-bottom: 1px solid rgba(255,222,1,0.1); }
.kv-attr-val {
    padding: 9px 12px; font-size: 11px; color: rgba(255,255,255,0.7);
    border-bottom: 1px solid rgba(255,255,255,0.05); border-right: 1px solid rgba(255,255,255,0.05);
    line-height: 1.5; vertical-align: top; background: var(--wp--preset--color--background-color, #1b252f);
}
.kv-attr-val:last-child { border-right: none; }
.kv-attr-val.difiere { color: var(--e-global-color-accent, #FA8B04); font-weight: 500; }
.kv-attr-val .kv-diff-word { display: inline; color: var(--e-global-color-accent, #FA8B04); font-weight: 500; }
.kv-attr-val.igual   { color: rgba(255,255,255,0.28); }
.kv-attr-val span    { display: block; line-height: 1.5; }
.kv-desc-es          { margin-bottom: 8px; }
.kv-desc-en          { margin-top: 8px; }
.kv-desc-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin: 0;
}

/* ── FUENTE DE IMAGEN ── */
.kv-fuente {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px 4px;
    background: rgba(0,0,0,0.15);
    border-top: 1px solid rgba(255,255,255,0.05);
}
.kv-fuente svg {
    flex-shrink: 0;
    opacity: 0.4;
    color: rgba(255,255,255,0.6);
}
.kv-fuente span {
    font-size: 10px;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kv-fuente span a {
    color: rgba(160,200,255,0.7);
    text-decoration: none;
}
.kv-fuente span a:hover {
    color: rgba(160,200,255,1);
    text-decoration: underline;
}
.kv-diff-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--e-global-color-accent, #FA8B04); flex-shrink: 0; }
.kv-leyenda { margin-top: 10px; font-size: 11px; color: rgba(255,255,255,0.25); display: flex; align-items: center; gap: 6px; }
.kv-leyenda-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--e-global-color-accent, #FA8B04); display: inline-block; flex-shrink: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
    .kv-grupo-grid { grid-template-columns: 1fr; }
}
@media (min-width: 481px) and (max-width: 767px) {
    .kv-grupo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .kv-grupo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── MÓVIL (≤1024px) — Comparador, botones sticky y toast ── */
@media (max-width: 1024px) {
    /* Ajuste de spacing en mobile */
    .kv-bottom-bar {
        padding: 10px 0;
        margin-top: 0;
    }

    /* Toast — en mobile sube sobre los botones sticky */
    .kv-toast { bottom: 80px; }
}

/* Cursor zoom en imágenes del comparador */
.kv-img-link { display: block; cursor: zoom-in; }
.kv-img-link img { pointer-events: none; }

/* ── DISTRIBUCIÓN ── */
.kv-dist-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 481px) and (max-width: 1024px) {
    .kv-dist-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Badges de tipo */
.kv-dist-badge {
    font-size: 7px; font-weight: 600;
    letter-spacing: 0.8px; text-transform: uppercase;
    padding: 3px 7px; border-radius: 2px;
    white-space: nowrap; flex-shrink: 0;
}
.kv-dist-badge--fabricante_original { background:rgba(255,222,1,.12); color:#FFDE01; border:1px solid rgba(255,222,1,.25); }
.kv-dist-badge--fabricante_regional { background:rgba(74,158,255,.1); color:#7bbfff; border:1px solid rgba(74,158,255,.25); }
.kv-dist-badge--distribuidor        { background:rgba(255,255,255,.06); color:rgba(255,255,255,.4); border:1px solid rgba(255,255,255,.12); font-size: 6px; }
.kv-dist-badge--bootleg             { background:rgba(232,80,80,.1); color:#ff9a9a; border:1px solid rgba(232,80,80,.25); }
.kv-dist-badge--especial            { background:rgba(62,201,138,.08); color:#3ec98a; border:1px solid rgba(62,201,138,.2); }

/* Nombre local en itálica */
.kv-dist-nombre-local {
    font-size: 10px; font-style: italic;
    color: rgba(255,222,1,0.5); line-height: 1.4;
}



/* ── LEER MÁS / TEXTO LOCAL ── */
.kv-leer-mas {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-top: 5px;
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: rgba(250,139,4,0.5);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--e-global-typography-text-font-family, 'Roboto'), sans-serif;
    transition: color 0.15s;
}
.kv-leer-mas::after {
    content: '›';
    font-size: 12px;
    line-height: 1;
    color: rgba(250,139,4,0.4);
    transition: color 0.15s, transform 0.15s;
    display: inline-block;
}
.kv-leer-mas:hover {
    color: rgba(250,139,4,0.8);
}
.kv-leer-mas:hover::after {
    color: rgba(250,139,4,0.8);
    transform: translateX(2px);
}

/* ── CLAMP DESCRIPCIÓN (máx. 10 líneas) ── */
.kv-clamp-wrap {
    position: relative;
    max-height: 16em; /* 10 líneas × 1.6 line-height */
    overflow: hidden;
}
.kv-clamp-wrap:not(.kv-clamp-open)::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3em;
    background: linear-gradient(transparent, #1b252f);
    pointer-events: none;
}
.kv-clamp-wrap.kv-clamp-open {
    max-height: none;
    overflow: visible;
}

.kv-desc-local-wrap {
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.kv-desc-local-label {
    display: block;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,222,1,0.4);
    margin-bottom: 3px;
}
.kv-desc-base  { font-size: 12px; }
.kv-desc-local { font-size: 12px; color: rgba(255,255,255,0.6); }

/* ── ENLACE ARTÍCULO DISTRIBUIDOR ── */
.kv-dist-url {
    display: inline-block;
    margin-top: 8px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--e-global-color-primary, #FFDE01);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,222,1,0.3);
    padding-bottom: 1px;
    transition: border-color 0.15s, color 0.15s;
    font-family: var(--e-global-typography-text-font-family, 'Roboto'), sans-serif;
}
.kv-dist-url:hover {
    color: var(--e-global-color-primary, #FFDE01);
    border-bottom-color: var(--e-global-color-primary, #FFDE01);
}

/* ── GRUPOS DE EMPAQUE (distribución) ── */
.kv-dist-grupo-header {
    margin-bottom: 12px;
}
.kv-dist-grid + .kv-dist-grupo-header {
    margin-top: 20px;
}
.kv-dist-grupo-label {
    font-family: var(--e-global-typography-text-font-family, 'Roboto'), sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,222,1,0.5);
    display: flex;
    align-items: center;
    gap: 10px;
}
.kv-dist-grupo-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,222,1,0.12);
}

/* ── HEADER DISTRIBUIDOR ── */
.kv-dist-header-wrap {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.15);
    width: 100%;
}
.kv-dist-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.kv-dist-pais {
    font-size: 9px;
    color: rgba(255,255,255,0.3);
    line-height: 1.3;
}

/* ── EMPAQUES (cardbacks / bolsas / cajas) dentro de tarjeta distribuidor ── */
.kv-cb-section {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 8px;
    margin-top: 4px;
}
.kv-cb-header {
    display: flex; align-items: center; gap: 8px; margin-bottom: 7px;
}
.kv-cb-header::after {
    content: ''; flex: 1; height: 1px; background: rgba(255,222,1,0.1);
}
.kv-cb-label {
    font-size: 8px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
    color: rgba(255,222,1,0.4);
}
.kv-cb-all-btn {
    flex-shrink: 0;
    background: none; border: 1px solid rgba(255,222,1,0.25); border-radius: 3px;
    color: rgba(255,222,1,0.5); font-size: 11px; line-height: 1;
    padding: 1px 4px; cursor: pointer; transition: color 0.15s, border-color 0.15s;
}
.kv-cb-all-btn:hover { color: rgba(255,222,1,0.9); border-color: rgba(255,222,1,0.6); }
.kv-cb-list { display: flex; flex-direction: column; gap: 5px; }
.kv-cb-item {
    display: flex; align-items: center; gap: 7px;
}
.kv-cb-hidden { display: none; }
.kv-cb-icon { flex-shrink: 0; width: 15px; height: 15px; display: flex; align-items: center; }
.kv-cb-icon.tiene    { color: #ffffff; }
.kv-cb-icon.no-tiene { color: rgba(255,255,255,0.2); }
.kv-cb-nombre {
    font-size: 10px; color: rgba(255,255,255,0.65); flex: 1; line-height: 1.3;
}
.kv-cb-thumbs { display: flex; gap: 3px; flex-shrink: 0; }
.kv-cb-thumb-link {
    display: block; width: 26px; height: 26px; border-radius: 2px;
    overflow: hidden; cursor: zoom-in; flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.1);
}
.kv-cb-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kv-cb-no-img {
    width: 26px; height: 26px; border-radius: 2px; flex-shrink: 0;
    background: rgba(255,255,255,0.04); border: 1px dashed rgba(255,255,255,0.1);
}
.kv-cb-more-btn {
    margin-top: 7px; background: none; border: none; cursor: pointer;
    font-size: 8px; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase;
    color: rgba(250,139,4,0.5); padding: 0;
    display: flex; align-items: center; gap: 3px;
    transition: color 0.15s;
    font-family: var(--e-global-typography-text-font-family, 'Roboto'), sans-serif;
}
.kv-cb-more-btn:hover { color: rgba(250,139,4,0.85); }
.kv-cb-arrow {
    font-size: 13px; display: inline-block; transition: transform 0.2s;
}

/* ══════════════════════════════════════════
   EMPAQUES — Cardbacks / Bolsas / Cajas
   (páginas de colección)
══════════════════════════════════════════ */

/* Separador entre manufacturas */
.kv-emp-mfr-sep {
    height: 1px; background: rgba(255,222,1,0.1); margin: 28px 0;
}

/* Header manufactura */
.kv-emp-mfr-header {
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255,222,1,0.2);
    margin-bottom: 6px;
}
.kv-emp-mfr-top {
    display: flex; align-items: flex-start;
    justify-content: space-between; gap: 10px;
}
.kv-emp-mfr-nombre { font-size: 15px; font-weight: 500; color: var(--e-global-color-primary, #FFDE01); }
.kv-emp-mfr-pais   { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 2px; }
.kv-emp-mfr-desc   { margin: 8px 0 4px; }
.kv-emp-mfr-desc .kv-desc-content { font-size: 11px; color: rgba(255,255,255,0.4); line-height: 1.6; }

/* Familia sub-header */
.kv-emp-familia-header {
    font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
    color: rgba(255,222,1,0.4); margin: 20px 0 10px;
    display: flex; align-items: center; gap: 10px;
}
.kv-emp-familia-header::after {
    content: ''; flex: 1; height: 1px; background: rgba(255,222,1,0.1);
}

/* Variante — fila expandida */
.kv-emp-variante {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.kv-emp-variante:last-child { border-bottom: none; }

/* Columna imagen */
.kv-emp-img-col {
    flex-shrink: 0; width: 320px;
    display: flex; flex-direction: column; gap: 6px;
}
.kv-emp-img-empty {
    width: 100%; height: 260px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.1); border-radius: 3px;
    font-size: 11px; color: rgba(255,255,255,0.15);
}
.kv-emp-thumbs {
    display: flex; gap: 4px; flex-wrap: wrap;
}
.kv-emp-thumb {
    width: 32px; height: 32px; border-radius: 2px; overflow: hidden;
    cursor: pointer; border: 1.5px solid transparent;
    opacity: 0.5; transition: all 0.15s; flex-shrink: 0;
}
.kv-emp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kv-emp-thumb:hover { opacity: 0.8; }
.kv-emp-thumb.active { border-color: var(--e-global-color-primary, #FFDE01); opacity: 1; }

/* Columna contenido */
.kv-emp-content { flex: 1; min-width: 0; }
.kv-emp-var-header {
    display: flex; align-items: center; gap: 7px; margin-bottom: 4px;
}
.kv-emp-var-id {
    font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.85);
}

/* Mobile */
@media (max-width: 540px) {
    .kv-emp-variante  { flex-direction: column; }
    .kv-emp-img-col   { width: 100%; }
    .kv-emp-img-empty { width: 100%; height: 160px; }
}

/* ── EMPAQUES adicionales ── */

/* Índice de manufacturas */
.kv-emp-index {
    display: flex; flex-wrap: wrap; gap: 6px;
    padding: 12px 0 20px;
    border-bottom: 1px solid rgba(255,222,1,0.1);
    margin-bottom: 24px;
}
.kv-emp-index-link {
    font-size: 11px; font-weight: 500;
    color: var(--e-global-color-accent, #FA8B04);
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid rgba(250,139,4,0.25);
    border-radius: 2px;
    background: rgba(250,139,4,0.05);
    transition: all 0.15s;
    white-space: nowrap;
}
.kv-emp-index-link:hover {
    background: rgba(250,139,4,0.12);
    border-color: rgba(250,139,4,0.5);
    color: var(--e-global-color-accent, #FA8B04);
}

/* Título manufactura más grande */
.kv-emp-mfr-nombre { font-size: 18px; font-weight: 500; color: var(--e-global-color-primary, #FFDE01); }

/* Tabs manufactura — separados de los de variante */
.kv-emp-desc-tabs { display:flex; border-bottom:1px solid rgba(255,255,255,.08); margin-bottom:4px; }
.kv-emp-desc-tab {
    font-size:9px; font-weight:600; letter-spacing:1px; text-transform:uppercase;
    padding:4px 8px; cursor:pointer; color:rgba(255,255,255,.25);
    border-bottom:2px solid transparent; margin-bottom:-1px; transition:all .15s;
    user-select: none;
}
.kv-emp-desc-tab.active { color:#FA8B04; border-bottom-color:#FA8B04; }
.kv-emp-desc-content .kv-emp-desc-panel { display: none; font-size: 11px; color: rgba(255,255,255,0.4); line-height: 1.6; padding-top: 4px; }
.kv-emp-desc-content .kv-emp-desc-panel.active { display: block; }

/* Par de imágenes principales */
.kv-emp-img-pair {
    display: flex;
    gap: 5px;
    height: 260px;
}
.kv-emp-img-slot {
    flex: 1; min-width: 0; height: 260px;
    border-radius: 3px;
    cursor: zoom-in;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    transition: opacity 0.15s;
}

/* Mobile */
@media (max-width: 640px) {
    .kv-emp-variante  { flex-direction: column; }
    .kv-emp-img-col   { width: 100%; }
    .kv-emp-img-pair  { height: 360px; gap: 4px; }
    .kv-emp-img-slot  { flex: 1; height: 360px; min-width: 0; }
}

/* Flechas navegación galería empaques */
.kv-emp-arrows {
    display: flex; justify-content: center; gap: 8px; margin-top: 6px;
}
.kv-emp-nav {
    width: 28px; height: 28px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18) !important;
    background: rgba(27,37,47,0.82); color: rgba(255,255,255,0.7);
    font-size: 18px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; padding: 0; margin: 0; line-height: 1;
    transition: all 0.15s;
}
.kv-emp-nav:hover { background: var(--e-global-color-accent, #FA8B04); border-color: var(--e-global-color-accent, #FA8B04) !important; color: #fff; }

/* ── TÍTULO DE SECCIÓN (Cardbacks / Bolsas / Cajas) ── */
.kv-tipo-titulo {
    font-size: 24px; font-weight: 400; letter-spacing: 0.5px;
    color: var(--e-global-color-primary, #FFDE01);
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 16px;
    border-bottom: 2px solid rgba(255,222,1,0.15);
}

/* ── DESCRIPCIÓN DE COLECCIÓN (intro por serie+tipo) ── */
.kv-serie-desc {
    margin-bottom: 20px;
    padding: 14px 0;
}
.kv-serie-desc .kv-emp-desc-panel {
    font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.7;
}

/* ── GRILLA DE TARJETAS ── */
.kv-emp-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
    margin-bottom: 4px;
}
.kv-emp-card {
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    transition: border-color 0.15s, transform 0.1s;
}
.kv-emp-card:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-1px); }
.kv-emp-card.active { border-color: var(--e-global-color-accent, #FA8B04); }
.kv-emp-card-thumb {
    width: 100%; aspect-ratio: 9/14;
    background: rgba(0,0,0,0.3) center/cover no-repeat;
}
.kv-emp-card-footer {
    display: flex; align-items: center; gap: 5px;
    padding: 5px 7px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.kv-emp-card-id {
    font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.7);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── PANEL DE DETALLE ──
   Vive dentro de la misma grilla que las tarjetas (grid-column:1/-1 lo hace
   ocupar toda la fila) para poder insertarse justo debajo de la tarjeta
   seleccionada en vez de siempre al final de la grilla. */
.kv-emp-variante-detail {
    grid-column: 1 / -1;
    margin-bottom: 8px;
    border-top: 2px solid var(--e-global-color-accent, #FA8B04);
}

@media (max-width: 600px) {
    .kv-emp-cards { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; }
}

/* ── COMPARADOR DE EMPAQUES ── */
.kv-emp-card.kv-emp-selected {
    border-color: var(--e-global-color-primary, #FFDE01);
    background: rgba(255,222,1,0.06);
}

/* Checkbox arriba de la tarjeta */
.kv-emp-card-check-wrap {
    padding: 6px 7px 4px;
    display: flex;
}
.kv-emp-card-check-wrap .kv-check-label {
    padding: 3px 7px;
    font-size: 8px;
    border-radius: 3px;
    white-space: nowrap;
}
.kv-emp-card-check-wrap .kv-check-box {
    width: 11px; height: 11px;
    font-size: 8px;
}

/* ══════════════════════════════════════════
   PORTFOLIO
══════════════════════════════════════════ */
.kv-pf-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
}
.kv-pf-item { position: relative; overflow: hidden; }
.kv-pf-link { display: block; position: relative; text-decoration: none; }
.kv-pf-thumb {
    width: 100%; aspect-ratio: 1 / 1;
    background: #111 center/cover no-repeat;
}
.kv-pf-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.72);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.25s;
}
.kv-pf-item:hover .kv-pf-overlay { opacity: 1; }
.kv-pf-title {
    color: #fff;
    font-size: 12px; font-weight: 600; line-height: 1.35;
    text-align: center; margin: 0 0 7px;
}
.kv-pf-titulo {
    margin-bottom: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.kv-pf-desc {
    padding: 14px 0 20px;
}
.kv-pf-desc-text {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
}

/* Selector de orden alfabético — interruptor on/off, discreto, sobre la grilla */
.kv-pf-order-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 0 0 10px;
}
.kv-pf-switch {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
}
.kv-pf-switch-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.kv-pf-switch-track {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    transition: background 0.2s;
    pointer-events: none;
}
.kv-pf-switch-thumb {
    position: absolute;
    top: 2px; left: 2px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s;
}
.kv-pf-switch-input:checked + .kv-pf-switch-track {
    background: var(--e-global-color-primary, #FFDE01);
}
.kv-pf-switch-input:checked + .kv-pf-switch-track .kv-pf-switch-thumb {
    transform: translateX(14px);
}
.kv-pf-switch-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    user-select: none;
}

.kv-pf-badge {
    font-size: 10px; font-weight: 500;
    background: var(--e-global-color-accent, #FA8B04);
    color: #fff;
    padding: 2px 8px; border-radius: 10px;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .kv-pf-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════
   HEADER DE FIGURA
══════════════════════════════════════════ */
.kv-hdr-wrap {
    display: flex; gap: 24px; align-items: flex-start;
    margin-bottom: 28px;
}
.kv-hdr-gal {
    flex-shrink: 0; width: 320px;
    display: flex; flex-direction: column; gap: 6px;
}
.kv-hdr-img-wrap {
    position: relative; aspect-ratio: 1;
    background: rgba(0,0,0,0.2); border-radius: 4px; overflow: hidden;
}
.kv-hdr-img-link { display: block; width: 100%; height: 100%; }
.kv-hdr-img-link img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: opacity 0.15s;
}
.kv-hdr-info { flex: 1; min-width: 0; }
.kv-hdr-title {
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif);
    font-size: 28px; font-weight: 400;
    color: var(--e-global-color-primary, #FFDE01);
    line-height: 1.2; margin: 0 0 8px;
}
.kv-hdr-alt-names {
    font-size: 15px; color: rgba(255,255,255,0.75);
    margin-bottom: 18px; line-height: 1.6;
    display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
    font-style: italic;
}
.kv-hdr-sep { color: rgba(255,255,255,0.3); margin: 0 4px; font-style: normal; }
.kv-hdr-meta { display: flex; flex-direction: column; gap: 6px; }
.kv-hdr-meta-row {
    font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.5);
    border-left: 2px solid rgba(255,222,1,0.3); padding-left: 10px;
}
.kv-hdr-meta-row strong { color: rgba(255,255,255,0.85); font-weight: 700; }
.kv-hdr-sku { font-size: 11px; font-weight: 600; letter-spacing: 0.5px; }
.kv-hdr-desc {
    margin-top: 14px; padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.07);
    font-size: 12px; font-weight: 400; color: rgba(255,255,255,0.55); line-height: 1.6;
}

/* Mobile header */
@media (max-width: 600px) {
    .kv-hdr-wrap  { flex-direction: column; }
    .kv-hdr-gal   { width: 100%; }
    .kv-hdr-title { font-size: 22px; }
}

/* ══════════════════════════════════════════
   TABS DE FIGURA
══════════════════════════════════════════ */
.kv-tabs-nav {
    display: flex; flex-wrap: wrap; gap: 4px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255,222,1,0.15);
    padding-bottom: 0;
}

/* ── FULL-BLEED TABS (mobile) ── */
@media (max-width: 1023px) {
    .kv-tabs-nav {
        width: 100vw;
        position: relative;
        left: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        padding-left: 16px;
        padding-right: 16px;
        justify-content: center;
    }
}

/* ── STICKY NAV (desktop) — tabs, portfolio wrapper y empaques autónomo ── */
@media (min-width: 1024px) {
    .kv-tabs-nav.kv-sticky {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        z-index: 900;
        background: #1b252f;
        margin-bottom: 0;
        padding: 0 32px;
        border-bottom: 2px solid rgba(255,222,1,0.25);
        box-shadow: 0 2px 12px rgba(0,0,0,0.4);
    }
    /* Portfolio wrapper sticky — position:sticky nativo, no saca el elemento del flujo */
    #kv-pf-nav-wrap {
        position: sticky;
        top: 70px; /* altura del navbar del tema */
        z-index: 900;
        background: #1b252f;
        padding: 0 32px;
        border-bottom: 2px solid rgba(255,222,1,0.25);
        box-shadow: 0 2px 12px rgba(0,0,0,0.4);
    }
    #kv-pf-nav-wrap .kv-emp-index {
        border-bottom: 1px solid rgba(255,222,1,0.08);
        margin-bottom: 0;
        padding-bottom: 8px;
    }
    #kv-pf-nav-wrap .kv-pf-subnav {
        padding-top: 6px;
        padding-bottom: 8px;
        margin-bottom: 0;
        border-bottom: none;
    }
    /* Empaques autónomo (sin portfolio wrapper) */
    .kv-emp-index.kv-sticky {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        z-index: 900;
        background: #1b252f;
        margin-bottom: 0;
        padding: 10px 32px;
        border-bottom: 2px solid rgba(255,222,1,0.25);
        box-shadow: 0 2px 12px rgba(0,0,0,0.4);
        flex-wrap: nowrap;
        overflow-x: auto;
    }
}
/* Subnav — base (oculto; se muestra por JS) */
.kv-pf-subnav {
    display: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0;
    border-bottom: none;
    margin-bottom: 0;
}

.kv-tab-btn {
    font-family: var(--e-global-typography-text-font-family, 'Roboto'), sans-serif;
    font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
    padding: 10px 18px; cursor: pointer;
    background: transparent; border: none;
    color: rgba(255,255,255,0.3);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.15s;
}
.kv-tab-btn:hover { color: rgba(255,255,255,0.6); }
.kv-tab-btn.active {
    color: var(--e-global-color-primary, #FFDE01);
    border-bottom-color: var(--e-global-color-primary, #FFDE01);
}
.kv-tab-panel { display: none; }
.kv-tab-panel.active { display: block; width: 100%; }

/* Soporte bloques de grupo Gutenberg como panels */
.wp-block-group.kv-tab-panel { display: none; }
.wp-block-group.kv-tab-panel.active { display: block; width: 100%; }

/* ── BOTÓN FLOTANTE VOLVER A PESTAÑAS (mobile) ── */
/* ── Botón flotante "volver a botonera" — compartido por tabs, portfolio y empaques ── */
.kv-back-btn {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 16px;
    z-index: 999;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(27,37,47,0.85);
    border: 1px solid rgba(255,222,1,0.4);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    transition: opacity 0.25s;
    opacity: 0;
    pointer-events: none;
    padding: 0;
}
.kv-back-btn.visible {
    opacity: 1;
    pointer-events: auto;
}
.kv-back-btn svg {
    display: block;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--e-global-color-primary, #FFDE01);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin: auto;
}
@media (min-width: 1024px) {
    .kv-back-btn { display: none !important; }
}
@media (max-width: 1023px) {
    .kv-back-btn { display: flex; }
}
/* Alias para compatibilidad */
#kv-back-to-tabs { /* usa .kv-back-btn */ }

/* Estilos para contenido libre dentro de panels */
.kv-tab-panel h1, .kv-tab-panel h2, .kv-tab-panel h3,
.kv-tab-panel h4, .kv-tab-panel h5 {
    color: var(--e-global-color-primary, #FFDE01);
    margin-bottom: 12px;
}
.kv-tab-panel p {
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 16px;
}
.kv-tab-panel figure img,
.kv-tab-panel .wp-block-image img {
    max-width: 100%; height: auto;
    border-radius: 4px;
}
.kv-tab-panel .wp-block-gallery {
    margin: 16px 0;
}
.kv-tab-panel .blocks-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px; list-style: none; padding: 0; margin: 0;
}
.kv-tab-panel .blocks-gallery-item figure {
    margin: 0; height: 100%;
}
.kv-tab-panel .blocks-gallery-item img {
    width: 100%; height: 200px;
    object-fit: cover; border-radius: 3px;
}

/* ══════════════════════════════════════════
   FONDO OSCURO Y ANCHO COMPLETO
   páginas con plugin activo
══════════════════════════════════════════ */
body.kv-active,
body.kv-active #wrapper,
body.kv-active #page,
body.kv-active .site,
body.kv-active #content,
body.kv-active .page-wrapper {
    background-color: #1b252f !important;
}
body.kv-active .site-content,
body.kv-active #content,
body.kv-active .hestia-page,
body.kv-active article,
body.kv-active .hentry,
body.kv-active .col-md-8.single-post-container,
body.kv-active .single-post-container {
    background-color: #1b252f !important;
    color: #ffffff;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
body.kv-active article.section-text,
body.kv-active article.section {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
body.kv-active .row {
    margin: 0 !important;
}
/* Contenedor del contenido — ancho completo */
body.kv-active .blog-post-wrapper,
body.kv-active div.main {
    background-color: #1b252f !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
body.kv-active .blog-post-wrapper > .container,
body.kv-active div.main .container {
    background-color: #1b252f !important;
    max-width: 1600px !important;
    width: 100% !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
/* Navbar — siempre blanco */
body.kv-active .navbar,
body.kv-active .navbar.navbar-default,
body.kv-active nav.navbar {
    background-color: #ffffff !important;
    color: #333333 !important;
}
body.kv-active .entry-content,
body.kv-active .single-post-wrap.entry-content {
    background-color: #1b252f !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 24px !important;
    box-sizing: border-box;
}
/* ── MÁRGENES MÓVIL — iguala Elementor ── */
@media (max-width: 1024px) {
    body.kv-active .blog-post-wrapper > .container,
    body.kv-active div.main .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    body.kv-active .entry-content,
    body.kv-active .single-post-wrap.entry-content {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}
body.kv-active .entry-header {
    background-color: #1b252f !important;
    padding: 0 !important;
    margin: 0 !important;
}
body.kv-active.kv-has-header .entry-title,
body.kv-active.kv-has-header .page-title {
    display: none !important;
}
/* Eliminar bordes y sombras del tema */
body.kv-active .card,
body.kv-active .hentry,
body.kv-active article {
    box-shadow: none !important;
    border: none !important;
}
/* Menú y header del sitio — colores originales hardcodeados */
body.kv-active .navbar,
body.kv-active nav,
body.kv-active header.navbar,
body.kv-active #site-header,
body.kv-active .site-header,
body.kv-active .navbar-default {
    background-color: #ffffff !important;
    border-color: #e7e7e7 !important;
}
body.kv-active .navbar a,
body.kv-active .navbar-default .navbar-nav > li > a,
body.kv-active .navbar-default .navbar-brand {
    color: #333333 !important;
}
body.kv-active .navbar-default .navbar-nav > li > a:hover,
body.kv-active .navbar-default .navbar-nav > .active > a {
    color: #FA8B04 !important;
}
body.kv-active .dropdown-menu {
    background-color: #ffffff !important;
}
body.kv-active .dropdown-menu > li > a {
    color: #333333 !important;
}
body.kv-active .dropdown-menu > li > a:hover {
    color: #FA8B04 !important;
    background-color: #f5f5f5 !important;
}
/* Ocultar related posts de Hestia */
body.kv-active .section.related-posts,
body.kv-active div.section.related-posts {
    display: none !important;
}

/* Eliminar meta de entrada (autor, fecha) */
body.kv-active .entry-meta,
body.kv-active .article-header-meta,
body.kv-active .author-box,
body.kv-active span.posted-on,
body.kv-active span.byline,
body.kv-active .entry-footer,
body.kv-active .entry-header .entry-meta,
body.kv-active p.entry-meta,
body.kv-active .single-post-wrap > .entry-meta,
body.kv-active .author.meta-in-content,
body.kv-active .meta-in-content,
body.kv-active .entry-categories,
body.kv-active .entry-tags,
body.kv-active .wp-post-image,
body.kv-active img.wp-post-image {
    display: none !important;
}

/* ── HERO IMAGE por colección ── */
.kv-hero-wrap {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 260px;
    margin-bottom: 28px;
    overflow: hidden;
}
.kv-hero-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.45);
}
.kv-hero-title {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 40px;
    text-align: center;
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif);
    font-size: 36px;
    font-weight: 700;
    color: var(--e-global-color-primary, #FFDE01);
    line-height: 1.25;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
@media (max-width: 600px) {
    .kv-hero-wrap  { height: 180px; }
    .kv-hero-title { font-size: 22px; padding: 16px 20px; }
}

/* ══════════════════════════════════════════
   LIGHTBOX PROPIO
══════════════════════════════════════════ */
#kv-lb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
}
#kv-lb-overlay.open { display: flex; }
#kv-lb-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#kv-lb-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    display: block;
    transition: opacity 0.2s;
    border-radius: 2px;
}
#kv-lb-video {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    display: none;
    border-radius: 2px;
}
/* Spinner de carga de video 360° */
#kv-lb-overlay.kv-video-loading::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: kv-spin 0.8s linear infinite;
    z-index: 10;
    pointer-events: none;
}
@keyframes kv-spin {
    to { transform: rotate(360deg); }
}
/* Título del lightbox */
#kv-lb-title {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-align: center;
    text-shadow: 0 1px 5px rgba(0,0,0,0.9);
    z-index: 10001;
    max-width: 80vw;
    pointer-events: none;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Pila inferior — descripción + barra de zoom en columna.
   Al estar dentro del mismo flex, la descripción nunca solapa
   la barra de zoom sin importar cuánto crezca (crece hacia arriba). */
#kv-lb-bottom-stack {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: min(92vw, 640px);
}

/* Descripción del lightbox */
#kv-lb-desc {
    width: 100%;
    color: #fff;
    font-size: 13px;
    line-height: 1.55;
    text-align: center;
    background: rgba(0,0,0,0.62);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 8px 18px;
    border-radius: 8px;
}
#kv-lb-desc-text {
    pointer-events: none;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}
.kv-lb-desc-expanded #kv-lb-desc-text {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}
#kv-lb-desc-toggle {
    display: none;
    margin: 6px auto 0;
    background: none;
    border: none;
    color: var(--e-global-color-primary, #FFDE01);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    padding: 2px 6px;
}
#kv-lb-desc-toggle:hover { text-decoration: underline; }

/* Título en tarjeta de galería */
.kv-gal-title {
    font-size: 12px;
    color: rgba(255,255,255,0.72);
    text-align: center;
    padding: 5px 8px 2px;
    font-weight: 500;
    letter-spacing: 0.2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Barra de zoom */
#kv-lb-zoom-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0,0,0,0.65);
    border-radius: 30px;
    padding: 6px 10px;
}
#kv-lb-zoom-bar button {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.15s;
    font-family: var(--font-sans, sans-serif);
}
#kv-lb-zoom-reset {
    font-size: 11px !important;
    width: 44px !important;
    border-radius: 12px !important;
    color: rgba(255,255,255,0.7) !important;
}
#kv-lb-360-btn {
    font-size: 11px !important;
    width: auto !important;
    padding: 0 10px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    color: var(--e-global-color-primary, #FFDE01) !important;
    background: rgba(255,222,1,0.15) !important;
}
#kv-lb-360-btn:hover { background: rgba(255,222,1,0.3) !important; }
#kv-lb-360-btn.kv-360-active { background: rgba(255,222,1,0.9) !important; color: #1a1a1a !important; }
#kv-lb-360-btn.kv-360-active:hover { background: #ffde01 !important; }
#kv-lb-overlay-btn {
    font-size: 11px !important;
    width: auto !important;
    padding: 0 10px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    color: rgba(255,255,255,0.85) !important;
    background: rgba(255,255,255,0.15) !important;
}
#kv-lb-overlay-btn:hover { background: rgba(255,255,255,0.3) !important; }
#kv-lb-overlay-btn.active {
    color: #fff !important;
    background: rgba(255,255,255,0.35) !important;
}
#kv-lb-overlay-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    pointer-events: none;
    display: none;
    border-radius: 2px;
}
#kv-lb-zoom-bar button:hover { background: rgba(255,255,255,0.25); }

#kv-lb-close,
#kv-lb-prev,
#kv-lb-next {
    position: fixed;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    padding: 0;
    line-height: 1;
}
#kv-lb-close {
    top: 16px; right: 16px;
    width: 36px; height: 36px;
    font-size: 16px;
    z-index: 1; /* aparece sobre #kv-flipbook-container que no tiene z-index */
}
/* En modo flipbook centrarlo verticalmente en la barra de controles (min-height: 48px) */
#kv-lb-overlay.kv-lb-flipbook #kv-lb-close {
    top: 6px; /* (48 - 36) / 2 = 6px */
}
#kv-lb-prev {
    left: 16px; top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    font-size: 28px;
}
#kv-lb-next {
    right: 16px; top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    font-size: 28px;
}
#kv-lb-close:hover,
#kv-lb-prev:hover,
#kv-lb-next:hover {
    background: var(--e-global-color-accent, #FA8B04);
    border-color: var(--e-global-color-accent, #FA8B04);
}

/* ══════════════════════════════════════════
   PDF FLIPBOOK
══════════════════════════════════════════ */
#kv-flipbook-container {
    display: none;          /* JS lo cambia a flex al abrir */
    position: absolute;
    inset: 0;
    flex-direction: column;
    overflow: hidden;
}

/* Barra de controles (top) */
#kv-flipbook-controls {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 56px 8px 12px; /* padding-right deja espacio al botón ✕ */
    background: rgba(0,0,0,0.75);
    min-height: 48px;
}
#kv-flipbook-controls button {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 16px;
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    font-family: var(--font-sans, sans-serif);
    padding: 0;
    line-height: 1;
}
#kv-flipbook-controls button:hover { background: rgba(255,255,255,0.25); }
#kv-fb-indicator {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    min-width: 90px;
    text-align: center;
    margin: 0 2px;
}
#kv-fb-zoom-reset {
    font-size: 11px !important;
    min-width: 44px !important;
    border-radius: 12px !important;
    color: rgba(255,255,255,0.7) !important;
}
#kv-fb-fullscreen { margin-left: auto; }

/* Área principal de páginas */
#kv-flipbook-spread {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 8px 52px;
    min-height: 0;
}
#kv-fb-arrow-prev,
#kv-fb-arrow-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    width: 44px; height: 44px;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    z-index: 2;
    padding: 0;
    line-height: 1;
}
#kv-fb-arrow-prev { left: 4px; }
#kv-fb-arrow-next { right: 4px; }
#kv-fb-arrow-prev:hover,
#kv-fb-arrow-next:hover {
    background: var(--e-global-color-accent, #FA8B04);
    border-color: var(--e-global-color-accent, #FA8B04);
}
@media (max-width: 480px) {
    #kv-fb-arrow-prev,
    #kv-fb-arrow-next { width: 36px; height: 36px; font-size: 22px; }
    #kv-flipbook-spread { padding: 8px 44px; }
}
#kv-flipbook-pages-area {
    display: flex;
    align-items: center;
    justify-content: center;
}
#kv-flipbook-pages {
    display: flex;
    align-items: flex-start;
    gap: 4px;
}
#kv-flipbook-pages canvas {
    display: block;
    box-shadow: 0 2px 16px rgba(0,0,0,0.6);
    border-radius: 1px;
}

/* Barra de thumbnails (bottom) */
#kv-flipbook-thumbs {
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 8px;
    background: rgba(0,0,0,0.75);
    height: 96px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.25) transparent;
}
#kv-flipbook-thumbs::-webkit-scrollbar { height: 4px; }
#kv-flipbook-thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 2px; }
.kv-fb-thumb {
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 2px;
    display: flex;
    align-items: center;
    transition: border-color 0.15s;
}
.kv-fb-thumb:hover  { border-color: rgba(255,255,255,0.4); }
.kv-fb-thumb-active { border-color: var(--e-global-color-primary, #FFDE01); }
.kv-fb-thumb canvas { display: block; }

/* ══════════════════════════════════════════
   NAVEGACIÓN PREV / NEXT
══════════════════════════════════════════ */
.kv-nav-figuras {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0 32px;
    border-top: 2px solid var(--e-global-color-primary, #FFDE01);
    margin-top: 32px;
    gap: 16px;
}
.kv-nav-fig-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: rgba(255,255,255,0.6);
    transition: color 0.15s;
    max-width: 45%;
}
.kv-nav-fig-btn:hover { color: var(--e-global-color-accent, #FA8B04); }
.kv-nav-fig-arrow {
    font-size: 28px;
    color: var(--e-global-color-accent, #FA8B04);
    flex-shrink: 0; line-height: 1;
}
.kv-nav-fig-info { display: flex; flex-direction: column; }
.kv-nav-fig-label {
    font-size: 9px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: var(--e-global-color-accent, #FA8B04);
    margin-bottom: 3px;
}
.kv-nav-fig-nombre {
    font-size: 13px; color: rgba(255,255,255,0.7);
    line-height: 1.3;
}
.kv-nav-fig-btn--next { margin-left: auto; text-align: right; flex-direction: row; }
.kv-nav-fig-btn--next .kv-nav-fig-info { align-items: flex-end; }
@media (max-width: 1023px) {
    .kv-nav-figuras {
        width: 100vw;
        position: relative;
        left: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        padding-left: 16px;
        padding-right: 16px;
    }
}
@media (max-width: 540px) {
    .kv-nav-fig-nombre { font-size: 11px; }
    .kv-nav-figuras { padding: 16px 16px 24px; }
}

/* ══════════════════════════════════════════
   TEXTO PIE DE VARIANTES
══════════════════════════════════════════ */
.kv-texto-variantes {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,222,1,0.15);
}
.kv-tv-panel { color: rgba(255,255,255,0.55); font-size: 12px; line-height: 1.8; }
.kv-tv-panel h3 {
    font-size: 14px; font-weight: 500;
    color: rgba(255,255,255,0.75);
    margin: 0 0 12px;
}
.kv-tv-panel p { margin-bottom: 14px; }
.kv-tv-panel a {
    color: var(--e-global-color-accent, #FA8B04);
    text-decoration: none;
}
.kv-tv-panel a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════
   TABS DE IDIOMA — contenido libre en panels
══════════════════════════════════════════ */
.kv-lang-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 16px;
}
.kv-lang-tab {
    font-size: 9px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
    padding: 6px 12px; cursor: pointer;
    background: none; border: none;
    color: rgba(255,255,255,0.25);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.15s;
    font-family: var(--font-sans, sans-serif);
}
.kv-lang-tab:hover { color: rgba(255,255,255,0.5); }
.kv-lang-tab.active {
    color: var(--e-global-color-accent, #FA8B04);
    border-bottom-color: var(--e-global-color-accent, #FA8B04);
}
.kv-lang-es,
.kv-lang-en {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    line-height: 1.7;
}
.kv-lang-es p, .kv-lang-en p { margin-bottom: 16px; }
.kv-lang-es h2, .kv-lang-en h2,
.kv-lang-es h3, .kv-lang-en h3 {
    color: var(--e-global-color-primary, #FFDE01);
    margin-bottom: 12px;
}
.kv-lang-es a, .kv-lang-en a {
    color: var(--e-global-color-accent, #FA8B04);
    text-decoration: none;
}
.kv-lang-es a:hover, .kv-lang-en a:hover { text-decoration: underline; }

/* Imágenes Gutenberg en panels — indicar que son clickeables */
.kv-tab-panel img,
.kv-lang-es img,
.kv-lang-en img {
    cursor: zoom-in;
}

/* ══════════════════════════════════════════
   GALERÍA PROPIA KV — reemplazo de Elementor Pro Gallery
══════════════════════════════════════════ */
.kv-gallery {
    display: grid;
    gap: 10px;
    margin: 16px 0;
    /* Default 4 cols desktop */
    grid-template-columns: repeat(4, 1fr);
}

/* Columnas desktop por data-columns */
.kv-gallery[data-columns="1"] { grid-template-columns: repeat(1, 1fr); }

/* Galería de 1 columna: centrada y con ancho máximo razonable */
.kv-gallery[data-columns="1"] {
    max-width: var(--kv-gallery-max-width, 600px);
    margin-left: auto;
    margin-right: auto;
}

/* Imagen individual convertida desde elementor-widget-image */
a.kv-gallery-item[style*="display:block"],
a.kv-gallery-item[style*="display: block"] {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
a.kv-gallery-item[style*="display:block"] img,
a.kv-gallery-item[style*="display: block"] img {
    width: 100%;
    height: auto;
    aspect-ratio: unset;
    object-fit: unset;
}
.kv-gallery[data-columns="2"] { grid-template-columns: repeat(2, 1fr); max-width: 700px; margin-left: auto; margin-right: auto; }
.kv-gallery[data-columns="3"] { grid-template-columns: repeat(3, 1fr); max-width: 900px; margin-left: auto; margin-right: auto; }
.kv-gallery[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }
.kv-gallery[data-columns="5"] { grid-template-columns: repeat(5, 1fr); }
.kv-gallery[data-columns="6"] { grid-template-columns: repeat(6, 1fr); }
.kv-gallery[data-columns="7"] { grid-template-columns: repeat(7, 1fr); }
.kv-gallery[data-columns="8"] { grid-template-columns: repeat(8, 1fr); }

/* Columnas tablet */
@media (min-width: 768px) and (max-width: 1199px) {
    .kv-gallery { grid-template-columns: repeat(2, 1fr); }
    .kv-gallery[data-columns-tablet="1"] { grid-template-columns: repeat(1, 1fr); }
    .kv-gallery[data-columns-tablet="2"] { grid-template-columns: repeat(2, 1fr); }
    .kv-gallery[data-columns-tablet="3"] { grid-template-columns: repeat(3, 1fr); }
    .kv-gallery[data-columns-tablet="4"] { grid-template-columns: repeat(4, 1fr); }
}

/* Columnas mobile */
@media (max-width: 767px) {
    .kv-gallery { grid-template-columns: repeat(2, 1fr); }
    .kv-gallery[data-columns-mobile="1"] { grid-template-columns: repeat(1, 1fr); }
    .kv-gallery[data-columns-mobile="2"] { grid-template-columns: repeat(2, 1fr); }
    .kv-gallery[data-columns-mobile="3"] { grid-template-columns: repeat(3, 1fr); }
}

.kv-gallery-item {
    display: block;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
}
.kv-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
    cursor: zoom-in !important;
}
.kv-gallery-item:hover img {
    transform: scale(1.03);
}
/* Overlay al hover */
.kv-gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.2s ease;
}
.kv-gallery-item:hover::after {
    background: rgba(0,0,0,0.2);
}

/* Aspect ratio — default 9:16 para grids uniformes */
.kv-gallery .kv-gallery-item img { aspect-ratio: 9 / 16; }
.kv-gallery[data-ratio="4:3"]  .kv-gallery-item img { aspect-ratio: 4 / 3; }
.kv-gallery[data-ratio="3:2"]  .kv-gallery-item img { aspect-ratio: 3 / 2; }
.kv-gallery[data-ratio="16:9"] .kv-gallery-item img { aspect-ratio: 16 / 9; }
.kv-gallery[data-ratio="1:1"]  .kv-gallery-item img { aspect-ratio: 1 / 1; }
.kv-gallery[data-ratio="9:16"] .kv-gallery-item img { aspect-ratio: 9 / 16; }
/* Sin aspect-ratio fijo — para imágenes individuales con proporciones libres */
.kv-gallery[data-ratio="auto"] .kv-gallery-item img {
    aspect-ratio: unset;
    height: auto;
    object-fit: unset;
    width: 100%;
}

/* ══════════════════════════════════════════
   TESTIMONIAL PROPIO KV
   Reemplazo de elementor-widget-testimonial
══════════════════════════════════════════ */
.kv-testimonial {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 0;
    border-left: 3px solid var(--e-global-color-accent, #FA8B04);
    padding-left: 20px;
    margin: 16px 0;
}
.kv-testimonial-content {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    font-style: italic;
    line-height: 1.7;
}
.kv-testimonial-meta {
    display: flex;
    align-items: center;
    gap: 14px;
}
.kv-testimonial-image {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.kv-testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}
.kv-testimonial-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.kv-testimonial-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--e-global-color-accent, #FA8B04);
}
.kv-testimonial-job {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
}

/* ══════════════════════════════════════════
   IMAGE BOX PROPIO KV
   Reemplazo de elementor-widget-image-box
══════════════════════════════════════════ */
.kv-image-boxes {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 16px 0;
}
.kv-image-box {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.kv-image-box--top {
    flex-direction: column;
}
.kv-image-box-img {
    flex-shrink: 0;
    max-width: 420px;
    width: 40%;
}
.kv-image-box-img a {
    display: block;
    cursor: zoom-in;
}
.kv-image-box-img img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}
.kv-image-box--top .kv-image-box-img {
    width: 100%;
    max-width: 100%;
}
.kv-image-box--top .kv-image-box-img img {
    width: 100%;
}
.kv-image-box-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.kv-image-box-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--e-global-color-primary, #FFDE01);
    text-decoration: none;
}
.kv-image-box-title a {
    color: inherit;
    text-decoration: none;
}
.kv-image-box-description {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    line-height: 1.5;
}

/* Grid de image-boxes */
.kv-image-boxes--grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 200px));
    gap: 20px;
    justify-content: center;
}
.kv-image-boxes--grid .kv-image-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.kv-image-boxes--grid .kv-image-box-img {
    width: 100%;
    max-width: 100%;
}
@media (max-width: 540px) {
    .kv-image-boxes--grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── IFRAMES / YOUTUBE dentro de tabs ── */
/* El wrapper real es un div con inline style, sin clase específica */
.kv-tab-panel div[style*="padding-bottom:56.25%"],
.kv-tab-panel div[style*="padding-bottom: 56.25%"] {
    padding-bottom: 0 !important;
    position: relative !important;
    aspect-ratio: 16 / 9 !important;
    max-width: 720px;
    margin: 0 auto !important;
}
.kv-tab-panel div[style*="padding-bottom:56.25%"] iframe,
.kv-tab-panel div[style*="padding-bottom: 56.25%"] iframe {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}
/* iframes sueltos sin wrapper */
.kv-tab-panel > iframe,
.kv-tab-panel p > iframe {
    max-width: 720px !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    display: block;
    border: none;
    margin: 16px auto 0;
}

/* ── NAVEGACIÓN PREV / NEXT ── */
/* Ocultar línea blanca del tema antes de la navegación */
body.kv-active .nav-links-single::before,
body.kv-active .post-navigation::before,
body.kv-active .entry-navigation::before,
body.kv-active hr.wp-block-separator,
body.kv-active .wp-block-separator,
body.kv-active .section-blog-info hr {
    display: none !important;
}
/* Espacio entre contenido y navegación */
body.kv-active .post-navigation,
body.kv-active .nav-links-single,
body.kv-active .entry-navigation {
    margin-top: 48px !important;
    padding-top: 0 !important;
    border-top: none !important;
}

/* ══════════════════════════════════════════
   GRID DE PÁGINA (kv-grid)
   Layout de columnas para páginas sin Elementor
══════════════════════════════════════════ */
.kv-grid {
    display: grid;
    gap: 20px;
    margin: 24px 0;
}
.kv-grid-2 { grid-template-columns: repeat(2, 1fr); }
.kv-grid-3 { grid-template-columns: repeat(3, 1fr); }
.kv-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
    .kv-grid-3, .kv-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .kv-grid-2, .kv-grid-3, .kv-grid-4 { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   CALL TO ACTION (kv-cta)
   Reemplazo de elementor-widget-call-to-action
══════════════════════════════════════════ */
.kv-cta {
    position: relative;
    min-height: 280px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
}
.kv-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    transition: background 0.3s;
}
.kv-cta:hover::before { background: rgba(0,0,0,0.4); }
.kv-cta-inner {
    position: relative;
    text-align: center;
    padding: 32px 24px;
    color: #fff;
}
.kv-cta-subtitle {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
    display: block;
}
.kv-cta-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--e-global-color-primary, #FFDE01);
    margin: 0 0 12px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.kv-cta-description {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 20px;
    line-height: 1.6;
}
.kv-cta-btn {
    display: inline-block;
    padding: 10px 28px;
    background: var(--e-global-color-accent, #FA8B04);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background 0.2s, transform 0.2s;
}
.kv-cta-btn:hover { background: #e07c03; transform: translateY(-1px); }
/* CTA sin imagen de fondo */
.kv-cta.kv-cta-solid { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); }
.kv-cta.kv-cta-solid::before { display: none; }

/* ══════════════════════════════════════════
   FLIP BOX (kv-flip-box)
   Reemplazo de elementor-widget-flip-box
══════════════════════════════════════════ */
.kv-flip-box {
    perspective: 1000px;
    min-height: 200px;
    height: 200px;
}
.kv-flip-box-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}
.kv-flip-box:hover .kv-flip-box-inner {
    transform: rotateY(180deg);
}
.kv-flip-box-front,
.kv-flip-box-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 24px 20px;
    text-align: center;
}
.kv-flip-box-front {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
}
.kv-flip-box-back {
    background: rgba(250,139,4,0.12);
    border: 1px solid rgba(250,139,4,0.3);
    transform: rotateY(180deg);
}
.kv-flip-box-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--e-global-color-primary, #FFDE01);
    margin: 0 0 6px;
    line-height: 1.3;
}
.kv-flip-box-subtitle {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.5px;
}
.kv-flip-box-description {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
    line-height: 1.6;
}
.kv-flip-box-btn {
    display: inline-block;
    padding: 7px 18px;
    background: var(--e-global-color-accent, #FA8B04);
    color: #fff;
    border-radius: 3px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}
.kv-flip-box-btn:hover { background: #e07c03; }
/* Touch devices — tap to flip */
@media (hover: none) {
    .kv-flip-box-inner { transition: transform 0.4s; }
    .kv-flip-box.flipped .kv-flip-box-inner { transform: rotateY(180deg); }
}

/* ══════════════════════════════════════════
   ANIMATED HEADLINE (kv-animated-headline)
   Reemplazo de elementor-widget-animated-headline
══════════════════════════════════════════ */
.kv-animated-headline {
    line-height: 1.3;
}
.kv-ah-rotating {
    display: inline;
    position: relative;
}
.kv-ah-word {
    display: none;
    color: var(--e-global-color-accent, #FA8B04);
}
.kv-ah-word.kv-ah-visible {
    display: inline;
    animation: kv-ah-in 0.4s ease forwards;
}
.kv-ah-word.kv-ah-out {
    display: inline;
    animation: kv-ah-out 0.3s ease forwards;
}
@keyframes kv-ah-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes kv-ah-out {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-6px); }
}
/* Variante highlighted (subrayado animado) */
.kv-ah-highlighted {
    position: relative;
    display: inline;
    color: var(--e-global-color-accent, #FA8B04);
}
.kv-ah-highlighted::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--e-global-color-accent, #FA8B04);
    transform: scaleX(0);
    transform-origin: left;
    animation: kv-ah-underline 0.5s ease 0.2s forwards;
}
@keyframes kv-ah-underline {
    to { transform: scaleX(1); }
}

/* ── DESKTOP (≥1025px) — 4 tarjetas por fila + fuentes +1pt ── */
@media (min-width: 1025px) {
    /* Grids: exactamente 4 columnas */
    .kv-grupo-grid { grid-template-columns: repeat(4, 1fr); }
    .kv-dist-grid  { grid-template-columns: repeat(4, 1fr); }

    /* Fuentes variantes — base Elementor 14px → desktop 14px */
    .kv-tarjeta-nombre  { font-size: 14px !important; }
    .kv-sub-badge       { font-size: 14px !important; }
    .kv-check-label     { font-size: 14px !important; }
    .kv-tag             { font-size: 14px !important; }
    .kv-coo-valor       { font-size: 14px !important; }
    .kv-desc-content    { font-size: 14px !important; }
    .kv-fuente span     { font-size: 14px !important; }
    .kv-leer-mas        { font-size: 14px !important; }

    /* Fuentes distribución — base Elementor 14px → desktop 14px */
    .kv-desc-base         { font-size: 12px !important; }
    .kv-desc-local        { font-size: 13px !important; }
    .kv-dist-badge                { font-size: 12px !important; }
    .kv-dist-badge--distribuidor  { font-size: 11px !important; }
    .kv-dist-nombre-local         { font-size: 14px !important; }
    .kv-dist-pais         { font-size: 14px !important; }
    .kv-cb-label          { font-size: 14px !important; }
    .kv-cb-nombre         { font-size: 14px !important; }
    .kv-cb-more-btn       { font-size: 14px !important; }

    /* Fuentes tabs (Concepto / Kennerverse) — base Elementor 14px → desktop 14px */
    .kv-tab-btn           { font-size: 14px !important; }
    .kv-tab-panel p       { font-size: 14px !important; }

    /* Fuentes header meta — igualadas a 15px */
    .kv-hdr-meta-row      { font-size: 15px !important; }
    .kv-hdr-sku           { font-size: 15px !important; }
    .kv-hdr-desc          { font-size: 15px !important; }

    /* Galería principal más grande en desktop */
    .kv-hdr-gal           { width: 440px; }
}
