/* Un documento adaptable: conserva la guía de escritorio y la jerarquía de la guía móvil. */
* { box-sizing: border-box; }
html { scroll-padding-top: 92px; }
body { background: #F5F3EE; color: #1D3B3C; font-family: 'Instrument Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
[data-shadow-landing] { overflow-x: clip; }
button, input { font: inherit; }
img { max-width: 100%; }
.ks-navigation { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.ks-navigation .kl-nav-links { gap: 18px; }
.ks-navigation > a:first-child { flex-shrink: 0; }
.ks-skip { position: fixed; top: 8px; left: 16px; z-index: 20; background: #FFFFFF; padding: 14px; transform: translateY(-160%); }
.ks-skip:focus { transform: none; }
/* Las métricas caben en columnas estrechas sin desbordar la tarjeta del inicio. */
.ks-hero-metrics > div { min-width: 0; }
.ks-hero-metrics strong { font-size: clamp(14px, 1.3vw, 18px) !important; overflow-wrap: anywhere; }
.ks-capture-note { margin: 0; color: #435859; font-size: 14px; line-height: 1.55; }
#como .ks-capture-note { margin-top: 22px; max-width: 90ch; }
.ks-pending { margin: 0; color: #C8D2CE; font-size: 14px; line-height: 1.5; }
.ks-guide-title { margin: 0; font: 650 22px 'Bricolage Grotesque', sans-serif; }
.ks-email-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ks-email-row input { min-width: 0; width: 100%; }
.ks-email-row label { font-size: 14px; }
button:disabled, input:disabled { opacity: .65; cursor: not-allowed; }
.ks-mobile-plant, .ks-mobile-bar { display: none; }
.ks-faq-answer { margin: 0; padding: 0 24px 22px; font-size: 16px; line-height: 1.6; color: #435859; }
.ks-hero-grid > *, .ks-feedgrid > *, .ks-panel-cards > * { min-width: 0; }
.ks-feed-card { min-height: var(--ks-feed-min, 570px); }
/* El espacio estable pertenece al conjunto; el detalle conserva la altura de su contenido. */
.ks-feedgrid { min-height: var(--ks-grid-min, 0px); }
.ks-row { min-height: 94px; }
.ks-row > span:nth-child(2) > span:last-child { display: block; overflow-wrap: anywhere; }
.ks-table-head { grid-template-columns: 68px minmax(0,1fr) 64px 64px 120px !important; }
.ks-row { grid-template-columns: 68px minmax(0,1fr) 64px 64px 120px !important; gap: 8px; }
.ks-tag { white-space: normal; }
.ks-li { overflow-wrap: anywhere; }
.ks-li > span:first-child { align-items: flex-start !important; }
.ks-pos { margin-top: 2px; }
.ks-step { animation: none; opacity: 1; transform: none; }
.ks-step.is-revealing { animation: ksReveal .55s ease both; }
@keyframes ksReveal { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.ks-demo-label { font-size: 12px; color: #435859; }
.ks-wp-stats { gap: 10px !important; }
@media (min-width: 1101px) {
    .ks-feedgrid { grid-template-columns: minmax(0,1.35fr) minmax(0,1fr) !important; }
}
/* La vista intermedia mantiene tarjetas legibles antes de adoptar la composición de 390 px. */
@media (max-width: 1100px) {
    .ks-navigation .kl-nav-links { display: none; }
    .ks-detail-card { position: static !important; }
    .ks-hero-grid { grid-template-columns: minmax(0,1fr) minmax(0,.85fr); gap: 20px; }
    .ks-hero-grid h1 { font-size: clamp(40px,5vw,60px) !important; }
}
@media (max-width: 960px) {
    .ks-hero-grid { grid-template-columns: minmax(0,1fr); }
    .ks-hero-grid > div:last-child { max-width: 600px; justify-self: center; width: 100%; }
    .ks-wp-stats { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
    .ks-panel-cards { gap: 18px; }
}
/* En móvil la planta acompaña el titular, el registro se vuelve tarjetas y los paneles se deslizan. */
@media (max-width: 600px) {
    html { scroll-padding-top: 82px; }
    .kl-wrap { padding-left: 20px; padding-right: 20px; }
    .kl-sec { padding: 36px 0; }
    .ks-navigation { min-height: 66px !important; gap: 10px !important; }
    .ks-navigation > a:first-child { gap: 8px !important; }
    .ks-navigation > a:first-child img { height: 23px !important; }
    .ks-navigation > a:first-child span { font-size: 10px !important; padding: 5px 8px !important; }
    .ks-navigation > .kl-btn { font-size: 12px; padding: 0 13px; min-height: 40px; }
    .ks-hero { padding-top: 28px !important; position: relative; }
    .ks-hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 18px; position: relative; z-index: 1; }
    .ks-hero-copy { display: contents !important; }
    .ks-hero-copy > div:first-child { order: 0; gap: 18px !important; }
    .ks-hero-copy > div:first-child p { display: none; }
    .ks-hero-copy > div:first-child > span::before { content: 'Diagnóstico · '; }
    .ks-hero-copy h1 { order: 1; font-size: 42px !important; line-height: 1.02 !important; }
    .ks-hero-copy .kl-lead { order: 2; font-size: 17px; font-weight: 500; color: #2F4A4B; }
    .ks-hero-copy > div:nth-child(4) { order: 4; flex-direction: column; gap: 2px !important; }
    .ks-hero-copy > div:nth-child(4) .kl-btn { width: 100%; min-height: 54px; }
    .ks-hero-copy > div:nth-child(4) .kl-btn-ghost { border: 0; min-height: 44px; text-decoration: underline; }
    .ks-hero-copy > div:last-child { order: 5; flex-wrap: nowrap !important; overflow-x: auto; margin: 0 -20px; padding: 2px 20px; scrollbar-width: none; }
    .ks-hero-copy > div:last-child > span { flex-shrink: 0; white-space: nowrap; }
    .ks-hero-copy > div:last-child > span:first-child { display: none; }
    .ks-hero-grid > div:last-child { order: 3; }
    .ks-hero-grid > div:last-child > svg { display: none !important; }
    .ks-hero-grid > div:last-child > div { position: static !important; width: 100% !important; margin: 0 !important; padding: 14px !important; }
    .ks-mobile-plant { display: block; position: absolute; width: 270px; top: -20px; right: -95px; opacity: .4; pointer-events: none; }
    .kl-h2 { font-size: 32px; line-height: 1.06; }
    .kl-lead { font-size: 17px; }
    .kl-grid-2, .kl-grid-3, .kl-grid-4 { gap: 24px; grid-template-columns: minmax(0,1fr); }
    .ks-how-steps { gap: 14px !important; }
    .ks-how-steps li { padding: 16px !important; display: grid !important; grid-template-columns: 36px minmax(0,1fr); column-gap: 14px !important; }
    .ks-how-steps li > span:first-child { grid-row: span 2; }
    .ks-how-steps li > span:last-child:not(:first-child) { display: none !important; }
    .ks-how-steps h3 { font-size: 19px !important; }
    .ks-feedgrid { gap: 18px !important; }
    .ks-table-head { display: none !important; }
    .ks-row { grid-template-columns: minmax(0,1fr) 36px 36px !important; min-height: 114px; padding: 12px 14px; }
    .ks-row > span:first-child { grid-row: 1; grid-column: 1; font-size: 11px !important; }
    .ks-row > span:nth-child(2) { grid-column: 1; grid-row: 2; }
    .ks-row > span:nth-child(3) { grid-row: 2; grid-column: 2; }
    .ks-row > span:nth-child(4) { grid-row: 2; grid-column: 3; }
    .ks-row > span:nth-child(3)::before { content: 'Tienda'; display: block; font: 10px 'Instrument Sans',sans-serif; }
    .ks-row > span:nth-child(4)::before { content: 'Krax'; display: block; font: 10px 'Instrument Sans',sans-serif; }
    .ks-row > span:last-child { grid-column: 1 / -1; grid-row: 3; }
    .ks-product-columns { grid-template-columns: minmax(0,1fr) !important; }
    .ks-detail-card { padding: 14px !important; }
    #recorrido ol > li { grid-template-columns: 56px 12px minmax(0,1fr) !important; gap: 10px !important; }
    #recorrido ol > li > span:first-child { font-size: 10px !important; }
    #recorrido ol > span { left: 71px !important; }
    .ks-panel-cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 2px 20px 10px; }
    .ks-panel-cards > div { flex: 0 0 min(300px,88vw); scroll-snap-align: center; }
    .ks-wp-stats { grid-template-columns: minmax(0,1fr) !important; }
    #paneles .ks-panel-cards > div:last-child > div:last-child > div:first-child { grid-template-columns: minmax(0,1fr) !important; }
    #privacidad .kl-grid-3 { gap: 12px; }
    #descargar .ks-cta { padding: 24px !important; gap: 24px !important; }
    #descargar .ks-cta > div:last-child > div { padding: 18px !important; }
    #descargar .kl-btn { width: 100%; padding: 0 14px; }
    .kl-faq summary { padding: 16px 18px; font-size: 17px; }
    .ks-mobile-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 6; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(245,243,238,.97); border-top: 1px solid #DDE3E0; }
    .ks-mobile-bar > span { display: flex; flex-direction: column; font-size: 13px; }
    .ks-mobile-bar small { font-size: 11px; color: #435859; }
    .ks-mobile-bar .kl-btn { min-height: 46px; padding: 0 18px; font-size: 14px; }
    footer { margin-bottom: 78px; }
    footer .kl-wrap { padding-top: 20px !important; padding-bottom: 20px !important; }
}
/* Las preferencias de accesibilidad detienen tanto el feed como los adornos de las referencias. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
