/* ========================================
   HOME BLOG — Figma 11051:20759
   ======================================== */

body.home-blog {
	--home-blog-content-width: 1120px;
	--home-blog-gutter-x: 160px;
}

/* Contenedor único — mismo ancho que la barra de filtros (Figma) */
body.home-blog .home-blog-content {
	width: 100%;
	max-width: var(--home-blog-content-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: 0;
	padding-right: 0;
}

body.home-blog .blog-filtros-wrapper > .container,
body.home-blog .blog-filtros-wrapper > .home-blog-content {
	max-width: var(--home-blog-content-width) !important;
	width: 100%;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: auto;
	margin-right: auto;
}

/* ── Hero / filtros — Figma Banner-Blog 11051:20769 ── */
body.home-blog .blog-filtros-wrapper {
	background-color: #ffffff;
	padding: 32px var(--home-blog-gutter-x);
	display: flex;
	flex-direction: column;
	align-items: center;
	box-sizing: border-box;
}

body.home-blog .blog-filtros-wrapper .home-blog-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	width: 100%;
}

body.home-blog .blog-filtros-head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	width: 100%;
	text-align: center;
}

body.home-blog .blog-filtros-titulo {
	font-family: 'Inter', sans-serif;
	font-weight: 900;
	font-size: 40px;
	line-height: 1.2;
	color: #151515;
	margin: 0;
	width: 100%;
	text-align: center;
}

body.home-blog .blog-filtros-desc {
	font-family: 'Inter', sans-serif;
	font-weight: 400;
	font-size: 18px;
	line-height: 1.5;
	color: #151515;
	margin: 0;
	width: 100%;
	text-align: center;
}

body.home-blog .blog-filtros-panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	width: 100%;
}

body.home-blog .blog-filtros-subtitulo {
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.5;
	color: #151515;
	margin: 0;
	width: 100%;
	text-align: center;
}

body.home-blog .blog-filtros-verfiltros-btn {
	display: none;
}

body.home-blog .blog-filtros-barra {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 24px;
	width: 100%;
	padding: 16px;
	background-color: #ffffff;
	border-radius: 4px;
	box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
}

body.home-blog .blog-filtros-dropdowns {
	display: flex;
	flex: 1 1 0;
	gap: 4px;
	min-width: 0;
	align-items: flex-start;
}

body.home-blog .blog-filtros-barra .custom-select-wrapper {
	position: relative;
	flex: 1 1 0;
	width: auto !important;
	min-width: 0;
	margin-bottom: 0;
}

body.home-blog .blog-filtros-barra .custom-select-trigger {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100% !important;
	box-sizing: border-box;
	background-color: #ffffff;
	border: 1px solid #c6c5c5;
	border-radius: 8px;
	padding: 16px;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: #959595;
	cursor: pointer;
	height: auto;
	justify-content: flex-start;
}

body.home-blog .blog-filtros-barra .custom-select-trigger .trigger-text {
	flex: 1 1 0;
	min-width: 0;
	text-align: left;
	color: #959595;
}

body.home-blog .blog-filtros-barra .custom-select-trigger img {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

body.home-blog .blog-filtros-btn {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	padding: 16px 32px;
	background-color: #ff4e00;
	color: #ffffff;
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.2;
	border: none;
	border-radius: 100px;
	cursor: pointer;
	white-space: nowrap;
	box-shadow:
		0 126px 17.5px rgba(0, 0, 0, 0),
		0 81px 16px rgba(0, 0, 0, 0.01),
		0 45px 13.5px rgba(0, 0, 0, 0.05),
		0 20px 10px rgba(0, 0, 0, 0.09),
		0 5px 5.5px rgba(0, 0, 0, 0.1),
		0 0 0 rgba(0, 0, 0, 0.1);
}

/* ── Sección destacada (Frame 164000) ── */
body.home-blog .home-blog-featured {
	background-image: url('/images/blogcard/fondos/frame-164000.png');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	padding: 32px var(--home-blog-gutter-x);
}

body.home-blog .home-blog-featured .container,
body.home-blog .home-blog-featured .home-blog-content {
	max-width: var(--home-blog-content-width) !important;
	width: 100%;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: auto;
	margin-right: auto;
}

body.home-blog .home-blog-featured__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 18px;
}

