/* ==========================================================================
   Hidralair PWA — Design system
   ========================================================================== */
:root {
	--hpwa-yellow: #DEA203;
	--hpwa-navy: #1B2A6B;
	--hpwa-blue: #2AABEE;
	--hpwa-xerrades-blue: #1858B8;
	--hpwa-bg: #F5F5F6;
	--hpwa-gray-text: #6b6f76;
	--hpwa-dark-text: #1c1c1c;
	--hpwa-radius-lg: 22px;
	--hpwa-radius-md: 14px;
	--hpwa-shadow: 0 10px 24px rgba(20, 20, 40, 0.10);
	--hpwa-max-width: 520px;
	font-size: 16px;
}

.hpwa-app, .hpwa-app * { box-sizing: border-box; }

body {
	background: var(--hpwa-bg);
	margin: 0;
}

.hpwa-app {
	max-width: var(--hpwa-max-width);
	margin: 0 auto;
	min-height: 100vh;
	background: var(--hpwa-bg);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--hpwa-dark-text);
	position: relative;
	padding-bottom: 40px;
}

/* ---------- Header ---------- */
.hpwa-header {
	position: sticky;
	top: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--hpwa-yellow);
	padding: 16px 20px;
	box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.hpwa-header__home,
.hpwa-header__settings {
	background: none;
	border: none;
	color: var(--hpwa-dark-text);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
}
.hpwa-header__logo { display: flex; align-items: center; text-decoration: none; }
.hpwa-header__logo-text { font-size: 1.5rem; font-weight: 800; color: var(--hpwa-dark-text); }
.hpwa-header__logo-img { max-height: 34px; width: auto; display: block; }

/* ---------- Hero (franja groga amb títol) ---------- */
.hpwa-hero {
	background: var(--hpwa-yellow);
	padding: 20px 20px 34px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}
.hpwa-hero__text h1 {
	font-size: 1.5rem;
	font-weight: 800;
	margin: 0 0 6px;
	line-height: 1.15;
}
.hpwa-hero__text p {
	margin: 0;
	font-size: 0.88rem;
	color: #3a3a3a;
	max-width: 280px;
}
.hpwa-hero__icon { flex-shrink: 0; width: 64px; height: 64px; }
.hpwa-hero__icon svg, .hpwa-hero__icon img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Home: banners ---------- */
.hpwa-home-top { padding: 20px 20px 90px; background: var(--hpwa-yellow); }
.hpwa-brand-title { font-size: 1.9rem; font-weight: 800; line-height: 1.05; margin: 4px 0 2px; color: var(--hpwa-dark-text); }
.hpwa-brand-sub { font-size: 0.86rem; color: var(--hpwa-dark-text); margin: 0 0 18px; max-width: 280px; line-height:1.4; }

