/*
Theme Name:   Qualicons Child
Template:     hello-elementor
Description:  Tema hijo de Hello Elementor para el sitio de proyectos de Qualicons.
Version:      0.1.0
Text Domain:  qualicons-child
*/

/*
 * Tokens del Figma "Qualicons-12-11-26" (archivo 1us6U1RNAI9LNcGNhlXKN1).
 * Tipografía del diseño: Helvetica 65 Medium (títulos y botones) y Helvetica 55 Roman (texto).
 */
:root {
	--qc-red: #e2211c;            /* rojo de marca: botones, header, footer */
	--qc-red-dark: #c41b17;       /* hover */
	--qc-red-tag: #e64133;        /* borde de etiquetas ("Nuestros proyectos") */
	--qc-red-ink: #b8271b;        /* texto de etiquetas */
	--qc-ink: #000000;
	--qc-muted: #939393;          /* "Clasificado por", chips inactivos */
	--qc-line: #d4d4d4;           /* borde de chips inactivos */
	--qc-soft: #f2f2f2;           /* fondo del panel del hero y de la ficha de proyecto */
	--qc-card: rgba(217, 217, 217, .44); /* tarjetas de cifras */
	--qc-tile: #e7e7e7;           /* mosaico "Constructivo Qualicons" */
	--qc-track: #c5c5c5;          /* barras de progreso inactivas */
	--qc-white: #ffffff;
	--qc-font: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
	--qc-wrap: 1200px;
	--qc-gutter: 24px;
	--qc-header-h: 90px;
}

html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--qc-font);
	color: var(--qc-ink);
	background: var(--qc-white);
	-webkit-font-smoothing: antialiased;
}
body.qc-page--soft { background: var(--qc-soft); }
img { max-width: 100%; }

/* Hello Elementor fija un ancho máximo en .site-main de páginas sin Elementor: las secciones son a todo el ancho. */
.page-content, .site-main { max-width: none; padding: 0; }

.qc-wrap {
	width: 100%;
	max-width: calc(var(--qc-wrap) + var(--qc-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--qc-gutter);
	box-sizing: border-box;
}

/* Títulos del Figma: Helvetica 65 Medium con tracking -5 %. */
.qc-h1, .qc-h2, .qc-h3 {
	margin: 0;
	font-family: var(--qc-font);
	font-weight: 700;
	color: inherit;
	letter-spacing: -.05em;
}
.qc-h1 { font-size: clamp(38px, 4.2vw, 60px); line-height: .92; }
.qc-h2 { font-size: clamp(34px, 3.5vw, 50px); line-height: 1.1; }
.qc-h2--lg { font-size: clamp(36px, 3.8vw, 55px); line-height: .93; }
.qc-h3 { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.375; }
.qc-text { margin: 0; font-size: 16px; line-height: normal; }
.qc-text--muted { opacity: .54; }

/* Botón rojo con ícono de audífonos ("¡Contáctanos aquí!") y su variante con borde. */
.qc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-sizing: border-box;
	padding: 16px 30px;
	border: 1px solid var(--qc-red);
	border-radius: 50px;
	background: var(--qc-red);
	color: var(--qc-white);
	font-family: var(--qc-font);
	font-size: 16px;
	font-weight: 700;
	line-height: normal;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.qc-btn img { flex: none; display: block; }
.qc-btn:hover, .qc-btn:focus-visible { background: var(--qc-red-dark); border-color: var(--qc-red-dark); color: var(--qc-white); }
.qc-btn--compact { padding-inline: 19px; }
.qc-btn--outline { background: transparent; color: var(--qc-red); padding: 19px 30px; border-radius: 70px; }
.qc-btn--outline:hover, .qc-btn--outline:focus-visible { background: var(--qc-red); color: var(--qc-white); }
.qc-btn--outline:hover img, .qc-btn--outline:focus-visible img { filter: brightness(0) invert(1); }

/* Etiqueta con borde rojo ("Nuestros proyectos", "Directorio", "Plaza Nogales"). */
.qc-tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 3px 11px;
	border: 1px solid var(--qc-red-tag);
	border-radius: 33px;
	color: var(--qc-red-ink);
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
	letter-spacing: -.02em;
	white-space: nowrap;
}

