/*
Theme Name: MJS Ortodoncia
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: Víctor Yeste
Author URI:  https://estrategiaonline.es/
Template: salient
Version: 1.0
*/

@media only screen and (max-width: 999px) {
	/* Image modal lightbox - MOBILE ONLY */
	.clinic-image-link {
		cursor: pointer;
	}
	h2{
		font-size:22px !important;
		line-height: 25px !important;
	}

	.clinic-lightbox-modal {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		z-index: 9999;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.clinic-lightbox-overlay {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.9);
		z-index: 9998;
		cursor: pointer;
	}

	.clinic-lightbox-container {
		position: relative;
		z-index: 10000;
		max-width: 90vw;
		max-height: 90vh;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.clinic-lightbox-img {
		max-width: 90vw !important;
		max-height: 90vh !important;
		width: auto !important;
		height: auto !important;
		object-fit: contain !important;
		border-radius: 8px !important;
	}

	.clinic-lightbox-close {
		position: fixed;
		top: 20px;
		right: 30px;
		background: none;
		border: none;
		color: #ffffff;
		font-size: 45px;
		cursor: pointer;
		z-index: 10001;
		padding: 0;
		line-height: 1;
		width: 50px;
		height: 50px;
		display: flex;
		align-items: center;
		justify-content: center;
		transition: transform 0.2s ease;
	}

	.clinic-lightbox-close:hover {
		transform: scale(1.2);
	}
	#wpadminbar{
		display: none;
	}

	body #header-outer {
		padding: 0;
	}

	html body.home #header-outer {
		background-color: #ffffff !important;
	}

	/* Keep the mobile menu toggle aligned with the right edge of the header. */
	#header-outer #top .span_9,
	#header-outer #top .span_3 {
		text-align: right !important;
	}

	/* Use the full mobile header width instead of the centered 320px row. */
	#header-outer #top > .container,
	#header-outer #top > .container > .row {
		min-height: 65px !important;
		width: 100% !important;
		max-width: none !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	#header-outer #top .span_3 {
		text-align: left !important;
	}

	#header-outer #top .span_9 {
		position: static !important;
		width: 100% !important;
	}

	#header-outer #top .span_9 > .slide-out-widget-area-toggle {
		position: absolute !important;
		top: 50% !important;
		right: 18px !important;
		transform: translateY(-50%) !important;
	}

	/* Mobile menu: light palette aligned with the site's blue-grey accents. */
	body #slide-out-widget-area-bg {
		background-color: rgba(255, 255, 255, 0.92) !important;
	}

	body #slide-out-widget-area {
		background-color: rgba(255, 255, 255, 0.92) !important;
		color: #111111 !important;
		box-shadow: -12px 0 30px rgba(17, 17, 17, 0.1) !important;
	}

	body #slide-out-widget-area .inner,
	body #slide-out-widget-area .off-canvas-menu-container {
		background-color: transparent !important;
	}

	body #slide-out-widget-area .off-canvas-menu-container li,
	body #slide-out-widget-area .off-canvas-menu-container a {
		color: #111111 !important;
	}

	body #slide-out-widget-area .off-canvas-menu-container > ul > li > a {
		font-weight: 500 !important;
	}

	body #slide-out-widget-area .off-canvas-menu-container ul ul a {
		color: #666666 !important;
		-webkit-text-fill-color: #666666 !important;
	}

	body #slide-out-widget-area.material-open .off-canvas-menu-container li.current-menu-item > a,
	body #slide-out-widget-area.material-open .off-canvas-menu-container li.current_page_item > a {
		color: #1f3448 !important;
		text-decoration: underline !important;
		text-decoration-thickness: 1px !important;
		text-underline-offset: 5px !important;
	}

	body #slide-out-widget-area.material-open .off-canvas-menu-container a[aria-current="page"] {
		color: #1f3448 !important;
		-webkit-text-fill-color: #1f3448 !important;
		text-decoration: underline !important;
		text-decoration-thickness: 1px !important;
		text-underline-offset: 5px !important;
	}

	body #slide-out-widget-area .off-canvas-menu-container a:hover,
	body #slide-out-widget-area .off-canvas-menu-container a:focus {
		color: #a65d70 !important;
	}

	body.material #slide-out-widget-area[class*="slide-out-from-right"] .off-canvas-menu-container li a::after {
		display: none !important;
		content: none !important;
	}

	body.material #slide-out-widget-area[class*="slide-out-from-right"] .off-canvas-menu-container li.current-menu-item > a,
	body.material #slide-out-widget-area[class*="slide-out-from-right"] .off-canvas-menu-container li.current_page_item > a {
		color: transparent !important;
		-webkit-text-fill-color: #1f3448 !important;
		text-decoration: none !important;
		border-bottom: 1px solid #1f3448 !important;
		padding-bottom: 5px !important;
	}

	body.material #slide-out-widget-area[class*="slide-out-from-right"] .off-canvas-menu-container ul ul li.current-menu-item > a,
	body.material #slide-out-widget-area[class*="slide-out-from-right"] .off-canvas-menu-container ul ul li.current_page_item > a,
	body.material #slide-out-widget-area[class*="slide-out-from-right"] .off-canvas-menu-container ul ul a[aria-current="page"] {
		color: #666666 !important;
		-webkit-text-fill-color: #666666 !important;
		border-bottom-color: #666666 !important;
	}

	/* Contact map: restore the collapsed mobile column and iframe dimensions. */
	body.page-id-119 .wpb_row:has(iframe[src*="google.com/maps/embed"]) > .row_col_wrap_12 {
		display: block !important;
		box-sizing: border-box !important;
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	body.page-id-119 .wpb_row:has(iframe[src*="google.com/maps/embed"]) {
		display: block !important;
		width: 100% !important;
		min-height: 0 !important;
	}

	body.page-id-119 .wpb_row:has(iframe[src*="google.com/maps/embed"]) > .row_col_wrap_12 > .wpb_column {
		box-sizing: border-box !important;
		width: 100% !important;
		min-width: 0 !important;
		float: none !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	body.page-id-119 .wpb_row:has(iframe[src*="google.com/maps/embed"]) iframe[src*="google.com/maps/embed"] {
		display: block !important;
		box-sizing: border-box !important;
		width: 100% !important;
		max-width: 100% !important;
		height: 300px !important;
		border: 0 !important;
	}

	/* Clinical cases: keep Instagram reels visible and stacked on mobile. */
	body.page-id-8090 .wpb_row:has(iframe[src*="instagram.com/reel"]) {
		display: block !important;
		box-sizing: border-box !important;
		width: 100% !important;
		min-height: 0 !important;
		padding: 0 !important;
	}

	body.page-id-8090 .wpb_row:has(iframe[src*="instagram.com/reel"]) > .row_col_wrap_12,
	body.page-id-8090 .wpb_row:has(iframe[src*="instagram.com/reel"]) > .row_col_wrap_12_inner {
		display: block !important;
		box-sizing: border-box !important;
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	body.page-id-8090 .wpb_row:has(iframe[src*="instagram.com/reel"]) .wpb_column,
	body.page-id-8090 .wpb_row:has(iframe[src*="instagram.com/reel"]) .vc_column-inner,
	body.page-id-8090 .wpb_row:has(iframe[src*="instagram.com/reel"]) .wpb_wrapper,
	body.page-id-8090 .wpb_row:has(iframe[src*="instagram.com/reel"]) .wpb_raw_code {
		display: block !important;
		box-sizing: border-box !important;
		width: 100% !important;
		min-width: 0 !important;
		float: none !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	body.page-id-8090 iframe[src*="instagram.com/reel"] {
		display: block !important;
		box-sizing: border-box !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		height: 650px !important;
		margin: 0 0 24px !important;
	}

	/* Lighten the mobile hero background without changing desktop. */
	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row.top-level:first-child .row-bg-overlay {
		background-color: #f4f3f0 !important;
		opacity: 0.72 !important;
	}

	/* Add breathing room below the mobile header before the hero title. */
	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row:first-child h1 {
		margin-top: 24px !important;
	}

	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row.first-section p {
		font-size: 18px !important;
	}

	body.home #btn-principal {
		justify-content: center !important;
		text-align: center !important;
	}

	body.home #btn-principal span {
		display: block !important;
		width: 100% !important;
		text-align: center !important;
	}

	/* Diagnostic section: mobile-only card layout. */
	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row:nth-child(2),
	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row:nth-child(3) {
		background-color: #fff !important;
		position: relative;
		left: 50%;
		width: 100vw !important;
		box-sizing: border-box !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		transform: translateX(-50%);
	}

	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row:nth-child(2) > .row_col_wrap_12,
	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row:nth-child(3) > .row_col_wrap_12 {
		box-sizing: border-box !important;
		padding-left: 32px !important;
		padding-right: 32px !important;
	}

	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row:nth-child(2) {
		border-radius: 0 !important;
		margin-top: 0 !important;
		margin-bottom: 0 !important;
		padding-top: 42px !important;
		padding-bottom: 8px !important;
	}

	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row:nth-child(3) {
		border-radius: 0 !important;
		margin-top: 0 !important;
		padding-top: 8px !important;
		padding-bottom: 34px !important;
	}

	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row:nth-child(2) h2 {
		margin: 0 !important;
		font-size: 22px !important;
		line-height: 25px !important;
	}

	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row:nth-child(3) > .row_col_wrap_12 > .vc_col-sm-3 {
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row:nth-child(3) > .row_col_wrap_12 > .vc_col-sm-3 h3 {
		margin: 24px 0 12px !important;
		font-size: 18px !important;
		line-height: 1.3 !important;
	}

	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row:nth-child(3) > .row_col_wrap_12 > .vc_col-sm-3 blockquote {
		margin: 0 0 24px !important;
		padding: 0 0 0 18px !important;
		border-left: 7px solid #7896b4 !important;
	}

	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row:nth-child(3) > .row_col_wrap_12 > .vc_col-sm-3 blockquote p {
		margin: 0 !important;
		/* color: #607b96 !important; */
		font-size: 17px !important;
		line-height: 1.45 !important;
	}

	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row:nth-child(3) > .row_col_wrap_12 > .vc_col-sm-9 {
		width: 100% !important;
		margin: 12px 0 0 !important;
		padding: 0 !important;
	}

	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row:nth-child(3) > .row_col_wrap_12 > .vc_col-sm-9 img {
		width: 100% !important;
		height: auto !important;
		border-radius: 16px !important;
	}

	/* Specialties section: stable classes, mobile only. */
	body.home #ajax-content-wrap .container.main-content .titulo-especialidades,
	body.home #ajax-content-wrap .container.main-content .fila-especialidad {
		position: relative;
		left: 50%;
		width: 100vw !important;
		box-sizing: border-box !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		transform: translateX(-50%);
		background-color: #ffffff !important;
	}

	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row:has(+ .wpb_row.fila-especialidad):has(h2) h2 {
		text-align: left !important;
	}

	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row:has(+ .wpb_row.fila-especialidad):has(h2) {
		position: relative;
		left: 50%;
		width: 100vw !important;
		box-sizing: border-box !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		transform: translateX(-50%);
		background-color: #ffffff !important;
	}

	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row:has(+ .wpb_row.fila-especialidad):has(h2) > .row_col_wrap_12 {
		box-sizing: border-box !important;
		padding-left: 32px !important;
		padding-right: 32px !important;
	}

	body.home #ajax-content-wrap .container.main-content .titulo-especialidades > .row_col_wrap_12,
	body.home #ajax-content-wrap .container.main-content .fila-especialidad > .row_col_wrap_12 {
		box-sizing: border-box !important;
		padding-left: 32px !important;
		padding-right: 32px !important;
	}

	body.home #ajax-content-wrap .container.main-content .titulo-especialidades {
		margin-top: -24px !important;
		padding-top: 0 !important;
		padding-bottom: 20px !important;
	}

	body.home #ajax-content-wrap .container.main-content .titulo-especialidades > .row_col_wrap_12 {
		border-bottom: 1px solid #d9e1e8;
		padding-bottom: 28px !important;
	}

	/* Remove the empty divider row immediately before this section. */
	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row:has(+ .wpb_row.titulo-especialidades + .wpb_row.fila-especialidad) {
		display: none !important;
	}

	/* Remove only the divider line before the later clinic-space section. */
	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row:has(+ .wpb_row.titulo-especialidades) .divider-border {
		display: none !important;
	}

	/* The empty divider row before the clinic-space section no longer needs its desktop padding. */
	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row:has(+ .wpb_row.titulo-especialidades) {
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}

	/* The later "Un espacio diseñado a medida" title is a separate section. */
	body.home #ajax-content-wrap .container.main-content .titulo-especialidades:not(:has(+ .fila-especialidad)) {
		margin-top: 24px !important;
		padding-top: 32px !important;
	}

	body.home #ajax-content-wrap .container.main-content .titulo-especialidades h2 {
		margin: 0 !important;
		/* color: #17334b !important; */
		font-size: 22px !important;
		line-height: 25px !important;
	}

	body.home #ajax-content-wrap .container.main-content .fila-especialidad {
		padding-top: 8px !important;
		padding-bottom: 8px !important;
		border-top: 0 !important;
	}

	body.home #ajax-content-wrap .container.main-content .fila-especialidad > .row_col_wrap_12 {
		border-bottom: 1px solid #d9e1e8;
		border-top: 0 !important;
		padding-bottom: 12px !important;
	}

	body.home #ajax-content-wrap .container.main-content .fila-especialidad:last-of-type > .row_col_wrap_12 {
		border-bottom: 0;
	}

	body.home #ajax-content-wrap .container.main-content .fila-especialidad .especialidad-titulo {
		width: 100% !important;
		margin: 0 0 6px !important;
		padding: 0 !important;
	}

	body.home #ajax-content-wrap .container.main-content .fila-especialidad .especialidad-titulo h3,
	body.home #ajax-content-wrap .container.main-content .fila-especialidad .especialidad-titulo h4 {
		margin: 0 !important;
		color: #173d5c !important;
		font-size: 23px !important;
		line-height: 1.25 !important;
	}

	body.home #ajax-content-wrap .container.main-content .fila-especialidad .especialidad-texto {
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	body.home #ajax-content-wrap .container.main-content .fila-especialidad .especialidad-texto p {
		margin: 0 !important;
		/* color: #7088a0 !important; */
		font-size: 17px !important;
		line-height: 1.42 !important;
	}

	/* Clinic-space section: mobile-only title, quote and 2x2 image gallery. */
	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row.titulo-especialidades:has(h2):has(+ .wpb_row.titulo-especialidades) {
		margin-top: 16px !important;
		padding-top: 20px !important;
		padding-bottom: 20px !important;
	}

	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row.titulo-especialidades:has(h2):has(+ .wpb_row.titulo-especialidades) > .row_col_wrap_12 {
		padding-bottom: 0 !important;
		border-bottom: 0 !important;
	}

	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row.titulo-especialidades:has(h2):has(+ .wpb_row.titulo-especialidades) h2 {
		font-size: 22px !important;
		line-height: 25px !important;
	}

	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row.titulo-especialidades:has(h2):has(+ .wpb_row.titulo-especialidades) blockquote {
		margin: 28px 0 0 !important;
		padding: 0 0 0 32px !important;
		border-left: 7px solid #7896b4 !important;
	}

	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row:has(h2):has(blockquote p):has(+ .wpb_row.titulo-especialidades) blockquote {
		padding-left: 30px !important;
		border-left: 5px solid #7896b4 !important;
		border-top: 0 !important;
		border-right: 0 !important;
		border-bottom: 0 !important;
		box-shadow: none !important;
	}

	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row:has(h2):has(blockquote p):has(+ .wpb_row.titulo-especialidades) blockquote::before,
	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row:has(h2):has(blockquote p):has(+ .wpb_row.titulo-especialidades) blockquote::after {
		display: none !important;
		content: none !important;
	}

	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row:has(h2):has(blockquote p):has(+ .wpb_row.titulo-especialidades) {
		position: relative;
		left: 50%;
		width: 100vw !important;
		box-sizing: border-box !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		transform: translateX(-50%);
	}

	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row:has(h2):has(blockquote p):has(+ .wpb_row.titulo-especialidades) > .row_col_wrap_12 {
		box-sizing: border-box !important;
		padding-left: 32px !important;
		padding-right: 32px !important;
	}

	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row:has(h2):has(blockquote p):has(+ .wpb_row.titulo-especialidades) > .row_col_wrap_12 > .wpb_column {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row:has(.testimonial_slider):has(h2) {
		position: relative;
		left: 50%;
		width: 100vw !important;
		box-sizing: border-box !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		transform: translateX(-50%);
	}

	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row:has(.testimonial_slider):has(h2) > .row_col_wrap_12 {
		box-sizing: border-box !important;
		padding-left: 32px !important;
		padding-right: 32px !important;
	}

	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row:has(.testimonial_slider):has(h2) > .row_col_wrap_12 > .wpb_column {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row.titulo-especialidades:has(h2):has(+ .wpb_row.titulo-especialidades) blockquote p {
		margin: 0 !important;
		/* color: #7088a0 !important; */
		font-size: 18px !important;
		line-height: 1.48 !important;
	}

	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row.titulo-especialidades:has(img) {
		margin-top: 0 !important;
		padding-top: 0 !important;
		padding-bottom: 24px !important;
	}

	/* Remove the empty divider row after the gallery to avoid excess space below it. */
	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row.titulo-especialidades:has(img) + .wpb_row {
		display: none !important;
	}

	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row.titulo-especialidades:has(img) > .row_col_wrap_12 {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 20px !important;
		box-sizing: border-box !important;
		padding: 0 32px !important;
		border: 0 !important;
	}

	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row.titulo-especialidades:has(img) > .row_col_wrap_12 > .vc_col-sm-3,
	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row.titulo-especialidades:has(img) > .row_col_wrap_12 > .vc_col-sm-9,
	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row.titulo-especialidades:has(img) > .row_col_wrap_12 > .vc_col-sm-3 > .vc_column-inner,
	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row.titulo-especialidades:has(img) > .row_col_wrap_12 > .vc_col-sm-9 > .vc_column-inner,
	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row.titulo-especialidades:has(img) > .row_col_wrap_12 .wpb_wrapper {
		display: contents !important;
	}

	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row.titulo-especialidades:has(img) .img-with-aniamtion-wrap {
		width: 100% !important;
		min-width: 0 !important;
		height: auto !important;
		aspect-ratio: 0.79 !important;
		margin: 0 !important;
		overflow: hidden !important;
		border-radius: 12px !important;
	}

	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row.titulo-especialidades:has(img) .img-with-aniamtion-wrap:has(img[src=""]) {
		display: none !important;
	}

	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row.titulo-especialidades:has(img) .img-with-aniamtion-wrap .inner,
	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row.titulo-especialidades:has(img) .img-with-aniamtion-wrap .hover-wrap,
	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row.titulo-especialidades:has(img) .img-with-aniamtion-wrap .hover-wrap-inner {
		width: 100% !important;
		height: 100% !important;
	}

	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row.titulo-especialidades:has(img) .img-with-aniamtion-wrap img {
		display: block !important;
		width: 100% !important;
		height: 100% !important;
		object-fit: cover !important;
		border-radius: 12px !important;
	}

	/* Keep the four real photos in the intended reading order. */
	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row.titulo-especialidades:has(img) .img-with-aniamtion-wrap:has(img[src*="maria-jose-sanchez-3"]) {
		grid-column: 1 !important;
		grid-row: 1 !important;
	}

	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row.titulo-especialidades:has(img) .img-with-aniamtion-wrap:has(img[src*="odontopediatria-3"]) {
		grid-column: 2 !important;
		grid-row: 1 !important;
	}

	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row.titulo-especialidades:has(img) .img-with-aniamtion-wrap:has(img[src*="GC510_Sanchez_Clinica_22_Web"]) {
		grid-column: 1 !important;
		grid-row: 2 !important;
	}

	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row.titulo-especialidades:has(img) .img-with-aniamtion-wrap:has(img[src*="instalaciones-clinica-maria-jose-sanchez-odontologia-avanzada"]) {
		grid-column: 2 !important;
		grid-row: 2 !important;
	}

	/* Contact form section: reduce Salient's mobile-only vertical padding. */
	body #ajax-content-wrap .container.main-content > .row > .wpb_row:has(form) {
		padding-top: 80px !important;
		padding-bottom: 24px !important;
	}

	/* Remove the empty row that creates the white area after the form background. */
	body #ajax-content-wrap .container.main-content > .row > .wpb_row:has(form) + .wpb_row {
		display: none !important;
	}

	/* Remove the empty divider row between the FAQ section and the contact form. */
	body #ajax-content-wrap .container.main-content > .row > .wpb_row:has(+ .wpb_row form):not(:has(.vc_custom_heading)):not(:has(.tabs-repositorio)) {
		display: none !important;
	}

	/* The contact map is a real content row, not the empty divider targeted above. */
	body #ajax-content-wrap .container.main-content > .row > .wpb_row:has(iframe[src*="google.com/maps/embed"]) {
		display: block !important;
	}

	body #ajax-content-wrap .container.main-content > .row > .wpb_row:has(iframe[src*="instagram.com/reel"]) {
		display: block !important;
	}

	/* Remove Salient's extra white strip between the last section and the footer. */
	body #ajax-content-wrap > .container-wrap {
		padding-bottom: 0 !important;
	}

	/* FAQ sections: shared mobile-only card style for Salient's show-click-block rows. */
	body #ajax-content-wrap .container.main-content > .row > .wpb_row:has(h3):has(+ .wpb_row .show-click-block .iwt-text),
	body #ajax-content-wrap .container.main-content > .row > .wpb_row:has(.show-click-block .iwt-text) {
		position: relative;
		left: 50%;
		width: 100vw !important;
		box-sizing: border-box !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		transform: translateX(-50%);
		background-color: #f5f8fc !important;
	}

	body #ajax-content-wrap .container.main-content > .row > .wpb_row:has(h3):has(+ .wpb_row .show-click-block .iwt-text) {
		padding: 38px 0 28px !important;
		margin-bottom: 0 !important;
	}

	body #ajax-content-wrap .container.main-content > .row > .wpb_row:has(h3):has(+ .wpb_row .show-click-block .iwt-text) > .row_col_wrap_12 {
		box-sizing: border-box !important;
		padding: 0 32px !important;
	}

	body #ajax-content-wrap .container.main-content > .row > .wpb_row:has(h3):has(+ .wpb_row .show-click-block .iwt-text) h3 {
		position: relative;
		margin: 0 !important;
		padding: 0 !important;
		color: #1f3448 !important;
		font-size: 31px !important;
		line-height: 1.22 !important;
		font-weight: 400 !important;
	}

	body #ajax-content-wrap .container.main-content > .row > .wpb_row:has(h3):has(+ .wpb_row .show-click-block .iwt-text) h3::before {
		display: block;
		width: 92px;
		height: 7px;
		margin: 0 0 36px;
		border-radius: 999px;
		background-color: #4b9cdb;
		content: "";
	}

	body #ajax-content-wrap .container.main-content > .row > .wpb_row:has(.show-click-block .iwt-text) {
		padding: 0 0 24px !important;
		margin-bottom: 0 !important;
	}

	body #ajax-content-wrap .container.main-content > .row > .wpb_row:has(.show-click-block .iwt-text) > .row_col_wrap_12 {
		box-sizing: border-box !important;
		padding: 0 20px !important;
		background: transparent !important;
		border: 0 !important;
	}

	body #ajax-content-wrap .container.main-content > .row > .wpb_row:has(.show-click-block .iwt-text) .show-click-block {
		box-sizing: border-box !important;
		width: 100% !important;
		min-height: 112px !important;
		margin: 0 !important;
		padding: 20px !important;
		border-radius: 20px !important;
		background-color: #ffffff !important;
		box-shadow: 0 10px 24px rgba(40, 62, 84, 0.08) !important;
		cursor: pointer;
	}

	body #ajax-content-wrap .container.main-content > .row > .wpb_row:has(.show-click-block .iwt-text) .show-click-block > .row_col_wrap_12_inner,
	body #ajax-content-wrap .container.main-content > .row > .wpb_row:has(.show-click-block .iwt-text) .show-click-block > .row_col_wrap_12_inner > .child_column,
	body #ajax-content-wrap .container.main-content > .row > .wpb_row:has(.show-click-block .iwt-text) .show-click-block > .row_col_wrap_12_inner > .child_column > .vc_column-inner,
	body #ajax-content-wrap .container.main-content > .row > .wpb_row:has(.show-click-block .iwt-text) .show-click-block > .row_col_wrap_12_inner > .child_column .wpb_wrapper {
		box-sizing: border-box !important;
		width: 100% !important;
		padding: 0 !important;
	}

	body #ajax-content-wrap .container.main-content > .row > .wpb_row:has(.show-click-block .iwt-text) .show-click-block .iwithtext {
		display: flex !important;
		align-items: center !important;
		width: 100% !important;
		min-height: 70px !important;
	}

	body #ajax-content-wrap .container.main-content > .row > .wpb_row:has(.show-click-block .iwt-text) .show-click-block .iwt-icon {
		display: flex !important;
		position: static !important;
		flex: 0 0 35px !important;
		align-items: center !important;
		justify-content: center !important;
		width: 35px !important;
		height: 35px !important;
		margin: 0 18px 0 0 !important;
		border-radius: 50% !important;
		background-color: #edf5fd !important;
	}

	body #ajax-content-wrap .container.main-content > .row > .wpb_row:has(.show-click-block .iwt-text) .show-click-block .iwt-icon img {
		display: block !important;
		width: 20px !important;
		height: 20px !important;
		margin: 0 !important;
		object-fit: contain !important;
	}

	body #ajax-content-wrap .container.main-content > .row > .wpb_row:has(.show-click-block .iwt-text) .show-click-block .iwt-text {
		flex: 1 1 auto !important;
		min-width: 0 !important;
		margin: 0 !important;
		padding: 0 12px 0 0 !important;
		color: #1f3448 !important;
		font-size: 21px !important;
		line-height: 1.3 !important;
		font-weight: 400 !important;
	}

	body #ajax-content-wrap .container.main-content > .row > .wpb_row:has(.show-click-block .iwt-text) .show-click-block .iwithtext::after {
		flex: 0 0 16px;
		width: 16px;
		height: 16px;
		margin: 0 4px 8px 8px;
		border-right: 4px solid #7d94ad;
		border-bottom: 4px solid #7d94ad;
		content: "";
		transform: rotate(45deg);
	}

	body #ajax-content-wrap .container.main-content > .row > .wpb_row:has(.show-click-block .iwt-text) .show-click-block .clear {
		display: none !important;
	}

	body #ajax-content-wrap .container.main-content > .row > .wpb_row:has(.show-click-block .iwt-text) .show-click-item {
		display: none;
		margin: 24px 12px 0 !important;
		padding: 0 !important;
		color: #465565 !important;
		font-size: 16px !important;
		line-height: 1.5 !important;
	}

	body #ajax-content-wrap .container.main-content > .row > .wpb_row:has(.show-click-block .iwt-text) .show-click-item p {
		margin: 0 !important;
		padding: 0 !important;
		color: inherit !important;
		font-size: inherit !important;
		line-height: inherit !important;
	}

	/* Footer: mobile-only layout. */
	#footer-outer {
		background-color: #202122 !important;
	}

	#footer-widgets {
		padding: 0 !important;
	}
	
	#footer-outer .row {
		padding-top: 40px !important;
	}

	#footer-widgets > .container,
	#copyright > .container {
		width: 100% !important;
		max-width: none !important;
		padding-left: 32px !important;
		padding-right: 32px !important;
		box-sizing: border-box !important;
	}

	#footer-widgets > .container > .row {
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		margin: 0 !important;
	}

	#footer-widgets > .container > .row > .col {
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		text-align: center !important;
	}

	#footer-widgets > .container > .row > .col:first-child img {
		display: inline-block !important;
		width: min(62vw, 250px) !important;
		height: auto !important;
	}

	#footer-widgets > .container > .row > .col:nth-child(2) {
		margin-top: 36px !important;
	}

	#footer-outer #footer-widgets .widget.widget_nav_menu ul {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		column-gap: 20px !important;
		row-gap: 25px !important;
		margin: 0 !important;
		padding: 0 !important;
		list-style: none !important;
	}

	#footer-outer #footer-widgets .widget.widget_nav_menu li {
		margin: 0 !important;
		padding: 0 !important;
		text-align: center !important;
	}

	#footer-outer #footer-widgets .widget.widget_nav_menu li:last-child {
		margin-bottom: 0 !important;
	}

	#footer-outer #footer-widgets .widget.widget_nav_menu li a {
		color: #f4f4f4 !important;
		font-size: 14px !important;
		line-height: 1.3 !important;
	}

	#footer-outer #copyright {
		background-color: #ffffff !important;
		padding: 58px 0 96px !important;
	}

	#copyright > .container > .col.span_5 {
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		text-align: center !important;
	}

	#copyright p {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		column-gap: 24px !important;
		row-gap: 24px !important;
		margin: 0 !important;
	}

	#footer-outer #copyright p a {
		display: block !important;
		margin: 0 !important;
		color: #989ba3 !important;
		font-size: 16px !important;
		line-height: 1.35 !important;
		letter-spacing: 1px !important;
		text-align: center !important;
	}

	#footer-outer #copyright p a:nth-child(1) {
		grid-column: 1;
		grid-row: 1;
	}

	#footer-outer #copyright p a:nth-child(2) {
		grid-column: 1;
		grid-row: 2;
	}

	#footer-outer #copyright p a:nth-child(3) {
		grid-column: 1;
		grid-row: 3;
	}

	#footer-outer #copyright p a:nth-child(4) {
		grid-column: 2;
		grid-row: 1;
	}

	#footer-outer #copyright p a:nth-child(5) {
		grid-column: 2;
		grid-row: 2;
	}

	/* Salient forces the legal-links paragraph to flex; keep the two-column layout. */
	#footer-outer #copyright > .container > .col.span_5 > p {
		display: grid !important;
		grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr) !important;
		column-gap: 16px !important;
		row-gap: 22px !important;
		margin: 0 !important;
	}

	#footer-outer #copyright > .container > .col.span_5 > p > a {
		display: block !important;
		margin: 0 !important;
		color: #000 !important;
		font-size: 12px !important;
		font-weight: bold !important;
		line-height: 1.35 !important;
		letter-spacing: 0.5px !important;
		text-align: center !important;
	}

	#footer-outer #copyright > .container > .col.span_5 > p > a:nth-child(1) {
		grid-column: 1 !important;
		grid-row: 1 !important;
	}

	#footer-outer #copyright > .container > .col.span_5 > p > a:nth-child(2) {
		grid-column: 1 !important;
		grid-row: 2 !important;
	}

	#footer-outer #copyright > .container > .col.span_5 > p > a:nth-child(3) {
		grid-column: 1 !important;
		grid-row: 3 !important;
	}

	#footer-outer #copyright > .container > .col.span_5 > p > a:nth-child(4) {
		grid-column: 2 !important;
		grid-row: 1 !important;
	}

	#footer-outer #copyright > .container > .col.span_5 > p > a:nth-child(5) {
		grid-column: 2 !important;
		grid-row: 2 !important;
	}

	/* Formation page: compact, readable mobile presentation.
	body.page-id-216 #ajax-content-wrap .container.main-content > .row > .wpb_row.ralla-fondo {
		display: none !important;
	}

	body.page-id-216 #ajax-content-wrap .container.main-content #pide-cita {
		width: 100vw !important;
		max-width: none !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding: 56px 0 64px !important;
		box-sizing: border-box !important;
		background-color: #e8d2b5 !important;
	}

	body.page-id-216 #ajax-content-wrap .container.main-content #pide-cita .row-bg {
		background-size: cover !important;
		background-position: center center !important;
	}

	body.page-id-216 #ajax-content-wrap .container.main-content #pide-cita > .row_col_wrap_12 {
		display: block !important;
		width: 100% !important;
		margin: 0 !important;
		padding: 0 24px !important;
		box-sizing: border-box !important;
	}

	body.page-id-216 #ajax-content-wrap .container.main-content #pide-cita > .row_col_wrap_12 > .vc_col-sm-1\/5 {
		display: none !important;
	}

	body.page-id-216 #ajax-content-wrap .container.main-content #pide-cita > .row_col_wrap_12 > .vc_col-sm-3\/5 {
		width: 100% !important;
		margin: 0 !important;
		padding: 30px 24px !important;
		box-sizing: border-box !important;
		background: rgba(255, 255, 255, 0.84) !important;
	}

	body.page-id-216 #ajax-content-wrap .container.main-content #pide-cita .divider-wrap {
		display: none !important;
	}

	body.page-id-216 #ajax-content-wrap .container.main-content #pide-cita h2 {
		margin: 0 0 18px !important;
		font-size: 28px !important;
		line-height: 1.2 !important;
		color: #1d2730 !important;
	}

	body.page-id-216 #ajax-content-wrap .container.main-content #pide-cita .wpb_text_column p {
		margin: 0 0 18px !important;
		font-size: 18px !important;
		line-height: 1.35 !important;
		color: #5d6267 !important;
	}

	body.page-id-216 #ajax-content-wrap .container.main-content #pide-cita .wpb_text_column p:last-child {
		margin-bottom: 0 !important;
	}

	body.page-id-216 #ajax-content-wrap .container.main-content #pide-cita .wpb_text_column a {
		display: inline !important;
		color: #5c91bd !important;
		overflow-wrap: anywhere !important;
		word-break: break-word !important;
	} */
}

