/**
 * Snack Learning — estilos complementarios.
 * Los colores, tipografías y espaciados viven en theme.json;
 * aquí solo se definen los estilos de bloque y detalles de sección.
 */

/* =========================================================
   1. Base
   ========================================================= */
html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

:where(section[id]) {
	scroll-margin-top: 6rem;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

:where(h1, h2, h3, p) {
	text-wrap: pretty;
}

.wp-site-blocks > * + *,
.wp-block-post-content > .alignfull {
	margin-block: 0;
}

/* =========================================================
   2. Cabecera
   ========================================================= */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}

.admin-bar .wp-site-blocks > header.wp-block-template-part {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: 0;
	}
}

.site-header {
	background-color: rgb(255 255 255 / 0.9);
	backdrop-filter: saturate(1.6) blur(14px);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.site-header .wp-block-navigation-item__content:hover,
.site-header .wp-block-navigation-item__content:focus-visible {
	color: var(--wp--preset--color--gold-deep);
}

.site-header .header-cta .wp-block-button__link {
	padding: 0.7rem 1.25rem;
	font-size: var(--wp--preset--font-size--small);
}

.site-header .wp-block-navigation-item__content,
.site-header .wp-block-button__link {
	white-space: nowrap;
}

@media (max-width: 1180px) {
	.site-header .header-cta {
		display: none;
	}
}

/* =========================================================
   3. Estilos de bloque
   ========================================================= */

/* Antetítulo */
.is-style-eyebrow {
	font-family: var(--wp--preset--font-family--michroma);
	font-size: 0.75rem;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold-deep);
}

/* Tarjetas */
.wp-block-group.is-style-card,
.wp-block-group.is-style-card-media {
	box-sizing: border-box;
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 0;
}

.wp-block-group.is-style-card {
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
}

.wp-block-group.is-style-card-media {
	overflow: hidden;
	padding: 0;
}

.wp-block-group.is-style-card-media > .wp-block-image {
	margin: 0;
}

.wp-block-group.is-style-card-media > .wp-block-image img {
	display: block;
	width: 100%;
	aspect-ratio: 10 / 7;
	object-fit: cover;
	border-radius: 0;
}

/* Imágenes */
.wp-block-image.is-style-elevated img {
	width: 100%;
	height: auto;
	border-radius: 0;
	box-shadow: var(--wp--preset--shadow--block-gold-lg);
}

.wp-block-image.is-style-icon,
.wp-block-image.is-style-icon-sm,
.wp-block-image.is-style-logo {
	margin: 0;
	flex-shrink: 0;
}

.wp-block-image.is-style-icon img {
	width: 56px;
	height: 56px;
	border-radius: 0;
}

.wp-block-image.is-style-icon-sm img {
	width: 28px;
	height: 28px;
	border-radius: 0;
}

.wp-block-image.is-style-logo img {
	width: 184px;
	height: auto;
	border-radius: 0;
}

/* Botones */
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--base);
}

.wp-block-button__link {
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.wp-block-button__link:hover {
		transform: translate(-3px, -3px);
		box-shadow: 3px 3px 0 0 var(--wp--preset--color--navy);
	}

	:is(.has-navy-background-color, .has-navy-deep-background-color) .wp-block-button__link:hover {
		box-shadow: 3px 3px 0 0 var(--wp--preset--color--base);
	}
}

.wp-block-button.is-style-large > .wp-block-button__link {
	padding: 1.2rem 2.5rem;
	font-size: var(--wp--preset--font-size--medium);
}

/* =========================================================
   4. Secciones oscuras (azul marino)
   ========================================================= */
.has-navy-background-color :is(h1, h2, h3, h4, h5, h6),
.has-navy-deep-background-color :is(h1, h2, h3, h4, h5, h6) {
	color: var(--wp--preset--color--base);
}

.has-navy-background-color .is-style-eyebrow,
.has-navy-deep-background-color .is-style-eyebrow {
	color: var(--wp--preset--color--gold);
}

.has-navy-background-color a:not(.wp-element-button),
.has-navy-deep-background-color a:not(.wp-element-button) {
	color: var(--wp--preset--color--base);
}

