/* Contenido largo de los tratamientos: índice, pasos, tablas y avisos (propuesta SEO de David Badia, oct. 2026). */
.roig-toc {
	margin: 0 0 32px;
	padding: 20px 24px;
	border: 1px solid rgba(61, 72, 87, 0.15);
	border-radius: 8px;
	background: #fff;
}
.roig-toc__title {
	margin: 0 0 10px;
	font-family: "Montserrat", sans-serif;
	font-weight: 600;
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #3D4857;
}
.roig-toc ol {
	margin: 0;
	padding-left: 20px;
	columns: 2;
	column-gap: 32px;
}
.roig-toc li {
	margin: 0 0 6px;
	break-inside: avoid;
}
.roig-toc a {
	color: #3D4857;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.roig-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 18px 0 28px;
}
.roig-cards > div {
	padding: 18px 20px;
	border: 1px solid rgba(61, 72, 87, 0.15);
	border-radius: 8px;
	background: #fff;
}
.roig-cards h3 {
	margin: 0 0 6px;
}
.roig-cards p {
	margin: 0;
}
.roig-steps {
	counter-reset: paso;
	list-style: none;
	margin: 18px 0 28px;
	padding: 0;
}
.roig-steps li {
	position: relative;
	margin: 0 0 14px;
	padding: 0 0 0 52px;
}
.roig-steps li::before {
	counter-increment: paso;
	content: counter(paso);
	position: absolute;
	left: 0;
	top: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #3D4857;
	color: #fff;
	font-weight: 600;
	line-height: 36px;
	text-align: center;
}
.roig-table-wrap {
	overflow-x: auto;
	margin: 18px 0 28px;
}
.roig-table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	font-size: 15px;
}
.roig-table th,
.roig-table td {
	padding: 12px 14px;
	border-bottom: 1px solid rgba(61, 72, 87, 0.15);
	text-align: left;
	vertical-align: top;
}
.roig-table thead th {
	background: #3D4857;
	color: #fff;
	font-weight: 600;
}
.roig-note {
	margin: 18px 0 28px;
	padding: 16px 20px;
	border-left: 4px solid #3D4857;
	background: #f4f6f8;
}
.roig-review {
	margin: 32px 0 0;
	font-size: 14px;
	color: #5b6573;
}
.roig-confirm {
	background: #fff3b0;
	padding: 0 4px;
}
@media (max-width: 700px) {
	.roig-toc ol { columns: 1; }
	.roig-cards { grid-template-columns: 1fr; }
}

/* En móvil el texto del tratamiento tenía margen a la izquierda (20 px) pero no a la derecha. */
@media (max-width: 767px) {
	.single-especialidades .elementor-widget-theme-post-content {
		padding-right: 20px;
		box-sizing: border-box;
	}
}

/* ------------------------------------------------------------------
 * Diseño del contenido de los tratamientos (27/10/2026): lectura más cómoda,
 * más aire entre secciones y bloques de imagen + texto.
 * ------------------------------------------------------------------ */
.single-especialidades .elementor-widget-theme-post-content {
	color: #3D4857;
	font-size: 17px;
	line-height: 1.75;
}
.single-especialidades .elementor-widget-theme-post-content > .elementor-widget-container {
	max-width: 1040px;
	margin: 0 auto;
}
.single-especialidades .elementor-widget-theme-post-content p {
	margin: 0 0 18px;
}
.single-especialidades .elementor-widget-theme-post-content h2 {
	position: relative;
	margin: 76px 0 22px;
	padding-top: 22px;
	font-size: clamp(27px, 3.1vw, 38px);
	line-height: 1.2;
}
.single-especialidades .elementor-widget-theme-post-content h2::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 56px;
	height: 3px;
	border-radius: 2px;
	background: #8FA6BD;
}
.single-especialidades .elementor-widget-theme-post-content h3 {
	margin: 30px 0 8px;
	font-family: "Montserrat", sans-serif;
	font-weight: 600;
	font-size: 19px;
	line-height: 1.35;
	letter-spacing: 0;
	text-transform: none;
	font-variant: normal;
	color: #3D4857;
}
.single-especialidades .elementor-widget-theme-post-content ul {
	margin: 0 0 22px;
	padding-left: 20px;
}
.single-especialidades .elementor-widget-theme-post-content li {
	margin: 0 0 8px;
}
.roig-lead {
	font-size: 19px;
	line-height: 1.7;
}
.roig-toc {
	border: 0;
	border-radius: 16px;
	background: #F5F7FA;
	padding: 24px 28px;
}
.roig-cards {
	gap: 18px;
	margin: 24px 0 32px;
}
.roig-cards > div {
	border: 0;
	border-top: 3px solid #8FA6BD;
	border-radius: 14px;
	background: #F5F7FA;
	padding: 24px 24px 22px;
}
.single-especialidades .elementor-widget-theme-post-content .roig-cards h3 {
	margin: 0 0 8px;
	font-size: 18px;
}
.roig-cards p {
	font-size: 16px;
	line-height: 1.6;
}
.roig-steps li {
	padding-left: 56px;
	min-height: 38px;
}
.roig-table-wrap {
	border-radius: 14px;
	box-shadow: 0 0 0 1px rgba(61, 72, 87, 0.12);
}
.roig-table {
	min-width: 520px;
}
.roig-note {
	border-left-color: #8FA6BD;
	border-radius: 0 12px 12px 0;
	background: #F5F7FA;
}
.roig-media {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
	align-items: center;
	margin: 28px 0 36px;
}
.roig-media--reverse > .roig-media__figure {
	order: 2;
}
.roig-media__figure {
	margin: 0;
}
.roig-media__figure img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 18px;
	box-shadow: 0 18px 40px rgba(61, 72, 87, 0.16);
}
.roig-media__body > *:last-child {
	margin-bottom: 0;
}
@media (max-width: 860px) {
	.roig-media {
		grid-template-columns: 1fr;
		gap: 22px;
	}
	.roig-media--reverse > .roig-media__figure {
		order: 0;
	}
	.single-especialidades .elementor-widget-theme-post-content h2 {
		margin-top: 56px;
	}
}