@media only screen and (max-width: 767px) {

	/* Hide empty image wrappers and placeholder images */
	img:not([src]),
	img[src=""],
	.img-with-aniamtion-wrap img[height="100"][width="100"],
	.hover-wrap-inner img:not([src]),
	.hover-wrap-inner img[src=""],
	.img-with-aniamtion-wrap:has(img:not([src])),
	.img-with-aniamtion-wrap:has(img[src=""]) {
		display: none !important;
	}

	/* Also hide the wrapper if it only contains an empty image */
	.img-with-aniamtion-wrap .hover-wrap-inner:only-child {
		min-height: 0 !important;
	}

	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row.top-level:first-child .row-bg {
		background-image: url("https://mariajosesanchezodontologia.com/wp-content/uploads/2026/09/clinica-maria-jose-sanchez-odontologia-avanzada.webp") !important;
		background-position: right center !important;
	}

	/* Contact team block: match the mobile reference without changing desktop. */
	body.page-id-119 .wpb_row:has(h2.vc_custom_heading):has(.nectar-button[href*="trabaja-con-nosotros"]) {
		box-sizing: border-box !important;
		padding: 40px 0 48px !important;
	}

	body.page-id-119 .wpb_row:has(h2.vc_custom_heading):has(.nectar-button[href*="trabaja-con-nosotros"]) .divider-wrap {
		display: none !important;
	}

	body.page-id-119 .wpb_row:has(h2.vc_custom_heading):has(.nectar-button[href*="trabaja-con-nosotros"]) h2 {
		margin: 0 0 20px !important;
		font-size: 22px !important;
		line-height: 25px !important;
		letter-spacing: 0 !important;
	}

	body.page-id-119 .wpb_row:has(h2.vc_custom_heading):has(.nectar-button[href*="trabaja-con-nosotros"]) .wpb_text_column p {
		margin: 0 0 26px !important;
		font-size: 16px !important;
		line-height: 1.5 !important;
	}

	body.page-id-119 .wpb_row:has(h2.vc_custom_heading):has(.nectar-button[href*="trabaja-con-nosotros"]) .nectar-button {
		box-sizing: border-box !important;
		width: 172px !important;
		height: 63px !important;
		margin: 0 !important;
		padding: 18px 20px !important;
		border-radius: 999px !important;
		font-size: 16px !important;
		line-height: 25px !important;
		letter-spacing: 2px !important;
		text-align: center !important;
	}

	/* Contact details: align the three mobile information blocks. */
	body.page-id-119 .wpb_row:has(.copies-web):has(a[href^="tel:"]):has(a[href*="wa.me"]) {
		box-sizing: border-box !important;
		width: 100% !important;
		margin: 0 !important;
		padding: 38px 0 36px !important;
		border-top: 0 !important;
	}

	body.page-id-119 .wpb_row:has(.copies-web):has(a[href^="tel:"]):has(a[href*="wa.me"]) > .row_col_wrap_12 {
		box-sizing: border-box !important;
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	body.page-id-119 .wpb_row:has(.copies-web):has(a[href^="tel:"]):has(a[href*="wa.me"]) > .row_col_wrap_12 > .wpb_column {
		box-sizing: border-box !important;
		width: 100% !important;
		margin: 0 0 34px !important;
		padding: 0 !important;
	}

	body.page-id-119 .wpb_row:has(.copies-web):has(a[href^="tel:"]):has(a[href*="wa.me"]) > .row_col_wrap_12 > .wpb_column > .vc_column-inner {
		box-sizing: border-box !important;
		padding: 0 !important;
	}

	body.page-id-119 .wpb_row:has(.copies-web):has(a[href^="tel:"]):has(a[href*="wa.me"]) > .row_col_wrap_12 > .wpb_column:last-child {
		margin-bottom: 0 !important;
	}

	body.page-id-119 .wpb_row:has(.copies-web):has(a[href^="tel:"]):has(a[href*="wa.me"]) .copies-web {
		margin: 0 !important;
		padding: 0 !important;
	}

	body.page-id-119 .wpb_row:has(.copies-web):has(a[href^="tel:"]):has(a[href*="wa.me"]) .copies-web p {
		margin: 0 !important;
		font-size: 16px !important;
		line-height: 1.5 !important;
		text-align: left !important;
	}

	body.page-id-119 .wpb_row:has(.copies-web):has(a[href^="tel:"]):has(a[href*="wa.me"]) .copies-web p:first-child {
		margin-bottom: 10px !important;
		color: #000 !important;
	}

	body.page-id-119 .wpb_row:has(.copies-web):has(a[href^="tel:"]):has(a[href*="wa.me"]) .copies-web p:nth-child(2) {
		color: #7a99b8 !important;
	}

	body.page-id-119 .wpb_row:has(.copies-web):has(a[href^="tel:"]):has(a[href*="wa.me"]) .copies-web a {
		color: #7a99b8 !important;
	}

	body.page-id-119 .container.main-content > .row > .wpb_row:has(+ .wpb_row h2):not(:has(.wpb_text_column)) {
		display: none !important;
	}

	body.page-id-119 .container.main-content > .row > .wpb_row:has(+ .wpb_row:has(.copies-web):has(a[href^="tel:"]):has(a[href*="wa.me"])) {
		box-sizing: border-box !important;
		width: 100% !important;
		padding: 0 !important;
	}

	body.page-id-119 .container.main-content > .row > .wpb_row:has(+ .wpb_row:has(.copies-web):has(a[href^="tel:"]):has(a[href*="wa.me"])) > .row_col_wrap_12,
	body.page-id-119 .container.main-content > .row > .wpb_row:has(+ .wpb_row:has(.copies-web):has(a[href^="tel:"]):has(a[href*="wa.me"])) .divider-wrap,
	body.page-id-119 .container.main-content > .row > .wpb_row:has(+ .wpb_row:has(.copies-web):has(a[href^="tel:"]):has(a[href*="wa.me"])) .divider-border {
		box-sizing: border-box !important;
		width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	body.page-id-119 .container.main-content > .row > .wpb_row:has(.divider-border) {
		box-sizing: border-box !important;
		width: 100% !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	body.page-id-119 .container.main-content > .row > .wpb_row:has(.divider-border) .row_col_wrap_12,
	body.page-id-119 .container.main-content > .row > .wpb_row:has(.divider-border) .divider-wrap,
	body.page-id-119 .container.main-content > .row > .wpb_row:has(.divider-border) .divider-border {
		box-sizing: border-box !important;
		width: 100% !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	body.page-id-119 .container.main-content > .row > .wpb_row:has(.divider-border) {
		display: none !important;
	}

	/* Estancia Clinica: compact mobile presentation without changing desktop. */
	body #ajax-content-wrap .container.main-content > .row > #pide-cita:has(.wpb_text_column):not(:has(form)) {
		position: relative !important;
		left: 50% !important;
		width: 100vw !important;
		box-sizing: border-box !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		padding: 96px 0 72px !important;
		transform: translateX(-50%);
		background-color: transparent !important;
		background-image: url('/wp-content/uploads/2026/10/gabinete-clinica-dental-maria-jose-sanchez-odontologia-avanzada.webp') !important;
		background-position: center center !important;
		background-repeat: no-repeat !important;
		background-size: cover !important;
		overflow: hidden !important;
	}

	body #ajax-content-wrap .container.main-content > .row > #pide-cita:has(.wpb_text_column):not(:has(form))::before {
		position: absolute;
		inset: 0;
		z-index: 0;
		background: rgba(255, 255, 255, 0.08);
		content: "";
	}

	body #ajax-content-wrap .container.main-content > .row > #pide-cita:has(.wpb_text_column):not(:has(form)) .row-bg-wrap {
		display: none !important;
	}

	body #ajax-content-wrap .container.main-content > .row > #pide-cita:has(.wpb_text_column):not(:has(form)) > .row_col_wrap_12 {
		position: relative !important;
		z-index: 1 !important;
		display: block !important;
		width: 100% !important;
		margin: 0 !important;
	}

	body #ajax-content-wrap .container.main-content > .row > #pide-cita:has(.wpb_text_column):not(:has(form)) > .row_col_wrap_12 > .vc_col-sm-1\/5 {
		display: none !important;
	}

	body #ajax-content-wrap .container.main-content > .row > #pide-cita:has(.wpb_text_column):not(:has(form)) > .row_col_wrap_12 > .vc_col-sm-3\/5 {
		box-sizing: border-box !important;
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	body #ajax-content-wrap .container.main-content > .row > #pide-cita:has(.wpb_text_column):not(:has(form)) > .row_col_wrap_12 > .vc_col-sm-3\/5 > .vc_column-inner {
		box-sizing: border-box !important;
		width: min(320px, 100%) !important;
		margin: 0 auto !important;
		padding: 42px 30px !important;
		border-radius: 14px !important;
		background-color: rgba(255, 255, 255, 0.2) !important;
		box-shadow: 0 10px 28px rgba(55, 48, 42, 0.12) !important;
	}

	body #ajax-content-wrap .container.main-content > .row > #pide-cita:has(.wpb_text_column):not(:has(form)) .divider-wrap {
		display: none !important;
	}

	body #ajax-content-wrap .container.main-content > .row > #pide-cita:has(.wpb_text_column):not(:has(form)) h2 {
		margin: 0 0 18px !important;
		color: #34302d !important;
		font-size: 22px !important;
		line-height: 25px !important;
	}

	body #ajax-content-wrap .container.main-content > .row > #pide-cita:has(.wpb_text_column):not(:has(form)) .wpb_text_column p {
		margin: 0 0 32px !important;
		color: #000 !important;
		font-size: 18px !important;
		line-height: 1.35 !important;
	}

	body #ajax-content-wrap .container.main-content > .row > #pide-cita:has(.wpb_text_column):not(:has(form)) .wpb_text_column p:last-child {
		margin-bottom: 0 !important;
		text-align: center !important;
	}

	body #ajax-content-wrap .container.main-content > .row > #pide-cita:has(.wpb_text_column):not(:has(form)) .wpb_text_column a {
		word-break: break-word;
		font-size: 20px !important;
		line-height: 1.35 !important;
		color: #a65d70 !important;
	}
	blockquote{
		font-size: 20px !important;
		line-height: 25px !important;
	}
}

