/* La guía es de 1440 px. Estas reglas la encogen sin recortar el chat ni las reglas. */
html { scroll-padding-top: 88px; }
body { overflow-x: clip; }
.kh-brand { color: inherit; text-decoration: none; }
/* Mantiene la proporción del logo oficial y reserva espacio estable antes de cargarlo. */
.kh-brand-logo { display: block; width: 110px; height: auto; flex-shrink: 0; }
.kh-foot a { color: #F5F3EE; font-weight: 600; }
.kh-in, .kh-tour, .kh-panel, .kh-hero-grid { min-width: 0; }
.kh-mobile-bar { display: none; }
.kh-hero-stage { max-width: 100%; }

/* Sangrías de «Etiquetado automático»: sólo en escritorio amplio; se reducen y desaparecen al estrecharse. */
.kh-flow-chat { padding-left: 150px; }
.kh-lead-offset { padding-left: 300px; }

@media (max-width: 1320px) {
    .kh-flow-chat { padding-left: 48px; }
    .kh-lead-offset { padding-left: 120px; }
    .kh-sec { padding-left: 40px; padding-right: 40px; }
    .kh-nav { padding-left: 40px !important; padding-right: 40px !important; }
    .kh-h1 { font-size: 64px; }

}

@media (max-width: 1080px) {
    .kh-flow-chat, .kh-lead-offset { padding-left: 0; }
    .kh-hero-grid { display: flex !important; flex-direction: column !important; align-items: stretch !important; }
    .kh-h1 { font-size: 52px; }
    .kh-h2 { font-size: 42px; }
    .kh-hero-stage {
        height: auto !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 18px;
        width: min(100%, 420px);
        margin-inline: auto;
    }
    .kh-hero-plant { display: none; }
    .kh-hero-phone, .kh-hero-stage > .kh-bub {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
    }
    .kh-panel, .kh-split { display: flex !important; flex-direction: column !important; }
    .kh-convo-head, .kh-mode-switch { flex-wrap: wrap; min-width: 0; max-width: 100%; }
}

@media (max-width: 860px) {
    .kh-nav {
        position: sticky !important;
        top: 0;
        z-index: 6;
        gap: 12px;
        padding: 14px 20px !important;
        background: rgba(245, 243, 238, 0.96);
    }
    .kh-nav-links { gap: 0 !important; }
    .kh-nav-links a:not(.kh-btn) { display: none; }
    .kh-brand .kh-chip { display: none; }
    .kh-sec { padding: 56px 20px; }
    .kh-h1 { font-size: 42px; }
    .kh-h2 { font-size: 34px; }
    .kh-lead { font-size: 18px; }
    .kh-close { padding-top: 72px !important; padding-bottom: 96px !important; }
    .kh-convo-head, .kh-mode-switch { flex-wrap: wrap; min-width: 0; max-width: 100%; }
    .kh-panel .kh-row { min-width: 0; }
    .kh-close .kh-h2 { font-size: 40px !important; }
    .kh-deco { display: none; }
    .kh-cards-3, .kh-compare, .kh-flow, .kh-pipeline, .kh-recipe-pair {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .kh-pipeline > div:nth-child(even) { transform: rotate(90deg); align-self: center; }
    .kh-compare > :nth-child(2), .kh-flow > :nth-child(2) { transform: rotate(90deg); justify-self: center; margin-inline: auto; }
    .kh-hero-grid > div:first-child > .kh-row, .kh-close .kh-row { flex-direction: column; align-items: stretch; }
    .kh-hero-grid > div:first-child > .kh-row .kh-btn, .kh-close .kh-btn { width: 100%; }
    .kh-foot { flex-direction: column !important; align-items: flex-start; gap: 12px; padding: 24px 20px !important; }
    .kh-mobile-bar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 7;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: #F5F3EE;
        border-top: 1px solid #DDE3E0;
    }
    .kh-mobile-bar span { display: flex; flex-direction: column; line-height: 1.2; }
    .kh-mobile-bar small { color: #5B6E6E; font-size: 12px; }
    .kh-mobile-bar .kh-btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
    body { padding-bottom: 84px; }
}

@media (max-width: 420px) {
    .kh-hero-phone { width: 100%; }
}

/* Caminos de alta en «Empezar»: dos tarjetas lado a lado en PC y apiladas en tablet/móvil. */
.kh-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; width: 100%; max-width: 1040px; margin-top: 16px; text-align: left; }
.kh-path { display: flex; flex-direction: column; gap: 16px; padding: 32px; border: 1.5px solid #1D3B3C; border-radius: 28px; background: #fff; box-shadow: 8px 8px 0 #1D3B3C1F; }
.kh-path .kh-mono { align-self: flex-start; padding: 4px 10px; border: 1px solid #C9D3CF; border-radius: 999px; }
.kh-path > p { color: #435859; font-size: 17px; line-height: 1.55; }
.kh .kh-path ol { display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.kh-path li { display: flex; gap: 12px; }
.kh-path li b { font: 500 14px/1.6 'JetBrains Mono', monospace; color: #2A7475; }
.kh .kh-path .kh-path-fine { padding: 12px 14px; border-radius: 14px; background: #F5F3EE; color: #5B6E6E; font-size: 14px; line-height: 1.5; }
.kh-path .kh-btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 860px) {
    .kh-paths { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .kh-path { padding: 24px 20px; }
    .kh-path .kh-btn { align-self: stretch; }
}