.has-navy-background-color a:not(.wp-element-button):hover,
.has-navy-deep-background-color a:not(.wp-element-button):hover {
	color: var(--wp--preset--color--gold);
}

.has-navy-background-color .wp-element-button:focus-visible,
.has-navy-deep-background-color .wp-element-button:focus-visible {
	outline-color: var(--wp--preset--color--gold);
}

/* =========================================================
   5. Hero
   ========================================================= */
.hero-mockup {
	margin: 0;
}

.hero-mockup img {
	width: 100%;
	height: auto;
}

/* Hero – imágenes alternadas: fundido cada 6 s. En el editor se ven una debajo de otra. */
body:not(.editor-styles-wrapper) .hero-fade {
	display: grid;
}

body:not(.editor-styles-wrapper) .hero-fade > .wp-block-image {
	grid-area: 1 / 1;
	margin: 0;
	animation: sl-hero-fade 12s ease-in-out infinite;
}

body:not(.editor-styles-wrapper) .hero-fade > .wp-block-image:nth-child(2) {
	animation-delay: -6s;
}

body:not(.editor-styles-wrapper) .hero-fade:hover > .wp-block-image {
	animation-play-state: paused;
}

@keyframes sl-hero-fade {
	0%, 42% { opacity: 1; }
	50%, 92% { opacity: 0; }
	100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	body:not(.editor-styles-wrapper) .hero-fade > .wp-block-image {
		animation: none;
	}
	body:not(.editor-styles-wrapper) .hero-fade > .wp-block-image:nth-child(n+2) {
		display: none;
	}
}

.hero-actions {
	margin-top: var(--wp--preset--spacing--40);
}

.trust-strip {
	padding-top: var(--wp--preset--spacing--50);
	border-top: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--navy);
}

.trust-strip p {
	margin: 0;
}

/* =========================================================
   6. Por qué Snack Learning
   ========================================================= */
.diff-item + .diff-item {
	margin-top: var(--wp--preset--spacing--40);
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid rgb(255 255 255 / 0.12);
}

.diff-item .wp-block-image {
	margin-top: 0.15rem;
}

.diff-text {
	flex: 1;
}

.diff-text > * {
	margin: 0;
}

/* =========================================================
   7. Proceso
   ========================================================= */
.step-number {
	display: inline-block;
	margin: 0;
	padding: 0.45rem 0.6rem 0.4rem;
	background-color: var(--wp--preset--color--navy);
	font-family: var(--wp--preset--font-family--michroma);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--gold);
}

/* =========================================================
   8. Testimonios
   ========================================================= */
.is-style-card .wp-block-quote {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: var(--wp--preset--color--ink);
}

.is-style-card .wp-block-quote::before {
	content: "\201C";
	font-size: 3.5rem;
	font-weight: 800;
	line-height: 0.8;
	color: var(--wp--preset--color--gold);
}

.is-style-card .wp-block-quote cite {
	margin-top: auto;
	padding-top: var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--small);
	font-style: normal;
	color: var(--wp--preset--color--muted);
}

.is-style-card .wp-block-quote cite strong {
	color: var(--wp--preset--color--navy);
}

/* =========================================================
   9. Preguntas frecuentes (bloque Detalles)
   ========================================================= */
.faq-list {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 0;
	padding: 0 var(--wp--preset--spacing--40);
}

.wp-block-details {
	padding-block: var(--wp--preset--spacing--40);
}

.wp-block-details + .wp-block-details {
	border-top: 1px solid var(--wp--preset--color--line);
}

.wp-block-details summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	color: var(--wp--preset--color--navy);
	cursor: pointer;
	list-style: none;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "+";
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 2rem;
	height: 2rem;
	border-radius: 0;
	background-color: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--navy);
	font-size: 1.25rem;
	font-weight: 600;
	transition: transform 0.2s ease;
}

.wp-block-details[open] summary::after {
	transform: rotate(45deg);
}

.wp-block-details summary:focus-visible {
	outline: 2px solid var(--wp--preset--color--navy);
	outline-offset: 4px;
	border-radius: 0;
}

