/* =========================================================================
   Páginas de contenido (terapias, especialidades, tipos de terapia), listados,
   precios y páginas normales (textos legales). Se apoya en site.css y,
   en las de contenido, en ansiedad.css (tarjetas y enlaces relacionados).
   ========================================================================= */

/* -------------------------------------------------------------------------
   Presentación: los títulos de estas páginas son largos (los de la web anterior)
   ------------------------------------------------------------------------- */

.ct-content-page .ct-page-hero h1 {
	font-size: clamp(2.1rem, 3.4vw, 2.9rem);
	line-height: 1.12;
}

.ct-content-page .ct-page-hero__intro {
	max-width: 620px;
}

/* -------------------------------------------------------------------------
   Texto
   ------------------------------------------------------------------------- */

.ct-prose p,
.ct-block__lead p {
	margin: 0 0 16px;
	line-height: 1.75;
	color: var(--ct-muted);
}

.ct-prose p:last-child,
.ct-block__lead p:last-child {
	margin-bottom: 0;
}

.ct-prose strong,
.ct-block__lead strong,
.ct-acc__body strong {
	font-weight: 600;
	color: var(--ct-ink);
}

.ct-prose .ct-checkcard {
	margin: 24px 0;
}

/* Cabecera de sección sin título: el texto a todo el ancho de su columna */
.ct-block.is-untitled .ct-two-col > header:empty {
	display: none;
}

.ct-block.is-text.is-untitled .ct-two-col {
	grid-template-columns: minmax(0, 760px);
	justify-content: center;
}

/* En franja blanca, los recuadros blancos pasan a crema (y al revés) */
.ct-bg-white .ct-checkcard,
.ct-bg-white .ct-signal,
.ct-bg-white .ct-acc__item,
.ct-bg-white .ct-step {
	background: var(--ct-cream);
}

.ct-bg-cream .ct-checkcard,
.ct-bg-cream .ct-signal,
.ct-bg-cream .ct-acc__item,
.ct-bg-cream .ct-step {
	background: var(--ct-white);
}

.ct-checklist li > span {
	min-width: 0;
}

.ct-checklist strong {
	font-weight: 600;
	color: var(--ct-ink);
}

.ct-checkcard .ct-checkcard__intro.is-between {
	margin: 22px 0 6px;
}

/* -------------------------------------------------------------------------
   Tarjetas y pasos
   ------------------------------------------------------------------------- */

.ct-block .ct-head .ct-block__lead {
	max-width: 720px;
	margin: 18px auto 0;
}

.ct-block__intro {
	max-width: 720px;
	margin: 18px auto 0;
	font-weight: 500;
	color: var(--ct-forest);
}

.ct-cards .ct-signal h3 {
	margin: 0 0 8px;
	font-size: 1.12rem;
	line-height: 1.3;
}

.ct-cards .ct-signal p strong {
	font-weight: 600;
}

/* Pasos: el número en lugar del icono */
.ct-cards.is-steps .ct-signal__ico,
.ct-step__n {
	font-family: var(--ct-serif);
	font-size: 1.15rem;
	font-weight: 500;
}

.ct-cards__note {
	grid-column: 1 / -1;
	margin: 6px 0 0;
}

.ct-cards__note p {
	margin: 0;
	font-weight: 500;
	color: var(--ct-forest);
}

.ct-block__closing {
	max-width: 860px;
	margin: 32px auto 0;
}

.ct-block__closing p {
	margin: 0 0 10px;
}

.ct-block__closing p:last-child {
	margin-bottom: 0;
}

