/* ==========================================================================
   Estilos extra de bloques (ver inc/block-styles.php).

   Se carga en la página y en el editor. Los colores con reserva: dentro del
   editor `main.css` no está, y los `--c-*` llegan por inc/colors.php.
   ========================================================================== */

/* --- Párrafo: Antetítulo --------------------------------------------------- */
.is-style-kicker {
	display: flex;
	gap: 1rem;
	align-items: center;
	margin-block-end: 1rem;
	font-family: var( --f-display, var( --it-font-display, inherit ) );
	font-size: .9375rem;
	font-weight: 700;
	letter-spacing: .32em;
	line-height: 1.3;
	text-transform: uppercase;
	color: var( --c-text-dim, currentColor );
}

/* La raya: corta, gruesa e inclinada, del color de acento. */
.is-style-kicker::before {
	content: "";
	flex: none;
	width: 3.25rem;
	height: .4rem;
	background: var( --c-accent, currentColor );
	transform: skewX( -35deg );
}

.is-style-kicker.has-text-align-center {
	justify-content: center;
}

/* --- Lista: Pasos numerados -------------------------------------------------- */
:is( ol, ul ).is-style-steps {
	margin-inline: 0;
	padding: 0;
	list-style: none;
	counter-reset: it-step;
}

.is-style-steps > li {
	display: flex;
	gap: 1.5rem;
	align-items: center;
	margin: 0;
	padding-block: 1.1rem;
	border-bottom: 1px solid var( --c-line, rgb( 127 127 127 / .25 ) );
	counter-increment: it-step;
}

.is-style-steps > li::before {
	content: counter( it-step, decimal-leading-zero );
	flex: none;
	min-width: 2.75rem;
	font-family: var( --f-display, var( --it-font-display, inherit ) );
	font-size: 1.9rem;
	font-style: italic;
	font-weight: 800;
	line-height: 1;
	color: var( --c-accent, currentColor );
}

/* --- Lista: Con check --------------------------------------------------------- */
:is( ol, ul ).is-style-checks {
	margin-inline: 0;
	padding: 0;
	list-style: none;
}

.is-style-checks > li {
	display: flex;
	gap: .75rem;
	align-items: flex-start;
	margin: 0 0 .55rem;
	line-height: 1.5;
}

.is-style-checks > li::before {
	content: "";
	flex: none;
	width: 1.375rem;
	height: 1.375rem;
	margin-top: .05rem;
	border-radius: 50%;
	background:
		url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E" ) center / 62% no-repeat,
		var( --c-ok, #15803d );
}

/* --- Detalles: Pregunta frecuente ------------------------------------------ */
/* A todo el ancho y alineada a la izquierda aunque la sección esté centrada;
   «+» cerrada y «−» abierta, sin el triángulo del navegador. */
.wp-block-details.is-style-faq {
	width: 100%;
	max-width: none;
	margin-block: 0;
	padding: 0;
	border-bottom: 1px solid var( --c-line, rgb( 127 127 127 / .25 ) );
	text-align: left;
}

.wp-block-details.is-style-faq + .wp-block-details.is-style-faq {
	margin-top: 0;
}

.wp-block-details.is-style-faq > summary {
	display: flex;
	gap: 1rem;
	align-items: center;
	justify-content: space-between;
	min-height: 44px;
	padding-block: 1.1rem;
	font-family: var( --f-display, inherit );
	font-size: 1.125rem;
	font-weight: var( --fw-display, 700 );
	line-height: 1.35;
	list-style: none;
	cursor: pointer;
}

.wp-block-details.is-style-faq > summary::-webkit-details-marker {
	display: none;
}

.wp-block-details.is-style-faq > summary::after {
	content: "+";
	flex: none;
	width: 1.5rem;
	font-family: var( --f-ui, inherit );
	font-size: 1.5rem;
	font-weight: 300;
	line-height: 1;
	text-align: center;
	color: var( --c-accent, currentColor );
}

.wp-block-details.is-style-faq[open] > summary::after {
	content: "\2212";
}

.wp-block-details.is-style-faq > :not( summary ) {
	margin-top: 0;
	padding-bottom: 1.25rem;
	color: var( --c-text-dim, inherit );
}

/* --- Párrafo y cita: Cita destacada ----------------------------------------- */
:is( p, .wp-block-quote ).is-style-feature,
.entry__content .wp-block-quote.is-style-feature {
	max-width: 46rem;
	margin-block: 2.5rem;
	padding: 0;
	border: 0;
	font-family: var( --f-accent, var( --f-display, inherit ) );
	font-size: clamp( 1.5rem, 1.1rem + 1.8vw, 2.5rem );
	font-style: var( --fs-accent, normal );
	font-weight: var( --fw-accent, var( --fw-display, 400 ) );
	line-height: 1.25;
	text-wrap: balance;
	color: var( --c-text, inherit );
}

.wp-block-quote.is-style-feature p {
	margin: 0;
	font: inherit;
}

.wp-block-quote.is-style-feature cite {
	display: block;
	margin-top: 1rem;
	font-family: var( --f-ui, inherit );
	font-size: .875rem;
	font-style: normal;
	font-weight: 600;
	letter-spacing: .04em;
	color: var( --c-text-dim, inherit );
}

/* Centrada: la caja también, no solo el texto. */
:is( p, .wp-block-quote ).is-style-feature.has-text-align-center,
.wp-block-quote.is-style-feature:has( > .has-text-align-center ) {
	margin-inline: auto;
	text-align: center;
}

/* --- Párrafo: Nota ------------------------------------------------------- */
p.is-style-note {
	font-size: .875rem;
	line-height: 1.55;
	color: var( --c-text-dim, inherit );
}
