/* CC-F12. Search only; product cards and the rest of the header keep their owners. */
header.elementor-129 #casilla-busqueda,
.cc-f12-mobile-panel #casilla-busqueda { position: relative; min-width: 0; }
header.elementor-129 #casilla-busqueda .e-search-form,
.cc-f12-mobile-panel #casilla-busqueda .e-search-form {
  border: 2px solid #dce6f5;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 4px 12px rgb(25 67 130 / 8%);
  transition: border-color .16s, box-shadow .16s;
}
header.elementor-129 #casilla-busqueda .e-search-form:focus-within,
.cc-f12-mobile-panel #casilla-busqueda .e-search-form:focus-within {
  border-color: #093bc6;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #ff9c22;
}
header.elementor-129 #casilla-busqueda .e-search-input,
.cc-f12-mobile-panel #casilla-busqueda .e-search-input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding-inline: 16px 84px;
  border: 0;
  border-radius: 11px;
  color: #15264b;
  background: transparent;
  font: 600 16px/1.4 Manrope, Arial, sans-serif;
  box-shadow: none;
}
header.elementor-129 #casilla-busqueda .e-search-input-wrapper,
.cc-f12-mobile-panel #casilla-busqueda .e-search-input-wrapper { min-width: 0; }
header.elementor-129 #casilla-busqueda .e-search-input:focus,
.cc-f12-mobile-panel #casilla-busqueda .e-search-input:focus { outline: 0; box-shadow: none; }
header.elementor-129 #casilla-busqueda .e-search-input::placeholder,
.cc-f12-mobile-panel #casilla-busqueda .e-search-input::placeholder { color: #52637d; opacity: 1; }
header.elementor-129 #casilla-busqueda .e-search-input-wrapper > svg.e-fas-times,
.cc-f12-mobile-panel #casilla-busqueda .e-search-input-wrapper > svg.e-fas-times { display: none !important; }
header.elementor-129 #casilla-busqueda .cc-f12-clear,
.cc-f12-mobile-panel #casilla-busqueda .cc-f12-clear {
  position: absolute;
  z-index: 3;
  top: 50%; right: 49px;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  color: #52637d;
  background: transparent;
  font: 26px/1 Arial, sans-serif;
  cursor: pointer;
}
#casilla-busqueda .cc-f12-clear[hidden] { display: none !important; }
#casilla-busqueda .cc-f12-clear:hover { color: #093bc6; background: #edf3ff; }
#casilla-busqueda .e-search-submit {
  min-width: 44px;
  min-height: 44px;
  margin: 2px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #155af0, #073fc6);
  box-shadow: 0 3px 0 #00277e;
}
#casilla-busqueda .e-search-submit:hover { color: #10234a; background: linear-gradient(135deg, #ff9c22, #ff7510); box-shadow: 0 3px 0 #bd4b00; }
#casilla-busqueda .e-search-submit svg { fill: currentColor; }
#casilla-busqueda .e-search-submit:focus-visible,
#casilla-busqueda .cc-f12-clear:focus-visible,
.cc-f12-trigger:focus-visible,
.cc-f12-close:focus-visible,
#casilla-busqueda .cc-f12-all:focus-visible,
#casilla-busqueda .e-search-results a:focus-visible,
.cc-f12-empty-actions :focus-visible { outline: 3px solid #093bc6; outline-offset: 3px; }

#casilla-busqueda .e-search-results-container {
  z-index: 100;
  box-sizing: border-box;
  display: block;
  width: min(100%, 880px) !important;
  max-height: min(60vh, 540px);
  overflow: auto;
  margin-top: 8px;
  padding: 8px;
  border: 2px solid #dce6f5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 4px 4px 0 #ff9c22, 0 12px 30px rgb(9 59 198 / 15%);
}
#casilla-busqueda .e-search-results-container.cc-f12-stale { display: none !important; }
#casilla-busqueda .e-search-results-container.cc-f12-visible { display: block !important; visibility: visible !important; opacity: 1 !important; pointer-events: auto !important; }
#casilla-busqueda .e-search-results-container.cc-f12-keyboard a:focus,
#casilla-busqueda .e-search-results-container.cc-f12-keyboard:focus { outline: 3px solid #093bc6; outline-offset: 2px; }
#casilla-busqueda .e-search-results-container.cc-f12-categories-only .e-search-results { display: none !important; }
#casilla-busqueda .cc-f12-categories:empty { display: none; }
#casilla-busqueda .cc-f12-categories { display: grid; gap: 4px; padding-bottom: 7px; margin-bottom: 7px; border-bottom: 1px solid #dce6f5; }
#casilla-busqueda .cc-f12-categories a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 7px 12px; border-radius: 9px; color: #15264b; text-decoration: none; }
#casilla-busqueda .cc-f12-categories a:hover,
#casilla-busqueda .cc-f12-categories a:focus-visible { outline: 2px solid #093bc6; background: #edf3ff; }
#casilla-busqueda .cc-f12-categories span { color: #52637d; font: 700 12px/1.3 Manrope, Arial, sans-serif; text-transform: uppercase; letter-spacing: .05em; }
#casilla-busqueda .cc-f12-categories strong { color: #0631b6; font: 800 15px/1.4 Manrope, Arial, sans-serif; }
#casilla-busqueda .e-search-results-list { display: grid; gap: 4px; }
#casilla-busqueda .e-loop-item {
  margin: 0;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s, background-color .16s;
}
#casilla-busqueda .e-loop-item:hover,
#casilla-busqueda .e-loop-item:focus-within { border-color: #093bc6; background: #edf3ff; }
#casilla-busqueda .e-loop-item .e-con-inner { gap: 12px; align-items: center; }
#casilla-busqueda .e-loop-item .product_title,
#casilla-busqueda .e-loop-item .product_title a {
  color: #15264b;
  font: 700 14px/1.45 Manrope, Arial, sans-serif;
  overflow-wrap: anywhere;
}
#casilla-busqueda .e-loop-item .price { color: #0631b6; font: 800 14px/1.35 Manrope, Arial, sans-serif; white-space: normal; }
#casilla-busqueda .e-search-nothing-found-message { padding: 15px; color: #4e6286; font: 600 15px/1.5 Manrope, Arial, sans-serif; }
#casilla-busqueda .cc-f12-status {
  position: absolute;
  z-index: 102;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  padding: 7px 12px;
  border: 1px solid #dce6f5;
  border-radius: 9px;
  color: #152b56;
  background: #edf3ff;
  font: 600 13px/1.4 Manrope, Arial, sans-serif;
}
#casilla-busqueda .cc-f12-status:empty { display: none; }
#casilla-busqueda.cc-f12-has-status .e-search-results-container { margin-top: 42px; }
#casilla-busqueda .cc-f12-all {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  position: sticky;
  bottom: 0;
  z-index: 2;
  width: 100%;
  min-height: 40px;
  margin-top: 8px;
  padding: 7px 12px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #155af0, #073fc6);
  box-shadow: 0 3px 0 #00277e;
  font: 800 13px/1.4 Manrope, Arial, sans-serif;
  text-decoration: none;
}
#casilla-busqueda .cc-f12-all:hover { color: #10234a; background: linear-gradient(135deg, #ff9c22, #ff7510); box-shadow: 0 3px 0 #bd4b00; }
#casilla-busqueda .cc-f12-all[hidden] { display: none; }