/* Imagen a ancho del texto (contenido sencillo). */
.roig-figure {
  margin: 28px 0 36px;
}
.roig-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 8px;
}

/* ------------------------------------------------------------------
 * Landing de tratamiento con el estilo de las páginas de clínica (body.roig-landing, 27/10/2026)
 * Hero: fondo azul de la web (#152D41), titular blanco y la foto como <img> bajo el subtítulo
 * (sin foto de fondo, a petición de SEO). Contenido: títulos Cinzel, bloques imagen + texto y banners de cita.
 * ------------------------------------------------------------------ */
body.roig-landing .elementor-15305 .elementor-element.elementor-element-90eb6c1 {
	background: #152D41 !important;
}
body.roig-landing .elementor-15305 .elementor-element-c49bea9 {
	justify-content: flex-start;
}
body.roig-landing .elementor-15305 .elementor-element-6875d89 {
	order: 3;
	width: 100%;
	max-width: 100%;
	margin-top: 28px;
}
body.roig-landing .roig-hero-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 15px;
}
body.roig-landing .elementor-15305 .elementor-element-173ce97 .elementor-heading-title {
	color: #fff;
	font-size: clamp(32px, 3.6vw, 46px);
	font-weight: 600;
	line-height: 1.15;
}
body.roig-landing .elementor-15305 .elementor-element-f522b8e,
body.roig-landing .elementor-15305 .elementor-element-f522b8e p {
	color: #fff;
	font-size: 18px;
	line-height: 1.6;
}
body.roig-landing .elementor-15305 .elementor-element-90eb6c1 .rank-math-breadcrumb,
body.roig-landing .elementor-15305 .elementor-element-90eb6c1 .rank-math-breadcrumb a,
body.roig-landing .elementor-15305 .elementor-element-90eb6c1 .rank-math-breadcrumb .separator,
body.roig-landing .elementor-15305 .elementor-element-90eb6c1 .rank-math-breadcrumb .last {
	color: #fff;
}

/* Contenido */
body.roig-landing .elementor-widget-theme-post-content h2 {
	margin: 80px 0 24px;
	padding-top: 0;
	font-family: "Cinzel", serif;
	font-weight: 400;
	font-size: clamp(28px, 3vw, 38px);
	line-height: 1.2;
	color: #3D4857;
}
body.roig-landing .elementor-widget-theme-post-content h2::before {
	content: none;
}
body.roig-landing .elementor-widget-theme-post-content h3 {
	margin: 26px 0 6px;
	font-size: 18px;
}
body.roig-landing .elementor-widget-theme-post-content ol {
	margin: 0 0 22px;
	padding-left: 22px;
}
body.roig-landing .elementor-widget-theme-post-content li {
	margin: 0 0 10px;
}
body.roig-landing .elementor-widget-theme-post-content li::marker {
	color: #152D41;
	font-weight: 600;
}
.roig-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 56px;
	align-items: center;
	margin: 80px 0 0;
}
.roig-split--reverse > .roig-split__figure {
	order: 2;
}
.roig-split__figure {
	margin: 0;
}
.roig-split__figure img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 15px;
}
body.roig-landing .elementor-widget-theme-post-content .roig-split__body > h2:first-child {
	margin-top: 0;
}
.roig-split__body > *:last-child {
	margin-bottom: 0;
}
.roig-cta {
	margin: 28px 0 0;
}
.single-especialidades .elementor-widget-theme-post-content a.roig-cta__button {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 3px;
	background: #152D41;
	color: #fff;
	font-family: "Montserrat", sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .2s ease;
}
.single-especialidades .elementor-widget-theme-post-content a.roig-cta__button:hover,
.single-especialidades .elementor-widget-theme-post-content a.roig-cta__button:focus-visible {
	background: #224C6B;
	color: #fff;
}
@media (max-width: 860px) {
	.roig-split {
		grid-template-columns: 1fr;
		gap: 24px;
		margin-top: 56px;
	}
	.roig-split--reverse > .roig-split__figure {
		order: 0;
	}
	body.roig-landing .elementor-widget-theme-post-content h2 {
		margin-top: 56px;
	}
}
/* La foto destacada repetida bajo el texto sobra en la landing (ya hay fotos en el contenido). */
body.roig-landing .elementor-15305 .elementor-element-c3121ac {
	display: none;
}