.wp-block-details > :not(summary) {
	margin-top: 0.75rem;
	color: var(--wp--preset--color--muted);
}

/* =========================================================
   10. Llamado a la acción y formulario (Contact Form 7)
   ========================================================= */
.has-navy-background-color .is-style-card {
	color: var(--wp--preset--color--ink);
}

.has-navy-background-color .is-style-card :is(h1, h2, h3, h4, h5, h6) {
	color: var(--wp--preset--color--navy);
}

.has-navy-background-color .is-style-card a:not(.wp-element-button) {
	color: var(--wp--preset--color--navy);
}

.cta-benefits p {
	margin: 0;
	font-weight: 600;
}

.cta-form {
	border: 0 !important;
	box-shadow: var(--wp--preset--shadow--block-gold-lg);
}

.wpcf7 form > p {
	margin: 0 0 1.1rem;
}

.wpcf7 label {
	display: block;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--navy);
}

.wpcf7-form-control-wrap {
	display: block;
	margin-top: 0.4rem;
}

.wpcf7 :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea) {
	box-sizing: border-box;
	width: 100%;
	padding: 0.85rem 1rem;
	border: 1px solid var(--wp--preset--color--line);
	border-bottom: 2px solid var(--wp--preset--color--navy-soft);
	border-radius: 0;
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: var(--wp--preset--font-size--regular);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wpcf7 textarea {
	min-height: 7.5rem;
	resize: vertical;
}

.wpcf7 :is(input, select, textarea):focus {
	outline: none;
	border-color: var(--wp--preset--color--navy);
	border-bottom-color: var(--wp--preset--color--gold);
	background-color: var(--wp--preset--color--base);
	box-shadow: none;
}

.wpcf7 .wpcf7-submit {
	width: 100%;
	padding: 1.05rem 1.6rem;
	border: 0;
	border-radius: 0;
	background-color: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--navy);
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.wpcf7 .wpcf7-submit:hover {
	background-color: var(--wp--preset--color--gold-bright);
}

.wpcf7 .wpcf7-submit:focus-visible {
	outline: 2px solid var(--wp--preset--color--navy);
	outline-offset: 3px;
}

.wpcf7 .wpcf7-spinner {
	display: block;
	margin: 0.75rem auto 0;
}

.wpcf7-not-valid-tip {
	margin-top: 0.35rem;
	font-size: var(--wp--preset--font-size--small);
	color: #B42318;
}

.wpcf7 form .wpcf7-response-output {
	margin: 1rem 0 0;
	padding: 0.85rem 1rem;
	border-radius: 0;
	font-size: var(--wp--preset--font-size--small);
}

/* =========================================================
   11. Pie de página
   ========================================================= */
.site-footer .wp-block-group p {
	margin: 0;
}

.site-footer .wp-block-column > * + * {
	margin-block-start: var(--wp--preset--spacing--30);
}

.site-footer a:not(.wp-element-button) {
	text-decoration: none;
}

.site-footer a:not(.wp-element-button):hover {
	text-decoration: underline;
}

.footer-title {
	margin-bottom: var(--wp--preset--spacing--30);
	font-family: var(--wp--preset--font-family--michroma);
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.08em;
	overflow-wrap: normal;
	word-break: normal;
	text-transform: uppercase;
}

.footer-bottom {
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid rgb(255 255 255 / 0.12);
}

/* =========================================================
   12. Animación de entrada al hacer scroll (fade-up)
   Solo CSS (scroll-driven animations). Se aplica únicamente en
   el front-end, en navegadores compatibles y si el usuario no
   ha pedido reducir el movimiento. En el resto, el contenido
   se muestra normal.
   ========================================================= */
@keyframes sl-fade-up {
	0% {
		opacity: 0;
		translate: 0 48px;
	}

	100% {
		opacity: 1;
		translate: 0 0;
	}
}

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		body:not(.editor-styles-wrapper) main section.alignfull > :not(.is-layout-grid):not(.wp-block-columns),
		body:not(.editor-styles-wrapper) main section.alignfull > .wp-block-columns > .wp-block-column,
		body:not(.editor-styles-wrapper) main section.alignfull > .is-layout-grid > * {
			animation: sl-fade-up ease-out both;
			animation-timeline: view();
			animation-range: entry 5% cover 35%;
		}

		body:not(.editor-styles-wrapper) main section.alignfull > .wp-block-columns > .wp-block-column:nth-child(2),
		body:not(.editor-styles-wrapper) main section.alignfull > .is-layout-grid > :nth-child(3n + 2) {
			animation-range: entry 12% cover 42%;
		}

		body:not(.editor-styles-wrapper) main section.alignfull > .is-layout-grid > :nth-child(3n) {
			animation-range: entry 19% cover 49%;
		}
	}
}

