/* ==========================================================================
   AGUARIS · Archivo de proyectos  (CPT `proyectos`)
   Grid + barra de filtros para la plantilla archive-proyectos.php

   Depende de loop-proyectos.css (de ahí salen los estilos de la card).
   Ámbito: solo la página de archivo de `proyectos`. No toca el blog.
   ========================================================================== */

/* ---- Contenedor del archivo ----
   Sin max-width (la plantilla de la página ya lo define). Solo padding. */
.aguaris-archivo-wrap {
	padding: 96px 48px;
}

/* ---- Cabecera ---- */
.aguaris-archivo__head {
	margin: 0 0 10px;
}
.aguaris-archivo__title {
	margin: 0 0 4px;
}
.aguaris-archivo__count {
	margin: 0;
	color: #5b6b6e;
	font-size: 14px;
}

/* ==========================================================================
   BARRA DE FILTROS
   Desktop: sectores como botones (izquierda) + modelos como desplegable (derecha).
   Móvil:   sectores como desplegable + modelos como desplegable (apilados).
   ========================================================================== */
.aguaris-filtros {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	margin: 0 0 28px;
	padding: 14px 0;
	border-top: 1px solid rgba(11, 31, 36, .10);
	border-bottom: 1px solid rgba(11, 31, 36, .10);
}

/* ---- Sectores como botones (desktop) ---- */
.aguaris-filtros__tabs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}
.aguaris-tab {
	display: inline-flex;
	align-items: center;
	padding: 9px 18px;
	border-radius: 100px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .02em;
	color: #0B1F24;
	text-decoration: none;
	transition: background .2s ease, color .2s ease;
}
.aguaris-tab:hover {
	background: rgba(11, 31, 36, .06);
}
.aguaris-tab.is-active {
	background: #01437d;
	color: #fff;
}

/* ---- Desplegables (base) ---- */
.aguaris-select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230B1F24' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	border: 1.5px solid rgba(11, 31, 36, .16);
	border-radius: 6px;
	padding: 11px 40px 11px 14px;
	font-size: 15px;
	color: #0B1F24;
	cursor: pointer;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.aguaris-select:focus {
	outline: none;
	border-color: #01437d;
	box-shadow: 0 0 0 3px rgba(53, 196, 190, .25);
}

/* ---- Desplegable de modelos (con icono de "sliders" a la izquierda) ---- */
.aguaris-select--modelos {
	min-width: 210px;
	padding-left: 42px;
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230B1F24' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230B1F24' stroke-width='2' stroke-linecap='round'%3E%3Cline x1='4' y1='8' x2='20' y2='8'/%3E%3Cline x1='4' y1='16' x2='20' y2='16'/%3E%3Ccircle cx='9' cy='8' r='2.2' fill='%23fff'/%3E%3Ccircle cx='15' cy='16' r='2.2' fill='%23fff'/%3E%3C/svg%3E");
	background-repeat: no-repeat, no-repeat;
	background-position: right 12px center, left 14px center;
}

/* Sectores desplegable: oculto en desktop, visible en móvil */
.aguaris-filtros__mobile-sector {
	display: none;
}

/* ---- Grid de cards ---- */
.aguaris-archivo.aguaris-loop-wrap {
	margin: 0;
	padding: 0;
}
.aguaris-archivo__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--gap, 22px);
}
/* La card viene del slider (flex-basis); en grid ocupa toda la celda. */
.aguaris-archivo__grid .aguaris-loop__card {
	flex: initial;
	width: 100%;
	scroll-snap-align: none;
}

/* ---- Paginación ---- */
.aguaris-archivo__pagination {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 40px 0 0;
}
.aguaris-archivo__pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1.5px solid rgba(11, 31, 36, .14);
	border-radius: 6px;
	color: #0B1F24;
	font-size: 15px;
	line-height: 1;
	text-decoration: none;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.aguaris-archivo__pagination a.page-numbers:hover {
	border-color: #01437d;
	color: #01437d;
}
.aguaris-archivo__pagination .page-numbers.current {
	background: #01437d;
	border-color: #01437d;
	color: #fff;
}
.aguaris-archivo__pagination .page-numbers.dots {
	border-color: transparent;
}

/* ---- Estado vacío ---- */
.aguaris-archivo__empty {
	margin: 20px 0;
	padding: 24px 0;
	color: #5b6b6e;
	font-size: 16px;
}
.aguaris-archivo__empty a {
	color: #01437d;
	text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
	.aguaris-archivo__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
	.aguaris-archivo-wrap { padding: 48px 10px; }

	/* Filtros: sectores pasan a desplegable, todo apilado y a ancho completo */
	.aguaris-filtros {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}
	.aguaris-filtros__tabs { display: none; }
	.aguaris-filtros__mobile-sector { display: block; }
	.aguaris-filtros__modelos { width: 100%; }
	.aguaris-filtros__mobile-sector .aguaris-select,
	.aguaris-filtros__modelos .aguaris-select {
		width: 100%;
	}
}

@media (max-width: 720px) {
	.aguaris-archivo__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
	.aguaris-archivo__grid { grid-template-columns: 1fr; }
}