/* =========================================
   ignit-global.css
   Estilos propios cargados en todas las páginas.
   ========================================= */

/* Footer: título "Utilidades" con línea decorativa */
.footer-hedding-wrapper {
    position: relative;
    text-align: center;
    margin-bottom: 15rem;
}

.utilidades-titulo {
    position: relative;
    display: inline-block;
    padding: 0 1rem;
    background-color: #1a1a1a;
    z-index: 1;
}

.footer-hedding-wrapper::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #2b2b2b;
    z-index: 0;
}

/* =========================================
   Sidebar de noticias: widget galería
   ========================================= */

.sidebar-widget .widget-gallery ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.sidebar-widget .widget-gallery ul li {
    width: 100%;
}

.sidebar-widget .widget-gallery ul li img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
    object-fit: cover;
}

.widget-gallery ul li img {
    filter: blur(0.6px) sepia(0.5) brightness(1.4) saturate(0.4);
    transition: transform 0.3s ease, filter 0.3s ease;
    transform: scale(1);
}

.widget-gallery ul li img:hover {
    transform: scale(1.1);
    filter: none;
    z-index: 4;
}

/* =========================================
   Single post: navegación entre posts
   ========================================= */

.retorno-doble-alineado {
    display: flex;
    align-items: center;
    margin-top: 2em;
    font-size: 0.95em;
    flex-wrap: wrap;
}

.retorno-izq {
    margin-left: 0;
}

.retorno-der {
    margin-left: auto;
    margin-right: 5em;
}

.retorno-doble-alineado i {
    margin: 0 5px;
}

/* =========================================
   Búsqueda: resultados
   ========================================= */

.resultado.oculto,
.resultado.oculto-ap {
    display: none;
}

/* Botón "ver más" en listados de cards (categorías, etiquetas) */
.btn-ver-mas-cards {
    display: block;
    margin: 1.5em auto 0;
}

h3.titulo-resultados {
    font-size: 1.4rem;
    font-weight: 600;
    color: #84ba3f;
    margin-bottom: 1.2em;
}

.resultado {
    margin-top: 0.6em;
    margin-bottom: 0;
    padding-bottom: 0.8em;
}

.resultado h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.3em;
    line-height: 1.4;
}

.resultado h4 a {
    text-decoration: none;
}

.resultado h4 a:hover {
    text-decoration: underline;
}

.snippet {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #444;
    margin-bottom: 0.3em;
}

.snippet small {
    font-size: 0.8rem;
    color: #888;
}

.snippet mark {
    background-color: #fff3cd;
    color: #333;
    padding: 0 2px;
    border-radius: 2px;
}

#mostrarMasResultados {
    color: white;
    border: none;
    padding: 0.6em 1.2em;
    font-size: 1em;
    cursor: pointer;
}

#mostrarMasResultados:hover {
    background-color: #323232;
}

/* =========================================
   Componente: select personalizado (usado en /archivo/)
   ========================================= */

.custom-select {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #2b2b2b;
    border-radius: 8px;
    padding: 5px;
    font-size: 16px;
    color: #333;
    cursor: pointer;
}

.custom-select:focus {
    border-color: #363636;
    box-shadow: 0 0 10px rgba(54, 54, 54, 0.8);
}

/* =========================================
   About us: anchor offset para navbar fija
   ========================================= */

[id="context"] {
    scroll-margin-top: 140px;
}
