/*
 * Cabecera (.phh) y footer (.phf) con el diseño actual de www.phonehouse.es.
 * Colores, medidas y tipografía tomados del tema VTEX "phonehouse.store-theme".
 * Las fuentes Grotesk / Grotesk Bold las declara all-0.css (../font/Px-Grotesk-*).
 */

:root {
	--ph-dark: #26282a;
	--ph-pink: #ec008c;
	--ph-turquoise: #00e2be;
	--ph-white: #fff;
	--ph-max: 1280px;
}

/* all-0.css reserva 95-122px arriba para su antigua cabecera fija: aquí ya no hace falta */
.pagebody .contenedor-principal,
.pagebody .contenedor-principal.pattern {
	margin-top: 0 !important;
	height: auto !important;
	overflow-x: hidden !important;
	overflow-y: visible !important;
}

.phh,
.phf {
	max-width: 100vw;
}

/* ---------- CABECERA ---------- */

.phh {
	background: var(--ph-dark);
	color: var(--ph-white);
	font-family: 'Grotesk', Arial, sans-serif;
	position: sticky;
	top: 0;
	z-index: 999;
	width: 100%;
}

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

.phh a,
.phh a:hover,
.phh a:focus {
	color: var(--ph-white);
	text-decoration: none;
}

.phh ul,
.phf ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.phh-top {
	display: flex;
	align-items: center;
	gap: 30px;
	max-width: var(--ph-max);
	margin: 0 auto;
	padding: 12px 87px 0 90px;
	height: 42px;
	box-sizing: content-box;
}

.phh-logo {
	flex: 0 0 auto;
	display: block;
	line-height: 0;
}

.phh-logo img {
	display: block;
	width: 144px;
	height: 30px;
}

.phh-search {
	flex: 1 1 auto;
	position: relative;
	margin: 0;
	max-width: 785px;
}

.phh-search input[type="text"] {
	width: 100%;
	height: 29px;
	margin: 0;
	padding: 0 16px 0 37px;
	border: 0;
	border-radius: 20px;
	background: var(--ph-white);
	color: var(--ph-dark);
	font-family: 'Grotesk', Arial, sans-serif;
	font-size: 15px;
	line-height: 29px;
	outline: none;
	box-shadow: none;
}

.phh-search input[type="text"]::placeholder {
	color: var(--ph-dark);
	opacity: 1;
}

.phh-search input[type="text"]:focus {
	box-shadow: 0 0 0 2px var(--ph-turquoise);
}

.phh-search__icon {
	position: absolute;
	left: 14px;
	top: 50%;
	width: 12px;
	height: 12px;
	transform: translateY(-50%);
	filter: brightness(0);
	pointer-events: none;
}

.phh-actions {
	flex: 0 0 auto;
	display: flex;
	align-items: flex-end;
	gap: 14px;
}

.phh-actions a {
	display: inline-flex;
	align-items: flex-end;
	gap: 6px;
	font-size: 12px;
	letter-spacing: .08em;
	line-height: 1;
	transition: transform .2s ease;
}

.phh-actions a:hover {
	transform: scale(1.08);
}

.phh-actions img {
	display: block;
}

