/* Plantilla HQ Arquitectura (Joomla 6) - recreación del diseño Flux original */
@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url("../fonts/opensans-latin.woff2") format("woff2");
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 14.4px;
	font-weight: 300;
	line-height: 24px;
	color: #222;
	background: #fff;
}

img { max-width: 100%; height: auto; border: 0; }
a { color: #03587d; text-decoration: none; }
a:hover, a:focus { color: #022f43; text-decoration: underline; }
strong, b { font-weight: 700; }

h1, h2, h3, h4, h5, h6 {
	font-family: "Open Sans", Arial, sans-serif;
	font-weight: 300;
	color: #666;
	margin: 0 0 10px;
}
h1 { font-size: 28px; line-height: 40px; }
h2 { font-size: 25.2px; line-height: 36px; }
h3 { font-size: 22.4px; line-height: 30px; }
p { margin: 0 0 20px; }
ul, ol { margin: 0 0 10px 25px; padding: 0; }

/* Fondo fijo de toda la página */
.hq-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.hq-wrap {
	position: relative;
	z-index: 1;
	max-width: 1040px;
	margin: 60px auto 0;
}

/* Cabecera */
.hq-header {
	position: relative;
	background-size: cover;
	background-position: 50% 50%;
	border-bottom: 8px solid #000;
	border-radius: 4px 4px 0 0;
	min-height: 183px;
}
.hq-header-inner {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	padding: 30px 40px 30px;
	border-radius: 4px 4px 0 0;
}
.hq-logo { display: block; flex: 0 0 auto; margin: 0; }
.hq-logo img { display: block; width: 100px; height: auto; }

.hq-nav { margin-left: auto; padding-top: 21px; }
.hq-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; }
.hq-nav li { margin: 0 15px 0 0; }
.hq-nav li:last-child { margin-right: 0; }
.hq-nav a {
	display: block;
	padding: 0 15px;
	height: 36px;
	line-height: 36px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12.96px;
	font-weight: 400;
	text-transform: uppercase;
	color: #03587d;
	border-radius: 4px;
	transition: background-color .2s, color .2s;
}
.hq-nav a:hover, .hq-nav a:focus,
.hq-nav li.active > a, .hq-nav li.current > a {
	color: #fff;
	background: rgba(0, 0, 0, .2);
	box-shadow: inset 1px 1px 0 rgba(0, 0, 0, .15);
	text-decoration: none;
}

.hq-toggle {
	display: none;
	flex: 0 0 auto;
	width: 36px;
	height: 34px;
	margin-top: 20px;
	padding: 8px 8px;
	border: 0;
	border-radius: 4px;
	background: rgba(0, 0, 0, .3);
	cursor: pointer;
}
.hq-toggle span { display: block; height: 3px; margin: 0 0 4px; background: #fff; border-radius: 1px; }
.hq-toggle span:last-child { margin-bottom: 0; }

/* Contenido */
.hq-main {
	background: #fafafa;
	border-bottom: 1px solid #eee;
}
.hq-breadcrumbs {
	padding: 10px 60px;
	border-bottom: 1px solid #eee;
	font-size: 12.96px;
	line-height: 25.92px;
	color: #222;
}
.hq-breadcrumbs ol, .hq-breadcrumbs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.hq-breadcrumbs li { display: inline; }
.hq-breadcrumbs li + li::before { content: "/"; padding: 0 9px; color: #777; }
.hq-breadcrumbs a { color: #777; }
.hq-breadcrumbs .mod-breadcrumbs__here, .hq-breadcrumbs .mod-breadcrumbs__divider { display: none; }
.hq-breadcrumbs li.mod-breadcrumbs__divider + li::before { content: none; }
.hq-breadcrumbs .active { color: #222; }

.hq-content { padding: 20px 60px 30px; }
.hq-content::after { content: ""; display: table; clear: both; }

.page-header h1, .page-header h2, .item-page h1, .item-page h2.item-title, .page-title {
	font-size: 28px;
	line-height: 40px;
	font-weight: 300;
	color: #666;
	margin: 0;
	padding: 0 0 10px;
}
.page-header { margin: 0; padding: 0; border: 0; }

.item-page .item-image, .item-page figure.item-image {
	margin: 0 0 20px;
	float: none;
}
.item-page .item-image img, .hq-abovecontent img {
	display: block;
	padding: 4px;
	background: transparent;
	box-shadow: inset 0 0 2px rgba(0, 0, 0, .2);
	border: 1px solid #e6e6e6;
	max-width: 100%;
	height: auto;
}
.item-page .item-image img { width: 100%; }

.com-content-article__body h3 {
	color: #222;
	padding: 10px 0;
	margin: 10px 0 20px;
	background: url("../images/divider.png") repeat-x 0 100%;
}

.hq-abovecontent img { margin: 0 0 20px; }
.hq-belowcontent { margin-top: 10px; }
.hq-belowcontent h3 { font-size: 28px; line-height: 40px; color: #666; margin: 0 0 10px; }
.hq-map { position: relative; width: 100%; height: 350px; border: 0; }
.hq-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Galerías */
.hq-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px 32px;
	margin: 10px 0 20px;
}
.hq-gallery figure { margin: 0 0 20px; }
.hq-gallery a { display: block; }
.hq-gallery img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 4px;
	transition: opacity .2s;
}
.hq-gallery a:hover img { opacity: .85; }
.hq-gallery figcaption { margin-top: 2px; line-height: 22px; }
.hq-gallery figcaption a:hover { text-decoration: none; }

/* Visor de imágenes */
.hq-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .93);
	padding: 50px 60px;
}
.hq-lightbox[hidden] { display: none; }
.hq-lightbox figure { margin: 0; text-align: center; max-width: 100%; max-height: 100%; }
.hq-lightbox img { max-width: 100%; max-height: calc(100vh - 140px); box-shadow: 0 0 20px rgba(0,0,0,.5); background: #fff; padding: 4px; }
.hq-lightbox figcaption { color: #fff; margin-top: 10px; font-size: 15px; }
.hq-lightbox button {
	position: absolute;
	border: 0;
	background: rgba(255, 255, 255, .15);
	color: #fff;
	cursor: pointer;
	font: 300 30px/1 "Open Sans", Arial, sans-serif;
	width: 46px;
	height: 46px;
	border-radius: 4px;
}
.hq-lightbox button:hover { background: rgba(255, 255, 255, .3); }
.hq-lb-close { top: 12px; right: 12px; }
.hq-lb-prev { left: 10px; top: 50%; margin-top: -23px; }
.hq-lb-next { right: 10px; top: 50%; margin-top: -23px; }

/* Franja inferior de contacto */
.hq-bottom {
	background: #fafafa;
	border-radius: 0 0 4px 4px;
	padding: 30px 60px 40px;
	font-size: 12.96px;
	line-height: 24px;
	color: #222;
}
.hq-bottom p { margin: 0; }
.hq-bottom em { font-style: italic; }

/* Pie */
.hq-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	padding: 20px 0 40px;
	font-size: 12.96px;
	color: #03587d;
}
.hq-footer ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 20px; }
.hq-footer-menu a { font-weight: 700; text-transform: uppercase; color: #03587d; }
.hq-footer-menu img { display: block; height: 20px; width: auto; }
.hq-credit a { color: #03587d; }

/* Aviso de cookies */
.hq-cookies {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 900;
	background: rgba(255, 255, 255, .95);
	box-shadow: 0 0 30px rgba(0, 0, 0, .35);
	text-align: center;
	padding: 12px 15px 14px;
	font-size: 14px;
	line-height: 20px;
	color: #222;
	font-weight: 400;
}
.hq-cookies[hidden] { display: none; }
.hq-cookies p { margin: 0 0 6px; }
.hq-cookies .hq-cookies-title { font-size: 20px; line-height: 28px; font-weight: 600; color: #000; margin: 0 0 2px; }
.hq-cookies a { font-weight: 700; text-decoration: underline; color: #0b7bc6; }
.hq-cookies-close {
	border: 0;
	background: #0b7bc6;
	color: #fff;
	font: 400 14px/1 "Open Sans", Arial, sans-serif;
	padding: 7px 40px;
	border-radius: 2px;
	cursor: pointer;
}

/* Formularios / mensajes básicos */
.alert { padding: 10px 15px; margin: 0 0 20px; border: 1px solid #ddd; background: #fff; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon-location::before, [class^="icon-"]:empty { display: none; }
.hq-offline-login input { padding: 6px 8px; border: 1px solid #ccc; border-radius: 3px; min-width: 260px; }
.hq-offline-login button { padding: 7px 25px; border: 0; background: #03587d; color: #fff; border-radius: 3px; cursor: pointer; }

/* Responsive */
@media (max-width: 1100px) {
	.hq-wrap { margin: 30px 20px 0; }
}
@media (max-width: 979px) {
	.hq-header-inner { padding: 30px 20px; flex-wrap: wrap; position: relative; }
	.hq-toggle { display: block; margin-left: 20px; margin-top: 20px; }
	.hq-logo { margin-left: 30px; }
	.hq-nav { display: none; flex-basis: 100%; margin: 10px 0 0; padding: 0; }
	.hq-nav.is-open { display: block; }
	.hq-nav ul { flex-direction: column; background: rgba(255, 255, 255, .92); border-radius: 4px; padding: 6px; }
	.hq-nav li { margin: 0; }
	.hq-nav a { height: auto; line-height: 40px; }
	.hq-content, .hq-bottom { padding-left: 30px; padding-right: 30px; }
	.hq-breadcrumbs { padding-left: 30px; padding-right: 30px; }
	.hq-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px 20px; }
}
@media (max-width: 600px) {
	.hq-wrap { margin: 30px 20px 0; }
	.hq-gallery { grid-template-columns: 1fr; }
	.hq-footer { flex-direction: column; align-items: flex-start; padding-left: 30px; }
	.hq-footer ul { gap: 10px; }
	.hq-lightbox { padding: 50px 10px; }
}