/* Pocas tarjetas: dos columnas, para que no quede una sola en la última fila */
.ct-cards:has(> .ct-signal:nth-child(4):last-child),
.ct-cards:has(> .ct-signal:nth-child(2):last-child) {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* -------------------------------------------------------------------------
   Apartados: desplegables y pasos
   ------------------------------------------------------------------------- */

.ct-block__top {
	margin-bottom: 44px;
}

.ct-acc {
	display: grid;
	gap: 12px;
	max-width: 960px;
	margin: 0 auto;
}

.ct-acc__item {
	border: 1px solid var(--ct-line);
	border-radius: 18px;
}

.ct-acc__item summary {
	position: relative;
	display: block;
	padding: 22px 64px 22px 28px;
	cursor: pointer;
	list-style: none;
}

.ct-acc__item summary::-webkit-details-marker {
	display: none;
}

.ct-acc__item summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 28px;
	width: 10px;
	height: 10px;
	margin-top: -7px;
	border-right: 2px solid var(--ct-terra);
	border-bottom: 2px solid var(--ct-terra);
	transform: rotate(45deg);
	transition: transform .2s ease;
}

.ct-acc__item[open] summary::after {
	margin-top: -2px;
	transform: rotate(-135deg);
}

.ct-acc__item summary:focus-visible {
	outline: 2px solid var(--ct-terra);
	outline-offset: 2px;
	border-radius: 18px;
}

.ct-acc__item summary h3 {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.35;
}

.ct-acc__body {
	padding: 0 28px 26px;
}

.ct-acc__body > p {
	margin: 0 0 14px;
	line-height: 1.75;
	color: var(--ct-muted);
}

.ct-acc__body .ct-checkcard {
	margin-top: 8px;
	padding: 22px 26px;
}

.ct-bg-white .ct-acc__body .ct-checkcard {
	background: var(--ct-white);
}

.ct-bg-cream .ct-acc__body .ct-checkcard {
	background: var(--ct-cream);
}

.ct-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.ct-step {
	margin: 0;
	padding: 26px 26px 28px;
	border: 1px solid var(--ct-line);
	border-radius: 18px;
}

.ct-step__n {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: 16px;
	border-radius: 50%;
	background: var(--ct-forest);
	color: var(--ct-white);
}

.ct-step h3 {
	margin: 0 0 8px;
	font-size: 1.12rem;
	line-height: 1.3;
}

.ct-step p {
	margin: 0;
	font-size: .93rem;
	line-height: 1.65;
	color: var(--ct-muted);
}

/* -------------------------------------------------------------------------
   Enlaces a las demás páginas de la sección
   ------------------------------------------------------------------------- */

.ct-siblings {
	padding: 64px 0;
}

.ct-siblings .ct-related__more {
	max-width: 960px;
	margin: 0 auto;
	text-align: center;
}

.ct-siblings .ct-chips {
	justify-content: center;
}

/* -------------------------------------------------------------------------
   Listados: tarjetas de las páginas hijas
   ------------------------------------------------------------------------- */

.ct-list-page .ct-page-hero__intro {
	max-width: 720px;
}

.ct-list-page .ct-page-hero .ct-callout {
	max-width: 720px;
	margin-top: 8px;
}

.ct-list-page .ct-page-hero.is-simple .ct-wrap + .ct-wrap {
	margin-top: 0;
}

.ct-tiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ct-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 30px 30px 28px;
	border: 1px solid var(--ct-line);
	border-radius: var(--ct-radius);
	background: var(--ct-cream);
	transition: border-color .2s ease, box-shadow .2s ease;
}

.ct-tile:hover {
	border-color: var(--ct-peach);
	box-shadow: var(--ct-shadow);
}

.ct-tile__title {
	margin: 0 0 12px;
	font-size: 1.45rem;
	line-height: 1.2;
}

.ct-tile__title a {
	color: var(--ct-forest);
	text-decoration: none;
}

/* Toda la tarjeta lleva a la página (los enlaces de dentro quedan por encima) */
.ct-tile__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.ct-tile__title a:focus-visible {
	outline: none;
}

.ct-tile:has(.ct-tile__title a:focus-visible) {
	outline: 2px solid var(--ct-terra);
	outline-offset: 2px;
}

.ct-tile__text {
	flex: 1;
	margin: 0 0 20px;
	font-size: .95rem;
	line-height: 1.65;
	color: var(--ct-muted);
}

.ct-tile .ct-chips {
	position: relative;
	z-index: 1;
	margin: 0 0 22px;
	gap: 8px;
}

