/* =========================================================
   CABECERA Y PIE NATIVOS (27/10/2026) — sustituyen a las plantillas 2605 y 4659 de Elementor.
   Autocontenido: prefijos cmh- (cabecera) y cmf- (pie), sin depender de Elementor ni de sus reglas.
   Escritorio: ocupa todo el ancho (mismo margen lateral que el hero de la home, 4 vw).
   Menú de burguer por debajo de 1100 px (en tablet ya no caben 4 enlaces + 3 acciones).
   ========================================================= */
.cmh, .cmf {
	--c-blue: var(--cm-blue, #356ea6);
	--c-blue-700: var(--cm-blue-700, #2a5885);
	--c-blue-800: var(--cm-blue-800, #1f4468);
	--c-blue-300: var(--cm-blue-300, #7fa6cc);
	--c-blue-50: var(--cm-blue-50, #eaf3fb);
	--c-ink: var(--cm-ink, #16263a);
	--c-muted: var(--cm-muted, #51606d);
	--c-line: var(--cm-line, #e3eaf1);
	--c-surface: var(--cm-surface, #f3f7fb);
	--c-pad: clamp(20px, 4vw, 64px);
	box-sizing: border-box;
}
.cmh *, .cmh *::before, .cmh *::after, .cmf *, .cmf *::before, .cmf *::after { box-sizing: border-box; }
.cmh ul, .cmf ul { list-style: none; margin: 0; padding: 0; }
.cmh li, .cmf li { margin: 0; padding: 0; font-size: 14px; line-height: 1.3; }
.cmh a, .cmf a { text-decoration: none; }
.cmh button { font: inherit; letter-spacing: inherit; text-transform: none; }

/* ------------------------------------------------------------------ CABECERA */
.cmh {
	position: relative;
	z-index: 900;
	background: #fff;
	border-bottom: 1px solid var(--c-line);
	font-family: Poppins, sans-serif;
	transition: box-shadow .2s ease;
}
@media (min-width: 768px) {
	.cmh { position: sticky; top: 0; }
}
/* Con la barra de administración (solo editores con sesión) la cabecera pegajosa queda debajo de ella */
@media (min-width: 783px) {
	.admin-bar .cmh { top: 32px; }
}
.cmh.is-scrolled { box-shadow: 0 10px 28px -16px rgba(16, 36, 62, .38); }

.cmh .cmh__in {
	display: flex;
	align-items: center;
	gap: clamp(16px, 2.4vw, 44px);
	max-width: 1760px;
	height: 84px;
	margin: 0 auto;
	padding: 0 var(--c-pad);
}
.cmh .cmh__logo { flex: 0 0 auto; display: block; line-height: 0; }
.cmh .cmh__logo img { display: block; width: clamp(128px, 11vw, 160px); height: auto; }

/* Menú principal (escritorio) */
.cmh .cmh__nav { flex: 1 1 auto; min-width: 0; }
.cmh .cmh__menu { display: flex; align-items: center; justify-content: center; gap: clamp(2px, .6vw, 10px); }
.cmh .cmh__item { position: relative; }
.cmh .cmh__link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 44px;
	padding: 9px clamp(12px, 1.2vw, 18px);
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--c-ink);
	font-family: Poppins, sans-serif;
	font-size: 15.5px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -.005em;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}
.cmh .cmh__link:hover, .cmh .cmh__item--sub:hover > .cmh__toggle, .cmh .cmh__toggle[aria-expanded="true"] {
	background: var(--c-blue-50);
	color: var(--c-blue);
}
.cmh .cmh__link[aria-current="page"] { color: var(--c-blue); }
.cmh .cmh-i { display: block; flex: 0 0 auto; }
.cmh .cmh-i--caret { width: 10px; height: 10px; fill: currentColor; transition: rotate .2s ease; }
.cmh .cmh__toggle[aria-expanded="true"] .cmh-i--caret { rotate: 180deg; }

/* Mega menú de «Puntos de entrega» */
.cmh .cmh__drop {
	position: absolute;
	z-index: 5;
	top: 100%;
	left: 50%;
	width: min(820px, 94vw);
	padding-top: 12px;
	visibility: hidden;
	opacity: 0;
	translate: -50% 6px;
	transition: opacity .16s ease, translate .16s ease, visibility 0s linear .16s;
}
.cmh .cmh__item--sub.is-open > .cmh__drop {
	visibility: visible;
	opacity: 1;
	translate: -50% 0;
	transition-delay: 0s;
}
@media (hover: hover) and (min-width: 1100px) {
	.cmh .cmh__item--sub:hover > .cmh__drop {
		visibility: visible;
		opacity: 1;
		translate: -50% 0;
		transition-delay: 0s;
	}
}
.cmh .cmh__sub {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 22px;
	padding: 16px;
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: 22px;
	box-shadow: 0 24px 56px -20px rgba(16, 36, 62, .45);
}
.cmh .cmh__feature { grid-column: 1 / -1; }
.cmh .cmh__feature a {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 15px 18px 15px 64px;
	border-radius: 16px;
	background: linear-gradient(125deg, #356ea6 0%, #1f4468 100%);
	color: #fff;
	font: 600 15.5px/1.25 Poppins, sans-serif;
	transition: filter .15s ease;
}
.cmh .cmh__feature a::before {
	content: "";
	position: absolute;
	left: 18px;
	top: 50%;
	width: 32px;
	height: 32px;
	margin-top: -16px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7Zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5Z'/%3E%3C/svg%3E") center / 17px no-repeat;
}
.cmh .cmh__feature a:hover { filter: brightness(1.08); }
.cmh .cmh__feat-s { font: 400 13px/1.3 Inter, sans-serif; opacity: .85; }
.cmh .cmh__grp { min-width: 0; }
.cmh .cmh__lbl {
	display: block;
	padding: 2px 12px 8px;
	color: var(--c-muted);
	font: 600 12.5px/1.2 Inter, sans-serif;
	letter-spacing: .01em;
}
.cmh .cmh__list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 6px; }
.cmh .cmh__sublink {
	display: block;
	padding: 8px 10px;
	white-space: nowrap;
	border-radius: 10px;
	color: #42566a;
	font: 400 14.5px/1.3 Inter, sans-serif;
	transition: background-color .15s ease, color .15s ease;
}
.cmh .cmh__sublink:hover, .cmh .cmh__sublink:focus-visible { background: var(--c-blue-50); color: var(--c-blue); }
.cmh .cmh__sublink[aria-current="page"] { color: var(--c-blue); font-weight: 600; }
/* Submenú sin grupos (por si el menú cambia): lista simple */
.cmh .cmh__sub > li:not(.cmh__feature):not(.cmh__grp) { grid-column: 1 / -1; }

/* Acciones */
.cmh .cmh__acc { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; }
.cmh .cmh__wa, .cmh .cmh__cli {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	border: 1px solid #e0e8f0;
	border-radius: 999px;
	background: #fff;
	color: var(--c-blue);
	transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.cmh .cmh__wa { width: 44px; }
.cmh .cmh__wa .cmh-i { width: 22px; height: 22px; }
.cmh .cmh__cli { padding: 0 18px; color: var(--c-ink); font: 500 15px/1 Poppins, sans-serif; white-space: nowrap; }
.cmh .cmh__cli .cmh-i { width: 20px; height: 20px; color: var(--c-blue); }
.cmh .cmh__wa:hover, .cmh .cmh__cli:hover { border-color: var(--c-blue); background: var(--c-blue-50); }
.cmh .cmh__cli:hover { color: var(--c-blue); }
.cmh .cmh__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 44px;
	padding: 0 26px;
	border-radius: 999px;
	background: linear-gradient(125deg, #356ea6 0, #1b4e7e 60%, #0f3e66 100%);
	box-shadow: 0 6px 18px -6px rgba(27, 78, 126, .5);
	color: #fff;
	font: 500 15px/1 Poppins, sans-serif;
	white-space: nowrap;
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.cmh .cmh__cta:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(27, 78, 126, .6); filter: brightness(1.06); color: #fff; }
.cmh .cmh__cta:active { transform: scale(.97); }
.cmh .cmh-i--coche { width: 20px; height: 20px; fill: currentColor; }

/* Botón del menú y panel: solo por debajo de 1100 px */
.cmh .cmh__burger { display: none; }
.cmh .cmh__extra { display: none; }

@media (max-width: 1099.98px) {
	.cmh .cmh__in { gap: 12px; padding: 0 clamp(16px, 4vw, 40px); }
	.cmh .cmh__logo { margin-right: auto; }
	.cmh .cmh__logo img { width: 112px; }
	.cmh .cmh__acc { gap: 10px; }
	.cmh .cmh__wa { display: none; }
	.cmh .cmh__cli { width: 44px; padding: 0; }
	.cmh .cmh__cli span { display: none; }
	.cmh .cmh__burger {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 1px solid #dbe6f1;
		border-radius: 12px;
		background: #fff;
		box-shadow: 0 2px 8px -2px rgba(22, 38, 58, .12);
		color: var(--c-blue);
		cursor: pointer;
	}
	.cmh .cmh__burger .cmh-i { width: 22px; height: 22px; fill: currentColor; }
	.cmh .cmh__burger .cmh-i--cerrar { display: none; }
	.cmh.is-open .cmh__burger .cmh-i--burger { display: none; }
	.cmh.is-open .cmh__burger .cmh-i--cerrar { display: block; }

	/* Panel a pantalla completa justo bajo la cabecera */
	.cmh .cmh__nav {
		display: none;
		position: fixed;
		z-index: 899;
		left: 0;
		right: 0;
		top: var(--cm-menu-top, 82px);
		bottom: 0;
		overflow-y: auto;
		overscroll-behavior: contain;
		background: #fff;
		padding-bottom: env(safe-area-inset-bottom);
	}
	.cmh.is-open .cmh__nav { display: block; }
	.cmh .cmh__menu { display: block; padding: 6px 0 0; }
	.cmh .cmh__item { border-bottom: 1px solid var(--c-line); }
	.cmh .cmh__link {
		display: flex;
		width: 100%;
		min-height: 58px;
		padding: 17px 22px;
		border-radius: 0;
		justify-content: flex-start;
		font-size: 16.5px;
		text-align: left;
	}
	.cmh .cmh__link:hover, .cmh .cmh__item--sub:hover > .cmh__toggle { background: transparent; color: var(--c-ink); }
	.cmh .cmh__toggle[aria-expanded="true"] { background: transparent; color: var(--c-blue); }
	.cmh .cmh__link[aria-current="page"] { color: var(--c-blue); }
	.cmh .cmh__toggle .cmh-i--caret { margin-left: auto; width: 12px; height: 12px; }

	/* Submenú como acordeón dentro del panel */
	.cmh .cmh__drop {
		position: static;
		display: none;
		width: auto;
		padding: 0;
		visibility: visible;
		opacity: 1;
		translate: none;
		transition: none;
	}
	.cmh .cmh__item--sub.is-open > .cmh__drop { display: block; translate: none; }
	.cmh .cmh__sub {
		display: block;
		padding: 8px 18px 20px;
		border: 0;
		border-radius: 0;
		background: var(--c-surface);
		box-shadow: none;
	}
	.cmh .cmh__feature { margin: 8px 0 4px; }
	.cmh .cmh__feature a { padding-block: 14px; }
	.cmh .cmh__lbl { padding: 14px 2px 8px; }
	.cmh .cmh__list { display: flex; flex-wrap: wrap; gap: 0; }
	.cmh .cmh__list li { margin: 0 6px 8px 0; }
	.cmh .cmh__sublink {
		padding: 9px 14px;
		border: 1px solid var(--c-line);
		border-radius: 999px;
		background: #fff;
		font-size: 14px;
		white-space: nowrap;
	}
	.cmh .cmh__sublink:active { background: var(--c-blue-50); border-color: var(--c-blue-300); }

	/* Pie del panel: Reservar, Llamar, WhatsApp e idioma */
	.cmh .cmh__extra { display: block; padding: 22px 22px 28px; }
	.cmh .cmh__book {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 54px;
		border-radius: 16px;
		background: linear-gradient(125deg, #356ea6 0, #1b4e7e 60%, #0f3e66 100%);
		color: #fff;
		font: 600 16px/1 Poppins, sans-serif;
	}
	.cmh .cmh__row { display: flex; gap: 10px; margin-top: 10px; }
	.cmh .cmh__row a {
		flex: 1;
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 48px;
		border: 1px solid var(--c-line);
		border-radius: 14px;
		background: #fff;
		color: var(--c-ink);
		font: 500 15px/1 Poppins, sans-serif;
	}
	.cmh .cmh__row a.cmh__row-wa { color: #1c8a3f; }
	.cmh .cmh__lang { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
	.cmh .cmh__lang a {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 52px;
		height: 38px;
		border-radius: 999px;
		color: var(--c-muted);
		font: 600 13px/1 Poppins, sans-serif;
	}
	.cmh .cmh__lang a[aria-current="true"] { background: var(--c-blue-50); color: var(--c-blue); }
}
/* Teléfonos: la cabecera lleva solo logo + usuario + menú (la reserva está en la barra inferior) */
@media (max-width: 767.98px) {
	.cmh .cmh__in { height: 82px; }
	.cmh .cmh__cta { display: none; }
}
@media (min-width: 768px) and (max-width: 1099.98px) {
	.cmh .cmh__cta { padding: 0 20px; }
}
/* Portátil estrecho: sin el texto de «Área de cliente» para que quepa todo */
@media (min-width: 1100px) and (max-width: 1279.98px) {
	.cmh .cmh__cli { width: 44px; padding: 0; }
	.cmh .cmh__cli span { display: none; }
	.cmh .cmh__link { padding-inline: 12px; }
}
html.cm-menu-open, html.cm-menu-open body { overflow: hidden !important; }
html.cm-menu-open .cm-mobile-cta { transform: translateY(110%); opacity: 0; pointer-events: none; }

/* Enfoque visible */
.cmh a:focus-visible, .cmh button:focus-visible, .cmf a:focus-visible, .cmf button:focus-visible {
	outline: 2px solid var(--c-blue);
	outline-offset: 2px;
}
.cmf a:focus-visible, .cmf button:focus-visible { outline-color: #fff; }

/* ------------------------------------------------------------------ PIE */
.cmf {
	background: linear-gradient(135deg, #1b4e7e 0%, #0f3e66 45%, #002949 100%);
	color: #cfe0ef;
	font-family: Inter, sans-serif;
}
.cmf .cmf__in {
	display: grid;
	grid-template-columns: 250px max-content max-content max-content;
	justify-content: space-between;
	gap: 40px 48px;
	max-width: 1760px;
	margin: 0 auto;
	padding: 56px var(--c-pad) 46px;
}
.cmf .cmf__logo { display: inline-block; line-height: 0; }
.cmf .cmf__logo img { display: block; width: 176px; height: auto; }
.cmf .cmf__claim { max-width: 330px; margin: 16px 0 18px; color: #9fc0dc; font-size: 13.5px; line-height: 1.65; }
.cmf .cmf__contact { display: flex; flex-wrap: wrap; gap: 10px; }
.cmf .cmf__cbtn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 168px;
	padding: 10px 16px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .09);
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	transition: background-color .15s ease, transform .15s ease;
}
.cmf .cmf__cbtn:hover { background: rgba(255, 255, 255, .18); transform: translateY(-1px); color: #fff; }
.cmf .cmf__cbtn--wa:hover { background: #25963f; }
.cmf .cmf-i { display: block; flex: 0 0 auto; width: 17px; height: 17px; }
.cmf .cmf__h {
	margin: 2px 0 16px;
	color: #fff;
	font: 600 13px/1.2 Poppins, sans-serif;
	letter-spacing: .05em;
	text-transform: uppercase;
}
.cmf .cmf__list { display: grid; gap: 10px; }
.cmf .cmf__list li, .cmf .cmf__locs li { font-size: 13.5px; line-height: 1.3; }
/* Dos columnas en orden de lectura vertical: servicios a la izquierda, viajeros a la derecha */
.cmf .cmf__list--2 { grid-auto-flow: column; grid-template-rows: repeat(10, auto); grid-template-columns: repeat(2, max-content); gap: 10px 36px; }
.cmf .cmf__locs { display: grid; grid-auto-flow: column; grid-template-rows: repeat(8, auto); grid-template-columns: repeat(3, max-content); gap: 10px 28px; }
.cmf .cmf__link { display: inline-block; color: #bcd5ea; font-size: 13.5px; line-height: 1.3; transition: color .15s ease, translate .15s ease; }
.cmf .cmf__link:hover { color: #fff; translate: 3px 0; }
.cmf .cmf__pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 16px;
	padding: 8px 15px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 999px;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	transition: background-color .15s ease;
}
.cmf .cmf__pill:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.cmf .cmf-i--pin { width: 14px; height: 14px; fill: #fff; }

.cmf .cmf__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	max-width: 1760px;
	margin: 0 auto;
	padding: 18px var(--c-pad) 22px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	color: #7fa6c6;
	font-size: 12.5px;
}
.cmf .cmf__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 10px; }
.cmf .cmf__legal a, .cmf .cmf__cookies {
	margin: 0;
	padding: 4px 6px;
	border: 0;
	background: none;
	color: #bcd5ea;
	font: inherit;
	font-size: 12.5px;
	line-height: 1.3;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	transition: color .15s ease;
}
.cmf .cmf__legal a:hover, .cmf .cmf__cookies:hover { color: #fff; }

/* Portátil: la marca ocupa una fila y las tres columnas de enlaces van debajo */
@media (max-width: 1359.98px) {
	.cmf .cmf__in { grid-template-columns: max-content max-content max-content; }
	.cmf .cmf__brand { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
	.cmf .cmf__claim { margin: 0; }
	.cmf .cmf__contact { margin-left: auto; }
}
/* Tablet */
@media (max-width: 1099.98px) {
	.cmf .cmf__in { grid-template-columns: max-content 1fr; justify-content: stretch; padding-top: 44px; }
	.cmf .cmf__col--loc { grid-column: 1 / -1; grid-row: 3; }
	.cmf .cmf__locs { grid-template-rows: repeat(6, auto); grid-template-columns: repeat(4, max-content); justify-content: space-between; }
}
/* Teléfono: una columna, las ubicaciones en dos */
@media (max-width: 767.98px) {
	.cmf .cmf__in { grid-template-columns: 1fr; gap: 26px 24px; padding: 34px 20px 26px; }
	.cmf .cmf__h { margin-bottom: 13px; }
	.cmf .cmf__list { gap: 9px; }
	.cmf .cmf__locs { gap: 9px 16px; }
	.cmf .cmf__list li, .cmf .cmf__locs li, .cmf .cmf__link { font-size: 13px; }
	.cmf .cmf__brand { display: block; }
	.cmf .cmf__claim { margin: 14px 0 16px; }
	.cmf .cmf__contact { margin-left: 0; }
	.cmf .cmf__logo img { width: 170px; }
	.cmf .cmf__col--loc { grid-column: auto; grid-row: auto; }
	.cmf .cmf__list--2 { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: 1fr; }
	.cmf .cmf__locs { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: 1fr 1fr; }
	.cmf .cmf__bottom { flex-direction: column; gap: 6px; padding: 16px 20px 22px; text-align: center; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.cmh *, .cmf * { transition-duration: .01ms !important; }
}