.cc-f12-trigger { display: none; }
.cc-f12-native-close { display: none; }
/* Elementor's startup class must not hide the native form while its JS loads. */
header.elementor-129 #casilla-busqueda .e-search.hidden { visibility: visible; }
.cc-f12-narrow-row { display: none; }
.cc-f12-trigger-label { display: none; }
.cc-f12-mobile-panel[hidden] { display: none !important; }
.cc-f12-mobile-panel {
  position: fixed;
  z-index: 10001;
  top: var(--cc-f12-panel-top, 0px);
  left: 8px;
  width: calc(100vw - 16px);
  max-height: calc(100dvh - var(--cc-f12-panel-top, 0px) - 8px);
  overflow: auto;
  padding: 16px;
  border: 2px solid #dce6f5;
  border-radius: 0 0 16px 16px;
  background: #f3f6fc;
  box-shadow: 4px 4px 0 #ff9c22, 0 20px 30px rgb(9 59 198 / 18%);
}
.cc-f12-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; color: #0631b6; font: 800 18px/1.3 Manrope, Arial, sans-serif; }
.cc-f12-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 9px; color: #093bc6; background: #fff; font: 30px/1 Arial, sans-serif; cursor: pointer; }
.cc-f12-close:hover { background: #edf3ff; }

body.search main [data-elementor-id="484"] [data-id="c1c0761"] {
  min-height: 0;
  margin-bottom: 22px;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.search main [data-elementor-id="484"] [data-id="36bcc61"] { height: auto; min-height: 0; }
body.search main [data-elementor-id="484"] [data-id="36bcc61"] > .elementor-widget-container { margin: 0; }
body.search main [data-elementor-id="484"] [data-id="36bcc61"] h1 { margin: 0; color: #202020; font: 800 clamp(29px, 2.4vw, 36px)/1.2 Manrope, Arial, sans-serif; letter-spacing: -.025em; overflow-wrap: anywhere; text-transform: none; }
body.search main .cc-f2-products .elementor-widget-shortcode > .elementor-widget-container { height: 100%; }
body.search-no-results > .wd-page-wrapper .wd-page-title { display: none; }
body.search-no-results main .e-loop-nothing-found-message {
  max-width: 750px;
  margin: 0 auto 52px;
  padding: 28px;
  border: 2px solid #dce6f5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 4px 4px 0 #ff9c22, 0 8px 20px rgb(9 59 198 / 8%);
  text-align: left;
}
body.search-no-results main .e-loop-nothing-found-message__text { color: #15264b; font: 700 18px/1.5 Manrope, Arial, sans-serif; }
.cc-f12-empty-actions { display: grid; gap: 18px; margin-top: 20px; }
.cc-f12-empty-actions label { display: block; margin-bottom: 8px; color: #4e6286; font: 700 14px/1.4 Manrope, Arial, sans-serif; }
.cc-f12-empty-actions form > div { display: flex; gap: 10px; }
.cc-f12-empty-actions input { flex: 1; min-width: 0; min-height: 48px; padding: 10px 14px; border: 2px solid #dce6f5; border-radius: 10px; background: #fff; color: #15264b; font: 600 16px/1.4 Manrope, Arial, sans-serif; }
#cc-f12-retry { box-sizing: border-box; height: 48px; min-height: 48px; padding: 10px 14px; border: 2px solid #dce6f5; background: #fff; color: #15264b; font: 600 16px/1.4 Manrope, Arial, sans-serif; }
.cc-f12-empty-actions input:focus { outline: 3px solid #093bc6; outline-offset: 3px; }
.cc-f12-empty-actions button { min-height: 48px; padding: 10px 20px; border: 0; border-radius: 10px; background: linear-gradient(135deg, #155af0, #073fc6); box-shadow: 0 3px 0 #00277e; color: #fff; font: 800 15px/1.4 Manrope, Arial, sans-serif; cursor: pointer; }
.cc-f12-empty-actions button:hover { background: linear-gradient(135deg, #ff9c22, #ff7510); color: #10234a; box-shadow: 0 3px 0 #bd4b00; }
.cc-f12-empty-actions > a { color: #093bc6; font: 700 15px/1.4 Manrope, Arial, sans-serif; text-decoration: underline; }

@media (max-width: 1024px) {
  /* Match the enhanced mobile layout from first paint; the SSR trigger opens this same form. */
  header.elementor-129:not(.cc-f12-enhanced):has(.cc-f12-trigger[data-cc-f12-native]) #casilla-busqueda:not(:target) { display: none; }
  /* The one real form remains reachable by its fragment before/without JS. */
  header.elementor-129:not(.cc-f12-enhanced) .elementor-hidden-mobile:has(#casilla-busqueda:target),
  header.elementor-129:not(.cc-f12-enhanced) [data-id="f4f1ca4"]:has(#casilla-busqueda:target) { display: contents !important; }
  header.elementor-129:not(.cc-f12-enhanced) #casilla-busqueda:target {
    display: block !important; position: fixed; z-index: 1001;
    top: 80px; left: 12px; right: 12px; width: auto !important;
    padding: 16px; background: #fff; border: 2px solid #dce6f5; border-radius: 13px;
    box-shadow: 0 12px 28px #15264b26;
  }
  header.elementor-129:not(.cc-f12-enhanced) #casilla-busqueda:target .cc-f12-native-close { display: flex; align-items: center; min-height: 44px; width: fit-content; margin: 0 0 10px auto; color: #093bc6; text-decoration: underline; }
  body.cc-f12-mobile-open .xoo-wsc-basket { display: none; }
  header.elementor-129 [data-id="3b47552"] { position: relative; }
  header.elementor-129 .cc-f12-trigger {
    position: absolute;
    z-index: 6;
    top: 5px;
    left: 75px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid #dce6f5;
    border-radius: 10px;
    color: #fff;
    background: #093bc6;
    cursor: pointer;
  }
  header.elementor-129 .cc-f12-trigger:hover,
  header.elementor-129 .cc-f12-trigger[aria-expanded="true"] { color: #10234a; border-color: #ff9c22; background: #ff9c22; }
  .cc-f12-trigger svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .cc-f12-mobile-panel #casilla-busqueda { display: block !important; width: 100% !important; }
  .cc-f12-mobile-panel #casilla-busqueda .e-search-results-container { position: static; width: 100%; max-height: min(50dvh, 440px); }
  .cc-f12-mobile-panel #casilla-busqueda .cc-f12-status { position: static; margin-top: 8px; }
  .cc-f12-mobile-panel #casilla-busqueda.cc-f12-has-status .e-search-results-container { margin-top: 8px; }
  .cc-f12-mobile-panel #casilla-busqueda .e-loop-item .e-con-inner { display: block; }
  .cc-f12-mobile-panel #casilla-busqueda .e-loop-item .elementor-widget-woocommerce-product-title,
  .cc-f12-mobile-panel #casilla-busqueda .e-loop-item .elementor-widget-woocommerce-product-price { width: 100% !important; max-width: 100% !important; }
  .cc-f12-mobile-panel #casilla-busqueda .e-loop-item .price { margin-top: 3px; }
}
@media (max-width: 480px) {
  .cc-f12-mobile-panel { padding: 12px; }
  .cc-f12-empty-actions form > div { flex-direction: column; }
  body.search main [data-elementor-id="484"] [data-id="c1c0761"] { padding: 4px 0; margin-bottom: 18px; }
  body.search main [data-elementor-id="484"] [data-id="36bcc61"] h1 { font-size: 28px; }
  body.search-no-results main .e-loop-nothing-found-message { padding: 20px; }
}
@media (max-width: 360px) {
  header.elementor-129 .cc-f12-narrow-row { display: block; min-height: 60px; padding: 6px 12px 10px; background: #093bc6; }
  header.elementor-129 [data-id="3b47552"] > .cc-f12-trigger[data-cc-f12-native] {
    position: absolute; top: calc(100% + 6px); left: 12px; width: calc(100% - 24px);
    display: flex; justify-content: center; gap: 9px; color: #093bc6; background: #fff;
  }
  header.elementor-129 [data-id="3b47552"] > .cc-f12-trigger[data-cc-f12-native] .cc-f12-trigger-label { display: inline; font: 800 14px/1.3 Manrope,Arial,sans-serif; }
  header.elementor-129 .cc-f12-narrow-row .cc-f12-trigger {
    position: static;
    display: flex;
    justify-content: center;
    gap: 9px;
    width: 100%;
    color: #093bc6;
    background: #fff;
  }
  header.elementor-129 .cc-f12-narrow-row .cc-f12-trigger-label { display: inline; font: 800 14px/1.3 Manrope, Arial, sans-serif; }
}
@media (prefers-reduced-motion: reduce) {
  #casilla-busqueda .e-search-form,
  #casilla-busqueda .e-loop-item { transition: none; }
}
