/**
 * Ajustes del sitio — añade aquí reglas sueltas.
 * Se carga desde functions.php del child theme (después de style.css).
 *
 * BeTheme usa el id #Content (C mayúscula). El título de página por defecto
 * suele ir en #Subheader > .title (encima del contenido).
 */

/* Portada: WordPress añade body.home en is_front_page() (página estática o blog en inicio). */

/* Título de página en BeTheme va en #Subheader > .title (encima de #Content). */
body.home #Subheader .title,
body.home #Subheader h1.title {
	display: none !important;
}

/* Por si el título o cabecera duplicada aparece dentro de #Content. */
body.home #Content .post-header,
body.home #Content .entry-header,
body.home #Content .page-header,
body.home #Content h1.entry-title {
	display: none !important;
}
body.home #Content {
	padding-top: 0;
}

/* BeTheme deja ~30px de margin-bottom bajo #Content; lo anulamos. */
#Content {
	padding-top: 0 !important;
}

.osws-hero__title {
	color: #fff;
}

a:hover {
	color: #fff !important;
}

/* =============================================================================
   Cabecera split — estilo tipo mockup (oscuro, acento teal, CTA ghost)
   Aplica con body.header-split (BeTheme).
   ============================================================================= */
body.header-split {
	--mfn-child-nav-accent: #2ac7c0;
	--mfn-child-nav-bg: rgba(8, 10, 12, 0.94);
	--mfn-child-nav-text: rgba(255, 255, 255, 0.92);
	--mfn-child-nav-muted: rgba(255, 255, 255, 0.55);
	/* Altura del logo + aire; la barra y los enlaces se alinean a esto */
	--mfn-child-logo-height: 100px;
	/* Un poco más alto que el logo para que no lo recorten los contenedores del tema */
	--mfn-child-header-bar-height: 132px;
}

/* Nada de overflow:hidden en la cadena del header: el logo puede “respirar” fuera */
body.header-split #Header_wrapper,
body.header-split #Header,
body.header-split #Top_bar,
body.header-split #Top_bar .container,
body.header-split #Top_bar .column.one,
body.header-split #Top_bar .top_bar_left,
body.header-split #Top_bar .logo,
body.header-split #Top_bar .menu_wrapper,
body.header-split #Top_bar #menu,
body.header-split #Top_bar #menu > ul.menu,
body.header-split #Top_bar #menu > ul.menu > li {
	overflow: visible !important;
}

body.header-split #Top_bar .container {
	margin-inline: auto !important;
	padding-inline: clamp(1rem, 3vw, 2rem) !important;
	box-sizing: border-box;
}
body.header-split #Top_bar {
	top: 30px !important;
}

/* Barra superior */
body.header-split #Top_bar {
	position: relative;
	z-index: 1000;
	background: var(--mfn-child-nav-bg) !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
	backdrop-filter: saturate(140%) blur(10px);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
}

body.header-split #Top_bar.is-sticky {
	background: rgba(6, 8, 10, 0.98) !important;
	border-bottom-color: rgba(255, 255, 255, 0.08);
	min-height: var(--mfn-child-header-bar-height);
}

body.header-split #Header .top_bar_left,
body.header-split #Header .top_bar_right {
	background: transparent !important;
}

/* Altura mínima de la fila del header para alinear logo + menús en vertical */
body.header-split #Top_bar .top_bar_left {
	min-height: var(--mfn-child-header-bar-height);
}

/*
 * BeTheme: .menu_wrapper / #menu tienen z-index ~201 y quedan encima del logo en split.
 * Subimos solo el .logo (sin forzar position: relative aquí: en desktop debe seguir absolute).
 */
body.header-split #Top_bar .top_bar_left .logo {
	z-index: 250 !important;
}
.sticky-dark #Top_bar.is-sticky, .sticky-dark #Top_bar.is-sticky #menu {
	background: transparent !important;
}

/*
 * BeTheme fuerza #logo a height:60px + padding 15px y img max-height:100% → recorta logos altos.
 * Lo anulamos en split para que el PNG circular (100px) se vea entero.
 */
body.header-split #Top_bar #logo {
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	padding: 0 !important;
	line-height: 0 !important;
	overflow: visible !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box !important;
}

/* Regla del tema con atributo height (WP Rocket / Be); debe permitir 100px real */
body.header-split #Top_bar #logo img,
body.header-split #Top_bar #logo img[height] {
	height: var(--mfn-child-logo-height) !important;
	max-height: none !important;
	width: auto !important;
	max-width: min(320px, 30vw);
	object-fit: contain;
	object-position: center;
	vertical-align: middle;
}

