/* TROPHUB81 V51 · búsqueda inmediata, tipografía uniforme y unión fotográfica sin bandas */

/* Una sola tipografía para el mismo menú en portada, inventario y fichas.
   No altera la tipografía de títulos ni el logo. */
body.mi11 .mi-header .mi-desktop-nav a,
body.mi11 .mi-header .mi-mobile-menu a,
body.mi11 .mi-header .mi-header-request,
body.mi11 .mi-header .mi-admin-link {
  font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue","Segoe UI",Arial,sans-serif !important;
  letter-spacing:.005em !important;
  font-weight:540 !important;
  text-transform:none !important;
}
body.mi11 .mi-header .mi-desktop-nav a,
body.mi11 .mi-header .mi-header-request,
body.mi11 .mi-header .mi-admin-link {font-size:14px !important;}
body.mi11 .mi-header .mi-mobile-menu a {font-size:16px !important;}

/* Eliminar los velos laterales fijos de V49/V50: estaban a ambos extremos del
   contenedor, NO donde terminaba la foto contenida, creando un borde oscuro. */
@media (min-width:761px) {
  body.th30-home.th31-home.th33-home .mi-v16-hero-visual.th30-hero-stage::before,
  body.th30-home.th31-home.th33-home .mi-v16-hero-visual.th30-hero-stage::after,
  body.th30-home.th31-home.th33-home .mi-v16-hero-visual .th50-edge-feather {
    display:none !important;
    content:none !important;
  }
  body.th30-home.th31-home.th33-home .mi-v16-hero-visual img.th32-hero-ambient,
  body.th30-home.th31-home.th33-home .mi-v16-hero-slide.is-active .mi-v16-hero-visual img.th32-hero-ambient {
    opacity:1 !important;
    filter:blur(12px) brightness(.70) saturate(.88) !important;
    transform:scale(1.055) !important;
  }
  /* --th51-* se calcula en JS tomando el ancho REAL que ocupa el archivo con
     object-fit: contain; sirve igual para retratos y fotos apaisadas. */
  body.th30-home.th31-home.th33-home .mi-v16-hero-visual img.th30-hero-original,
  body.th30-home.th31-home.th33-home .mi-v16-hero-slide.is-active .mi-v16-hero-visual img.th30-hero-original,
  body.th30-home.th31-home.th33-home .th33-hero-portrait .mi-v16-hero-visual img.th30-hero-original,
  body.th30-home.th31-home.th33-home .th33-hero-panorama .mi-v16-hero-visual img.th30-hero-original {
    -webkit-mask-image:linear-gradient(90deg,
      transparent 0px,
      transparent var(--th51-left-start,0px),
      #000 var(--th51-left-full,6%),
      #000 var(--th51-right-full,94%),
      transparent var(--th51-right-end,100%),
      transparent 100%) !important;
    mask-image:linear-gradient(90deg,
      transparent 0px,
      transparent var(--th51-left-start,0px),
      #000 var(--th51-left-full,6%),
      #000 var(--th51-right-full,94%),
      transparent var(--th51-right-end,100%),
      transparent 100%) !important;
  }
}

/* En celular se mantiene el ajuste vertical existente; quitar solo capas de V50. */
body.th30-home.th31-home.th33-home .mi-v16-hero-visual .th50-edge-feather {display:none !important;}

/* Búsqueda de portada: sugerencias reales, en el mismo lugar donde se escribe. */
body.mi11 .th51-home-search {position:relative;max-width:100%;z-index:8;}
body.mi11 .th51-home-form {position:relative;gap:12px;}
body.mi11 .th51-home-form input {min-width:0;flex:1;}
body.mi11 .th51-home-icon {flex:0 0 auto;color:#e6d9c7;display:grid;place-items:center;opacity:.85;}
body.mi11 .th51-home-icon svg {width:22px;height:22px;}
body.th51-live-on .th51-submit-fallback{display:none !important;}
body.mi11 .th51-suggestions {
  position:absolute;left:0;right:0;top:calc(100% + 8px);z-index:40;
  max-height:min(50vh,380px);overflow:auto;
  border-radius:12px;border:1px solid #ffffff25;
  background:#171a1c;box-shadow:0 24px 55px #0009;
  color:#f5f2ed;padding:7px;
}
body.mi11 .th51-suggestions[hidden]{display:none !important;}
body.mi11 .mi-search-section{overflow:visible;}
body.mi11 .mi-search-copy{position:relative;z-index:3;}
body.mi11 .th51-suggestion-label{margin:8px 10px 11px;font-size:11px;color:#c8c0b8;letter-spacing:.04em;}
body.mi11 .th51-suggestion-link {display:flex;align-items:center;gap:13px;padding:9px 10px;color:inherit;text-decoration:none;border-radius:8px;min-height:65px;}
body.mi11 .th51-suggestion-link:hover,
body.mi11 .th51-suggestion-link:focus-visible{background:#ffffff13;outline:1px solid #ffffff25;}
body.mi11 .th51-suggestion-link img {width:77px;height:55px;object-fit:contain;background:#0b0d0e;border-radius:6px;flex:none;}
body.mi11 .th51-suggestion-link strong {display:block;font-size:14px;font-weight:600;line-height:1.25;}
body.mi11 .th51-suggestion-link small {display:block;font-size:11px;color:#b6aea5;margin-top:4px;}
body.mi11 .th51-suggestion-more {display:block;padding:13px 12px;color:#eee2d2;border-top:1px solid #ffffff1d;text-decoration:none;font-size:12px;font-weight:650;}
body.mi11 .th51-suggestion-more:hover{text-decoration:underline;}

/* Inventario: mismo formulario, pero sin pasos extra. */
body.mi18 .th51-instant-form .mi18-query {position:relative;}
body.mi18 .th51-instant-form .th51-query-hint {flex:none;padding:0 15px 0 0;color:#a8a5a0;font-size:11px;white-space:nowrap;}
body.mi18 .th51-search-status{min-height:20px;color:#e1cbb2;font-size:12px;margin:4px 0 0;}
body.mi18 .th51-search-status[hidden]{display:none;}
body.mi18 .th51-instant-form[aria-busy="true"] .mi18-query{border-color:#c9b495;}
body.mi18 [data-th51-results] {min-height:150px;}
@media(max-width:650px){
  body.mi18 .th51-instant-form .th51-query-hint{display:none;}
  body.mi11 .th51-suggestion-link img{width:64px;height:50px;}
  body.mi11 .th51-suggestions{max-height:45svh;}
}