/* =========================================================
   13. Efectos al pasar el cursor
   Tarjetas (Para quién, Servicios, Proceso): elevación + borde dorado.
   Portafolio: zoom suave de la imagen.
   ========================================================= */
@media (hover: hover) {
	:is(#para-quien, #servicios, #proceso) .wp-block-group.is-style-card {
		transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
	}

	:is(#para-quien, #servicios, #proceso) .wp-block-group.is-style-card:hover {
		border-color: var(--wp--preset--color--navy);
		box-shadow: var(--wp--preset--shadow--block-gold);
	}

	.wp-block-group.is-style-card-media > .wp-block-image img,
	.wp-block-group.is-style-card-media .wp-block-post-featured-image img {
		transition: transform 0.6s ease;
	}
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	:is(#para-quien, #servicios, #proceso) .wp-block-group.is-style-card:hover {
		transform: translate(-4px, -4px);
	}

	.wp-block-group.is-style-card-media:hover > .wp-block-image img,
	.wp-block-group.is-style-card-media:hover .wp-block-post-featured-image img {
		transform: scale(1.04);
	}
}

/* =========================================================
   14. Blog
   ========================================================= */

/* Categorías */
.category-pills {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin-top: var(--wp--preset--spacing--40) !important;
	padding: 0;
	list-style: none;
}

.category-pills a {
	display: inline-block;
	padding: 0.45rem 1rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 0;
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--navy);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.category-pills a:hover {
	border-color: var(--wp--preset--color--gold);
	background-color: var(--wp--preset--color--gold-soft);
	color: var(--wp--preset--color--navy);
}

/* Tarjetas de artículos */
.wp-block-post-terms.is-style-eyebrow a {
	color: inherit;
	text-decoration: none;
}

.wp-block-post-title a {
	color: var(--wp--preset--color--navy);
	text-decoration: none;
}

.wp-block-post-title a:hover {
	color: var(--wp--preset--color--gold-deep);
}

.wp-block-post-template > li {
	display: flex;
	flex-direction: column;
}

.wp-block-post-template > li > .post-card {
	flex: 1;
}

.is-style-card-media .wp-block-post-featured-image {
	margin: 0;
	overflow: hidden;
}

.is-style-card-media .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	border-radius: 0;
}

.post-card-featured .wp-block-post-featured-image,
.post-card-featured .wp-block-post-featured-image a {
	display: block;
	height: 100%;
}

.post-card-featured .wp-block-post-featured-image img {
	height: 100%;
	min-height: 18rem;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.post-meta > * + *::before {
	content: "·";
	margin-right: 0.75rem;
}

.post-meta a {
	color: inherit;
	text-decoration: none;
}

/* Paginación */
.wp-block-query-pagination {
	margin-top: var(--wp--preset--spacing--60) !important;
	font-weight: 600;
}

.wp-block-query-pagination a {
	text-decoration: none;
}

.wp-block-query-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 2.5rem;
	height: 2.5rem;
	border-radius: 0;
	color: var(--wp--preset--color--navy);
}

.wp-block-query-pagination .page-numbers.current {
	background-color: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--base);
}

/* Búsqueda */
.wp-block-search .wp-block-search__input {
	padding: 0.85rem 1.1rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 0;
	font: inherit;
}

.wp-block-search .wp-block-search__button {
	margin-left: 0.5rem;
}

.blog-search {
	max-width: 32rem;
	margin-top: var(--wp--preset--spacing--40) !important;
}

/* Artículo individual */
.single-post > .post-hero-image {
	margin-top: var(--wp--preset--spacing--60) !important;
}