body.home-blog .home-blog-featured__title {
	font-family: 'Inter', sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	color: #151515;
	margin: 0;
	text-align: left;
}

body.home-blog .home-blog-featured__title-accent {
	color: #ff4e00;
}

body.home-blog .home-blog-featured__nav {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
}

body.home-blog .home-blog-featured__nav-buttons {
	display: flex;
	align-items: center;
	gap: 12px;
}

body.home-blog .home-blog-featured .swiper-button-prev-blog,
body.home-blog .home-blog-featured .swiper-button-next-blog {
	width: 50px;
	height: 50px;
	border-radius: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	margin: 0;
	position: static;
}

body.home-blog .home-blog-featured .swiper-button-prev-blog {
	background: #ffffff;
	border: 1px solid #e6e6e6;
}

body.home-blog .home-blog-featured .swiper-button-next-blog {
	background: #ff4e00;
	border: none;
	box-shadow:
		0 181px 25.5px rgba(0, 0, 0, 0),
		0 116px 23px rgba(0, 0, 0, 0.01),
		0 65px 19.5px rgba(0, 0, 0, 0.04),
		0 29px 14.5px rgba(0, 0, 0, 0.06),
		0 7px 8px rgba(0, 0, 0, 0.07);
}

body.home-blog .home-blog-featured .arrow-back img {
	width: 50px;
	height: 50px;
}

body.home-blog .home-blog-featured .swiper-button-next-blog img {
	width: 50px;
	height: 50px;
}

body.home-blog .home-blog-featured .desktop-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 4px;
	width: auto;
}

body.home-blog .home-blog-featured .desktop-pagination .swiper-pagination-bullet {
	flex: 0 0 38px;
	width: 38px !important;
	max-width: 38px;
	height: 6px !important;
	border-radius: 100px !important;
	background-color: #ff4e00 !important;
	opacity: 0.3 !important;
	margin: 0 !important;
}

body.home-blog .home-blog-featured .desktop-pagination .swiper-pagination-bullet-active {
	opacity: 1 !important;
}

body.home-blog .home-blog-featured .swiper-blog {
	overflow: hidden;
	width: 100%;
	max-width: var(--home-blog-content-width);
}

body.home-blog .home-blog-featured .swiper-blog .swiper-slide {
	width: 265px !important;
	height: auto;
	flex-shrink: 0;
}

body.home-blog .home-blog-featured .swiper-blog .home-blog-card {
	max-width: 265px;
	width: 265px;
}

body.home-blog .home-blog-featured .referencias-blog-texto {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: #151515;
	text-align: center;
	margin: 18px 0 0;
}

/* ── Card-Blog (compartida swiper + grid) ── */
body.home-blog .home-blog-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	max-width: 265px;
	color: inherit;
	background: transparent;
	text-decoration: none;
}

body.home-blog .home-blog-card:hover {
	color: inherit;
	text-decoration: none;
}

body.home-blog .home-blog-card__image {
	position: relative;
	width: 100%;
	height: 142px;
	border-radius: 4px;
	overflow: hidden;
	flex-shrink: 0;
}

body.home-blog .home-blog-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

body.home-blog .home-blog-card__badge {
	position: absolute;
	top: 8px;
	right: 8px;
	background: #ffffff;
	border-radius: 4px;
	padding: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
}

body.home-blog .home-blog-card__badge img {
	width: 24px;
	height: 24px;
	display: block;
}

body.home-blog .home-blog-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	padding-top: 16px;
	width: 100%;
}

body.home-blog .home-blog-card__tags-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	width: 100%;
}

body.home-blog .home-blog-card__tag {
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
	color: #4b4b4b;
	text-transform: uppercase;
	white-space: nowrap;
}

body.home-blog .home-blog-card__tag-dot {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #4b4b4b;
	flex-shrink: 0;
}

body.home-blog .home-blog-card__title {
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	color: #151515;
	margin: 0;
	width: 100%;
	transition: color 0.3s ease;
}

body.home-blog .home-blog-card:hover .home-blog-card__title {
	color: var(--orange-color);
}

body.home-blog .home-blog-card__desc {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: #4b4b4b;
	margin: 0;
	width: 100%;
}

/* ── Grid "Descubre todo nuestro contenido" ── */
body.home-blog .home-blog-grid-section {
	width: 100%;
	max-width: none;
	padding: 32px var(--home-blog-gutter-x);
	box-sizing: border-box;
}