.ct-tile .ct-chips li a {
	font-size: .85rem;
}

/* -------------------------------------------------------------------------
   Páginas normales (aviso legal, privacidad, cookies…)
   ------------------------------------------------------------------------- */

.ct-entry {
	max-width: 800px;
	margin: 0 auto;
	line-height: 1.75;
	color: var(--ct-ink);
}

.ct-entry > *:first-child {
	margin-top: 0;
}

.ct-entry h2 {
	margin: 44px 0 16px;
	font-size: clamp(1.5rem, 2.6vw, 1.9rem);
}

.ct-entry h3 {
	margin: 32px 0 12px;
	font-size: 1.25rem;
}

.ct-entry p,
.ct-entry ul,
.ct-entry ol {
	margin: 0 0 16px;
}

.ct-entry ul,
.ct-entry ol {
	padding-left: 1.3em;
}

.ct-entry li {
	margin: 0 0 6px;
}

.ct-entry a {
	color: var(--ct-terra);
	overflow-wrap: anywhere;
}

.ct-entry table {
	width: 100%;
	margin: 0 0 20px;
	border-collapse: collapse;
	font-size: .92rem;
}

.ct-entry th,
.ct-entry td {
	padding: 10px 12px;
	border: 1px solid var(--ct-line);
	text-align: left;
	vertical-align: top;
}

.ct-plain .ct-entry {
	overflow-x: auto;
}

/* -------------------------------------------------------------------------
   Variantes de sección
   ------------------------------------------------------------------------- */

/* Columna estrecha y centrada (texto suelto y etiquetas) */
.ct-block__narrow {
	max-width: 780px;
	margin: 0 auto;
}

.ct-block__centred {
	text-align: center;
}

.ct-block__centred h2 {
	margin: 0 0 26px;
}

.ct-block__centred h2::after {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	margin: 22px auto 0;
	border-radius: 3px;
	background: var(--ct-peach);
}

.ct-block__centred .ct-prose p {
	font-size: 1.06rem;
	line-height: 1.8;
}

.ct-block__after {
	max-width: 780px;
	margin: 30px auto 0;
}

.ct-block__after p {
	margin: 0 0 12px;
	line-height: 1.75;
	color: var(--ct-muted);
}

.ct-block__after.is-center {
	text-align: center;
}

.ct-block.is-tags .ct-head {
	margin-bottom: 30px;
}

.ct-block.is-tags .ct-block__intro {
	margin: 0 0 18px;
	text-align: center;
}

/* Etiquetas: puntos cortos en píldoras */
.ct-tags {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ct-tags li {
	margin: 0;
	padding: 10px 18px;
	border: 1px solid var(--ct-line);
	border-radius: var(--ct-radius-pill);
	font-size: .95rem;
	line-height: 1.4;
	color: var(--ct-ink);
}

.ct-bg-white .ct-tags li {
	background: var(--ct-cream);
}

.ct-bg-cream .ct-tags li,
.ct-bg-sand .ct-tags li {
	background: var(--ct-white);
}

/* Apartados en tarjetas */
.ct-part-cards .ct-signal p {
	margin: 0 0 10px;
}

.ct-part-cards .ct-signal p:last-child {
	margin-bottom: 0;
}

/* Iconos de las tarjetas: alternan terracota y verde */
.ct-cards .ct-signal:nth-child(even) .ct-signal__ico {
	background: var(--ct-sage-soft);
	color: var(--ct-forest);
}

/* Sección verde para destacar (normalmente «cómo te ayudo») */
.ct-block.ct-bg-forest .ct-prose p,
.ct-block.ct-bg-forest .ct-block__lead p,
.ct-block.ct-bg-forest .ct-block__after p {
	color: rgba(255, 255, 255, .82);
}

.ct-block.ct-bg-forest .ct-prose strong {
	color: var(--ct-white);
}

.ct-block.ct-bg-forest .ct-checkcard {
	background: var(--ct-white);
	box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .5);
	color: var(--ct-ink);
}