.single-post > .post-hero-image img {
	width: 100%;
	border-radius: 0;
	box-shadow: var(--wp--preset--shadow--block-gold-lg);
}

.single-post > .entry-content {
	margin-top: var(--wp--preset--spacing--60) !important;
	font-size: 1.125rem;
	line-height: 1.75;
}

.entry-content > :is(h2, h3) {
	margin-top: var(--wp--preset--spacing--60) !important;
}

.entry-content > .wp-block-quote {
	padding-left: var(--wp--preset--spacing--40);
	border-left: 3px solid var(--wp--preset--color--gold);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	color: var(--wp--preset--color--navy);
}

.entry-content :is(ul, ol) {
	padding-left: 1.25rem;
}

.entry-content li + li {
	margin-top: 0.5rem;
}

.tag-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: var(--wp--preset--spacing--50) !important;
}

.tag-pills .wp-block-post-terms__separator {
	display: none;
}

.tag-pills a {
	padding: 0.3rem 0.85rem;
	border-radius: 0;
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	text-decoration: none;
}

.single-post > .author-box,
.single-post > .post-cta {
	margin-top: var(--wp--preset--spacing--60) !important;
}

.author-box .wp-block-post-author {
	display: flex;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--30);
	margin-top: var(--wp--preset--spacing--30);
}

.author-box .wp-block-post-author__avatar {
	margin: 0;
}

.author-box .wp-block-post-author__avatar img {
	border-radius: 0;
}

.author-box .wp-block-post-author__name {
	margin: 0;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	color: var(--wp--preset--color--navy);
}

.author-box .wp-block-post-author__bio {
	margin: 0.35rem 0 0;
	color: var(--wp--preset--color--muted);
}

.post-cta,
.author-box {
	box-sizing: border-box;
}

.post-cta {
	border-radius: 0;
	box-shadow: var(--wp--preset--shadow--block-gold-lg);
}

@media (max-width: 900px) {
	.post-card-featured .wp-block-post-featured-image img {
		height: auto;
		min-height: 0;
		aspect-ratio: 16 / 10;
	}
}

.post-nav {
	margin-top: var(--wp--preset--spacing--60) !important;
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--preset--color--line);
	font-weight: 600;
}

.post-nav a {
	text-decoration: none;
}

/* =========================================================
   15. Responsive
   ========================================================= */
@media (max-width: 1100px) {
	#proceso .is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 600px) {
	#proceso .is-layout-grid {
		grid-template-columns: 1fr !important;
	}
}

@media (min-width: 782px) and (max-width: 1024px) {
	.site-footer .wp-block-columns {
		flex-wrap: wrap !important;
	}

	.site-footer .wp-block-column {
		flex-basis: 40% !important;
		flex-grow: 1 !important;
	}

	.site-footer .wp-block-column:first-child {
		flex-basis: 100% !important;
	}
}

@media (max-width: 781px) {
	.trust-strip {
		flex-direction: column;
		align-items: flex-start;
	}

	.wp-block-button.is-style-large > .wp-block-button__link {
		padding: 1.05rem 1.75rem;
		font-size: var(--wp--preset--font-size--regular);
	}
}

@media (max-width: 480px) {
	.hero-actions .wp-block-button {
		width: 100%;
	}

	.hero-actions .wp-block-button__link {
		width: 100%;
	}
}

/* =========================================================
   16. Logos de clientes (carrusel continuo)
   En el editor se ven quietos; en la web se desplazan en bucle
   (assets/js/clientes.js duplica los logos). Pausa al pasar el cursor.
   ========================================================= */