.phh-nav {
	height: 47px;
	max-width: var(--ph-max);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.phh-nav ul {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin-left: 187px;
	width: 929px;
}

.phh-nav li {
	flex: 0 0 auto;
}

.phh-nav a {
	display: block;
	padding: 4px 20px;
	font-family: 'Grotesk Bold', Arial, sans-serif;
	font-size: 12px;
	font-weight: bold;
	white-space: nowrap;
	border-radius: 20px;
	transition: color .2s ease, background-color .2s ease;
}

.phh-nav a:hover {
	color: var(--ph-turquoise);
}

.phh-nav__destacado a,
.phh-nav__destacado a:hover {
	background: var(--ph-pink);
	color: var(--ph-white);
	padding: 3px 11px;
	margin-left: 20px;
}

.phh-burger {
	display: none;
}

/* Tablet / portátil pequeño */
@media (max-width: 1199px) {
	.phh-top {
		padding: 12px 24px 0;
	}
	.phh-nav ul {
		margin-left: 0;
		width: auto;
	}
	.phh-nav a {
		padding: 4px 12px;
	}
}

/* Móvil */
@media (max-width: 767px) {
	.phh-top {
		flex-wrap: wrap;
		gap: 10px 14px;
		height: auto;
		padding: 12px 16px;
	}

	.phh-burger {
		display: inline-flex;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		width: 28px;
		height: 28px;
		padding: 0;
		border: 0;
		background: none;
		cursor: pointer;
	}

	.phh-burger span {
		display: block;
		width: 22px;
		height: 2px;
		background: var(--ph-white);
		border-radius: 2px;
		transition: transform .2s ease, opacity .2s ease;
	}

	.phh--open .phh-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.phh--open .phh-burger span:nth-child(2) { opacity: 0; }
	.phh--open .phh-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

	.phh-logo img {
		width: 115px;
		height: auto;
	}

	.phh .phh-actions {
		margin-left: auto;
		gap: 16px;
	}

	.phh-actions span {
		display: none;
	}

	.phh-search {
		order: 10;
		flex: 1 1 100%;
		max-width: none;
	}

	.phh-nav {
		display: none;
		height: auto;
	}

	.phh--open .phh-nav {
		display: block;
		border-top: 1px solid rgba(255, 255, 255, .15);
		padding: 8px 16px 16px;
	}

	.phh-nav ul {
		flex-direction: column;
		align-items: stretch;
	}

	.phh-nav a {
		padding: 12px 0;
		font-size: 15px;
		border-radius: 0;
		border-bottom: 1px solid rgba(255, 255, 255, .1);
	}

	.phh-nav__destacado a,
	.phh-nav__destacado a:hover {
		display: inline-block;
		margin: 14px 0 0;
		padding: 6px 16px;
		border-radius: 20px;
		border: 0;
	}
}

/* ---------- FOOTER ---------- */

.phf {
	background: var(--ph-dark);
	color: var(--ph-white);
	font-family: 'Grotesk', Arial, sans-serif;
	margin-top: 40px;
	clear: both;
}

.phf a,
.phf a:hover,
.phf a:focus {
	color: var(--ph-white);
	text-decoration: none;
}

.phf-inner {
	max-width: var(--ph-max);
	margin: 0 auto;
	padding: 54px 97px 30px 50px;
}

.phf-main {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.phf-claim {
	flex: 0 0 150px;
	margin: 0 8px 0 0;
	font-family: 'Grotesk Bold', Arial, sans-serif;
	font-size: 20px;
	font-weight: bold;
	line-height: 1.5em;
	color: var(--ph-white);
}

.phf-cols {
	flex: 1 1 auto;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 15px;
}

.phf-col__title {
	display: block;
	margin-bottom: 17px;
	font-family: 'Grotesk Bold', Arial, sans-serif;
	font-size: 16px;
	font-weight: bold;
	line-height: normal;
	list-style: none;
	cursor: default;
}

.phf-col__title::-webkit-details-marker {
	display: none;
}

.phf-col li {
	margin-bottom: 10px;
}

.phf-col a {
	display: inline-block;
	font-size: 14px;
	line-height: 1.3;
	transition: transform .2s;
	transform-origin: left center;
}

.phf-col a:hover {
	transform: scale3d(1.05, 1.05, 1);
}

.phf-social {
	flex: 0 0 160px;
}

.phf-social__title {
	margin: 0 0 35px;
	font-family: 'Grotesk Bold', Arial, sans-serif;
	font-size: 12px;
	font-weight: bold;
	color: var(--ph-white);
}

.phf-social ul {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
}

.phf-social img {
	display: block;
	width: 24px;
	height: 24px;
	transition: transform .2s;
}

.phf-social a:hover img {
	transform: scale3d(1.1, 1.1, 1);
}

.phf-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, .15);
}

.phf-copy {
	margin: 0;
	max-width: 760px;
	font-size: 12px;
	line-height: 1.5;
	color: var(--ph-white);
}

.phf-copy a {
	text-decoration: underline;
}

.phf-logos {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}

.phf-logos__ph {
	display: block;
	height: 25px;
	width: auto;
}

.phf-logos__dominion {
	display: block;
	height: 25px;
	width: auto;
	margin: 0 0 3px 20px;
}

@media (max-width: 1199px) {
	.phf-inner {
		padding: 40px 24px 24px;
	}
	.phf-claim {
		display: none;
	}
}

@media (max-width: 767px) {
	.phf {
		border-radius: 8px 8px 0 0;
	}

	.phf-inner {
		padding: 28px 16px 20px;
	}

	.phf-main {
		flex-direction: column;
		gap: 0;
	}

	.phf-cols {
		width: 100%;
		grid-template-columns: 1fr;
		gap: 0;
	}

	.phf-col {
		border-bottom: 1px solid rgba(255, 255, 255, .15);
	}

	.phf-col__title {
		position: relative;
		margin: 0;
		padding: 14px 24px 14px 0;
		cursor: pointer;
	}

	.phf-col__title::after {
		content: "";
		position: absolute;
		right: 6px;
		top: 50%;
		width: 8px;
		height: 8px;
		border-right: 2px solid var(--ph-white);
		border-bottom: 2px solid var(--ph-white);
		transform: translateY(-70%) rotate(45deg);
		transition: transform .2s;
	}

	.phf-col[open] .phf-col__title::after {
		transform: translateY(-30%) rotate(-135deg);
	}

	.phf-col ul {
		padding-bottom: 10px;
	}

	.phf-social {
		flex-basis: auto;
		margin-top: 24px;
	}

	.phf-social__title {
		margin-bottom: 16px;
	}

	.phf-bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
		margin-top: 24px;
	}
}