.hpwa-banners { display: flex; gap: 10px; margin-bottom: 16px; }
.hpwa-banner {
	flex: 1;
	background: #fff;
	border-radius: 14px;
	padding: 13px 14px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
	text-decoration: none;
	box-shadow: 0 6px 16px -6px rgba(23, 34, 89, 0.14);
	min-height: 58px;
}
.hpwa-banner.primary { background: linear-gradient(135deg, var(--hpwa-navy) 0%, #262F73 100%); }
.hpwa-banner .eyebrow { font-size: 0.60rem; font-weight: 800; letter-spacing: 0.5px; color: var(--hpwa-blue); text-transform: uppercase; }
.hpwa-banner .label { font-size: 0.82rem; font-weight: 700; color: var(--hpwa-dark-text); }
.hpwa-banner.primary .eyebrow { color: #8FC7FF; }
.hpwa-banner.primary .label { color: #fff; display: flex; align-items: center; gap: 6px; }
.hpwa-banner .edition-pill { display: inline-block; font-size: 0.62rem; font-weight: 700; color: var(--hpwa-navy); background: #EEF1FF; padding: 2px 8px; border-radius: 20px; margin-top: 4px; width: fit-content; }

.hpwa-date-row {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 0.92rem;
	background: rgba(255,255,255,0.7);
	padding: 10px 14px;
	border-radius: 12px;
	margin-bottom: 6px;
	color: var(--hpwa-dark-text);
}
.hpwa-date-row .icon-circle { width: 26px; height: 26px; border-radius: 50%; background: var(--hpwa-navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------- Home: grid de menú ---------- */
.hpwa-menu-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	padding: 0 20px 20px;
	margin-top: -70px;
	position: relative;
}
.hpwa-menu-card {
	background: #fff;
	border-radius: var(--hpwa-radius-lg);
	box-shadow: var(--hpwa-shadow);
	width: calc(50% - 8px);
	height: 150px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	text-decoration: none;
	color: var(--hpwa-gray-text);
	font-weight: 700;
	font-size: 1rem;
	text-align: center;
	padding: 12px;
	transition: transform .15s ease;
}
.hpwa-menu-card:active { transform: scale(0.97); }
.hpwa-menu-card svg, .hpwa-menu-card img { width: 64px; height: 64px; }
.hpt-menu-icon-img { display: block; object-fit: contain; }

/* ---------- Cronograma: blocs separats (Xerrades i conferències / Tallers) ---------- */
.hpwa-agenda-wrap { padding: 20px; display: flex; flex-direction: column; gap: 24px; margin-top: -14px; }

.hpwa-agenda-block { border-radius: var(--hpwa-radius-md); overflow: hidden; box-shadow: var(--hpwa-shadow); }
.hpwa-agenda-block__header {
	background: var(--hpwa-xerrades-blue);
	color: #fff;
	font-weight: 800;
	font-size: 1.05rem;
	padding: 16px 18px;
}
.hpwa-agenda-block--tallers .hpwa-agenda-block__header { background: var(--hpwa-yellow); color: #3a2a00; }

.hpwa-agenda-block__list { display: flex; flex-direction: column; background: #fff; }
.hpwa-agenda-block__list .hpwa-cronograma-item {
	box-shadow: none;
	border-radius: 0;
	border-bottom: 1px solid #F0F1F4;
}
.hpwa-agenda-block__list .hpwa-cronograma-item:last-child { border-bottom: none; }

.hpwa-cronograma-item {
	display: flex;
	background: #fff;
	border-radius: var(--hpwa-radius-md);
	box-shadow: var(--hpwa-shadow);
	overflow: hidden;
	min-height: 90px;
}
.hpwa-cronograma-item__time {
	background: var(--hpwa-xerrades-blue);
	color: #fff;
	flex: 0 0 78px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-weight: 700;
	font-size: 0.82rem;
	padding: 10px 6px;
	line-height: 1.3;
}
.hpwa-agenda-block--tallers .hpwa-cronograma-item__time { background: var(--hpwa-yellow); color: #3a2a00; }
.hpwa-cronograma-item__body { padding: 14px 16px; flex: 1; }
.hpwa-cronograma-item__body h3 { color: var(--hpwa-dark-text); font-size: 1rem; margin: 0 0 6px; font-weight: 800; }
.hpwa-cronograma-item__body div { color: #4a4a4a; font-size: 0.85rem; line-height: 1.5; }
.hpwa-cronograma-item__body ul { margin: 0; padding-left: 18px; }

/* ---------- Expositors / Promocions grid ---------- */
.hpwa-expositors-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	padding: 20px;
	margin-top: -14px;
}
.hpwa-expositor-card {
	background: #fff;
	border-radius: var(--hpwa-radius-md);
	box-shadow: var(--hpwa-shadow);
	width: calc(50% - 7px);
	height: 130px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	text-decoration: none;
	overflow: hidden;
}
.hpwa-expositor-card img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.hpwa-expositor-card.is-placeholder {
	flex-direction: column;
	gap: 6px;
	color: var(--hpwa-gray-text);
	text-align: center;
	text-decoration: none;
	background: #FAFAFB;
	border: 1.5px dashed #E1E3E8;
	box-shadow: none;
}
.hpwa-expositor-card__name { font-weight: 700; font-size: 0.9rem; color: var(--hpwa-dark-text); text-decoration: none; }
.hpwa-expositor-card__pending { font-size: 0.68rem; font-weight: 600; color: var(--hpwa-gray-text); background: #EDEEF2; padding: 2px 8px; border-radius: 10px; }

.hpwa-empty-state { padding: 40px 20px; text-align: center; color: var(--hpwa-gray-text); }

/* ---------- Fitxa expositor ---------- */
.hpwa-expositor-single__logo-wrap {
	background: #fff;
	border-radius: var(--hpwa-radius-lg);
	box-shadow: var(--hpwa-shadow);
	margin: -50px 20px 0;
	padding: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 140px;
	position: relative;
	z-index: 2;
}
.hpwa-expositor-single__logo-wrap img { max-width: 100%; max-height: 140px; object-fit: contain; }
.hpwa-expositor-single__body { padding: 30px 24px; }
.hpwa-expositor-single__body h2 { font-size: 1.4rem; margin: 0 0 12px; }
.hpwa-expositor-single__desc { color: #4a4a4a; line-height: 1.7; font-size: 0.95rem; }
.hpwa-expositor-single__stand { display:inline-block; background: #EEF2FF; color: var(--hpwa-navy); font-weight:700; font-size:0.8rem; padding: 4px 12px; border-radius: 20px; margin-bottom: 14px; }
.hpwa-expositor-single__web { display:inline-block; margin-top: 12px; color: var(--hpwa-blue); font-weight: 700; text-decoration: none; }

.hpwa-promo-block { text-align: center; margin-top: 40px; }
.hpwa-promo-block h3 { color: var(--hpwa-blue); font-size: 1.7rem; font-weight: 800; margin-bottom: 20px; }
.hpwa-promo-pdf-link { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; }
.hpwa-promo-pdf-link svg { width: 100px; height: 120px; }
.hpwa-promo-pdf-link span { margin-top: 8px; font-weight: 700; color: var(--hpwa-dark-text); font-size: 0.85rem; }

/* ---------- Mapa ---------- */
.hpwa-map-wrap { padding: 20px; margin-top: -14px; }
.hpwa-map-card {
	background: #fff;
	border-radius: var(--hpwa-radius-md);
	box-shadow: var(--hpwa-shadow);
	padding: 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 14px;
}
.hpwa-map-card h4 { margin: 0 0 4px; font-size: 1rem; }
.hpwa-map-card p { margin: 0; font-size: 0.82rem; color: var(--hpwa-gray-text); }
.hpwa-map-card a { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: #EEF2FF; display: flex; align-items: center; justify-content: center; color: var(--hpwa-navy); }
.hpwa-map-embed { border-radius: var(--hpwa-radius-md); overflow: hidden; box-shadow: var(--hpwa-shadow); }
.hpwa-map-embed iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- Instal·lació ---------- */
.hpwa-install-guide__platform { padding: 30px 20px; }
.hpwa-install-guide__platform.android { background: #E3F3E1; }
.hpwa-install-guide__platform.ios { background: #E4E4E6; }
.hpwa-install-guide__platform-header { text-align: center; margin-bottom: 22px; }
.hpwa-install-guide__platform-header svg { width: 46px; height: 46px; margin-bottom: 6px; }
.hpwa-install-guide__platform-header h2 { font-size: 1.2rem; font-weight: 800; margin: 4px 0 10px; }
.hpwa-install-step { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.hpwa-install-step__num { font-size: 1.4rem; font-weight: 800; flex-shrink: 0; width: 30px; }
.hpwa-install-step__icon { flex-shrink: 0; width: 30px; display:flex; justify-content:center; }
.hpwa-install-step p { margin: 0; color: #3a3a3a; font-size: 0.9rem; line-height: 1.4; }

@media (min-width: 540px) {
	.hpwa-app { box-shadow: 0 0 40px rgba(0,0,0,0.08); }
}

/* ---------- Barra de navegació inferior (footer) ---------- */
.hpwa-app { padding-bottom: 78px; } /* deixa espai perquè el footer fix no tapi contingut */

.hpwa-footer-nav {
	position: fixed;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	max-width: var(--hpwa-max-width);
	background: #fff;
	box-shadow: 0 -4px 16px rgba(20, 20, 40, 0.08);
	display: flex;
	align-items: stretch;
	justify-content: space-around;
	padding: 8px 4px calc(8px + env(safe-area-inset-bottom, 0px));
	z-index: 90;
}
.hpwa-footer-nav__item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	text-decoration: none;
	color: #9CA3AF;
	padding: 6px 2px;
	font-size: 0.68rem;
	font-weight: 600;
}
.hpwa-footer-nav__icon { width: 24px; height: 24px; display:flex; align-items:center; justify-content:center; }
.hpwa-footer-nav__icon svg { width: 100%; height: 100%; }
.hpwa-footer-nav__item.is-active { color: var(--hpwa-blue); }
.hpwa-footer-nav__label { line-height: 1; }