/* Chips de filtro ("Buscar por", "Clasificado por"). */
.qc-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-block: 10px; }
.qc-chips__label { padding: 3px 11px 3px 0; color: var(--qc-muted); font-size: 14px; line-height: 20px; letter-spacing: -.02em; }
.qc-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 3px 11px;
	border: 1px solid var(--qc-line);
	border-radius: 33px;
	background: transparent;
	color: var(--qc-muted);
	font-family: var(--qc-font);
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	letter-spacing: -.02em;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.qc-chip:hover, .qc-chip:focus-visible { border-color: var(--qc-red); color: var(--qc-red); background: transparent; }
.qc-chip.is-active { min-width: 74px; border-color: var(--qc-white); background: var(--qc-red); color: var(--qc-white); font-weight: 700; }

/* Hello Elementor pinta de rosa todo <button> con hover o foco: se anula en los botones propios. */
.qc-header__toggle:is(:hover, :focus) { background: transparent; color: inherit; }

/* ---------- Header (Figma 136:125) ---------- */
.qc-header {
	position: sticky;
	top: 0;
	z-index: 100;
	display: flex;
	height: var(--qc-header-h);
	background: var(--qc-white);
}
.admin-bar .qc-header { top: 32px; }
.qc-header__logo {
	flex: none;
	display: grid;
	place-items: center;
	width: 12.85%;
	min-width: 120px;
	background: var(--qc-red);
	border-right: 1px solid rgba(255, 255, 255, .35);
}
.qc-header__logo img { width: 99px; height: auto; display: block; }
.qc-header__bar {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 0 30px 0 5.07%;
	border-bottom: 1px solid rgba(121, 121, 121, .2);
}
.qc-nav { display: flex; align-items: center; gap: 23px; margin: 0; padding: 0; list-style: none; }
.qc-nav a {
	display: block;
	color: var(--qc-ink);
	font-size: 16px;
	letter-spacing: -.01em;
	text-decoration: none;
	white-space: nowrap;
}
.qc-nav a:hover { color: var(--qc-red); }
.qc-nav .current-menu-item > a, .qc-nav .current-menu-ancestor > a, .qc-nav a[aria-current="page"], .qc-nav a.is-current { font-weight: 700; }
.qc-header__social { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.qc-header__social a { display: block; line-height: 0; transition: opacity .2s; }
.qc-header__social a:hover { opacity: .7; }
.qc-header__social img { width: 31.6px; height: 31.6px; }
.qc-header__cta { flex: none; margin-left: 30px; }
.qc-header__toggle {
	display: none;
	position: relative;
	width: 44px;
	height: 44px;
	margin-left: auto;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}
.qc-header__toggle span,
.qc-header__toggle span::before,
.qc-header__toggle span::after {
	position: absolute;
	left: 10px;
	width: 24px;
	height: 2px;
	background: var(--qc-ink);
	content: "";
	transition: transform .2s, opacity .2s;
}
.qc-header__toggle span { top: 21px; }
.qc-header__toggle span::before { left: 0; top: -7px; }
.qc-header__toggle span::after { left: 0; top: 7px; }
.qc-header.is-open .qc-header__toggle span { background: transparent; }
.qc-header.is-open .qc-header__toggle span::before { transform: translateY(7px) rotate(45deg); }
.qc-header.is-open .qc-header__toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1279px) {
	.qc-header__social, .qc-header__cta { display: none; }
	.qc-header__toggle { display: block; }
	.qc-header__menu {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		padding: 16px var(--qc-gutter) 24px;
		background: var(--qc-white);
		box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
	}
	.qc-header.is-open .qc-header__menu { display: block; }
	.qc-nav { flex-direction: column; align-items: flex-start; gap: 0; }
	.qc-nav a { padding: 12px 0; }
	.qc-header__menu .qc-header__social, .qc-header__menu .qc-header__cta { display: flex; margin: 16px 0 0; }
}
@media (min-width: 1280px) {
	.qc-header__menu { display: contents; }
	.qc-header__menu .qc-header__social, .qc-header__menu .qc-header__cta { display: none; }
}
@media (max-width: 782px) { .admin-bar .qc-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .qc-header { top: 0; } }
@media (max-width: 767px) {
	:root { --qc-header-h: 72px; --qc-gutter: 16px; }
	.qc-header__logo { width: 112px; min-width: 0; }
	.qc-header__logo img { width: 80px; }
	.qc-header__bar { padding-right: 12px; }
}

