/* Buscador: claro, legible y consistente con la identidad de AMTEX. */
body dialog.search{width:min(720px,calc(100vw - 28px));max-width:720px;max-height:min(86dvh,760px);padding:0;border:0;border-radius:20px;background:#fff;color:#1d3e86;box-shadow:0 28px 90px #0b28564d;overflow:hidden}
body dialog.search::backdrop{background:rgba(5,22,48,.62);backdrop-filter:blur(5px)}
body .search__inner{max-height:min(86dvh,760px)}
.busqueda-cabecera{padding:24px 28px 13px;background:linear-gradient(120deg,#eef5ff,#fff 75%)}
.busqueda-cabecera__marca{display:block;font-size:.67rem;font-weight:800;letter-spacing:.14em;color:#53759e}
body .busqueda-cabecera h2{font-family:AMTEX Inter,Arial,sans-serif!important;font-size:1.36rem!important;font-weight:800!important;letter-spacing:-.025em!important;line-height:1.2;margin:8px 0 4px;color:#1d3e86}
.busqueda-cabecera p{font-size:.84rem;color:#536775;margin:0;line-height:1.4}
body .search__field{margin:0 22px;padding:10px 13px;border:1.5px solid #c4d5e7;border-radius:12px;background:#fff;box-shadow:0 4px 14px #1d3e8610}
body .search__field:focus-within{border-color:#1d3e86;box-shadow:0 0 0 3px #1d3e861c}
body .search__field input{font-size:1rem;min-height:32px;color:#1d3e86}
body .search__close{border:0;background:#edf3f9;border-radius:8px;color:#1d3e86;padding:.4rem .6rem}
body .search__help{border:0;background:transparent;padding:8px 28px 0;color:#536775;font-size:.72rem}
body .search__results{padding:18px 22px 24px}
body .search__start-title,body .search__group-title{font-family:AMTEX Inter,Arial,sans-serif!important;color:#536775!important;letter-spacing:.08em;font-size:.69rem!important;font-weight:800!important;margin:0 0 9px}
body .search__chip{border:1px solid #d4e2f0;background:#f2f7fc;color:#1d3e86;border-radius:10px;padding:.65rem .85rem;font-size:.83rem}
body .search__chip:hover,body .search__chip:focus-visible{background:#e4effa;border-color:#7ba0cd}
.busqueda-sugerencia{color:#536775;font-size:.81rem;line-height:1.6;margin:18px 0}
.busqueda-sugerencia button{color:#1d3e86;text-decoration:underline;text-underline-offset:3px;border:0;padding:0;background:none;font-weight:700;cursor:pointer}
.busqueda-catalogo{display:inline-flex;align-items:center;gap:12px;color:#1d3e86!important;font-weight:700;font-size:.85rem;text-decoration:none}
body .search__item{grid-template-columns:56px minmax(0,1fr) auto;gap:12px;border:1px solid #e4edf6;border-radius:12px;padding:9px;margin-bottom:8px;align-items:center}
body .search__item:hover,body .search__item:focus-visible{background:#f1f7ff;border-color:#9cbad8;outline:none}
body .search__thumb{width:54px;height:54px;border-radius:9px;background:#f5f8fc;border:0}
body .search__text b{color:#1d3e86;font-size:.9rem}body .search__text small{color:#536775;font-size:.76rem}
.busqueda-flecha{font-size:1rem;color:#1d3e86}
body .search__empty{padding:22px 4px;text-align:left;color:#536775}body .search__empty p{margin:8px 0}
@media(max-width:600px){body dialog.search{margin:3vh auto;width:calc(100vw - 20px);max-height:90dvh;border-radius:16px}body .search__inner{max-height:90dvh}.busqueda-cabecera{padding:19px 18px 12px}.busqueda-cabecera h2{font-size:1.2rem!important}body .search__field{margin:0 14px;padding:8px 10px}body .search__field input{font-size:16px}body .search__results{padding:16px 14px 20px}body .search__item{grid-template-columns:46px minmax(0,1fr) auto;gap:9px}body .search__thumb{width:44px;height:44px}}
@media(prefers-reduced-motion:reduce){body dialog.search{animation:none!important}}

body dialog.search .busqueda-cabecera h2{font-family:AMTEX Inter,Arial,sans-serif!important;font-weight:800!important;letter-spacing:-.025em!important}
body .search-btn:focus-visible{outline:3px solid #84add7;outline-offset:3px}
body .search-btn:hover{background:#edf5ff;box-shadow:0 5px 18px #1d3e8620}
/* Cierre visible y fácil de encontrar en la esquina superior. */
body dialog.search .search__inner{position:relative}
body dialog.search .busqueda-cabecera{padding-right:62px}
body dialog.search .search__close{position:absolute;top:15px;right:16px;z-index:2;display:grid;place-items:center;width:38px;height:38px;padding:0;border-radius:50%;font-size:24px;line-height:1}
body dialog.search .search__close-esc{display:none}
body dialog.search .search__close-x{display:block;font-size:24px;line-height:1}
body dialog.search .search__close:focus-visible{outline:3px solid #84add7;outline-offset:2px}
@media(max-width:600px){body dialog.search .search__close{top:12px;right:12px}}
body dialog.search .search__field{position:static}
