/* Buscador como en el sitio de pruebas: sugerencias, botón para borrar y página de resultados. */

/* Sugerencias */
#suggestions { display: none !important; }
form.dj-buscador { position: relative; overflow: visible; }
.dj-buscador__campo { position: relative; }
.dj-buscador input[name="q"] { padding-right: 34px; }
.dj-buscador input[name="q"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.dj-limpiar { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: #6c757d; font-size: 22px; line-height: 1; padding: 0 6px; cursor: pointer; }
.dj-limpiar:hover { color: #212529; }
.dj-sug { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 1050; list-style: none; margin: 0; padding: 4px 0; background: #fff; border: 1px solid #dee2e6; border-radius: 6px; box-shadow: 0 12px 30px rgba(0,0,0,.18); max-height: 360px; overflow: auto; text-align: left; }
.dj-sug a { display: flex; justify-content: space-between; gap: 14px; padding: 9px 14px; color: #212529; font-size: 15px; font-weight: 400; text-decoration: none; }
.dj-sug a:hover { text-decoration: none; color: #212529; }
.dj-sug small { color: #6c757d; font-size: 13px; white-space: nowrap; }
.dj-sug mark { background: none; color: #8b1a1a; font-weight: 600; padding: 0; }
.dj-sug li[aria-selected="true"] a, .dj-sug a:hover { background: #eef4fd; }
.dj-sug .dj-sug__todo a { border-top: 1px solid #e9ecef; color: #2c6ad8; font-size: 14px; }

/* Buscador de la cabecera con lupa */
.navbar form.dj-buscador input[name="q"] { padding-left: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 11px center / 16px 16px; }

/* Más consultados (portada) */
.dj-mas-consultados { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; }
.dj-mas-consultados span { color: rgba(255,255,255,.75); margin-right: 4px; }
.dj-mas-consultados a { padding: 3px 12px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); color: #fff; }
.dj-mas-consultados a:hover { background: rgba(255,255,255,.26); text-decoration: none; color: #fff; }

/* Página de resultados */
.dj-busqueda__titulo { font-size: 30px; font-weight: 400; margin: 0 0 4px; }
.dj-busqueda__conteo { color: #6c757d; margin: 0 0 14px; }
.dj-busqueda__modo { display: flex; gap: 6px; align-items: center; font-size: 14.5px; margin-bottom: 18px; }
.dj-busqueda__modo a { padding: 4px 12px; border: 1px solid #dee2e6; border-radius: 999px; background: #fff; color: #212529; }
.dj-busqueda__modo a:hover { text-decoration: none; border-color: #adb5bd; }
.dj-busqueda__modo a[aria-current="true"] { background: #343a40; color: #fff; border-color: #343a40; }
.dj-busqueda__tarjeta h2 { font-size: 21px; font-weight: 500; margin-bottom: 8px; }
.dj-busqueda__tarjeta h2 a { color: #212529; }
.dj-busqueda__tarjeta h2 a:hover { color: #2c6ad8; text-decoration: none; }
.dj-busqueda__tarjeta p { color: #212529; line-height: 1.6; margin-bottom: 14px; }
.dj-busqueda__exacta { display: inline-block; vertical-align: middle; font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 999px; background: #e3f7ef; color: #017a50; }
.dj-busqueda__cat { display: inline-block; font-size: 12.5px; font-weight: 500; padding: 2px 9px; border-radius: 999px; margin: 2px 2px 2px 0; }
.dj-busqueda__cat--primary { background: #e8f0fd; color: #2c6ad8; }
.dj-busqueda__cat--success { background: #e3f7ef; color: #017a50; }
.dj-busqueda__cat--warning { background: #fff4de; color: #9a6400; }
.dj-busqueda__autor { color: #212529; }
.dj-busqueda__autor:hover { text-decoration: none; color: #2c6ad8; }
.dj-busqueda__autor img { border-radius: 50%; object-fit: cover; }
.dj-busqueda__titulo b { font-weight: 600; }
.dj-busqueda__tarjeta p.dj-busqueda__def { margin-bottom: 10px; }
.dj-busqueda__tarjeta p.dj-busqueda__def:last-of-type { margin-bottom: 0; }
.dj-busqueda__pie { background: #fff; border-top: 1px solid #dee2e6; padding: 10px 1.5rem; gap: 8px; border-radius: 0 0 .25rem .25rem; }
.dj-busqueda__total { font-size: 13px; color: #212529; font-weight: 500; margin-right: 8px; }
.dj-busqueda__megusta { font-size: 13px; color: #6c757d; margin-right: 10px; }
