/* Chrome (header + footer) — réplica medida en DOM del vivo a 1920x1080 y 390x844.
   Spec: projects/cpe-online/output/rebuild/spec-chrome.md (mediciones 2026-07-15).
   Breakpoints Elementor del original: móvil ≤767px, tablet 768-1024px. */

/* ============ HEADER ============ */

.cpe-header,
.cpe-footer,
.cpe-header *,
.cpe-footer * {
	box-sizing: border-box;
}

.cpe-header {
	background: #fff;
}

.cpe-header__inner {
	display: flex;
	align-items: stretch;
	height: 100px;
	padding: 0 2vw; /* 38px @1920, como el contenedor Elementor 7466ac3 */
}

.cpe-header__logo {
	width: 33%;
	display: flex;
	align-items: center;
}

.cpe-header__logo a {
	display: inline-block;
	line-height: 0;
}

.cpe-header__logo img {
	/* el vivo renderiza el logo contenido en una caja 119x80 (width 61% del widget) */
	height: 80px;
	width: 119px;
	object-fit: contain;
}

.cpe-nav {
	width: 60%;
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

.cpe-nav__menu,
.cpe-nav__sub {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cpe-nav__menu {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 30px; /* separación medida entre items */
}

.cpe-nav__item {
	position: relative;
	line-height: 1;
}

.cpe-nav__item > a {
	display: inline-block;
	font-family: Poppins, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 16px;
	text-transform: capitalize;
	text-decoration: none;
	color: #1C244B;
	padding: 5px 0;
}

/* "Productos" (primer item) forzado en rojo, como el CSS custom del original */
.cpe-nav__item--active > a {
	color: #C62828;
	font-weight: 600;
}

.cpe-nav__item > a:hover {
	color: #2C75BA;
}

/* Dropdown desktop (hover / focus-within) */
.cpe-nav__sub {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 260px;
	background: #F3F5F8;
	z-index: 30;
	display: none;
}

.cpe-nav__item.has-sub:hover > .cpe-nav__sub,
.cpe-nav__item.has-sub:focus-within > .cpe-nav__sub,
.cpe-nav__item.has-sub.is-open > .cpe-nav__sub {
	display: block;
}

.cpe-nav__sub li a {
	display: block;
	font-family: Poppins, sans-serif;
	font-size: 16px;
	font-weight: 400;
	text-transform: capitalize;
	text-decoration: none;
	color: #2C2464;
	padding: 13px 20px;
	white-space: nowrap;
}

.cpe-nav__sub li a:hover {
	background: #fff;
}

/* Toggle móvil (oculto en desktop) */
.cpe-nav__toggle,
.cpe-nav__sub-toggle {
	display: none;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 0;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

/* ============ FOOTER ============ */

.cpe-footer__main {
	display: flex;
	background: #fff;
	padding: 70px 4vw; /* 76px @1920, contenedor boxed b5c4f01 */
}

.cpe-footer__col {
	flex: 0 0 24.71%; /* 433px/1752 medidos, sin gap */
	min-width: 0;
}

.cpe-footer__brand {
	flex: 0 0 25.87%; /* 453px/1752: la col de marca es mas ancha */
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	padding-top: 10px;
	padding-left: 67px; /* offset del logo medido (x=143 - col x=76) */
}

.cpe-footer__brand img {
	width: 265px;
	height: auto;
}

.cpe-footer__heading {
	font-family: Montserrat, sans-serif;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: capitalize;
	color: #000;
	margin: 0 0 20px;
}

.cpe-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cpe-footer__list li {
	margin-bottom: 10px;
}

.cpe-footer__list a {
	font-family: Montserrat, sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	color: #000;
	text-decoration: none;
}

.cpe-footer__list a:hover {
	color: #B4242C;
}

.cpe-footer__map iframe {
	width: 100%;
	height: 245px;
	border: 0;
	display: block;
}

.cpe-footer__copy {
	background: #467FF7; /* azul residual del kit original — mantener hasta que Fabio decida */
	padding: 10.5px 3vw; /* 57px @1920, h=45 */
}

.cpe-footer__copy p {
	margin: 0;
	font-family: Poppins, sans-serif;
	font-size: 16px;
	font-weight: 300;
	line-height: 24px;
	color: #C8D5DC;
	text-align: center;
}

/* ============ MÓVIL (≤767px, breakpoint Elementor) ============ */

@media (max-width: 767px) {
	.cpe-header__inner {
		height: 65px;
		padding: 0 19px;
		align-items: center;
	}

	.cpe-header__logo {
		width: auto;
	}

	.cpe-header__logo img {
		height: 34px;
		width: 100px;
	}

	.cpe-nav {
		width: auto;
		margin-left: auto;
	}

	.cpe-nav__toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 38px;
		height: 38px;
		color: #2C2464;
		border-radius: 3px;
	}

	.cpe-nav__toggle .cpe-nav__toggle-close { display: none; }
	.cpe-nav[data-open="true"] .cpe-nav__toggle-open { display: none; }
	.cpe-nav[data-open="true"] .cpe-nav__toggle-close { display: inline-flex; }

	.cpe-nav__menu {
		display: none;
		position: absolute;
		top: 65px;
		left: 0;
		right: 0;
		flex-direction: column;
		gap: 0;
		background: #F3F5F8;
		z-index: 40;
	}

	.cpe-nav[data-open="true"] .cpe-nav__menu {
		display: flex;
	}

	.cpe-nav__item > a {
		display: block;
		font-size: 18px;
		padding: 14px 20px;
		line-height: 18px;
	}

	.cpe-nav__item.has-sub {
		position: relative;
	}

	.cpe-nav__sub-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: 5px;
		right: 8px;
		width: 38px;
		height: 38px;
		color: #2C2464;
	}

	.cpe-nav__sub {
		position: static;
		min-width: 0;
		background: #ECEFF4;
	}

	/* en móvil el hover no abre; solo el toggle (is-open via JS) */
	.cpe-nav__item.has-sub:hover > .cpe-nav__sub {
		display: none;
	}

	.cpe-nav__item.has-sub.is-open > .cpe-nav__sub,
	.cpe-nav__item.has-sub.is-open:hover > .cpe-nav__sub {
		display: block;
	}

	.cpe-nav__sub li a {
		font-size: 18px;
		padding: 14px 20px 14px 32px;
		white-space: normal;
	}

	/* Footer móvil: legales+contacto 2-up, mapa full, logo al final (orden del vivo) */
	.cpe-footer__main {
		flex-wrap: wrap;
		padding: 66px 22px 40px;
		gap: 0;
	}

	.cpe-footer__col {
		flex: 0 0 50%;
	}

	.cpe-footer__map {
		flex: 0 0 100%;
		order: 3;
		margin-top: 40px;
	}

	.cpe-footer__brand {
		flex: 0 0 100%;
		order: 4;
		margin-top: 36px;
		padding-top: 0;
	}

	.cpe-footer__brand img {
		width: auto;
		height: 73px;
	}

	.cpe-footer__copy {
		padding: 10px 22px;
	}
}
