.buscador.kf-search #q{padding-right:132px}
.buscador .kf-trigger{position:absolute;right:5px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;gap:5px;min-height:34px;padding:5px 10px;color:var(--verde,#214936);background:var(--papel,#fff);border:1px solid var(--linea,#d4dfd3);border-radius:18px;font-family:inherit;font-size:12px;font-weight:650;cursor:pointer;white-space:nowrap}
.kf-trigger::before{content:'';display:block;width:18px;height:18px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 7h4l2-3h6l2 3h4v13H3z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E") center/contain no-repeat}
.kf-dialog{box-sizing:border-box;width:min(520px,calc(100vw - 24px));max-height:88vh;max-height:88dvh;margin:auto;padding:0;overflow:auto;color:#213e32;background:#fafbf7;border:1px solid #d3decf;border-radius:20px;box-shadow:0 20px 80px #102d3240;font-family:inherit}
.kf-dialog::backdrop{background:#142b23a6}
.kf-dialog *{box-sizing:border-box}.kf-header{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:20px 24px 14px;background:#fafbf7;border-bottom:1px solid #d9dfd4}
.kf-header small,.kf-card>small{display:block;letter-spacing:.12em;font:700 10px/1.5 system-ui;color:#58715d}.kf-header h2{font-family:Georgia,serif;font-weight:500;font-size:clamp(23px,5vw,32px);line-height:1.12;margin:5px 0 0;color:inherit}
.kf-body{padding:15px 24px 22px}.kf-dialog p{margin:4px 0 12px;line-height:1.45}.kf-body>small,.kf-results>small{display:block;line-height:1.45;color:#54675b}
.kf-controls,.kf-match,.kf-tray{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.kf-dialog button{cursor:pointer;font:inherit}
.kf-controls button,.kf-product,.kf-primary,.kf-close{min-height:42px;border-radius:10px;padding:8px 14px;color:#234d39;background:#fff;border:1px solid #bdcdbf}
.kf-close{font-size:22px;flex-shrink:0}.kf-primary{width:100%;background:#234d39;color:#fff;font-weight:700;margin:10px 0}.kf-dialog button:disabled{opacity:.55;cursor:default}
.kf-tray{margin:10px 0 4px}.kf-tray>div{position:relative}.kf-tray img{display:block;width:74px;height:74px;object-fit:cover;border-radius:9px}.kf-tray button{position:absolute;top:-4px;right:-4px;border-radius:50%;width:25px;height:25px;padding:0;background:#fff;border:1px solid #809084;color:#173a28}
.kf-status:not(:empty){margin:16px 0 8px;font-weight:650}.kf-card{border-top:1px solid #ccdbca;padding:16px 0 0;margin-top:14px}.kf-match{justify-content:space-between}.kf-card h3{margin:0;font-size:20px;color:inherit}.kf-match b{background:#e5ecdc;color:#315239;border-radius:16px;padding:5px 9px;font-size:12px}
.kf-card i{display:block;margin:4px 0 7px}.kf-card>small{margin:12px 0 5px}.kf-product{display:block;text-align:left;margin:7px 0;width:100%;line-height:1.35}
.kf-dialog [hidden]{display:none!important}.kf-dialog button:focus-visible,.kf-trigger:focus-visible{outline:3px solid #94ad79;outline-offset:2px}
@media(max-width:430px){.kf-header,.kf-body{padding-left:16px;padding-right:16px}.buscador .kf-trigger{font-size:11px;padding:5px 7px}.buscador.kf-search #q{padding-right:112px}}
html[data-theme=dark] .kf-dialog,html[data-theme=dark] .kf-header{color:#e5ede2;background:#1d3027}html[data-theme=dark] .kf-header small,html[data-theme=dark] .kf-body>small,html[data-theme=dark] .kf-results>small,html[data-theme=dark] .kf-card>small{color:#c6d4c3}html[data-theme=dark] .kf-trigger{color:#d8e4cd}

/* En el encabezado compacto, la cámara tiene su propio espacio táctil. */
@media (max-width: 900px) {
  .buscador.kf-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 6px;
    min-width: 0;
  }
  .buscador.kf-search #q {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    width: 100%;
    font-size: 16px;
    padding-right: 8px;
  }
  .buscador.kf-search .kf-trigger {
    position: static;
    transform: none;
    grid-column: 2;
    grid-row: 1;
    justify-content: center;
    gap: 0;
    width: 44px;
    min-height: 44px;
    padding: 0;
    font-size: 0;
    border-radius: 12px;
  }
  .buscador.kf-search .kf-trigger::before {
    width: 21px;
    height: 21px;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 7h4l2-3h6l2 3h4v13H3z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E") center/contain no-repeat;
  }
}
@media (max-width: 374px) {
  .buscador.kf-search > svg {
    display: none;
  }
  .buscador.kf-search #q {
    padding-left: 10px;
  }
}
@media (min-width: 601px) and (max-width: 900px) {
  .catalogo-navegacion .barra-i {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 20px;
  }
  .catalogo-navegacion .buscador.kf-search {
    grid-row: 2;
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
  }
  .catalogo-navegacion .acc {
    grid-row: 1;
    grid-column: 2;
    justify-self: end;
  }
}