.clients-strip {
	border-top: 1px solid var(--wp--preset--color--line);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.clients-title {
	font-family: var(--wp--preset--font-family--michroma);
	font-size: 0.75rem !important;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.clients-grid {
	align-items: center;
	gap: 1.5rem 0 !important;
}

.clients-grid .client-logo {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 64px;
	margin: 0 !important;
	padding: 0 2rem;
}

.clients-grid .client-logo img {
	width: auto;
	height: auto;
	max-width: 150px;
	max-height: 56px;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.65;
	transition: filter 0.3s ease, opacity 0.3s ease;
}

@media (hover: hover) {
	.clients-grid .client-logo img:hover {
		filter: grayscale(0);
		opacity: 1;
	}
}

body:not(.editor-styles-wrapper) .clients-marquee {
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

body:not(.editor-styles-wrapper) .clients-marquee::-webkit-scrollbar {
	display: none;
}

body:not(.editor-styles-wrapper) .clients-marquee .clients-grid {
	flex-wrap: nowrap !important;
	justify-content: flex-start !important;
	width: max-content;
	gap: 0 !important;
}

.clients-marquee.is-animated {
	overflow: hidden;
}

.clients-marquee.is-animated .clients-grid {
	animation: sl-marquee var(--clients-duration, 40s) linear infinite;
}

.clients-marquee.is-animated:hover .clients-grid {
	animation-play-state: paused;
}

@keyframes sl-marquee {
	to {
		transform: translateX(-50%);
	}
}

@media (max-width: 600px) {
	.clients-grid .client-logo {
		height: 52px;
		padding: 0 1.25rem;
	}
	.clients-grid .client-logo img {
		max-width: 110px;
		max-height: 40px;
	}
}

/* =========================================================
   17. Hero premium
   Entrada escalonada, fondo con luz dorada en movimiento lento,
   subrayado dorado en las palabras resaltadas del titular,
   mockup flotante con brillo y destello en el botón principal.
   Solo en la web publicada y si el usuario no pide reducir movimiento.
   ========================================================= */
#inicio {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

/* Subrayado de marca: el resaltado del editor en titulares (1–2 palabras clave). */
:is(h1, h2) mark {
	background-color: transparent !important;
	background-image: linear-gradient(var(--wp--preset--color--gold), var(--wp--preset--color--gold));
	background-repeat: no-repeat;
	background-position: 0 88%;
	background-size: 100% 0.28em;
	color: inherit !important;
	padding: 0 0.04em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

@media (prefers-reduced-motion: no-preference) {
	body:not(.editor-styles-wrapper) #inicio::before,
	body:not(.editor-styles-wrapper) #inicio::after {
		content: "";
		position: absolute;
		z-index: -1;
		pointer-events: none;
	}

	body:not(.editor-styles-wrapper) #inicio::before {
		inset: -20%;
		background:
			radial-gradient(38% 42% at 72% 38%, rgb(252 180 8 / 0.20), transparent 70%),
			radial-gradient(34% 40% at 18% 78%, rgb(40 48 69 / 0.10), transparent 70%),
			radial-gradient(26% 30% at 92% 88%, rgb(252 180 8 / 0.10), transparent 70%);
		animation: sl-hero-glow 18s ease-in-out infinite alternate;
		translate: calc(var(--hx, 0) * -14px) calc(var(--hy, 0) * -14px);
		transition: translate 0.6s ease-out;
	}

	body:not(.editor-styles-wrapper) #inicio::after {
		inset: 0;
		background-image: radial-gradient(rgb(40 48 69 / 0.13) 1px, transparent 1.4px);
		background-size: 22px 22px;
		-webkit-mask-image: radial-gradient(60% 70% at 75% 40%, #000, transparent 75%);
		mask-image: radial-gradient(60% 70% at 75% 40%, #000, transparent 75%);
		opacity: 0;
		animation: sl-hero-in 1.6s ease-out 0.3s forwards;
	}

	/* Entrada escalonada */
	body:not(.editor-styles-wrapper) #inicio > .wp-block-columns > .wp-block-column:first-child {
		animation: none;
	}

	body:not(.editor-styles-wrapper) #inicio > .wp-block-columns > .wp-block-column:first-child > * {
		animation: sl-hero-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
		animation-timeline: auto;
	}

	body:not(.editor-styles-wrapper) #inicio > .wp-block-columns > .wp-block-column:first-child > :nth-child(1) { animation-delay: 0.10s; }
	body:not(.editor-styles-wrapper) #inicio > .wp-block-columns > .wp-block-column:first-child > :nth-child(2) { animation-delay: 0.22s; }
	body:not(.editor-styles-wrapper) #inicio > .wp-block-columns > .wp-block-column:first-child > :nth-child(3) { animation-delay: 0.40s; }
	body:not(.editor-styles-wrapper) #inicio > .wp-block-columns > .wp-block-column:first-child > :nth-child(4) { animation-delay: 0.55s; }

	body:not(.editor-styles-wrapper) #inicio h1 mark {
		animation: sl-hero-underline 0.9s cubic-bezier(0.6, 0, 0.2, 1) 1s both;
	}

	body:not(.editor-styles-wrapper) #inicio > .wp-block-columns > .wp-block-column:last-child {
		animation: sl-hero-reveal 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s both;
		animation-timeline: auto;
		translate: calc(var(--hx, 0) * 10px) calc(var(--hy, 0) * 10px);
		transition: translate 0.6s ease-out;
	}

	body:not(.editor-styles-wrapper) #inicio > .trust-strip {
		animation: sl-hero-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.9s both;
		animation-timeline: auto;
	}

	/* Mockup flotante con brillo dorado debajo */
	body:not(.editor-styles-wrapper) #inicio .hero-fade {
		position: relative;
		animation: sl-hero-float 7s ease-in-out 1.6s infinite;
	}

	body:not(.editor-styles-wrapper) #inicio .hero-fade::after {
		content: "";
		position: absolute;
		left: 18%;
		right: 18%;
		bottom: -4%;
		height: 10%;
		z-index: -1;
		border-radius: 50%;
		background: radial-gradient(closest-side, rgb(252 180 8 / 0.35), transparent);
		filter: blur(14px);
		animation: sl-hero-shadow 7s ease-in-out 1.6s infinite;
	}

	/* Destello en el botón principal */
	body:not(.editor-styles-wrapper) #inicio .hero-actions .wp-block-button:not(.is-style-outline) .wp-block-button__link {
		position: relative;
		overflow: hidden;
		isolation: isolate;
		transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.2s ease;
	}

	body:not(.editor-styles-wrapper) #inicio .hero-actions .wp-block-button:not(.is-style-outline) .wp-block-button__link::after {
		content: "";
		position: absolute;
		inset: 0 auto 0 -60%;
		width: 45%;
		z-index: -1;
		background: linear-gradient(100deg, transparent, rgb(255 255 255 / 0.45), transparent);
		transform: skewX(-20deg);
		animation: sl-hero-shine 5s ease-in-out 2.2s infinite;
	}

	body:not(.editor-styles-wrapper) #inicio .hero-actions .wp-block-button__link:hover {
		transform: translateY(-2px);
		box-shadow: 0 12px 28px -10px rgb(40 48 69 / 0.45);
	}
}

