/*
Theme Name: IDICAP Web
Author: IDICAP
Description: Tema del centro de investigación IDICAP. Diseño basado en la plantilla HTML "Leno" de Inovatik (Bootstrap 4). Portada con servicios, noticias y enlaces a sistemas (OJS, Eventos, DSpace), tipos de contenido Servicios y Sistemas, publicaciones por categorías, formulario de contacto por AJAX y opciones en el Personalizador.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: idicapweb
*/

/* Los estilos visuales del template están en assets/css/styles.css.
   Aquí van los ajustes propios de WordPress y los componentes nuevos.
   Paleta del template: fondo #2f2c3d, fondo oscuro #262431, acento #00c9db, texto #f1f1f8. */

/* ---------- WordPress ---------- */
.admin-bar .fixed-top { top: 32px; }
@media screen and (max-width: 782px) {
	.admin-bar .fixed-top { top: 46px; }
}

.navbar .custom-logo-link img,
.navbar .logo-image img { max-height: 40px; width: auto; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
	background-color: #fff; clip: auto !important; clip-path: none; color: #333;
	display: block; font-size: 0.875rem; height: auto; left: 5px; padding: 15px 23px 14px;
	text-decoration: none; top: 5px; width: auto; z-index: 100000;
}

/* Contenido del editor */
.entry-content > * { margin-bottom: 1.5rem; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content ul:not(.list-unstyled),
.entry-content ol { padding-left: 1.25rem; }
.entry-content a { color: #00c9db; }
.entry-content blockquote {
	border-left: 4px solid #00c9db; padding: 0.5rem 0 0.5rem 1.25rem; font-style: italic;
}
.entry-content table { width: 100%; }
.entry-content th, .entry-content td { border: 1px solid rgba(241, 241, 248, 0.2); padding: 0.5rem 0.75rem; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { max-width: 100%; }
.wp-caption, .wp-block-image figcaption { font-size: 0.875rem; color: #b8b6c8; text-align: center; }
.sticky, .bypostauthor, .gallery-caption { /* clases requeridas por WP */ }

.post-meta { font-size: 0.875rem; color: #b8b6c8; margin-bottom: 0.75rem; }
.post-meta a { color: #00c9db; text-decoration: none; }

/* Navegación entre entradas */
.post-navigation { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(241, 241, 248, 0.15); }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; }
.post-navigation a { text-decoration: none; }
.post-navigation a:hover { color: #00c9db; }

/* Paginación */
.pagination-wrapper .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.pagination-wrapper .page-numbers {
	display: inline-block; padding: 0.375rem 0.875rem; border: 1px solid rgba(241, 241, 248, 0.3);
	border-radius: 4px; color: #f1f1f8; text-decoration: none;
}
.pagination-wrapper .page-numbers.current,
.pagination-wrapper a.page-numbers:hover { background: #00c9db; border-color: #00c9db; color: #fff; }

/* Comentarios */
.comments-area { margin-top: 3rem; }
.comment-list { list-style: none; padding-left: 0; }
.comment-list .children { list-style: none; padding-left: 2rem; }
.comment-body { padding: 1rem 0; border-bottom: 1px solid rgba(241, 241, 248, 0.15); }
.comment-form label { display: block; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-form .search-field {
	width: 100%; padding: 0.625rem 0.875rem; border: 1px solid rgba(241, 241, 248, 0.25);
	border-radius: 4px; background: #262431; color: #f1f1f8;
}
.comment-form input[type="submit"],
.search-form .search-submit {
	border: 1px solid #00c9db; background: #00c9db; color: #fff; padding: 0.625rem 1.75rem;
	border-radius: 2rem; font-weight: 600; cursor: pointer;
}

/* Búsqueda */
.search-form { display: flex; gap: 0.5rem; max-width: 520px; }
.search-form label { flex: 1; margin: 0; }

/* ---------- Componentes del centro de investigación ---------- */

/* Secciones de portada */
.idicapweb-section { padding-top: 6rem; padding-bottom: 4.5rem; text-align: center; }
.idicapweb-section .p-heading { margin-bottom: 3.5rem; }
.idicapweb-section .idicapweb-card { text-align: left; }

/* Cabecera sin imagen: texto más ancho y centrado */
.header .idicapweb-hero-wide .text-container { text-align: center; }
.header .idicapweb-hero-wide h1 { margin-bottom: 1.5rem; }
.header .idicapweb-hero-wide .p-large { max-width: 46rem; margin-left: auto; margin-right: auto; margin-bottom: 2.5rem; }
.header .btn-outline-lg { margin-right: 0.5rem; margin-bottom: 1.25rem; }
@media (min-width: 992px) {
	.header .idicapweb-hero-wide { padding-top: 3rem; padding-bottom: 3rem; }
}

/* Tarjetas (servicios, sistemas, noticias) */
.idicapweb-card {
	height: 100%; padding: 2rem 1.75rem; border-radius: 0.5rem;
	background: #262431; border: 1px solid rgba(241, 241, 248, 0.08);
	transition: transform 0.2s, border-color 0.2s;
	display: flex; flex-direction: column;
}
.bg-dark-blue .idicapweb-card { background: #2f2c3d; }
.idicapweb-card:hover { transform: translateY(-4px); border-color: rgba(0, 201, 219, 0.5); }
.idicapweb-card h4 { margin-bottom: 0.75rem; }
.idicapweb-card h4 a { color: #f1f1f8; text-decoration: none; }
.idicapweb-card h4 a:hover { color: #00c9db; }
.idicapweb-card p { flex-grow: 1; }
.idicapweb-card-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 3.5rem; height: 3.5rem; margin-bottom: 1.25rem; border-radius: 50%;
	background: #00c9db; color: #fff; font-size: 1.375rem;
}
.idicapweb-card-link { color: #00c9db; font-weight: 600; text-decoration: none; }
.idicapweb-card-link:hover { color: #f1f1f8; text-decoration: none; }
.idicapweb-card-link .fas { font-size: 0.75rem; margin-left: 0.25rem; }
.idicapweb-card-system { align-items: center; text-align: center !important; }
.idicapweb-card-system .btn-solid-reg { margin-top: 0.5rem; }
.idicapweb-card .btn-solid-reg:hover { background: transparent; color: #00c9db; }

/* Noticias */
.idicapweb-news-card { padding: 0; overflow: hidden; }
.idicapweb-news-thumb img { display: block; width: 100%; height: 200px; object-fit: cover; }
.idicapweb-news-body { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; flex-grow: 1; }
.idicapweb-badge {
	display: inline-block; margin-right: 0.5rem; padding: 0.125rem 0.625rem; border-radius: 1rem;
	background: rgba(0, 201, 219, 0.15); color: #00c9db !important; font-size: 0.75rem;
	font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
}

/* Filtro de categorías */
.idicapweb-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.idicapweb-filter a {
	padding: 0.375rem 1.125rem; border: 1px solid rgba(241, 241, 248, 0.3); border-radius: 2rem;
	color: #f1f1f8; font-size: 0.875rem; font-weight: 600; text-decoration: none;
}
.idicapweb-filter a:hover, .idicapweb-filter a.active { background: #00c9db; border-color: #00c9db; color: #fff; }

/* Llamada final */
.idicapweb-cta h3 { margin-bottom: 2rem; }

/* Icono en el título de un servicio */
.idicapweb-title-icon { color: #00c9db; margin-right: 0.5rem; }
