/* =====================================================================
   Confeccionando · portada (index.php). Se carga despues de site.css.
   ===================================================================== */

/* ---------------------------------------------------------------------
   Portada: el texto a la izquierda y, a la derecha, el montaje de laptop
   y celular con pantallas reales (assets/img/hero/hero-equipos.webp) con
   las tallas de fondo y avisos flotando. Sin montaje, la orden de ejemplo.
   --------------------------------------------------------------------- */
.kc-portada {
    position: relative; overflow: hidden; isolation: isolate; color: #fff; background: var(--kc-fondo-tinta);
    margin-top: calc(-1 * var(--kc-header-h) - 1px);
    padding: calc(var(--kc-header-h) + clamp(44px, 6.5vw, 96px)) 0 calc(clamp(56px, 7vw, 96px) + 48px);
}
.kc-portada__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.kc-portada .kc-h1 { color: #fff; font-size: clamp(2.5rem, 4.8vw, 4.2rem); }
.kc-portada .kc-h1 em { color: #FF8A73; }
.kc-portada .kc-lead { color: var(--kc-sobre-tinta); max-width: 54ch; margin-bottom: 1.5rem; }
.kc-portada .kc-eyebrow { color: #FF8A73; }

/* Lo que hace, en dos columnas */
.kc-funciones { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: .65rem 1.75rem; list-style: none; margin: 0; padding: 0; }
.kc-funciones li { display: flex; align-items: center; gap: .55rem; font-size: .98rem; font-weight: 500; color: #E6E8FA; }
.kc-funciones .bi { color: var(--kc-indigo-300); font-size: 1.05rem; }
.kc-portada__acciones { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 1.1rem; }
.kc-portada__micro { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: .92rem; color: var(--kc-sobre-tinta); }
.kc-portada__micro .bi { color: #FF8A73; }

.kc-portada__visual { position: relative; }

/* Montaje de laptop y celular: la imagen ya trae su sombra */
.kc-escena__media { margin: 0; }
.kc-escena__media--montaje { position: relative; z-index: 1; margin-right: calc(-1 * clamp(0px, 4vw, 90px)); animation: kc-equipo-entra 1s .1s var(--kc-ease) both; }
.kc-escena__media--montaje img { display: block; width: 100%; height: auto; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .35)); }
@keyframes kc-equipo-entra { from { opacity: 0; transform: translateY(30px); } }

/* Tallas de fondo, como la palabra de fondo de biomantenimiento */
.kc-portada__fondo {
    position: absolute; z-index: 0; right: -6%; top: 46%; transform: translateY(-50%); pointer-events: none;
    font-family: var(--kc-display); font-weight: 700; font-size: clamp(6rem, 12vw, 12.5rem); line-height: .8; letter-spacing: -.03em;
    color: rgba(255, 255, 255, .05); white-space: nowrap;
}
.kc-portada--tarjeta .kc-portada__fondo { display: none; }

/* Avisos flotando en las esquinas del montaje */
.kc-avisos { list-style: none; margin: 0; padding: 0; }
.kc-aviso {
    display: grid; grid-template-columns: 2.2rem 1fr auto; gap: .7rem; align-items: center; padding: .7rem .9rem;
    background: rgba(255, 255, 255, .97); color: var(--kc-texto); border-radius: 14px; box-shadow: 0 22px 44px -20px rgba(0, 0, 0, .6);
}
.kc-aviso > .bi { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 10px; font-size: 1rem; }
.kc-aviso--alerta > .bi { background: var(--kc-late-suave); color: var(--kc-late); }
.kc-aviso--ok > .bi { background: var(--kc-ok-suave); color: var(--kc-ok-tinta); }
.kc-aviso--info > .bi { background: var(--kc-lavanda); color: var(--kc-indigo); }
.kc-aviso__texto { display: grid; line-height: 1.25; min-width: 0; }
.kc-aviso__texto b { font-size: .9rem; }
.kc-aviso__texto span { font-size: .8rem; color: var(--kc-gris); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kc-aviso small { align-self: start; font-size: .72rem; color: var(--kc-gris-claro); white-space: nowrap; }
@keyframes kc-aviso-entra { from { opacity: 0; transform: translateY(14px); } }
@keyframes kc-flota { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }

.kc-portada--montaje .kc-avisos { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.kc-portada--montaje .kc-aviso { position: absolute; width: 290px; }
.kc-portada--montaje .kc-aviso:nth-child(1) { right: 2%; top: 2%; animation: kc-aviso-entra .7s .9s var(--kc-ease) both, kc-flota 6s 1.8s ease-in-out infinite; }
.kc-portada--montaje .kc-aviso:nth-child(2) { left: -7%; bottom: 17%; animation: kc-aviso-entra .7s 1.2s var(--kc-ease) both, kc-flota 6.5s 2.2s ease-in-out infinite; }
.kc-portada--montaje .kc-aviso:nth-child(3) { right: -2%; bottom: -1%; animation: kc-aviso-entra .7s 1.5s var(--kc-ease) both, kc-flota 7s 2.6s ease-in-out infinite; }

@media (max-width: 1199.98px) {
    .kc-portada--montaje .kc-aviso { width: 260px; }
    .kc-portada--montaje .kc-aviso:nth-child(2) { left: -2%; }
}
@media (max-width: 991.98px) {
    .kc-portada__grid { grid-template-columns: minmax(0, 1fr); }
    .kc-portada__visual { width: 100%; max-width: 720px; margin: 1rem auto 0; }
    .kc-escena__media--montaje { margin-right: 0; }
    .kc-portada__fondo { right: 50%; transform: translate(50%, -50%); }
}
@media (max-width: 575.98px) {
    .kc-funciones { grid-template-columns: 1fr; }
    .kc-portada__acciones .kc-btn { flex: 1 1 100%; }
    .kc-portada--montaje .kc-aviso:nth-child(n+2) { display: none; }
    .kc-portada--montaje .kc-aviso:nth-child(1) { right: 0; top: -14%; width: 240px; }
}
@media (prefers-reduced-motion: reduce) { .kc-aviso, .kc-escena__media--montaje { animation: none !important; } }

/* Sin montaje: la orden de produccion de ejemplo con sus avisos debajo */
.kc-portada--tarjeta .kc-portada__visual { padding: 18px 0 70px; max-width: 560px; }
.kc-portada--tarjeta .kc-avisos { position: absolute; left: -48px; right: 24px; bottom: 0; display: grid; gap: 8px; }
.kc-portada--tarjeta .kc-aviso { animation: kc-aviso-entra .7s var(--kc-ease) both; }
.kc-portada--tarjeta .kc-aviso:nth-child(2) { margin-left: 36px; animation-delay: .25s; }
.kc-portada--tarjeta .kc-aviso:nth-child(n+2) { display: none; }
@media (min-width: 1200px) { .kc-portada--tarjeta .kc-aviso:nth-child(2) { display: grid; } .kc-portada--tarjeta .kc-portada__visual { padding-bottom: 110px; } }
@media (max-width: 575.98px) { .kc-portada--tarjeta .kc-avisos { position: static; margin-top: 12px; } .kc-portada--tarjeta .kc-portada__visual { padding-bottom: 0; } }

/* Orden de produccion: una ficha colgante con ojal y pespunte */
.kc-op {
    position: relative; color: var(--kc-texto); background: #fff; border-radius: 22px;
    padding: 34px 24px 20px; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .7);
    transform: rotate(-1.5deg); outline: 2px dashed var(--kc-linea-fuerte); outline-offset: -10px;
}
.kc-op__ojal { position: absolute; top: 12px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--kc-tinta); box-shadow: 0 0 0 4px var(--kc-lino); }
.kc-op__cabeza { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.kc-op__cabeza small, .kc-op__entrega small { display: block; font-size: .78rem; font-weight: 600; color: var(--kc-hilo); text-transform: uppercase; letter-spacing: .08em; }
.kc-op__cabeza b { font-size: 1.7rem; line-height: 1.1; }
.kc-op__entrega { text-align: right; }
.kc-op__entrega b { font-family: var(--kc-display); font-size: 1.15rem; }
.kc-op__ref { margin: .4rem 0 1rem; font-weight: 600; display: grid; }
.kc-op__ref span { font-weight: 500; font-size: .88rem; color: var(--kc-gris); }
.kc-op__matriz { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.kc-op__matriz th, .kc-op__matriz td { padding: .42rem .35rem; text-align: right; border-bottom: 1px dashed var(--kc-linea-fuerte); }
.kc-op__matriz thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--kc-gris); border-bottom: 1.5px solid var(--kc-texto); }
.kc-op__matriz th:first-child { text-align: left; }
.kc-op__matriz tbody th { font-weight: 600; white-space: nowrap; }
.kc-op__matriz tbody tr:last-child > * { border-bottom: 0; }
.kc-op__muestra { display: inline-block; width: 12px; height: 12px; margin-right: .45rem; border-radius: 3px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); vertical-align: -1px; }
.kc-op__subtitulo { margin: 1rem 0 .5rem; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--kc-gris); }
.kc-op__etapas { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.kc-op__etapas li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .45rem .7rem; border-radius: 10px; background: var(--kc-pend-suave); font-size: .9rem; font-weight: 500; }
.kc-op__etapas em { font-style: normal; font-size: .76rem; font-weight: 600; }
.kc-op__etapas li.is-ok { background: var(--kc-ok-suave); }
.kc-op__etapas li.is-ok em { color: var(--kc-ok-tinta); }
.kc-op__etapas li.is-proc { background: var(--kc-proc-suave); box-shadow: inset 3px 0 0 var(--kc-proc); }
.kc-op__etapas li.is-proc em { color: var(--kc-proc-tinta); }
.kc-op__etapas li.is-pend em { color: var(--kc-gris); }
.kc-op__pie { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; padding-top: .9rem; border-top: 1.5px solid var(--kc-texto); font-weight: 600; }
.kc-op__pie b { font-size: 1.25rem; color: var(--kc-indigo); }
.kc-portada--montaje .kc-escena__tarjeta { display: none; }
@media (max-width: 575.98px) { .kc-op { padding: 30px 16px 16px; transform: none; } .kc-op__matriz { font-size: .82rem; } }

/* ---------------------------------------------------------------------
   Cinta metrica al pie de la portada: sus marcas son el recorrido de una
   prenda en el sistema (ServiceSitio::cintaFlujo)
   --------------------------------------------------------------------- */
.kc-cinta {
    position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 48px; margin: 0; padding: 0 clamp(16px, 4vw, 40px);
    display: flex; justify-content: space-around; align-items: flex-end; list-style: none;
    background-color: #F4D35E;
    background-image:
        repeating-linear-gradient(90deg, rgba(22, 26, 58, .85) 0 2px, transparent 2px 60px),
        repeating-linear-gradient(90deg, rgba(22, 26, 58, .55) 0 1px, transparent 1px 12px);
    background-size: 100% 16px, 100% 8px; background-repeat: repeat-x;
    box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, .5);
}
.kc-cinta li { display: inline-flex; align-items: center; gap: .4rem; padding-bottom: 8px; font-size: .86rem; font-weight: 700; color: var(--kc-tinta); white-space: nowrap; }
.kc-cinta b { font-family: var(--kc-mono); font-weight: 500; font-size: .74rem; opacity: .6; }
.kc-cinta .bi { font-size: .95rem; color: var(--kc-hilo-700); }
.kc-cinta li + li::before { content: ""; width: 26px; margin-right: .9rem; border-top: 2px dashed rgba(22, 26, 58, .4); }
@media (max-width: 1199.98px) { .kc-cinta li + li::before { width: 10px; margin-right: .4rem; } }
@media (max-width: 991.98px) {
    .kc-cinta { justify-content: flex-start; gap: 1.2rem; overflow-x: auto; scrollbar-width: none; }
    .kc-cinta li + li::before { display: none; }
}