body.home-blog .home-blog-grid-section .home-blog-content,
body.home-blog .home-blog-grid-section.home-blog-content {
	max-width: var(--home-blog-content-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: 0;
	padding-right: 0;
}

body.home-blog .home-blog-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 32px 20px;
	width: 100%;
	max-width: var(--home-blog-content-width);
}

body.home-blog .home-blog-grid__item {
	flex: 0 0 265px;
	width: 265px;
	max-width: 265px;
	min-width: 0;
	padding: 0;
}

body.home-blog .home-blog-grid .home-blog-card {
	max-width: 100%;
	width: 100%;
}

body.home-blog .home-blog-grid-section__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 53px;
}

body.home-blog .home-blog-grid-section__title {
	font-family: 'Inter', sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	color: #151515;
	margin: 0;
	text-align: left;
}

body.home-blog .home-blog-grid-section__title-accent {
	color: #ff4e00;
}

body.home-blog .home-blog-grid-section .ordenar-contenedor {
	width: 265px;
	flex-shrink: 0;
}

body.home-blog .home-blog-grid-section .ordenar-label {
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: #4b4b4b;
	margin-bottom: 8px;
}

body.home-blog .home-blog-grid-section .custom-select-ordenar {
	width: 100%;
	height: 56px;
	padding: 16px;
	border: 1px solid #c6c5c5;
	border-radius: 8px;
	font-size: 16px;
	color: #959595;
	background-color: #ffffff;
}

body.home-blog .home-blog-grid-section .referencias-blog-texto {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: #151515;
	text-align: center;
	margin: 28px 0 0;
}

/* ── Secciones con gutter lateral uniforme ── */
body.home-blog .home-blog-section {
	padding-left: var(--home-blog-gutter-x);
	padding-right: var(--home-blog-gutter-x);
	box-sizing: border-box;
}

body.home-blog #mensaje-sin-resultados {
	padding: 3em var(--home-blog-gutter-x);
	box-sizing: border-box;
}

body.home-blog #mensaje-sin-resultados > p,
body.home-blog #mensaje-sin-resultados > button,
body.home-blog #mensaje-sin-resultados > a {
	max-width: var(--home-blog-content-width);
	margin-left: auto;
	margin-right: auto;
}

/* ── Banner test ── */
body.home-blog .banner-test-herpes {
	width: 100%;
	max-width: var(--home-blog-content-width);
	margin: 0 auto;
}

/* ── Descarga calendarios ── */
body.home-blog .descarga-section-body {
	background-image: url('/images/fondos/Frame 164218.png');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	padding: 32px var(--home-blog-gutter-x) 48px;
	box-sizing: border-box;
}

body.home-blog .descarga-section-body .home-blog-content {
	max-width: var(--home-blog-content-width);
	margin-left: auto;
	margin-right: auto;
}

/* ── Recomendaciones ── */
body.home-blog .recomendaciones-section .home-blog-content {
	max-width: var(--home-blog-content-width);
	margin-left: auto;
	margin-right: auto;
}

body.home-blog .descarga-section-body .descarga-titulo {
	font-family: 'Inter', sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	color: #151515;
	margin-bottom: 40px !important;
}

body.home-blog .descarga-section-body #descarga-cards,
body.home-blog .home-blog-descarga-cards {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 20px;
}

body.home-blog .descarga-section-body .descarga-card-col {
	flex: 0 0 265px;
	width: 265px;
	max-width: 265px;
	min-width: 0;
	padding: 0 !important;
}

/* ── Mobile pagination swiper ── */
body.home-blog .home-blog-featured .mobile-pagination {
	display: none;
	justify-content: center;
	align-items: center;
	gap: 4px;
	margin-top: 16px;
	padding: 0;
	width: 100%;
}

body.home-blog .home-blog-featured .mobile-pagination.swiper-pagination-lock {
	display: none !important;
}

body.home-blog .home-blog-featured .mobile-pagination:not(.swiper-pagination-lock) {
	display: flex;
}

body.home-blog .home-blog-featured .mobile-pagination .swiper-pagination-bullet {
	flex: 0 0 38px;
	width: 38px !important;
	max-width: 38px;
	height: 6px !important;
	border-radius: 100px !important;
	background-color: #ff4e00 !important;
	opacity: 0.3 !important;
	margin: 0 !important;
}