@media only screen and (min-width: 1000px) {
	body.home #ajax-content-wrap .container.main-content > .row > .wpb_row:has(+ .wpb_row.fila-especialidad):has(h2) > .row_col_wrap_12 > .wpb_column > .vc_column-inner {
		box-sizing: border-box !important;
		padding-left: 90px !important;
	}
}

/* Copies web: en movil 16px. El CSS personalizado de Salient fija 13px (max-width: 690px) con !important, asi que se sube la especificidad con el prefijo body. */
@media only screen and (max-width: 690px) {
	body .copies-web,
	body .copies-web p,
	body .copies-web span,
	body .copies-web li {
		font-size: 16px !important;
		line-height: 1.5 !important;
	}
}

/* Banners de cabecera de especialidades en movil: el bloque es alto y estrecho y la imagen 1920x600 se mostraba desde la esquina izquierda (zona vacia). Se encuadra cada imagen en su punto de interes, sin cambiar la imagen. */
@media only screen and (max-width: 767px) {
	body .row-bg.using-image[style*="cabecera"] {
		background-size: cover !important;
		background-position: 50% 50% !important;
	}
	body .row-bg.using-image[style*="blanqueamiento-dental"] { background-position: 24% 50% !important; }
	body .row-bg.using-image[style*="implantes-dentales"] { background-position: 36% 50% !important; }
	body .row-bg.using-image[style*="ortodoncia-cirugia-ortognatica"] { background-position: 44% 50% !important; }
	body .row-bg.using-image[style*="ortodoncia-maria-jose"] { background-position: 56% 50% !important; }
	body .row-bg.using-image[style*="cirugia-oral"] { background-position: 37% 50% !important; }
	body .row-bg.using-image[style*="endodoncia"] { background-position: 50% 50% !important; }
	body .row-bg.using-image[style*="odontologia-infantil"] { background-position: 19% 50% !important; }
	body .row-bg.using-image[style*="estetica-dental"] { background-position: 63% 50% !important; }
	body .row-bg.using-image[style*="periodoncia"] { background-position: 44% 50% !important; }
	body .row-bg.using-image[style*="protesis-dental"] { background-position: 48% 50% !important; }
}