@keyframes sl-hero-rise {
	from { opacity: 0; transform: translateY(26px); filter: blur(6px); }
	to { opacity: 1; transform: none; filter: none; }
}

@keyframes sl-hero-reveal {
	from { opacity: 0; transform: translateX(48px) scale(0.95); filter: blur(8px); }
	to { opacity: 1; transform: none; filter: none; }
}

@keyframes sl-hero-in {
	to { opacity: 1; }
}

@keyframes sl-hero-underline {
	from { background-size: 0% 0.28em; }
	to { background-size: 100% 0.28em; }
}

@keyframes sl-hero-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-12px); }
}

@keyframes sl-hero-shadow {
	0%, 100% { opacity: 1; transform: scaleX(1); }
	50% { opacity: 0.6; transform: scaleX(0.88); }
}

@keyframes sl-hero-glow {
	from { transform: translate3d(0, 0, 0) rotate(0deg); }
	to { transform: translate3d(-4%, 3%, 0) rotate(8deg); }
}

@keyframes sl-hero-shine {
	0%, 70% { left: -60%; }
	100% { left: 130%; }
}

/* =========================================================
   18. Diagrama del enfoque (sección Por qué)
   Tres círculos que se cruzan; Snack Learning en la intersección.
   Todo se escala con el ancho del diagrama (unidades cqi).
   Hecho con grupos nativos: los textos se editan en el editor.
   ========================================================= */
