 :root {
            --sii-blue: #002d61;
            --sii-orange: #f36f21;
            --sii-bg-light: #f5f8fa;
        }
        .color-naranjo { color: #f36f21; font-weight: bold; }
      .bg-dark-blue {
    background-color: #002C48;
    color: #ffffff;
    padding: 10px 0;
    margin: 0 0 -49px 0;
}
        .bg-light-gray { background-color: #f9f9f9; padding: 40px 0; border-bottom: 1px solid #ddd;}
        .bg-light-blue { background-color: #eaf1f8; padding: 40px 0; }
        .btn-naranjo { background-color: #f36f21; color: white; border: none; font-weight: bold;}
        .btn-naranjo:hover { background-color: #d95e1a; color: white; }
        .box-destacado {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px 15px;
    width: 100%; /* Fundamental para que se expanda en Flexbox */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Transición más fluida */
    /* Centrado interno */
    display: flex;
    align-items: center; 
}
        .box-destacado h5 {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 0;
    width: 100%;
    display: flex;
    justify-content: space-between; /* Separa texto a la izq e ícono a la der */
    align-items: center;
    text-align: left;
    transition: color 0.3s ease;
}
/* --- Mejoras del Hover --- */
.box-destacado:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); /* Sombra más profunda y difusa */
    transform: translateY(-5px); /* Efecto de "flote" hacia arriba */
    border-color: #f36f21; /* Borde sutil institucional */
    cursor: pointer;
}
/* Cambia el color del texto y del ícono al hacer hover */
.box-destacado:hover h5,
.box-destacado:hover h5 span {
    color: #f36f21;
}
        .ayuda-seccion-title { margin-bottom: 30px; font-weight: bold; color: #333; }
        .ayuda-seccion-title.blanco { color: #002C48; }
        /* Ajuste de enlaces útiles */
        .enlace-util h5 { color: #666; font-size: 14px; font-weight: bold; margin-bottom: 5px;}
        .enlace-util a { color: #f36f21; font-size: 13px; text-decoration: none; }
        .enlace-util a:hover { text-decoration: underline; }
/* --- Soporte Flexbox para alinear alturas en Canales de Contacto --- */
.row-canales-contacto {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.row-canales-contacto > [class*='col-'] {
    display: flex;
    margin-bottom: 20px;
}
/* --- Estructura del Módulo de Contacto --- */
.box-contacto {
    background-color: transparent;
    border: 1px solid transparent; 
    border-radius: 8px;
    padding: 30px 15px;
    width: 100%;
    /* Centrado de contenido interno */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Mantiene los textos a la misma altura desde arriba */
    text-decoration: none !important; /* Evita el subrayado del enlace */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
/* Transición para el ícono */
.box-contacto img {
    width: 20%;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}
/* Base de los textos */
.box-contacto h5 {
    font-weight: 300;
    color: #ffffff;
    margin: 0;
    text-align: center;
    transition: color 0.3s ease;
}
/* Fuerza el color naranja si la clase está presente (como en Asistencia Telefónica) */
.box-contacto h5.color-naranjo {
    color: #f36f21;
}
/* --- Mejoras del Hover --- */
.box-contacto:hover {
    background-color: rgba(255, 255, 255, 0.05); /* Un fondo blanco muy transparente */
    border-color: rgba(255, 255, 255, 0.1); /* Borde sutil para enmarcar el área de clic */
    transform: translateY(-5px); /* Efecto de flote */
}
/* Animación de los elementos internos al hacer hover en la caja */
.box-contacto:hover img {
    transform: scale(1.1); /* El ícono crece un 10% */
}
.box-contacto:hover h5 {
    color: #f36f21; /* Todos los textos se vuelven naranja al pasar el mouse */
}
.search-results {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: clip;
}
.ai-summary {
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9ff 0%, #e6f3ff 100%);
    border: 1px solid #d0e7ff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
}
/**********************************************************/
/* ==========================================================================
   MÓDULO BÚSQUEDA (AYUDAS) - OPTIMIZADO
   ========================================================================== */
/* Contenedor principal */
.cuadro-intro.material-ayuda {
    width: 100%;
    position: relative;
    /* max-width: 600px; Puedes descomentar esto si no quieres que sea 100% ancho en desktop */
}
/* Wrapper del input y los íconos */
.ayudaSearch {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}
/* 1. El Input de Texto */
.ayudaSearch input[type=text] {
    width: 100%;
    height: 45px; /* Un poco más alto para mejorar el toque en móvil */
    padding: 5px 40px 5px 35px; /* El padding deja espacio para la lupa (izq) y la X (der) */
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); /* Sombra más sutil y moderna */
    transition: all 0.3s ease;
    outline: none;
    margin: 0;
}
.ayudaSearch input[type=text]::placeholder {
    color: #a0a0a0;
    font-size: 14px;
}
.ayudaSearch input[type=text]:focus {
    border-color: #337ab7;
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.08), 0 0 8px rgba(51, 122, 183, 0.4);
}
/* 2. Ícono de Lupa (Izquierda) */
.ayudaSearch i.fa-search {
    position: absolute;
    left: 12px;
    color: #f36f21; /* Le di el naranja institucional para que resalte */
    font-size: 16px;
    z-index: 2;
    pointer-events: none; /* Permite hacer clic "a través" de la lupa hacia el input */
}
/* 3. Botón de Limpiar Búsqueda "X" (Derecha) */
#limpiar_busqueda-index {
    position: absolute;
    right: 12px;
    z-index: 3;
    display: flex; /* Flex centra el ícono perfectamente */
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
#limpiar_busqueda-index i.fa-times-circle {
    font-size: 18px;
    color: #999;
    transition: color 0.2s;
}
#limpiar_busqueda-index:hover i.fa-times-circle {
    color: #d9534f; /* Se pone rojo sutil al pasar el mouse para indicar "borrar" */
}
/* 4. Contenedor de Resultados (El Desplegable) */
#filter-records-index {
    position: absolute;
    top: 100%; /* Nace justo debajo del input */
    left: 0;
    width: 100%;
    margin-top: 5px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15); /* Sombra de elevación para que flote sobre el contenido */
    z-index: 10;
    /* max-height: 300px; overflow-y: auto; Recomiendo descomentar esto si el buscador arroja muchos resultados */
}
/* Estilos para el botón Buscar (En caso de que lo descomentes en el HTML) */
.ayudaSearch button.btn-default {
    position: absolute;
    right: 0;
    height: 100%;
    border-radius: 0 8px 8px 0;
    padding: 0 20px;
    background-color: #f36f21;
    color: white;
    border: none;
    font-weight: bold;
}
/* ==========================================================================
   DROPDOWN RESULTADOS DE BÚSQUEDA (JS AUTOCOMPLETADO)
   ========================================================================== */
/* Contenedor Flotante de Resultados */
#box_index_search
#box_index_search #filter-records-index {
    position: absolute;
    top: calc(100% + 5px); /* Nace justo debajo del input, con un leve respiro */
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12); /* Sombra amplia para que parezca app */
    z-index: 1000;
    max-height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
}
/* Título Principal "Resultados:" */
#box_index_search  #filter-records-index p.titulo {
    font-size: 14px;
    color: #f36f21;
    font-weight: bold;
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #f5f8fa;
    width: calc(100% - 25px); /* Deja espacio para no pisar la X de cerrar */
}
/* Botón Cerrar Dropdown (La X superior derecha) */
#box_index_search  #filter-records-index .cerrar_busqueda {
    position: absolute;
    right: 15px;
    top: 13px;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s;
}
#box_index_search  #filter-records-index .cerrar_busqueda:hover {
    color: #d9534f; /* Rojo sutil */
}
/* Lista de Resultados (Reseteo) */
#box_index_search #filter-records-index .cajaul ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
/* Subtítulos de Categoría (Ej: "Servicios Online", "Otras Coincidencias") */
#box_index_search #filter-records-index .subtitulo_menu,
#box_index_search #filter-records-index .subtitulo_menu, #box_index_search #filter-records-index ul p.subtitulo_menu {
    background: #337ab7;
    font-size: 11px;
    text-transform: uppercase;
    color: #fff;
    font-weight: bold;
    margin: 15px 0 5px 0;
    letter-spacing: 0.5px;
    display: block;
    padding: 5px;
}
/* Items de Resultados (Los Enlaces) */
#box_index_search #filter-records-index ul li.item {
    padding: 0;
    margin: 0 0 2px 0;
    border-radius: 4px;
    transition: background-color 0.2s;
}
#box_index_search #filter-records-index ul li.item a {
    display: block;
    padding: 8px 10px;
    text-decoration: none;
}
#box_index_search #filter-records-index ul li.item p {
    margin: 0;
    font-size: 13px;
    color: #002d61; /* Azul institucional */
    font-weight: 500;
}
/* --- ESTADOS INTERACTIVOS (HOVER Y NAVEGACIÓN POR TECLADO JS) --- */
/* Tu JS agrega la clase .selected cuando el usuario usa las flechas del teclado */
#filter-records-index ul li.item:hover,
#filter-records-index ul li.selected {
    background-color: #eaf1f8; /* Fondo celeste suave */
}
#filter-records-index ul li.item:hover p,
#filter-records-index ul li.selected p {
    color: #f36f21; /* El texto se vuelve naranja */
}
/* --- SCROLLBAR PERSONALIZADA (ESTILO MODERNO) --- */
#filter-records-index::-webkit-scrollbar {
    width: 6px;
}
#filter-records-index::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 4px;
}
#filter-records-index::-webkit-scrollbar-thumb {
    background: #ccc; 
    border-radius: 4px;
}
#filter-records-index::-webkit-scrollbar-thumb:hover {
    background: #999; 
}
.cajaul {
    background: #fff;
}



@media (max-width: 480px) {
    section.buscador_sii {
        margin: 70px 0 0 0;
    }
}