/* Logo centrado en vertical dentro de la franja reservada (split desktop) */
@media only screen and (min-width: 1240px) {
	body.header-split #Top_bar .top_bar_left .logo {
		display: flex;
		align-items: center;
		justify-content: center;
		position: absolute !important;
		top: 50%;
		transform: translateY(-50%);
		min-height: var(--mfn-child-logo-height);
		height: auto;
		max-height: none;
		overflow: visible !important;
		z-index: 250 !important;
	}
}

/* Centrado vertical de los bloques de menú */
body.header-split #Top_bar .menu_wrapper {
	display: flex;
	align-items: center;
	min-height: var(--mfn-child-header-bar-height);
}

body.header-split #Top_bar #menu {
	display: flex;
	align-items: center;
	width: 100%;
}

/* Menús izq / dcha: acercar enlaces al centro (como referencia) */
@media only screen and (min-width: 1240px) {
	body.header-split #Top_bar .menu_left {
		text-align: right;
		padding-right: 0.5rem;
	}

	body.header-split #Top_bar .menu_right {
		text-align: left;
		padding-left: 0.5rem;
	}
}

/* Enlaces principales (altura de fila = barra; el CTA va aparte, no al 100%) */
body.header-split #Top_bar #menu > ul.menu > li:not(.mfn-child-header-cta) > a {
	color: var(--mfn-child-nav-text) !important;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0 14px !important;
	align-items: center;
	transition: color 0.2s ease, opacity 0.2s ease;
}

body.header-split #Top_bar #menu > ul.menu > li:not(.mfn-child-header-cta) > a span {
	border-bottom: 2px solid transparent;
	padding-bottom: 2px;
	transition: border-color 0.2s ease, color 0.2s ease;
}

/* Hover */
body.header-split #Top_bar #menu > ul.menu > li:not(.mfn-child-header-cta) > a:hover,
body.header-split #Top_bar #menu > ul.menu > li:not(.mfn-child-header-cta).hover > a {
	color: #fff !important;
	opacity: 1;
}

body.header-split #Top_bar #menu > ul.menu > li:not(.mfn-child-header-cta) > a:hover span,
body.header-split #Top_bar #menu > ul.menu > li:not(.mfn-child-header-cta).hover > a span {
	border-bottom-color: var(--mfn-child-nav-accent);
	color: #fff !important;
}

/* Activo (Inicio, etc.) */
body.header-split #Top_bar #menu > ul.menu > li.current-menu-item > a,
body.header-split #Top_bar #menu > ul.menu > li.current_page_item > a,
body.header-split #Top_bar #menu > ul.menu > li.current-menu-ancestor > a {
	color: var(--mfn-child-nav-accent) !important;
}

body.header-split #Top_bar #menu > ul.menu > li.current-menu-item > a span,
body.header-split #Top_bar #menu > ul.menu > li.current_page_item > a span,
body.header-split #Top_bar #menu > ul.menu > li.current-menu-ancestor > a span {
	border-bottom-color: var(--mfn-child-nav-accent);
}

/* CTA «RESERVAR AHORA» — píldora compacta (no hereda altura completa de la barra) */
body.header-split #Top_bar #menu > ul.menu > li.mfn-child-header-cta {
	margin-left: 8px;
	align-self: center;
}

body.header-split #Top_bar #menu > ul.menu > li.mfn-child-header-cta > a.mfn-child-header-cta__link {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	margin: 0 0 0 6px !important;
	min-height: 0 !important;
	height: auto !important;
	max-height: none !important;
	padding: 0.55rem 1.25rem !important;
	line-height: 1.2 !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 0.1em !important;
	text-transform: uppercase !important;
	color: #fff !important;
	border: 2px solid rgba(255, 255, 255, 0.85) !important;
	border-radius: 999px !important;
	background: transparent !important;
	box-sizing: border-box !important;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body.header-split #Top_bar #menu > ul.menu > li.mfn-child-header-cta > a.mfn-child-header-cta__link:hover,
body.header-split #Top_bar #menu > ul.menu > li.mfn-child-header-cta > a.mfn-child-header-cta__link:focus-visible {
	color: #0a0a0a !important;
	background: var(--mfn-child-nav-accent) !important;
	border-color: var(--mfn-child-nav-accent) !important;
	transform: translateY(-1px);
}