body.home-blog .home-blog-featured .mobile-pagination .swiper-pagination-bullet-active {
	opacity: 1 !important;
}

/* ── Tablet ── */
@media screen and (max-width: 1199.98px) {
	body.home-blog {
		--home-blog-gutter-x: 40px;
	}

	body.home-blog .blog-filtros-titulo {
		font-size: 32px;
	}

	body.home-blog .blog-filtros-desc,
	body.home-blog .blog-filtros-subtitulo {
		font-size: 16px;
	}

	body.home-blog .home-blog-grid__item,
	body.home-blog .descarga-section-body .descarga-card-col {
		flex: 0 0 calc((100% - 20px) / 2);
		width: calc((100% - 20px) / 2);
		max-width: none;
	}

	body.home-blog .home-blog-featured .swiper-blog .swiper-slide {
		width: 265px !important;
	}
}

/* ── Mobile ── */
@media screen and (max-width: 767.98px) {
	body.home-blog {
		--home-blog-gutter-x: 20px;
	}

	body.home-blog .blog-filtros-verfiltros-btn {
		display: inline-flex;
		width: 100%;
		justify-content: center;
	}

	body.home-blog .blog-filtros-titulo {
		font-size: 24px;
		text-align: left;
	}

	body.home-blog .blog-filtros-desc,
	body.home-blog .blog-filtros-subtitulo {
		text-align: left;
	}

	body.home-blog .blog-filtros-head {
		text-align: left;
	}

	body.home-blog .blog-filtros-panel {
		align-items: stretch;
	}

	body.home-blog .blog-filtros-barra {
		display: none;
		flex-direction: column !important;
		align-items: stretch;
		box-shadow: none;
		background-color: transparent;
		padding: 0;
		gap: 15px;
		width: 100%;
	}

	body.home-blog .blog-filtros-barra.active {
		display: flex !important;
	}

	body.home-blog .blog-filtros-dropdowns {
		flex-direction: column;
		gap: 15px;
		width: 100%;
	}

	body.home-blog .blog-filtros-barra .custom-select-wrapper {
		width: 100% !important;
		flex: none;
	}

	body.home-blog .blog-filtros-barra .custom-select-trigger img {
		width: 20px;
		height: 20px;
	}

	body.home-blog .blog-filtros-btn {
		width: 100%;
		margin-top: 0.5em;
	}

	body.home-blog .home-blog-featured {
		padding-top: 24px;
		padding-bottom: 24px;
	}

	body.home-blog .home-blog-featured__header {
		flex-direction: column;
		align-items: flex-start;
		margin-bottom: 16px;
	}

	body.home-blog .home-blog-featured__title {
		font-size: 24px;
	}

	body.home-blog .home-blog-featured .swiper-blog .swiper-slide {
		width: 265px !important;
	}

	body.home-blog .home-blog-featured .mobile-pagination .swiper-pagination-bullet {
		flex: 1 1 0;
		width: auto !important;
		max-width: none;
	}

	body.home-blog .home-blog-section.my-5 {
		margin-top: 24px !important;
		margin-bottom: 24px !important;
	}

	body.home-blog .banner-test-herpes {
		padding: 32px 20px;
		min-height: 0;
		border-radius: 12px;
		gap: 24px;
		background-image: url('/images/blogcard/fondos/banner-test.png');
		background-size: cover;
		background-position: center;
		box-sizing: border-box;
	}

	body.home-blog .banner-test-herpes-content {
		gap: 20px;
		width: 100%;
	}

	body.home-blog .banner-test-herpes-title {
		font-size: 24px;
		line-height: 1.2;
		width: 100%;
		max-width: 100%;
	}

	body.home-blog .banner-test-herpes-btn {
		width: 100%;
		max-width: 100%;
		height: 50px;
		padding: 16px 24px;
		box-sizing: border-box;
	}

	body.home-blog .home-blog-grid-section__header {
		flex-direction: column;
		margin-bottom: 32px;
	}

	body.home-blog .home-blog-grid-section .ordenar-contenedor {
		width: 100%;
	}

	body.home-blog .home-blog-grid__item,
	body.home-blog .descarga-section-body .descarga-card-col {
		flex: 0 0 100%;
		width: 100%;
	}
}
