/* ==========================================================
   Pop up del home (template-parts/popup-home.php)
   ========================================================== */

.popup-home.modal {
	padding-right: 0 !important;
}

.popup-home + .modal-backdrop.show,
.modal-backdrop.show {
	opacity: .57;
}

.popup-home__dialog {
	max-width: 1030px;
	width: calc(100% - 32px);
	margin-left: auto;
	margin-right: auto;
}

.popup-home__content {
	display: flex;
	flex-direction: row;
	min-height: 458px;
	border: 0;
	border-radius: 0;
	overflow: hidden;
	background: #fff;
	font-family: 'Inter', 'Work Sans', sans-serif;
}

/* Columna de imagen */
.popup-home__media {
	position: relative;
	flex: 0 0 388px;
	max-width: 388px;
}

.popup-home__img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 40% center;
}

/* Columna de contenido */
.popup-home__body {
	position: relative;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: 62px 40px 62px 32px;
}

.popup-home__close {
	position: absolute;
	top: 18px;
	right: 20px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f4f1f6;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .2s ease;
}

.popup-home__close:hover,
.popup-home__close:focus {
	background: #e6e0ec;
	outline: none;
}

.popup-home__close img {
	display: block;
}

.popup-home__logo {
	display: block;
	width: 256px;
	height: auto;
	max-width: 100%;
	margin-bottom: 29px;
}

.popup-home__title {
	margin: 0 0 12px;
	font-family: 'Inter', 'Work Sans', sans-serif;
	font-weight: 700;
	font-size: 50px;
	line-height: 1.21;
	color: #2e2a33;
}

.popup-home__text {
	margin: 0 0 20px;
	font-family: 'Inter', 'Work Sans', sans-serif;
	font-weight: 400;
	font-size: 17px;
	line-height: 1.21;
	color: #464a53;
}

.popup-home__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 273px;
	max-width: 100%;
	height: 52px;
	border-radius: 6px;
	background: #7373bd;
	color: #fff;
	font-family: 'Inter', 'Work Sans', sans-serif;
	font-weight: 700;
	font-size: 16px;
	text-decoration: none;
	transition: background .2s ease;
}

.popup-home__btn:hover,
.popup-home__btn:focus {
	background: #5f5fa8;
	color: #fff;
	text-decoration: none;
}

.popup-home__btn img {
	display: block;
}

/* Sin imagen: solo la columna de contenido */
.popup-home--sin-imagen .popup-home__dialog {
	max-width: 680px;
}

.popup-home--sin-imagen .popup-home__content {
	min-height: 0;
}

/* Tablet */
@media (max-width: 991.98px) {
	.popup-home__media {
		flex-basis: 300px;
		max-width: 300px;
	}

	.popup-home__title {
		font-size: 38px;
	}
}

/* Móvil: imagen arriba, contenido abajo */
/* Tablet pequeña: imagen al lado, más compacto */
@media (max-width: 767.98px) {
	.popup-home__media {
		flex-basis: 38%;
		max-width: 38%;
	}

	.popup-home__body {
		padding: 56px 22px 32px 22px;
	}

	.popup-home__close {
		top: 12px;
		right: 12px;
	}

	.popup-home__logo {
		width: 180px;
		margin-bottom: 18px;
	}

	.popup-home__title {
		font-size: 28px;
	}

	.popup-home__text {
		font-size: 15px;
	}

	.popup-home__btn {
		width: 100%;
	}
}

@media (max-width: 500px) {
	.popup-home__content {
		position: relative;
		flex-direction: column;
		min-height: 0;
	}

	.popup-home__media {
		flex: 0 0 auto;
		max-width: none;
		height: 56vw;
		min-height: 200px;
		max-height: 340px;
	}

	.popup-home__img {
		object-position: 50% 25%;
	}

	.popup-home__body {
		position: static;
		padding: 28px 22px 30px;
	}

	.popup-home__close {
		top: 12px;
		right: 12px;
		z-index: 2;
	}

	.popup-home--sin-imagen .popup-home__body {
		padding-top: 64px;
	}

	.popup-home__logo {
		width: 190px;
		margin-bottom: 18px;
	}

	.popup-home__title {
		font-size: 28px;
	}

	.popup-home__text {
		font-size: 15px;
	}

	.popup-home__btn {
		width: 100%;
	}
}