/* ---------------------------------------------------------------------
   Que es: la respuesta citable y tres datos
   --------------------------------------------------------------------- */
.kc-respuesta { font-size: clamp(1.15rem, 1.55vw, 1.32rem); line-height: 1.6; color: var(--kc-texto); margin: 0 0 2rem; }
.kc-respuesta strong { background: linear-gradient(transparent 62%, var(--kc-hilo-suave) 62%); }
.kc-datos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kc-dato { display: grid; gap: .35rem; padding: 1.2rem; border-radius: 16px; background: var(--kc-lino); border-top: 3px solid var(--kc-indigo); }
.kc-dato b { font-family: var(--kc-display); font-size: 1.45rem; letter-spacing: -.02em; line-height: 1.05; }
.kc-dato span { font-size: .93rem; color: var(--kc-gris); line-height: 1.45; }
@media (max-width: 767.98px) { .kc-datos { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   El problema: antes y despues, fila por fila
   --------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .kc-compara__cabeza { display: none; }
    .kc-compara__fila { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------------------------------------------------------------------
   Como funciona: seis pasos en pestañas sobre tinta
   --------------------------------------------------------------------- */
.kc-flujo__pasos { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; counter-reset: paso; position: relative; }
.kc-flujo__pasos::before { content: ""; position: absolute; left: 4%; right: 4%; top: 26px; border-top: 2px dashed rgba(255, 255, 255, .2); z-index: 0; }
.kc-flujo__tab {
    position: relative; z-index: 1; width: 100%; display: grid; justify-items: center; gap: .3rem; padding: 0 .3rem .9rem;
    background: none; border: 0; color: var(--kc-sobre-tinta); text-align: center; cursor: pointer;
}
.kc-flujo__num { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--kc-tinta); border: 2px solid rgba(255, 255, 255, .25); font-family: var(--kc-mono); font-size: .95rem; color: #fff; transition: background-color .2s, border-color .2s, transform .25s var(--kc-ease); }
.kc-flujo__label { font-weight: 700; color: #fff; font-size: 1rem; line-height: 1.2; }
.kc-flujo__hint { font-size: .82rem; line-height: 1.3; }
.kc-flujo__tab:hover .kc-flujo__num { border-color: #fff; }
.kc-flujo__tab.is-done .kc-flujo__num { background: var(--kc-indigo); border-color: var(--kc-indigo); }
.kc-flujo__tab[aria-selected="true"] .kc-flujo__num { background: var(--kc-hilo); border-color: var(--kc-hilo); transform: scale(1.08); }
.kc-flujo__panel {
    display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center;
    padding: clamp(24px, 4vw, 48px); border-radius: 24px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
}
.kc-flujo__panel[hidden] { display: none; }
.kc-flujo__paso { margin: 0 0 .5rem; font-family: var(--kc-mono); font-size: .85rem; color: #FF8A73; }
.kc-flujo__panel .kc-h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); color: #fff; }
.kc-flujo__panel .kc-text { margin: 0; color: var(--kc-sobre-tinta); }
.kc-flujo__panel .kc-checks { margin: 0; }
.kc-flujo__panel .kc-checks li { color: #E6E8FA; }
.kc-flujo__panel .kc-checks li .bi { background: rgba(29, 149, 102, .25); color: #7BE0B4; }
@media (max-width: 991.98px) {
    .kc-flujo__pasos { display: flex; overflow-x: auto; scrollbar-width: none; gap: 4px; margin-inline: calc(-1 * clamp(16px, 4vw, 40px)); padding-inline: clamp(16px, 4vw, 40px); }
    .kc-flujo__pasos::before { display: none; }
    .kc-flujo__pasos li { flex: 0 0 132px; }
    .kc-flujo__panel { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   Modulos: tarjetas con enlace a Funcionalidades
   --------------------------------------------------------------------- */
.kc-modulos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kc-modulo { position: relative; display: grid; align-content: start; gap: .4rem; padding: 1.5rem; background: var(--kc-lino); border-radius: var(--kc-radio-tarjeta); transition: transform .25s var(--kc-ease), box-shadow .25s ease, background-color .25s; }
.kc-modulo:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--kc-sombra-alta); }
.kc-modulo__icono { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; margin-bottom: .6rem; border-radius: 12px; background: #fff; color: var(--kc-indigo); font-size: 1.25rem; box-shadow: 0 1px 2px rgba(22, 26, 58, .08); }
.kc-modulo .kc-h3 { font-size: 1.22rem; margin: 0; }
.kc-modulo .kc-h3 a { color: var(--kc-texto); text-decoration: none; }
/* Toda la tarjeta es clicable sin repetir el enlace */
.kc-modulo .kc-h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.kc-modulo .kc-text { font-size: .95rem; margin: 0; }
.kc-modulo__mas { margin-top: .6rem; font-size: .9rem; font-weight: 600; color: var(--kc-hilo); }
.kc-modulo:nth-child(5n + 1) .kc-modulo__icono { color: var(--kc-hilo); }
@media (max-width: 1199.98px) { .kc-modulos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .kc-modulos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .kc-modulos { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   Para quien es: tipos de fabrica
   --------------------------------------------------------------------- */
.kc-sectores { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kc-sector { position: relative; display: grid; grid-template-columns: 2.8rem 1fr; gap: .3rem 1rem; padding: 1.5rem; background: #fff; border: 1px solid var(--kc-linea); border-radius: var(--kc-radio-tarjeta); box-shadow: var(--kc-sombra); }
.kc-sector > .bi { grid-row: span 2; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 12px; background: var(--kc-lavanda); color: var(--kc-indigo); font-size: 1.25rem; }
.kc-sector h3 { font-family: var(--kc-font); font-size: 1.12rem; font-weight: 700; letter-spacing: 0; margin: 0; align-self: center; }
.kc-sector p { margin: 0; color: var(--kc-gris); font-size: .96rem; }
.kc-sector--enlace h3 a { color: var(--kc-texto); text-decoration: none; }
.kc-sector--enlace h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.kc-sector--enlace h3 a::before { content: "\f138"; font-family: "bootstrap-icons"; float: right; margin-left: .5rem; color: var(--kc-hilo); font-weight: 400; }
.kc-sector--enlace:hover { border-color: var(--kc-indigo); }
.kc-sector:not(.kc-sector--enlace) { background: transparent; box-shadow: none; border-style: dashed; border-color: var(--kc-linea-fuerte); }
@media (max-width: 991.98px) { .kc-sectores { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .kc-sectores { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   Roles
   --------------------------------------------------------------------- */
.kc-roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kc-rol { padding: 1.5rem; background: var(--kc-lino); border-radius: var(--kc-radio-tarjeta); }
.kc-rol__tag { display: flex; gap: .55rem; align-items: center; font-weight: 700; color: var(--kc-indigo); margin-bottom: .8rem; }
.kc-rol__tag .bi { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 10px; background: #fff; }
.kc-rol .kc-h3 { font-size: 1.28rem; }
.kc-rol .kc-text { font-size: .96rem; margin: 0; }
.kc-rol:nth-child(2) { background: var(--kc-fondo-tinta); color: #fff; }
.kc-rol:nth-child(2) .kc-h3 { color: #fff; }
.kc-rol:nth-child(2) .kc-text { color: var(--kc-sobre-tinta); }
.kc-rol:nth-child(2) .kc-rol__tag { color: #FF8A73; }
.kc-rol:nth-child(2) .kc-rol__tag .bi { background: rgba(255, 255, 255, .1); }
@media (max-width: 991.98px) { .kc-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .kc-roles { grid-template-columns: 1fr; } }

/* Proporcion de la portada con montaje (como en biomantenimiento): en escritorio el montaje
   sale un poco de su columna, las tallas asoman sobre la laptop y los avisos van a las esquinas */
.kc-portada--montaje { padding-top: calc(var(--kc-header-h) + clamp(36px, 5vw, 72px)); }
.kc-funciones { grid-template-columns: repeat(2, max-content); }
.kc-portada--montaje .kc-portada__fondo { color: rgba(255, 255, 255, .06); }
@media (min-width: 1200px) {
    .kc-portada--montaje .kc-portada__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
    .kc-portada--montaje .kc-h1 { font-size: clamp(2.8rem, 4.6vw, 4.4rem); }
    .kc-portada--montaje .kc-escena__media--montaje { width: 124%; margin: 0 0 0 -8%; }
    .kc-portada--montaje .kc-portada__fondo { top: -16%; right: -16%; transform: none; font-size: clamp(7rem, 12.5vw, 12.5rem); }
    .kc-portada--montaje .kc-aviso:nth-child(1) { right: -12%; top: 6%; }
    .kc-portada--montaje .kc-aviso:nth-child(2) { left: -14%; bottom: 20%; }
    .kc-portada--montaje .kc-aviso:nth-child(3) { right: 26%; bottom: -7%; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .kc-portada--montaje .kc-portada__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .kc-portada--montaje .kc-h1 { font-size: 3.2rem; }
    .kc-portada--montaje .kc-escena__media--montaje { width: 106%; margin: 0 0 0 -3%; }
    .kc-portada--montaje .kc-portada__fondo { top: -12%; right: -8%; transform: none; font-size: 8rem; }
    .kc-portada--montaje .kc-aviso { width: 240px; }
    .kc-portada--montaje .kc-aviso:nth-child(1) { right: 0; top: 2%; }
    .kc-portada--montaje .kc-aviso:nth-child(2) { left: -6%; bottom: 16%; }
    .kc-portada--montaje .kc-aviso:nth-child(3) { display: none; }
    .kc-funciones { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 991.98px) { .kc-portada--montaje .kc-portada__fondo { top: 4%; right: 50%; transform: translateX(50%); } }
@media (max-width: 575.98px) { .kc-funciones { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   Pespunte de la portada: una costura que se cose sola (decorativa)
   --------------------------------------------------------------------- */
.kc-pespunte { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.kc-portada > .container { position: relative; z-index: 1; }
.kc-pespunte__hilo { stroke: #FF8A73; stroke-width: 2.5; stroke-dasharray: 11 9; stroke-linecap: round; opacity: .5; }
.kc-pespunte__trazo { stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: kc-coser 3.2s .4s cubic-bezier(.45, .05, .25, 1) forwards; }
@keyframes kc-coser { to { stroke-dashoffset: 0; } }
@media (max-width: 767.98px) { .kc-pespunte { display: none; } }

@media (prefers-reduced-motion: reduce) { .kc-pespunte__trazo { animation: none; stroke-dashoffset: 0; } }

/* ---------- Empresas que confian (franja bajo la portada) ---------- */
.kc-logos { padding-block: clamp(32px, 4.5vw, 52px); background: var(--kc-blanco); border-bottom: 1px solid var(--kc-linea); }
.kc-logos__inner { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 2rem; align-items: center; }
.kc-logos__label { margin: 0; color: var(--kc-gris); font-size: .98rem; line-height: 1.45; }
.kc-logos__label strong { display: block; margin-bottom: .2rem; font-family: var(--kc-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; color: var(--kc-texto); }
.kc-logos__lista { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-around; gap: 1.5rem clamp(28px, 4vw, 56px); list-style: none; margin: 0; padding: 0; }
.kc-logos__item { display: grid; place-items: center; height: 64px; }
.kc-logos__item img { width: auto; height: auto; max-height: 56px; max-width: 170px; mix-blend-mode: multiply; }
@media (max-width: 767.98px) {
    .kc-logos__inner { grid-template-columns: 1fr; gap: 1.2rem; text-align: center; }
    .kc-logos__lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-items: center; gap: 1.2rem; }
    .kc-logos__item { height: 52px; }
    .kc-logos__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .kc-logos__item img { max-height: 44px; max-width: 120px; }
}

/* ---------- Calculadora "Arme su pedido" ---------- */
.kc-calc { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--kc-blanco); border: 1px solid var(--kc-linea); border-radius: var(--kc-radio-tarjeta); box-shadow: var(--kc-sombra-alta); overflow: hidden; }
.kc-calc__entrada { padding: clamp(20px, 3vw, 36px); border-right: 1px dashed var(--kc-linea-fuerte); }
.kc-calc__salida { padding: clamp(20px, 3vw, 36px); background: #FCFBF8; display: grid; gap: 1.4rem; align-content: start; }
.kc-calc__rotulo { margin: 0 0 .7rem; font-family: var(--kc-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--kc-gris); }
.kc-calc__prendas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-bottom: 1.6rem; }
.kc-calc__prenda { display: grid; gap: .2rem; text-align: left; padding: .7rem .85rem; border: 1px solid var(--kc-linea-fuerte); border-radius: var(--kc-radio); background: var(--kc-blanco); color: var(--kc-texto); font-weight: 600; font-size: .92rem; line-height: 1.25; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.kc-calc__prenda .kc-mono { font-size: .72rem; color: var(--kc-gris); }
.kc-calc__prenda:hover { border-color: var(--kc-indigo); }
.kc-calc__prenda[aria-pressed="true"] { border-color: var(--kc-indigo); background: var(--kc-lavanda); box-shadow: inset 0 0 0 1px var(--kc-indigo); }
.kc-calc__prenda[aria-pressed="true"] .kc-mono { color: var(--kc-indigo); }
.kc-calc__prenda:focus-visible, .kc-calc__matriz input:focus-visible { outline: 2px solid var(--kc-hilo); outline-offset: 2px; }
.kc-calc__tabla { overflow-x: auto; }
.kc-calc__matriz { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; }
.kc-calc__matriz th, .kc-calc__matriz td { padding: .35rem; text-align: center; }
.kc-calc__matriz thead th { font-weight: 600; font-size: .82rem; color: var(--kc-gris); white-space: nowrap; border-bottom: 1px solid var(--kc-linea); }
.kc-calc__matriz tbody th, .kc-calc__matriz tfoot th { font-family: var(--kc-mono); font-weight: 500; color: var(--kc-texto); }
.kc-calc__matriz tfoot td, .kc-calc__matriz tfoot th { border-top: 1px solid var(--kc-linea); }
.kc-calc__matriz input { width: 100%; min-width: 3.6rem; padding: .45rem .3rem; text-align: center; font: 500 1rem var(--kc-mono); color: var(--kc-texto); background: var(--kc-lino); border: 1px solid transparent; border-radius: 8px; -moz-appearance: textfield; appearance: textfield; }
.kc-calc__matriz input::-webkit-outer-spin-button, .kc-calc__matriz input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.kc-calc__matriz input:hover { border-color: var(--kc-linea-fuerte); }
.kc-calc__matriz input:focus { background: var(--kc-blanco); border-color: var(--kc-indigo); }
.kc-calc__suma { font-family: var(--kc-mono); font-weight: 500; color: var(--kc-gris); }
.kc-calc__suma--total { color: var(--kc-indigo); font-weight: 600; }
.kc-calc__punto { display: inline-block; flex: none; width: .7rem; height: .7rem; border-radius: 50%; margin-right: .35rem; vertical-align: -.05rem; box-shadow: inset 0 0 0 1px rgba(22, 26, 58, .2); }
.kc-calc__nota { display: flex; gap: .45rem; margin: 1.2rem 0 0; font-size: .85rem; color: var(--kc-gris); }
.kc-calc__nota .bi { color: var(--kc-indigo); }
.kc-calc__kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 0; }
.kc-calc__kpis > div { padding: .75rem .9rem; background: var(--kc-blanco); border: 1px solid var(--kc-linea); border-radius: var(--kc-radio); }
.kc-calc__kpis dt { font-size: .78rem; font-weight: 500; color: var(--kc-gris); }
.kc-calc__kpis dd { margin: .1rem 0 0; font-family: var(--kc-display); font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 700; letter-spacing: -.02em; color: var(--kc-texto); font-variant-numeric: tabular-nums; }
.kc-calc__titulo { margin: 0 0 .6rem; font-family: var(--kc-display); font-size: 1.02rem; font-weight: 700; }
.kc-calc__telas { display: grid; gap: .55rem; list-style: none; margin: 0; padding: 0; }
.kc-calc__telas li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; font-size: .9rem; }
.kc-calc__tela-dato { color: var(--kc-gris); font-size: .84rem; font-variant-numeric: tabular-nums; }
.kc-calc__tela-dato b { color: var(--kc-texto); font-weight: 600; }
.kc-calc__barra { grid-column: 1 / -1; height: 6px; margin-top: .3rem; background: var(--kc-lino-2); border-radius: 99px; overflow: hidden; }
.kc-calc__barra span { display: block; height: 100%; background: var(--kc-ok); border-radius: inherit; transition: width .3s ease; }
.kc-calc__telas li.is-falta .kc-calc__barra span { background: var(--kc-late); }
.kc-calc__telas li.is-falta .kc-calc__tela-dato b { color: var(--kc-late); }
.kc-calc__alerta { display: flex; gap: .5rem; align-items: flex-start; margin: .8rem 0 0; padding: .6rem .8rem; border-radius: var(--kc-radio); font-size: .88rem; line-height: 1.4; }
.kc-calc__alerta.is-ok { background: var(--kc-ok-suave); color: var(--kc-ok-tinta); }
.kc-calc__alerta.is-falta { background: var(--kc-late-suave); color: #8E2A1C; }
.kc-calc__alerta .bi { margin-top: .1rem; }
.kc-calc__pila { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--kc-lino-2); }
.kc-calc__pila .kc-calc__seg { height: 100%; transition: width .3s ease; }
.kc-calc__seg--0 { background: var(--kc-indigo); }
.kc-calc__seg--1 { background: #7C84E0; }
.kc-calc__seg--2 { background: var(--kc-proc); }
.kc-calc__seg--3 { background: var(--kc-hilo); }
.kc-calc__seg--4 { background: var(--kc-gris-claro); }
.kc-calc__leyenda { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem 1.2rem; list-style: none; margin: .8rem 0 0; padding: 0; font-size: .85rem; color: var(--kc-gris); }
.kc-calc__leyenda li { display: flex; align-items: center; gap: .45rem; }
.kc-calc__leyenda .kc-calc__seg { flex: none; width: .65rem; height: .65rem; border-radius: 3px; }
.kc-calc__leyenda b { margin-left: auto; color: var(--kc-texto); font-weight: 600; font-variant-numeric: tabular-nums; }
.kc-calc__precio { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: .8rem 0 0; padding-top: .7rem; border-top: 1px dashed var(--kc-linea-fuerte); font-size: .88rem; color: var(--kc-gris); }
.kc-calc__precio b { color: var(--kc-indigo); }
.kc-calc__insumos { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.kc-calc__insumos li { padding: .3rem .6rem; background: var(--kc-blanco); border: 1px solid var(--kc-linea); border-radius: 99px; font-size: .82rem; color: var(--kc-gris); }
.kc-calc__insumos b { color: var(--kc-texto); font-variant-numeric: tabular-nums; }
/* Ruta: procesos unidos por un pespunte; los de taller satelite en coral */
.kc-calc__bloque--ruta { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px dashed var(--kc-linea-fuerte); }
.kc-calc__ruta { display: flex; flex-wrap: wrap; gap: .45rem 1.1rem; list-style: none; margin: 0; padding: 0; overflow: hidden; }
.kc-calc__ruta li { position: relative; display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; background: var(--kc-lavanda); color: var(--kc-indigo-700); border-radius: 99px; font-size: .82rem; font-weight: 600; }
.kc-calc__ruta li.is-externo { background: var(--kc-hilo-suave); color: var(--kc-hilo-700); }
.kc-calc__ruta li + li::before { content: ""; position: absolute; left: -1.05rem; top: 50%; width: .95rem; border-top: 2px dashed var(--kc-linea-fuerte); }
.kc-calc__claves { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: .8rem 0 0; font-size: .8rem; color: var(--kc-indigo-700); }
.kc-calc__claves span { display: inline-flex; align-items: center; gap: .35rem; }
.kc-calc__claves .is-externo { color: var(--kc-hilo-700); }
.kc-calc__cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem clamp(20px, 3vw, 36px); background: var(--kc-tinta); color: #fff; }
.kc-calc__cta p { margin: 0; font-family: var(--kc-display); font-size: 1.15rem; font-weight: 600; }
@media (max-width: 991.98px) {
    .kc-calc { grid-template-columns: minmax(0, 1fr); }
    .kc-calc__entrada { border-right: 0; border-bottom: 1px dashed var(--kc-linea-fuerte); }
}
@media (max-width: 575.98px) {
    .kc-calc__prendas { grid-template-columns: 1fr; }
    .kc-calc__prenda { grid-template-columns: auto 1fr; align-items: center; gap: .6rem; }
    .kc-calc__matriz input { min-width: 0; padding: .45rem .1rem; font-size: .92rem; }
    .kc-calc__matriz th, .kc-calc__matriz td { padding: .25rem .15rem; }
    .kc-calc__matriz thead th { white-space: normal; font-size: .74rem; line-height: 1.2; }
    .kc-calc__matriz .kc-calc__punto { display: block; margin: 0 auto .2rem; }
    .kc-calc__kpis dd { font-size: 1.08rem; white-space: nowrap; }
    .kc-calc__telas li { grid-template-columns: auto 1fr; }
    .kc-calc__tela-dato { grid-column: 2; }
    .kc-calc__leyenda { grid-template-columns: 1fr; }
    .kc-calc__cta { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .kc-calc__barra span, .kc-calc__pila .kc-calc__seg { transition: none; } }

/* ---------- Comparador antes / ahora (seccion El problema) ----------
   Lienzo fijo de 1280x660 (400x716 en celular) que site.js escala al ancho disponible. */
.kc-comp { --mist: #F1F2FB; --line: var(--kc-linea); --blue: var(--kc-indigo); --ink: var(--kc-texto); --ink-2: var(--kc-gris); --deep: var(--kc-indigo-700); --light: var(--kc-lavanda); --ease: cubic-bezier(.23, 1, .32, 1); }
.kc-comp__stage { position: relative; width: 100%; aspect-ratio: 1280 / 660; border-radius: var(--kc-radio-tarjeta); overflow: hidden; background: var(--mist); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; box-shadow: 0 0 0 1px var(--line), var(--kc-sombra-alta); isolation: isolate; }
.kc-comp__canvas { position: absolute; left: 0; top: 0; width: 1280px; height: 660px; transform-origin: 0 0; font-family: "Figtree", sans-serif; color: var(--ink); }
.kc-comp .layer { position: absolute; inset: 0; overflow: hidden; }
.kc-comp .layer-order { background-color: var(--mist); background-image: radial-gradient(circle at 1px 1px, #D3D6F5 1px, transparent 1.2px); background-size: 24px 24px; }
.kc-comp .layer-chaos { background: #DCD8CF; will-change: clip-path; clip-path: inset(0 50% 0 0); }
.kc-comp .slot { position: absolute; }
.kc-comp .s-a { left: 40px; top: 76px; width: 400px; height: 278px; }
.kc-comp .s-b { left: 40px; top: 386px; width: 400px; height: 236px; }
.kc-comp .s-c { left: 470px; top: 76px; width: 340px; height: 546px; }
.kc-comp .s-d { left: 840px; top: 76px; width: 400px; height: 350px; }
.kc-comp .s-e { left: 840px; top: 452px; width: 400px; height: 170px; }
.kc-comp .tag { position: absolute; top: 22px; font-size: 13.5px; font-weight: 600; padding: 7px 13px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.kc-comp .tag-chaos { left: 40px; background: #F3F1EC; color: #4B4A46; box-shadow: 0 1px 0 rgba(0, 0, 0, .08); }
.kc-comp .tag-order { right: 40px; background: var(--blue); color: #fff; }
.kc-comp .hand { font-family: "Caveat", cursive; font-weight: 600; color: #2D3A66; line-height: 1.05; }
.kc-comp .code { font-family: var(--kc-mono); font-size: 12px; font-weight: 500; color: var(--deep); }

/* Hoy: Excel, notas, WhatsApp, cuaderno y cajas */
.kc-comp .xl { position: absolute; inset: 0; background: #FBFBF9; border: 1px solid #B9BCB7; transform: rotate(-1.6deg); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .35); font-size: 14px; color: #2F2F2F; overflow: hidden; }
.kc-comp .xl-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #EDEEEA; border-bottom: 1px solid #C9CBC6; font-size: 12px; color: #5B5D58; white-space: nowrap; }
.kc-comp .xl-ico { width: 16px; height: 16px; border-radius: 3px; background: #6F8A75; color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; flex: none; }
.kc-comp .xl table { border-collapse: collapse; width: 100%; table-layout: fixed; }
.kc-comp .xl th, .kc-comp .xl td { border: 1px solid #D6D7D3; padding: 6px 7px; height: 31px; text-align: left; white-space: nowrap; overflow: hidden; font-weight: 400; }
.kc-comp .xl th { background: #F1F1EE; color: #7A7C77; font-size: 11.5px; text-align: center; height: 22px; padding: 2px; }
.kc-comp .xl th:first-child, .kc-comp .xl td:first-child { width: 28px; background: #F1F1EE; color: #7A7C77; text-align: center; font-size: 11.5px; padding: 0; }
.kc-comp .xl th:nth-child(2) { width: 118px; }
.kc-comp .xl .bold td { font-weight: 700; }
.kc-comp .xl .red { background: #F1C6C0; color: #9A2A1F; font-weight: 600; }
.kc-comp .xl .yel { background: #FBF0A6; }
.kc-comp .xl .sel { outline: 2px solid #4E7A58; outline-offset: -2px; }
.kc-comp .sticky { position: absolute; width: 186px; height: 168px; background: #EEDF86; padding: 20px 16px; font-size: 30px; box-shadow: 0 14px 18px -12px rgba(0, 0, 0, .4); }
.kc-comp .sticky::before { content: ""; position: absolute; left: 50%; top: -11px; width: 78px; height: 24px; margin-left: -39px; background: rgba(255, 255, 255, .55); transform: rotate(-3deg); }
.kc-comp .st-1 { left: 18px; top: 24px; transform: rotate(-5deg); }
.kc-comp .st-2 { left: 190px; top: 46px; transform: rotate(4deg); background: #F2C9B8; }
.kc-comp .wa { position: absolute; inset: 0; border-radius: 26px; background: #E5E0D6; overflow: hidden; box-shadow: 0 0 0 7px #2A2B2E, 0 24px 40px -18px rgba(0, 0, 0, .55); transform: rotate(1.4deg); font-size: 14.5px; color: #222; display: flex; flex-direction: column; }
.kc-comp .wa-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #5C766C; color: #F5F8FE; }
.kc-comp .wa-av { width: 34px; height: 34px; border-radius: 50%; background: #A9B9B1; display: grid; place-items: center; color: #41574D; flex: none; }
.kc-comp .wa-head b { display: block; font-size: 14.5px; font-weight: 600; }
.kc-comp .wa-head small { display: block; font-size: 11.5px; opacity: .8; }
.kc-comp .wa-body { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.kc-comp .msg { max-width: 84%; padding: 7px 10px 18px; border-radius: 10px; background: #FBFAF7; position: relative; box-shadow: 0 1px 0 rgba(0, 0, 0, .08); line-height: 1.35; }
.kc-comp .msg small { position: absolute; right: 8px; bottom: 3px; font-size: 10.5px; color: #8A8B86; }
.kc-comp .msg .from { display: block; font-size: 12px; font-weight: 650; color: #7C5A3C; margin-bottom: 2px; }
.kc-comp .msg .from.b { color: #3E6A87; }
.kc-comp .msg.out { align-self: flex-end; background: #D6E3CC; }
.kc-comp .msg.big { font-size: 16px; }
/* Foto borrosa de un paquete de camisas dobladas */
.kc-comp .photo { width: 196px; height: 104px; border-radius: 6px; margin-bottom: 6px; background: #A39C90; position: relative; overflow: hidden; }
.kc-comp .photo::before { content: ""; position: absolute; left: 34px; top: 26px; width: 128px; height: 22px; border-radius: 4px; background: #E9E6DE; box-shadow: 0 24px 0 #9DC3E6, 0 48px 0 #E9E6DE, 6px 72px 0 #9DC3E6; }
.kc-comp .photo::after { content: ""; position: absolute; left: 86px; top: 22px; width: 24px; height: 12px; border-radius: 0 0 12px 12px; background: #C9C4B9; }
.kc-comp .wa-input { margin: 0 10px 12px; padding: 10px 14px; border-radius: 999px; background: #FBFAF7; color: #9A9A95; font-size: 13.5px; }
.kc-comp .paper { position: absolute; inset: 0; background: #F2EFE7; transform: rotate(2.6deg); box-shadow: 0 18px 28px -16px rgba(0, 0, 0, .45); padding: 20px 24px; color: #3B3B38; background-image: repeating-linear-gradient(transparent 0 47px, rgba(70, 110, 170, .12) 47px 48px); }
.kc-comp .paper-h { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid #3B3B38; padding-bottom: 6px; font-family: var(--kc-mono); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; }
.kc-comp .fld { display: flex; align-items: baseline; gap: 8px; border-bottom: 1px solid #B7B3A8; padding: 8px 0 3px; font-family: var(--kc-mono); font-size: 11px; color: #6A675F; }
.kc-comp .fld .hand { font-size: 25px; color: #22337A; }
.kc-comp .hand.r, .kc-comp .hand .r { color: #8E2A20; }
.kc-comp .coffee { position: absolute; right: 30px; bottom: 24px; width: 104px; height: 104px; border-radius: 50%; border: 7px solid rgba(122, 82, 42, .22); box-shadow: inset 0 0 0 3px rgba(122, 82, 42, .08), 0 0 0 2px rgba(122, 82, 42, .07); transform: rotate(-12deg) scaleX(1.06); }
.kc-comp .boxes { position: absolute; inset: 0; }
.kc-comp .box { position: absolute; bottom: 6px; width: 120px; height: 92px; background: #C9A877; border-radius: 4px; box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .08), 0 10px 14px -10px rgba(0, 0, 0, .45); }
.kc-comp .box::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 22px; margin-left: -11px; background: rgba(240, 230, 205, .55); }
.kc-comp .b1 { left: 14px; transform: rotate(-3deg); }
.kc-comp .b2 { left: 116px; bottom: 14px; transform: rotate(2deg); background: #BF9C69; }
.kc-comp .b3 { left: 64px; bottom: 82px; width: 104px; height: 74px; transform: rotate(-6deg); background: #D2B386; }
.kc-comp .rem { position: absolute; right: 8px; top: 18px; width: 170px; padding: 12px 12px; background: #F7F4EC; font-size: 23px; transform: rotate(5deg); box-shadow: 0 10px 14px -8px rgba(0, 0, 0, .4); }

/* En el sistema: tarjetas */
.kc-comp .card { position: absolute; inset: 0; background: #fff; border-radius: 16px; box-shadow: 0 1px 0 var(--line), 0 0 0 1px rgba(48, 56, 168, .07), 0 22px 40px -26px rgba(48, 56, 168, .45); overflow: hidden; }
.kc-comp .card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 12px; border-bottom: 1px solid #ECEDF8; }
.kc-comp .card-h b { font-weight: 700; font-size: 15px; }
.kc-comp .pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.kc-comp .pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.kc-comp .p-ok { background: var(--kc-ok-suave); color: var(--kc-ok-tinta); }
.kc-comp .p-proc { background: var(--kc-proc-suave); color: var(--kc-proc-tinta); }
.kc-comp .p-pend { background: var(--kc-pend-suave); color: #5E6175; }
.kc-comp .mtx { width: calc(100% - 28px); margin: 8px 14px 0; border-collapse: collapse; font-size: 13.5px; text-align: center; }
.kc-comp .mtx th, .kc-comp .mtx td { padding: 6px 4px; border-bottom: 1px solid #F0F1F8; }
.kc-comp .mtx thead th { font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.kc-comp .mtx thead i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; box-shadow: inset 0 0 0 1px rgba(22, 26, 58, .2); }
.kc-comp .mtx tbody th, .kc-comp .mtx tfoot th { font-family: var(--kc-mono); font-weight: 500; }
.kc-comp .mtx td { font-family: var(--kc-mono); }
.kc-comp .mtx td:last-child, .kc-comp .mtx tfoot td { font-weight: 600; color: var(--deep); }
.kc-comp .mtx tfoot th, .kc-comp .mtx tfoot td { border-bottom: 0; border-top: 1.5px solid var(--line); }
.kc-comp .mini { display: flex; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #F0F1F8; align-items: flex-start; }
.kc-comp .mini:last-child { border-bottom: 0; }
.kc-comp .mini > i { font-size: 20px; line-height: 1.2; }
.kc-comp .is-late { color: var(--kc-late); }
.kc-comp .is-ok { color: var(--kc-ok); }
.kc-comp .mini .nm { font-weight: 650; font-size: 14.5px; line-height: 1.3; }
.kc-comp .mini .sub { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.kc-comp .chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 5px 10px; border-radius: 8px; background: var(--mist); font-size: 12.5px; font-weight: 550; color: var(--deep); }
.kc-comp .rec { display: flex; flex-direction: column; }
.kc-comp .rec-top { padding: 18px 20px 0; display: flex; justify-content: space-between; align-items: flex-start; }
.kc-comp .rec-top .lbl { font-size: 12.5px; color: var(--ink-2); font-weight: 550; }
.kc-comp .pct { font-family: var(--kc-display); font-size: 26px; font-weight: 700; color: var(--blue); }
.kc-comp .rec h3 { font-family: var(--kc-display); font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: 0; padding: 6px 20px 0; }
.kc-comp .bar { margin: 12px 20px 4px; height: 8px; border-radius: 99px; background: var(--kc-lino-2); overflow: hidden; }
.kc-comp .bar span { display: block; height: 100%; background: var(--blue); border-radius: inherit; }
.kc-comp .tl { list-style: none; margin: 8px 0 0; padding: 0 20px; }
.kc-comp .tl li { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; padding: 9px 0 9px 22px; border-bottom: 1px solid #F0F1F8; font-size: 14px; }
.kc-comp .tl li::before { content: ""; position: absolute; left: 2px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #C4C6D6; }
.kc-comp .tl li.ok::before { background: var(--kc-ok); box-shadow: none; }
.kc-comp .tl li.now { margin: 4px -10px; padding: 9px 10px 9px 32px; border-radius: 10px; background: var(--kc-proc-suave); border-bottom: 0; }
.kc-comp .tl li.now::before { left: 12px; background: var(--kc-proc); box-shadow: 0 0 0 4px rgba(227, 155, 45, .25); }
.kc-comp .tl b { font-weight: 600; }
.kc-comp .tl small { grid-column: 1; font-size: 12px; color: var(--ink-2); }
.kc-comp .tl small i { margin-right: 4px; color: var(--kc-hilo); }
.kc-comp .tl .pill { grid-column: 2; grid-row: 1 / span 2; }
.kc-comp .rec .act { margin: auto 16px 16px; display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 11px; background: var(--blue); color: #fff; font-weight: 600; font-size: 14.5px; }
.kc-comp .dl { margin: 6px 20px 0; display: grid; grid-template-columns: auto 1fr; gap: 0 16px; font-size: 14px; }
.kc-comp .dl dt, .kc-comp .dl dd { margin: 0; padding: 10px 0; border-bottom: 1px solid #F0F1F8; }
.kc-comp .dl dt { color: var(--ink-2); font-weight: 400; }
.kc-comp .dl dd { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.kc-comp .price { display: flex; align-items: center; justify-content: space-between; margin: 14px 16px 0; padding: 12px 14px; border-radius: 12px; background: var(--light); font-size: 13px; color: var(--deep); }
.kc-comp .price b { font-family: var(--kc-display); font-size: 22px; color: var(--blue); }
.kc-comp .cost .note { position: absolute; left: 20px; bottom: 14px; font-size: 12.5px; color: var(--kc-ok-tinta); font-weight: 600; }
.kc-comp .cost .note i { margin-right: 6px; }
.kc-comp .desp .scan { display: flex; gap: 12px; align-items: center; padding: 12px 18px 8px; }
.kc-comp .desp .scan > i { font-size: 26px; color: var(--blue); }
.kc-comp .desp .scan b { display: block; font-family: var(--kc-display); font-size: 19px; font-weight: 700; }
.kc-comp .desp .scan span { font-size: 12.5px; color: var(--ink-2); }
.kc-comp .desp .checks { display: flex; gap: 16px; padding: 0 18px; font-size: 13px; }
.kc-comp .desp .checks i { color: var(--kc-ok); margin-right: 5px; }

/* Linea y control */
.kc-comp .handle { position: absolute; top: 0; bottom: 0; left: 0; width: 0; z-index: 5; will-change: transform; transform: translate3d(50%, 0, 0); pointer-events: none; }
.kc-comp .handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: repeating-linear-gradient(#fff 0 10px, rgba(255, 255, 255, .55) 10px 16px); box-shadow: 0 0 0 1px rgba(22, 26, 58, .12), 0 0 18px rgba(22, 26, 58, .25); }
.kc-comp .knob { position: absolute; top: 50%; left: 0; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(22, 26, 58, .1), 0 10px 24px -6px rgba(22, 26, 58, .45); pointer-events: auto; cursor: grab; touch-action: none; transition: transform 140ms var(--ease); }
.kc-comp .knob span { display: flex; gap: 2px; font-size: 15px; }
.kc-comp__stage.dragging .knob { cursor: grabbing; transform: scale(.94); }
.kc-comp .knob:focus-visible { outline: 3px solid var(--kc-hilo); outline-offset: 4px; }
.kc-comp__stage.easing .layer-chaos { transition: clip-path 220ms var(--ease); }
.kc-comp__stage.easing .handle { transition: transform 220ms var(--ease); }
.kc-comp__pie { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-top: 1rem; font-size: .9rem; color: var(--kc-gris); }
.kc-comp__pie i { margin-right: .4rem; color: var(--kc-indigo); }
@media (max-width: 720px) {
    .kc-comp__stage { aspect-ratio: 400 / 716; }
    .kc-comp__canvas { width: 400px; height: 716px; }
    .kc-comp .s-a { left: 16px; top: 490px; width: 368px; height: 212px; }
    .kc-comp .s-c { left: 16px; top: 66px; width: 368px; height: 406px; }
    .kc-comp .s-b, .kc-comp .s-d, .kc-comp .s-e { display: none; }
    .kc-comp .tag { top: 18px; font-size: 12.5px; padding: 6px 11px; }
    .kc-comp .tag-chaos { left: 16px; }
    .kc-comp .tag-order { right: 16px; }
    .kc-comp .m-hide, .kc-comp .xl tr.m-hide { display: none; }
    .kc-comp .mtx { font-size: 12.5px; margin-top: 2px; }
    .kc-comp .mtx th, .kc-comp .mtx td { padding: 3px; }
    .kc-comp .card-h { padding: 12px 14px 8px; }
    .kc-comp .tl li.m-hide { display: none; }
    .kc-comp .rec h3 { font-size: 21px; }
    .kc-comp .tl li { padding-top: 7px; padding-bottom: 7px; }
    .kc-comp .rec .act { height: 40px; }
}
.kc-portada__texto { min-width: 0; }

/* Titulo del hero con frases largas (version en ingles): el resaltado puede partirse en dos
   lineas y en celular baja el tamano para que "Manufacturing" quepa entero */
.kc-portada .kc-h1 em { white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (max-width: 575.98px) {
    .kc-portada .kc-h1 { font-size: clamp(2rem, 9.4vw, 2.5rem); }
}
.kc-portada .kc-h1 em { text-decoration: underline dashed rgba(255, 138, 115, .55); text-decoration-thickness: 3px; text-underline-offset: .14em; }
.kc-portada .kc-h1 em::after { display: none; }