/* Formacion (movil): el correo de "Estancia Clinica" usa el mismo color que la version web y un tamano algo menor (antes 20px / #a65d70). */
@media only screen and (max-width: 767px) {
	body.page-id-216 #ajax-content-wrap .container.main-content > .row > #pide-cita:has(.wpb_text_column):not(:has(form)) .wpb_text_column a {
		color: #7a99b8 !important;
		font-size: 17px !important;
	}
}

/* Somos (movil): el primer bloque (titulo + parrafo) tenia 22.5px de padding izquierdo en la columna y quedaba desalineado respecto a la foto. */
@media only screen and (max-width: 767px) {
	body.page-id-8126 #ajax-content-wrap .container.main-content > .row > .wpb_row.top-level:first-child > .row_col_wrap_12 > .wpb_column:first-child > .vc_column-inner {
		padding-left: 0 !important;
	}
}

/* Somos (movil): los bloques "Equipo" y "Maria Jose Sanchez" mostraban el borde izquierdo (vacio) de una imagen panoramica 1920x600. Se encuadra el sujeto de cada foto. */
@media only screen and (max-width: 767px) {
	body.page-id-8126 .row-bg.using-image[style*="somos-nuestro-equipo"] { background-position: 30% 50% !important; }
	body.page-id-8126 .row-bg.using-image[style*="clinica-pasillo"] { background-position: 36% 50% !important; }
}

