/* OMN-250. Composición propia de escritorio/tableta/móvil, sin dependencias. */
.omt-search-trigger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px; color: var(--wp--preset--color--ink); background: transparent; border-radius: 50%; text-decoration: none; }
.omt-search-trigger:hover { color: var(--wp--preset--color--teal); }
html.omt-search-open { overflow: hidden; }
.omt-search:not([open]) { display: none; }
.omt-search { --search-green: var(--wp--preset--color--brand-green, #a2d06d); box-sizing: border-box; position: fixed; inset: 0; width: 100%; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; padding: clamp(1.25rem, 4vw, 4.5rem); overflow: auto; background: #000; color: #fff; font-family: var(--wp--preset--font-family--system); color-scheme: dark; overscroll-behavior: contain; }
.omt-search::backdrop { background: #000; }
.omt-search *, .omt-search *::before, .omt-search *::after { box-sizing: border-box; }
.omt-search__layout { max-width: 1280px; margin: 0 auto; }
.omt-search__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: clamp(2.5rem, 8vh, 6rem); }
.omt-search__top h2 { font-size: .875rem; font-weight: 500; letter-spacing: .06em; color: var(--search-green); margin: 0; text-transform: uppercase; }
.omt-search button { font: inherit; cursor: pointer; border: 0; background: transparent; color: var(--search-green); }
.omt-search__close { display: flex; align-items: center; gap: .75rem; min-width: 48px; min-height: 48px; padding: .5rem; }
.omt-search__close > span:first-child { font-size: 2.5rem; line-height: 1; }
.omt-search__escape { font-size: .8125rem; color: #b4bcb4; }
.omt-search__field { display: flex; align-items: center; gap: 1rem; border-bottom: 2px solid var(--search-green); padding-bottom: 1.25rem; }
.omt-search input[type="search"] { min-width: 0; width: 100%; border: 0; border-radius: 0; background: transparent; color: var(--search-green); padding: .2rem 0; margin: 0; font: 500 clamp(2rem, 5.5vw, 5rem)/1.15 var(--wp--preset--font-family--system); letter-spacing: -.045em; box-shadow: none; }
.omt-search input::placeholder { color: var(--search-green); opacity: .85; }
/* El botón de borrar de input[type=search] lo pinta el navegador en blanco y competía
   con la flecha verde de enviar. Se repinta con máscara, no con un SVG de color: así
   el verde sigue viniendo del token y no se duplica un hex dentro de un data URI. */
.omt-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin-left: 1rem; cursor: pointer; background-color: var(--search-green); -webkit-mask: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M5 5l14 14M19 5L5 19'/%3E%3C/svg%3E"); mask: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M5 5l14 14M19 5L5 19'/%3E%3C/svg%3E"); }
.omt-search input:focus-visible { outline: 0; }
.omt-search__field:focus-within { box-shadow: 0 2px 0 var(--search-green); }
.omt-search__submit { flex: 0 0 56px; min-height: 56px; font-size: 3rem !important; padding: 0; }
.omt-search__form > p { font-size: .875rem; color: #b4bcb4; margin: 1rem 0 0; }
.omt-search__status { min-height: 1.5em; margin: 2rem 0 .5rem; font-size: .875rem; color: #b4bcb4; }
.omt-search__results { list-style: none; margin: 0; padding: 0; }
.omt-search__results li { border-bottom: 1px solid #344034; }
.omt-search__results a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 64px; padding: 1.1rem .75rem; color: #fff; text-decoration: none; font-size: clamp(1.125rem, 2vw, 1.65rem); }
.omt-search__results a > span:first-child { overflow-wrap: anywhere; }
.omt-search__results small { color: #b4bcb4; font-size: .75rem; flex-shrink: 0; }
.omt-search__results a:hover, .omt-search__results a:focus-visible { background: var(--search-green); color: #000; }
.omt-search__results a:hover small, .omt-search__results a:focus-visible small { color: #182310; }
.omt-search :focus-visible { outline: 3px solid var(--search-green); outline-offset: 5px; }
.omt-search__quick { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: 2rem; }
.omt-search__quick[hidden] { display: none; }
.omt-search__quick p { flex-basis: 100%; color: #b4bcb4; font-size: .875rem; margin: 0 0 .5rem; }
.omt-search__quick a { display: inline-flex; align-items: center; gap: 1.5rem; min-height: 44px; color: #fff; text-decoration: none; border-bottom: 1px solid #526352; }
.omt-search__quick a:hover { color: var(--search-green); }
@media (max-width: 782px) { .omt-search-trigger { margin-left: auto; } .omt-search__top { margin-bottom: 3rem; } .omt-search__escape { display: none; } .omt-search__results a { align-items: flex-start; } }
@media (max-width: 480px) { .omt-search__field { gap: .5rem; } .omt-search__submit { flex-basis: 44px; font-size: 2rem !important; } .omt-search__results a { flex-direction: column; gap: .35rem; padding-inline: .25rem; } .omt-search__quick { gap: .5rem 1rem; } }