/* ---------- Footer (Figma 31:945 + 31:990) ---------- */
.qc-footer {
	position: relative;
	margin-top: 0;
	padding: 83px 0 40px;
	border-radius: 70px 70px 0 0;
	background: var(--qc-red);
	color: var(--qc-white);
}
.qc-footer__inner {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 48px;
	max-width: 1212px;
	margin-inline: auto;
	padding-inline: var(--qc-gutter);
	box-sizing: content-box;
}
.qc-footer__brand { display: flex; flex-direction: column; gap: 19px; width: 520px; max-width: 100%; }
.qc-footer__logo { display: block; width: 211px; height: auto; }
.qc-footer__title {
	margin: 0;
	max-width: 448px;
	font-size: clamp(38px, 3.8vw, 55px);
	font-weight: 700;
	line-height: .93;
	letter-spacing: -.05em;
	color: var(--qc-white);
}
.qc-footer__text { margin: 0; font-size: 16px; opacity: .82; }
.qc-footer__info { display: flex; flex-direction: column; align-items: flex-end; gap: 30px; width: 583px; max-width: 100%; padding-top: 94px; }
.qc-footer__follow { display: flex; align-items: center; gap: 24px; }
.qc-footer__follow strong { font-size: 16px; line-height: 23px; letter-spacing: .02em; }
.qc-footer__social { display: flex; gap: 7px; }
.qc-footer__social a { display: block; line-height: 0; transition: opacity .2s; }
.qc-footer__social a:hover { opacity: .7; }
.qc-footer__social img { width: 40px; height: 40px; }
.qc-footer__offices { display: flex; gap: 60px; width: 100%; }
.qc-footer__office h3 { margin: 0 0 3px; font-size: 20px; font-weight: 700; line-height: 27px; letter-spacing: -.05em; color: var(--qc-white); }
.qc-footer__office p { margin: 0; max-width: 275px; font-size: 16px; line-height: 23px; letter-spacing: -.05em; opacity: .7; }
.qc-footer__office a { color: inherit; font-weight: 700; text-decoration: none; }
.qc-footer__bottom {
	display: flex;
	justify-content: center;
	gap: 19px;
	margin-top: 49px;
	color: rgba(255, 255, 255, .6);
	font-size: 14px;
	line-height: 23px;
	letter-spacing: -.02em;
}
.qc-footer__bottom a { color: inherit; font-weight: 700; text-decoration: none; }
.qc-footer__bottom a:hover { color: var(--qc-white); }

@media (max-width: 1023px) {
	.qc-footer { border-radius: 40px 40px 0 0; padding-top: 56px; }
	.qc-footer__inner { flex-direction: column; }
	.qc-footer__info { align-items: flex-start; padding-top: 0; }
}
@media (max-width: 767px) {
	.qc-footer__logo { width: 150px; }
	.qc-footer__offices { flex-direction: column; gap: 24px; }
	.qc-footer__follow { flex-wrap: wrap; gap: 12px; }
	.qc-footer__bottom { flex-direction: column; align-items: center; gap: 4px; margin-top: 40px; }
}