body.header-split #Top_bar #menu > ul.menu > li.mfn-child-header-cta > a.mfn-child-header-cta__link span {
	border-bottom: 0 !important;
	padding-bottom: 0 !important;
}

/* Submenús */
body.header-split #Top_bar #menu > ul.menu > li.submenu,
body.header-split #Top_bar #menu > ul.menu > li.menu-item-has-children {
	position: relative;
	z-index: 1002;
}

body.header-split #Top_bar .menu > li ul {
	position: absolute !important;
	top: calc(100% - 0.75rem) !important;
	left: 50% !important;
	right: auto !important;
	z-index: 10050 !important;
	display: none;
	min-width: 240px;
	margin: 0 !important;
	padding: 0.55rem 0;
	background: #121518 !important;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
	transform: translateX(-50%);
	overflow: visible !important;
}

body.header-split #Top_bar .menu > li:hover > ul,
body.header-split #Top_bar .menu > li.hover > ul,
body.header-split #Top_bar .menu > li:focus-within > ul {
	display: block !important;
}

body.header-split #Top_bar .menu > li ul li {
	width: 100% !important;
	min-width: 240px;
}

body.header-split #Top_bar .menu > li ul li a {
	display: block;
	padding: 0.72rem 1rem !important;
	color: rgba(255, 255, 255, 0.88) !important;
	font-size: 12px;
	font-weight: 650;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
	white-space: nowrap;
}

body.header-split #Top_bar .menu > li ul li:last-child a {
	border-bottom: 0 !important;
}

body.header-split #Top_bar .menu > li ul li a:hover {
	color: #fff !important;
	background: rgba(255, 255, 255, 0.04) !important;
}

/* Hamburguesa móvil */
body.header-split #Top_bar .responsive-menu-toggle {
	color: #fff !important;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 10px;
	padding: 8px 12px !important;
	transition: border-color 0.2s ease, background 0.2s ease;
}

body.header-split #Top_bar .responsive-menu-toggle:hover {
	border-color: var(--mfn-child-nav-accent);
	background: rgba(42, 199, 192, 0.12);
}

/* Header móvil: compacto y sin que el wrapper del menú reserve altura */
@media only screen and (max-width: 1239px) {
	body.header-split {
		--mfn-child-logo-height: 86px;
		--mfn-child-header-bar-height: 118px;
	}

	body.header-split #Top_bar,
	body.header-split #Top_bar.is-sticky {
		top: 0 !important;
		min-height: 0 !important;
		background: rgba(8, 10, 12, 0.98) !important;
	}

	body.header-split #Top_bar .container {
		max-width: 100% !important;
		padding-inline: 0 !important;
	}

	body.header-split #Top_bar .column.one {
		margin: 0 !important;
	}

	body.header-split #Top_bar .top_bar_left {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100% !important;
		min-height: var(--mfn-child-header-bar-height) !important;
		height: var(--mfn-child-header-bar-height) !important;
	}

	body.header-split #Top_bar .top_bar_left .logo {
		position: static !important;
		float: none !important;
		width: auto !important;
		margin: 0 !important;
		text-align: center;
		transform: none !important;
	}

	body.header-split #Top_bar #logo {
		margin: 0 !important;
		padding: 0 !important;
		height: auto !important;
		line-height: 0 !important;
	}

	body.header-split #Top_bar #logo img,
	body.header-split #Top_bar #logo img[height] {
		height: var(--mfn-child-logo-height) !important;
		max-width: 120px;
	}

	body.header-split #Top_bar .menu_wrapper {
		position: absolute !important;
		inset: 0;
		display: block !important;
		width: 100% !important;
		min-height: 0 !important;
		height: var(--mfn-child-header-bar-height) !important;
		margin: 0 !important;
		pointer-events: none;
	}

	body.header-split #Top_bar #menu {
		display: none !important;
	}

	body.header-split #Top_bar .responsive-menu-toggle {
		position: absolute !important;
		top: 50% !important;
		right: max(1rem, env(safe-area-inset-right, 0px)) !important;
		left: auto !important;
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		width: 2.8rem;
		height: 2.8rem;
		margin: 0 !important;
		padding: 0 !important;
		transform: translateY(-50%);
		z-index: 10020;
		pointer-events: auto;
	}

	body.header-split #Top_bar .responsive-menu-toggle i {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 100%;
		line-height: 1 !important;
	}

	body.header-split #Side_slide {
		z-index: 100000 !important;
	}
}