/* La consulta (movil): los bloques Radiologia 3D, Escaner intraoral y Estudio de fotografia mostraban el borde izquierdo de una imagen panoramica 1920x600. Se encuadra el sujeto de cada foto. */
@media only screen and (max-width: 767px) {
	body.page-id-8257 .row-bg.using-image[style*="radiografia-3d"] { background-position: 26% 50% !important; }
	body.page-id-8257 .row-bg.using-image[style*="escaner-intraoral"] { background-position: 40% 50% !important; }
	body.page-id-8257 .row-bg.using-image[style*="estudio-fotografia"] { background-position: 38% 50% !important; }
}


/* Titulos (movil): los h2 con clase vc_custom_heading los fuerza Salient a 26.25px (!important), igualando al h1 (26px). Se aplica la escala del sitio: h1 26px > h2 22px. */
@media only screen and (max-width: 767px) {
	body .wpb_wrapper h2.vc_custom_heading {
		font-size: 22px !important;
		line-height: 25px !important;
	}
}

/* Formularios de cita (movil): titulo y subtitulo eran casi del mismo tamano (22px / 20px). Titulo -2px y subtitulo mas pequeno para que se distingan. */
@media only screen and (max-width: 767px) {
	body #ajax-content-wrap .wpb_row:has(.wpcf7-form) h2.vc_custom_heading {
		font-size: 20px !important;
		line-height: 24px !important;
	}

	body #ajax-content-wrap .wpb_row:has(.wpcf7-form) p.vc_custom_heading {
		font-size: 16px !important;
		line-height: 1.4 !important;
	}
}

