/* === SERVICIOS CIENTÍFICOS - ESTILOS GLOBALES === */


#buscador-global {
    background-color: #fff !important;
    max-width: 785px;
}

#buscador-global:focus {
    background-color: #fff !important;
}


#form-buscador-global .form-group {
	margin-bottom: 0px !important;
}


/* Títulos en vistas individuales */
.single-servicioscientificos .entry-title,
.single-tecnicas .entry-title,
.single-equipamiento .entry-title,
.single-aplicaciones .entry-title {
    font-size: 1.75rem;
    line-height: 1.3;
    font-weight: 600;
}

.celr_sub_sec_single {
	margin-bottom: 75px;
}


.equipo-localizacion,.celr_no_find_item {
	margin-top: 35px;
}

/* Estilo de página principal */
.sc-page-servicios {
    padding-bottom: 100px;
}

/* === BUSCADOR GLOBAL === */
#mensaje-aviso-busqueda {
	font-size: 1.5em;
}

#reset-buscador {
	background: #0066a1;
}

#reset-buscador:hover, #reset-buscador:focus {
	color: #ffa100 !important;
}

.sc-buscador-global {
    padding-top: 2rem;
    padding-bottom: 1rem;
    /*margin-bottom: 2rem;*/
    /*border-bottom: 2px solid #e5e5e5;*/
}

.sc-buscador-global .form-label {
    font-weight: 600;
}

.sc-buscador-global fieldset {
    border: none !important;
    margin-bottom: 20px !important;
}

.sc-buscador-global .form-group {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.sc-buscador-global .form-control,
.sc-buscador-global .form-select,
.sc-buscador-global #reset-buscador {
    height: 45px;
    line-height: 45px;
    padding: 0 1rem;
    font-size: 1rem;
}

.celr_box_input_buscador_global {
    padding: 0px !important;
}

/* === TARJETAS (Niveles 1 y 2) === */
.sc-card-item {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.4s ease;
}

.sc-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 275px;
}

.grid-servicios .sc-card {
    min-height: 275px;
}

.grid-areas .sc-card {
    min-height: 275px;
}

#grid-categorias .sc-card {
    min-height: 230px;
}


.tax-areas_cientificas #main,.tax-areas_cientificas #content-wrapper {
	background: #e7eef4;
}


.sc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.sc-card-image {
    margin-bottom: 1rem;
    /*height: 180px;*/
    display: flex;
    align-items: center;
    justify-content: center;
}

.sc-card-image img {
    max-height: 160px;
    max-width: 100%;
    object-fit: contain;
    display: block;
    height: auto;
    border-radius: 4px;
}

.sc-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 10px 0 1rem;
    line-height: normal !important;
}

.sc-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.sc-card-meta {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* === RESULTADOS DEL BUSCADOR === */

.d-none {
    display: none !important;
}

/* Ocultar mensajes con accesibilidad */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Agrupaciones por tipo */
.sc-buscador-agrupado-tipo {
    font-size: 1.2rem;
    font-weight: 600;
    color: #444;
    margin: 2rem 0 1rem;
    padding-bottom: 0.3rem;
}

/* Listado tipo Bootstrap */
#resultados-busqueda .list-group-item {
    padding: 0.75rem 1rem;
    border: 1px solid #eaeaea;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    background-color: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

#resultados-busqueda .list-group-item a {
    color: #377B33;
    font-weight: 600;
    text-decoration: none;
}

#resultados-busqueda .list-group-item a:hover {
    text-decoration: underline;
}

#resultados-busqueda .list-group-item .text-muted {
    font-size: 0.9rem;
    line-height: 1.3;
    color: #666;
}

#resultados-busqueda .mb-4 {
	margin-bottom: 50px;
}

.text-muted {
	color: #555c63 !important;
}

/* Título de sección de resultados */
/*#info-busqueda h2 {
    margin-bottom: 1.5rem;
}*/

/* Ajuste opcional para asegurar alineación visual perfecta */
#btn-buscar-global {
    height: 45px;
    font-size: 1rem;
    line-height: 1.5;
    width: 100% !important;
}

@media (max-width: 991px) {
	#btn-buscar-global {
		margin-top:15px;
	}
}


/* BTN buscar y limpiar */
#btn-buscar,#limpiar-buscador {
	margin-top: 25px;
	padding: 12px 0px;
	background: #0066a1;
	color: #fff;
	border-radius: 5px;
	border: 1px solid #0066a1;
}

#btn-buscar:hover,#limpiar-buscador:hover {
	color: #ffa100;
}

#loader-busqueda {
    margin-top: 1rem;
}

/* Nuevo loader bonito */
#loader-busqueda {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    height: 50px;
}

#loader-busqueda .dot {
    width: 15px;
    height: 15px;
    margin: 0 5px;
    border-radius: 50%;
    background-color: #0066a1;
    animation: bounce 1.4s infinite ease-in-out both;
}

#loader-busqueda .dot:nth-child(1) { animation-delay: -0.32s; }
#loader-busqueda .dot:nth-child(2) { animation-delay: -0.16s; }
#loader-busqueda .dot:nth-child(3) { animation-delay: 0; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}