/* Banner de cita dentro del contenido */
.roig-cta-box {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 24px 48px;
	align-items: center;
	margin: 64px 0 0;
	padding: 40px 48px;
	border-radius: 15px;
	background: #152D41;
	color: #fff;
}
.single-especialidades .elementor-widget-theme-post-content .roig-cta-box p {
	margin: 0;
	color: #fff;
}
.single-especialidades .elementor-widget-theme-post-content .roig-cta-box__title {
	margin: 0 0 8px;
	font-family: "Cinzel", serif;
	font-size: clamp(24px, 2.4vw, 32px);
	line-height: 1.2;
}
.single-especialidades .elementor-widget-theme-post-content .roig-cta-box__phones {
	margin-top: 12px;
	font-size: 15px;
}
.single-especialidades .elementor-widget-theme-post-content .roig-cta-box__phones a {
	color: #fff;
	font-weight: 600;
	white-space: nowrap;
}
.single-especialidades .elementor-widget-theme-post-content .roig-cta-box a.roig-cta__button {
	background: #fff;
	color: #152D41;
	padding: 16px 32px;
	font-weight: 600;
	white-space: nowrap;
}
.single-especialidades .elementor-widget-theme-post-content .roig-cta-box a.roig-cta__button:hover,
.single-especialidades .elementor-widget-theme-post-content .roig-cta-box a.roig-cta__button:focus-visible {
	background: #DCE6F0;
	color: #152D41;
}
@media (max-width: 860px) {
	.roig-cta-box {
		grid-template-columns: 1fr;
		padding: 28px 24px;
		margin-top: 48px;
	}
	.single-especialidades .elementor-widget-theme-post-content .roig-cta-box a.roig-cta__button {
		display: block;
		text-align: center;
	}
}

/* Formulario «Pide cita» del final: tarjeta azul como la del hero (el formulario lleva .form-especialidad). */
.single-especialidades .elementor-15305 .elementor-element.elementor-element-6a9fb0f {
	background-color: #152D41;
	border-radius: 16px;
}
.single-especialidades .elementor-15305 .elementor-element-7eb089a .elementor-heading-title {
	color: #fff;
}
/* La foto del hero ocupa todo el ancho de la columna (Elementor le da 62 %). */
body.roig-landing .elementor-15305 .elementor-element.elementor-element-6875d89 {
	width: 100% !important;
	max-width: 100% !important;
	--container-widget-width: 100%;
}
body.roig-landing .elementor-15305 .elementor-element-6875d89 img.roig-hero-img {
	width: 100% !important;
	max-width: 100% !important;
}
/* «Reserva tu Cita» y «Pide Cita» ya no son H2 (SEO): mantienen el tamaño de título. */
.single-especialidades .elementor-15305 .elementor-element-2ba16ce .elementor-heading-title,
.single-especialidades .elementor-15305 .elementor-element-7eb089a .elementor-heading-title {
	font-size: clamp(26px, 2.4vw, 32px);
	line-height: 1.2;
}
/* Tarjeta del formulario del hero: un tono más claro que el fondo, borde y sombra para que se lea como tarjeta. */
body.roig-landing .elementor-15305 .elementor-element.elementor-element-9aced3d {
	background-color: #24496A !important;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	--padding-top: 32px;
	--padding-bottom: 32px;
	--padding-left: 32px;
	--padding-right: 32px;
}
@media (max-width: 860px) {
	body.roig-landing .elementor-15305 .elementor-element.elementor-element-9aced3d {
		--padding-top: 24px;
		--padding-bottom: 24px;
		--padding-left: 20px;
		--padding-right: 20px;
	}
}

/* Índice de la página (enlaces a cada sección), después de la introducción. */
.roig-index {
	margin: 56px 0 0;
	padding: 28px 32px;
	border-radius: 15px;
	background: #F5F7FA;
}
.single-especialidades .elementor-widget-theme-post-content .roig-index__title {
	margin: 0 0 12px;
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #152D41;
}
.single-especialidades .elementor-widget-theme-post-content .roig-index ol {
	margin: 0;
	padding-left: 22px;
	columns: 2;
	column-gap: 40px;
}
.single-especialidades .elementor-widget-theme-post-content .roig-index li {
	margin: 0 0 8px;
	break-inside: avoid;
}
.single-especialidades .elementor-widget-theme-post-content .roig-index a {
	color: #152D41;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.single-especialidades .elementor-widget-theme-post-content [id] {
	scroll-margin-top: 110px;
}
@media (max-width: 860px) {
	.roig-index { padding: 22px 20px; margin-top: 40px; }
	.single-especialidades .elementor-widget-theme-post-content .roig-index ol { columns: 1; }
}