/* Profesionales (movil): la primera columna (titulo, parrafos y boton) tenia 22.5px de padding izquierdo y quedaba desalineada respecto a la foto. */
@media only screen and (max-width: 767px) {
	body.page-id-8487 #ajax-content-wrap .container.main-content > .row > .wpb_row.top-level:first-child > .row_col_wrap_12 > .wpb_column:first-child > .vc_column-inner {
		padding-left: 0 !important;
	}
}

/* Trabaja con nosotros (movil): la primera columna (titulo, parrafo y boton) tenia 22.5px de padding izquierdo y quedaba desalineada respecto a la foto. */
@media only screen and (max-width: 767px) {
	body.page-id-8054 #ajax-content-wrap .container.main-content > .row > .wpb_row.top-level:first-child > .row_col_wrap_12 > .wpb_column:first-child > .vc_column-inner {
		padding-left: 0 !important;
	}
}

/* Contacto (movil): la primera columna (titulo, parrafos y boton) tenia 22.5px de padding izquierdo y quedaba desalineada respecto a la foto. */
@media only screen and (max-width: 767px) {
	body.page-id-119 #ajax-content-wrap .container.main-content > .row > .wpb_row.top-level:first-child > .row_col_wrap_12 > .wpb_column:first-child > .vc_column-inner {
		padding-left: 0 !important;
	}

	body.page-id-119 #ajax-content-wrap .container.main-content > .row > .wpb_row.top-level:first-child > .row_col_wrap_12 > .wpb_column:first-child > .vc_column-inner a:not(.nectar-button) {
		overflow-wrap: anywhere !important;
		word-break: break-word !important;
	}
}