.enfoque-diagram {
	container-type: inline-size;
	position: relative;
	width: 100%;
	max-width: 440px;
	aspect-ratio: 1 / 0.92;
	margin: var(--wp--preset--spacing--50) auto 0 !important;
}

.enfoque-diagram > * {
	margin: 0 !important;
}

.enfoque-circle {
	position: absolute;
	width: 58cqi;
	height: 58cqi;
	border-radius: 50%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 1cqi;
	border: 1.5px solid rgb(252 180 8 / 0.55);
	background: rgb(252 180 8 / 0.06);
	box-sizing: border-box;
	transition: background-color 0.35s ease, border-color 0.35s ease;
}

.enfoque-circle > * {
	margin: 0 !important;
}

.enfoque-circle h3 {
	font-size: clamp(13px, 4.2cqi, 18px) !important;
	font-weight: 800;
	line-height: 1.15;
	color: var(--wp--preset--color--gold);
}

.enfoque-circle p {
	font-size: clamp(11px, 3.1cqi, 14px) !important;
	line-height: 1.3;
	color: var(--wp--preset--color--navy-soft);
	text-wrap: pretty;
}

.enfoque-circle--1 {
	left: 0;
	top: 0;
	justify-content: flex-start;
	padding: 14cqi 16cqi 0 8cqi;
}

.enfoque-circle--2 {
	right: 0;
	top: 0;
	justify-content: flex-start;
	text-align: right;
	padding: 14cqi 8cqi 0 16cqi;
}

.enfoque-circle--3 {
	left: 21cqi;
	top: 34cqi;
	justify-content: flex-end;
	text-align: center;
	padding: 0 10cqi 9cqi;
}

.enfoque-center {
	position: absolute;
	left: 50cqi;
	top: 40.3cqi;
	z-index: 2;
	transform: translate(-50%, -50%);
	padding: 2cqi 3.4cqi;
	border-radius: 0;
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--navy) !important;
	font-family: var(--wp--preset--font-family--michroma);
	font-size: clamp(9px, 2.6cqi, 12px) !important;
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
	box-shadow: 0 0 0 6px rgb(252 180 8 / 0.18), 0 10px 24px -8px rgb(0 0 0 / 0.5);
}

@container (max-width: 360px) {
	.enfoque-circle p {
		display: none;
	}
}

@media (hover: hover) {
	.enfoque-circle:hover {
		background: rgb(252 180 8 / 0.14);
		border-color: var(--wp--preset--color--gold);
	}
}

@media (prefers-reduced-motion: no-preference) {
	body:not(.editor-styles-wrapper) .enfoque-center {
		animation: sl-enfoque-pulse 3.2s ease-in-out infinite;
	}
}

@keyframes sl-enfoque-pulse {
	0%, 100% { box-shadow: 0 0 0 6px rgb(252 180 8 / 0.18), 0 10px 24px -8px rgb(0 0 0 / 0.5); }
	50% { box-shadow: 0 0 0 12px rgb(252 180 8 / 0.06), 0 10px 24px -8px rgb(0 0 0 / 0.5); }
}

/* =========================================================
   19. Recursos gráficos del manual
   ========================================================= */

/* Bandera de esquina amarilla en tarjetas del portafolio */
#portafolio .wp-block-group.is-style-card-media {
	position: relative;
}

#portafolio .wp-block-group.is-style-card-media::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	z-index: 2;
	width: 44px;
	height: 44px;
	background: linear-gradient(225deg, var(--wp--preset--color--gold) 50%, transparent 50%);
	pointer-events: none;
}

@media (hover: hover) {
	#portafolio .wp-block-group.is-style-card-media {
		transition: transform 0.3s ease, box-shadow 0.3s ease;
	}
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	#portafolio .wp-block-group.is-style-card-media:hover {
		transform: translate(-4px, -4px);
		box-shadow: var(--wp--preset--shadow--block-navy);
	}
}

/* Barra amarilla bajo títulos de sección centrados */
main section.alignfull > h2.has-text-align-center::after {
	content: "";
	display: block;
	width: 56px;
	height: 6px;
	margin: var(--wp--preset--spacing--30) auto 0;
	background-color: var(--wp--preset--color--gold);
}