.ct-block.ct-bg-forest .ct-checklist li {
	color: var(--ct-ink);
}

.ct-block.ct-bg-forest .ct-checkcard__intro {
	color: var(--ct-forest);
}

.ct-block.ct-bg-forest .ct-block__centred h2::after {
	background: var(--ct-terra);
}

/* -------------------------------------------------------------------------
   Tarjetas de los listados: icono y «Ver más»
   ------------------------------------------------------------------------- */

.ct-tiles.is-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ct-tile__ico {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-bottom: 18px;
	border-radius: 14px;
	background: var(--ct-peach-soft);
	color: var(--ct-terra);
}

.ct-tile:nth-child(even) .ct-tile__ico {
	background: var(--ct-sage-soft);
	color: var(--ct-forest);
}

.ct-tile__ico .ct-icon {
	width: 22px;
	height: 22px;
}

.ct-tile__more {
	align-self: flex-start;
	font-size: .92rem;
	font-weight: 600;
	color: var(--ct-terra);
}

.ct-tile__more span {
	display: inline-block;
	transition: transform .2s ease;
}

.ct-tile:hover .ct-tile__more span {
	transform: translateX(4px);
}

/* -------------------------------------------------------------------------
   Franja de métodos (EMDR e IFS)
   ------------------------------------------------------------------------- */

.ct-methods .ct-head {
	margin-bottom: 36px;
}

.ct-methods__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	max-width: 1000px;
	margin: 0 auto;
}

.ct-method {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	padding: 26px 28px;
	border: 1px solid var(--ct-line);
	border-radius: var(--ct-radius);
	color: var(--ct-ink);
	text-decoration: none;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.ct-bg-white .ct-method { background: var(--ct-cream); }
.ct-bg-cream .ct-method,
.ct-bg-sand .ct-method { background: var(--ct-white); }

.ct-method:hover {
	border-color: var(--ct-peach);
	box-shadow: var(--ct-shadow);
	color: var(--ct-ink);
	transform: translateY(-2px);
}

.ct-method__ico {
	display: grid;
	flex: none;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--ct-forest);
	color: var(--ct-white);
}

.ct-method__ico .ct-icon {
	width: 24px;
	height: 24px;
}

.ct-method__body {
	display: block;
	flex: 1;
}

.ct-method__title {
	display: block;
	margin-bottom: 6px;
	font-family: var(--ct-serif);
	font-size: 1.3rem;
	color: var(--ct-forest);
}

.ct-method__text {
	display: block;
	font-size: .93rem;
	line-height: 1.6;
	color: var(--ct-muted);
}

.ct-method__arrow {
	align-self: center;
	font-size: 1.3rem;
	color: var(--ct-terra);
	transition: transform .2s ease;
}

.ct-method:hover .ct-method__arrow {
	transform: translateX(4px);
}

/* -------------------------------------------------------------------------
   Tableta y móvil
   ------------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.ct-tiles,
	.ct-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 880px) {
	.ct-block .ct-two-col {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.ct-block__top {
		margin-bottom: 32px;
	}

	.ct-cards:has(> .ct-signal:nth-child(4):last-child),
	.ct-cards:has(> .ct-signal:nth-child(2):last-child) {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.ct-tiles,
	.ct-tiles.is-2,
	.ct-steps,
	.ct-methods__grid {
		grid-template-columns: 1fr;
	}

	.ct-method {
		padding: 22px 20px;
	}

	.ct-method__arrow {
		display: none;
	}

	.ct-tags li {
		padding: 8px 14px;
		font-size: .9rem;
	}

	.ct-tile {
		padding: 24px 22px;
	}

	.ct-acc__item summary {
		padding: 18px 52px 18px 20px;
	}

	.ct-acc__item summary::after {
		right: 22px;
	}

	.ct-acc__body {
		padding: 0 20px 22px;
	}

	.ct-acc__body .ct-checkcard {
		padding: 18px 18px;
	}

	.ct-siblings {
		padding: 48px 0;
	}
}