/* Contacto (movil): el correo del bloque de datos de contacto (direccion, telefono, email) es mas ancho que la columna y se cortaba. Se permite partirlo en dos lineas. */
@media only screen and (max-width: 767px) {
	body.page-id-119 .copies-web a[href^="mailto:"] {
		overflow-wrap: anywhere !important;
		word-break: break-word !important;
	}
}

/* Contacto (movil): se muestran los separadores de la version web, uno entre la foto y Horario/Telefono/WhatsApp y otro debajo, que otras reglas moviles ocultaban como filas vacias. */
@media only screen and (max-width: 767px) {
	body.page-id-119 #ajax-content-wrap .container.main-content > .row > .wpb_row:has(.divider-border):has(+ .wpb_row a[href*="wa.me"]),
	body.page-id-119 #ajax-content-wrap .container.main-content > .row > .wpb_row:has(a[href*="wa.me"]) + .wpb_row:has(.divider-border) {
		display: block !important;
	}

	body.page-id-119 #ajax-content-wrap .container.main-content > .row > .wpb_row:has(.divider-border):has(+ .wpb_row a[href*="wa.me"]) .vc_column-inner,
	body.page-id-119 #ajax-content-wrap .container.main-content > .row > .wpb_row:has(a[href*="wa.me"]) + .wpb_row:has(.divider-border) .vc_column-inner {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
}