@media only screen and (max-width: 480px) {
	body.header-split {
		--mfn-child-logo-height: 78px;
		--mfn-child-header-bar-height: 108px;
	}
}

/* Buscador en Top_bar: icono legible sobre fondo oscuro */
body.header-split #Top_bar .top_bar_right .top-bar-right-icon svg .path,
body.header-split #Top_bar .search_wrapper .icon_search .path {
	stroke: rgba(255, 255, 255, 0.85) !important;
}

@media only screen and (max-width: 1239px) {
	body.header-split #Top_bar #menu > ul.menu > li > a {
		font-size: 12px;
		padding: 0 10px !important;
	}
}

body.header-split #Header .top_bar_left .menu_left {
	text-align: right;
}

/* =============================================================================
   Páginas legales — Aviso legal, Privacidad, Cookies y Condiciones
   ============================================================================= */
.osws-legal {
	--osws-legal-accent: #2ac7c0;
	--osws-legal-bg: #f4f8fa;
	--osws-legal-card: #ffffff;
	--osws-legal-text: #111318;
	--osws-legal-muted: #5a6169;
	--osws-legal-border: rgba(17, 19, 24, 0.08);
	position: relative;
	padding-block: clamp(3rem, 7vw, 5.5rem);
	padding-inline: max(1.1rem, env(safe-area-inset-left, 0px)) max(1.1rem, env(safe-area-inset-right, 0px));
	background:
		radial-gradient(52% 38% at 8% 0%, rgba(42, 199, 192, 0.08) 0%, transparent 55%),
		var(--osws-legal-bg);
	color: var(--osws-legal-text);
}

.osws-legal *,
.osws-legal *::before,
.osws-legal *::after {
	box-sizing: border-box;
}

.osws-legal__shell {
	width: 100%;
	max-width: 880px;
	margin-inline: auto;
}

.osws-legal__header {
	margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
	text-align: center;
}

.osws-legal__eyebrow {
	margin: 0 0 0.65rem;
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--osws-legal-accent);
}

.osws-legal__title {
	margin: 0 0 0.85rem;
	font-size: clamp(1.8rem, 2.5vw + 1rem, 3rem);
	font-weight: 850;
	line-height: 1.08;
	letter-spacing: -0.04em;
	text-wrap: balance;
	color: var(--osws-legal-text);
}

.osws-legal__lead {
	max-width: 680px;
	margin: 0 auto;
	font-size: clamp(0.96rem, 0.28vw + 0.88rem, 1.05rem);
	line-height: 1.7;
	color: var(--osws-legal-muted);
	text-wrap: pretty;
}

.osws-legal__card {
	padding: clamp(1.25rem, 4vw, 2.5rem);
	background: var(--osws-legal-card);
	border: 1px solid var(--osws-legal-border);
	border-radius: clamp(18px, 2.5vw, 26px);
	box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

.osws-legal__card h2 {
	margin: clamp(1.6rem, 4vw, 2.15rem) 0 0.65rem;
	font-size: clamp(1.12rem, 0.7vw + 0.95rem, 1.38rem);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.025em;
	color: var(--osws-legal-text);
}

.osws-legal__card h2:first-child {
	margin-top: 0;
}

.osws-legal__card p,
.osws-legal__card li {
	font-size: clamp(0.94rem, 0.22vw + 0.88rem, 1rem);
	line-height: 1.72;
	color: var(--osws-legal-muted);
}

.osws-legal__card p {
	margin: 0 0 0.9rem;
}

.osws-legal__card p:last-child {
	margin-bottom: 0;
}

.osws-legal__card ul,
.osws-legal__card ol {
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.45rem;
}

.osws-legal__card li {
	position: relative;
	padding-left: 1.35rem;
}

.osws-legal__card li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.72em;
	width: 0.46rem;
	height: 0.46rem;
	background: var(--osws-legal-accent);
	border-radius: 50%;
	box-shadow: 0 0 0 4px rgba(42, 199, 192, 0.12);
}

.osws-legal__card strong {
	font-weight: 800;
	color: var(--osws-legal-text);
}

.osws-legal__card a {
	color: var(--osws-legal-accent);
	font-weight: 700;
	text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
	.osws-legal__card a:hover {
		color: #111318 !important;
		text-decoration: underline;
		text-underline-offset: 0.18em;
	}
}