/* Formacion (movil): "Estancia Clinica" - la fila vacia que sigue dejaba ~150px de hueco blanco antes del pie, y el email se partia a mitad de palabra (tarjeta algo mas ancha y email mas pequeno para que quepa en una linea). */
@media only screen and (max-width: 767px) {
	body.page-id-216 #ajax-content-wrap .container.main-content > .row > #pide-cita + .wpb_row:not(:has(.wpb_text_column, img, h1, h2, h3, a, form)) {
		display: none !important;
	}

	body.page-id-216 #ajax-content-wrap .container.main-content > .row > #pide-cita:has(.wpb_text_column):not(:has(form)) > .row_col_wrap_12 > .vc_col-sm-3\/5 > .vc_column-inner {
		width: min(340px, calc(100% - 24px)) !important;
		padding-left: 14px !important;
		padding-right: 14px !important;
	}

	body.page-id-216 #ajax-content-wrap .container.main-content > .row > #pide-cita:has(.wpb_text_column):not(:has(form)) {
		background-position: 78% 50% !important;
	}

	body.page-id-216 #ajax-content-wrap .container.main-content > .row > #pide-cita:has(.wpb_text_column):not(:has(form)) .wpb_text_column a {
		font-size: 14px !important;
		word-break: normal;
		overflow-wrap: anywhere;
	}
}
