/* ==========================================================================
   Componentes del diseño para el editor de bloques (se cargan en el sitio y en el editor).
   Cada estilo se elige en el panel «Estilos» del bloque (clase is-style-…).
   ========================================================================== */

:root {
	--tp-indigo: var(--wp--preset--color--indigo);
	--tp-noche: var(--wp--preset--color--noche);
	--tp-cian: var(--wp--preset--color--cian);
	--tp-ambar: var(--wp--preset--color--ambar);
	--tp-tinta: var(--wp--preset--color--tinta);
	--tp-gris: var(--wp--preset--color--gris);
	--tp-tinte: var(--wp--preset--color--tinte);
	--tp-superficie: var(--wp--preset--color--superficie);
	--tp-borde: var(--wp--preset--color--borde);
	--tp-titulos: var(--wp--preset--font-family--inter-tight);
	--tp-ico-flecha: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
	--tp-ico-tilde: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	--tp-ico-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 0 1-13.2 7.9L3 21l1.1-4.6A9 9 0 1 1 21 12z'/%3E%3C/svg%3E");
	--tp-ico-comillas: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 18v-5.5C4 8.4 6.3 6 10 5.5v2.6C8 8.6 7 9.8 7 12h3v6H4zm10 0v-5.5c0-4.1 2.3-6.5 6-7v2.6c-2 .5-3 1.7-3 3.9h3v6h-6z'/%3E%3C/svg%3E");
	--tp-ico-lugar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-5.6-7-11a7 7 0 0 1 14 0c0 5.4-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
	--tp-ico-flecha-abajo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='m19 12-7 7-7-7'/%3E%3C/svg%3E");
	--tp-ico-libro: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5V5a2 2 0 0 1 2-2h14v16H6.5A2.5 2.5 0 0 0 4 21.5'/%3E%3Cpath d='M20 19v3H6.5'/%3E%3C/svg%3E");
	--tp-ico-externo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4 10 14'/%3E%3Cpath d='M19 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E");
}

/* ---------- Secciones (grupos a todo el ancho) ---------- */
.wp-block-group.is-style-tp-seccion { padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(32px, 5vw, 56px); }
.wp-block-group.has-noche-background-color, .wp-block-group.has-noche-background-color :where(h1, h2, h3, h4, p) { color: #fff; }
.wp-block-group.has-noche-background-color :where(a:not(.wp-block-button__link)) { color: #fff; }

/* ---------- Tarjeta ---------- */
.wp-block-group.is-style-tp-tarjeta {
	background: #fff; border: 1px solid var(--tp-borde); border-radius: 16px; padding: clamp(16px, 2.5vw, 22px); overflow: hidden;
}
/* una imagen como primer bloque de la tarjeta va de borde a borde, arriba */
.wp-block-group.is-style-tp-tarjeta.tp-imagen-arriba > :is(.wp-block-image, .wp-block-embed):first-child { margin: calc(-1 * clamp(16px, 2.5vw, 22px)) calc(-1 * clamp(16px, 2.5vw, 22px)) 16px !important; max-width: none; }
.wp-block-group.is-style-tp-tarjeta.tp-imagen-arriba > .wp-block-image:first-child img { border-radius: 0; width: 100%; }
.wp-block-group.is-style-tp-tarjeta.tp-imagen-arriba > .wp-block-embed:first-child :is(.tp-video, iframe) { border-radius: 0; }
.wp-block-group.is-style-tp-tarjeta.tp-imagen-arriba > .wp-block-image:first-child figcaption { margin: 8px clamp(16px, 2.5vw, 22px) 0; }

/* ---------- Caja azul noche (promesas, formularios oscuros) ---------- */
.wp-block-group.is-style-tp-caja-oscura { background: var(--tp-noche); color: #fff; border-radius: 16px; padding: clamp(18px, 3vw, 28px); }
.wp-block-group.is-style-tp-caja-oscura :where(h2, h3, h4, p) { color: #fff; }

/* ---------- Anuncio ---------- */
.wp-block-group.is-style-tp-anuncio { background: #FFF7E6; border: 1px solid #F5C26B; border-radius: 16px; padding: clamp(16px, 2.5vw, 22px); }
.wp-block-group.is-style-tp-anuncio > p:last-child { font-weight: 700; }

/* ---------- Cita del Prof. Landolfi ---------- */
.wp-block-group.is-style-tp-cita { background: var(--tp-noche); border-radius: 16px; padding: clamp(20px, 3.4vw, 32px); color: #fff; }
.wp-block-group.is-style-tp-cita .tp-cita__texto { position: relative; padding-top: 38px; font-size: clamp(16px, 1.9vw, 19px); line-height: 1.6; font-style: italic; color: var(--tp-tinte); }
.wp-block-group.is-style-tp-cita .tp-cita__texto::before {
	content: ""; position: absolute; left: 0; top: 0; width: 26px; height: 26px; background: var(--tp-cian);
	-webkit-mask: var(--tp-ico-comillas) center / contain no-repeat; mask: var(--tp-ico-comillas) center / contain no-repeat;
}
.wp-block-group.is-style-tp-cita .tp-cita__firma { gap: 14px; }
.wp-block-group.is-style-tp-cita .tp-cita__firma img { width: clamp(64px, 8vw, 88px); height: clamp(64px, 8vw, 88px); border-radius: 999px; object-fit: cover; object-position: 50% 20%; }
.wp-block-group.is-style-tp-cita .tp-cita__firma p { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.45; margin: 0; }
.wp-block-group.is-style-tp-cita .tp-cita__firma p span { font-weight: 500; color: #C9D2F2; }

/* ---------- Ítem numerado con imagen ---------- */
.wp-block-group.is-style-tp-numerado { border: 1px solid var(--tp-borde); border-radius: 16px; padding: clamp(16px, 2.5vw, 22px); }
.wp-block-group.is-style-tp-numerado p { color: var(--tp-gris); }
.wp-block-group.is-style-tp-numerado .wp-block-image img { width: 100%; height: clamp(180px, 20vw, 200px); object-fit: cover; border-radius: 12px; }
.wp-block-group.is-style-tp-numerado h3 { font-size: clamp(18px, 2.1vw, 21px); line-height: 1.3; margin: 0; }

/* ---------- Párrafos especiales ---------- */
p.is-style-tp-etiqueta, p.is-style-tp-etiqueta-ambar {
	/* chip alineado a la izquierda de la columna de texto (no centrado) */
	width: fit-content; margin-left: calc((100% - min(100%, var(--wp--style--global--content-size, 100%))) / 2) !important; margin-right: auto !important;
	font-size: 13px; font-weight: 700; line-height: 1.3; padding: 5px 12px; border-radius: 999px;
	color: var(--tp-indigo); background: var(--tp-tinte);
}
p.is-style-tp-etiqueta-ambar { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tp-tinta); background: var(--tp-ambar); padding: 5px 10px; }
p.is-style-tp-entrada { font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--tp-gris); }
p.is-style-tp-titulo-caja { font-family: var(--tp-titulos); font-size: clamp(20px, 2.6vw, 26px); line-height: 1.22; font-weight: 800; letter-spacing: -0.01em; }
p.is-style-tp-numero {
	flex: none; width: clamp(36px, 4.4vw, 44px); height: clamp(36px, 4.4vw, 44px); margin: 0; border-radius: 12px; background: var(--tp-noche);
	color: var(--tp-cian) !important; font-family: var(--tp-titulos); font-size: clamp(17px, 2vw, 20px); font-weight: 800;
	display: flex; align-items: center; justify-content: center;
}
p.is-style-tp-cifra { margin: 0; font-family: var(--tp-titulos); font-size: clamp(23px, 3.8vw, 38px); line-height: 1.1; font-weight: 800; color: var(--tp-cian) !important; }
p.is-style-tp-cifra + p { margin-top: 4px; font-size: clamp(12px, 1.4vw, 14px); color: #C9D2F2 !important; }

/* ---------- Listas ---------- */
ul.is-style-tp-tildes, ol.is-style-tp-numeros, ul.is-style-tp-numeros { list-style: none; padding-left: 0; display: flex; flex-direction: column; gap: 12px; }
ul.is-style-tp-tildes > li, .is-style-tp-numeros > li { position: relative; padding-left: 40px; line-height: 1.6; margin: 0; }
ul.is-style-tp-tildes > li::before {
	content: ""; position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 999px;
	background: var(--tp-tinte); /* el tilde índigo se dibuja encima con ::after */
}
ul.is-style-tp-tildes > li::after {
	content: ""; position: absolute; left: 5.5px; top: 6.5px; width: 15px; height: 15px; background: var(--tp-indigo);
	-webkit-mask: var(--tp-ico-tilde) center / contain no-repeat; mask: var(--tp-ico-tilde) center / contain no-repeat;
}
.is-style-tp-numeros { counter-reset: tp-num; }
.is-style-tp-numeros > li { counter-increment: tp-num; }
.is-style-tp-numeros > li::before {
	content: counter(tp-num); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 999px;
	background: var(--tp-noche); color: var(--tp-cian); font-family: var(--tp-titulos); font-size: 14px; font-weight: 800;
	display: flex; align-items: center; justify-content: center;
}

/* ---------- Botones ---------- */
.wp-block-button .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-align: center; text-decoration: none; }
.wp-block-button:not(.is-style-tp-contorno):not(.is-style-tp-whatsapp):not(.is-style-outline):not(.is-style-tp-reproducir):not(.is-style-tp-chip):not(.is-style-tp-documento) .wp-block-button__link::after {
	content: ""; flex: none; width: 18px; height: 18px; background: currentColor;
	-webkit-mask: var(--tp-ico-flecha) center / contain no-repeat; mask: var(--tp-ico-flecha) center / contain no-repeat;
}
.wp-block-button.is-style-tp-indigo .wp-block-button__link { background: var(--tp-indigo); color: #fff; font-weight: 700; }
.wp-block-button.is-style-tp-indigo .wp-block-button__link:hover { background: var(--tp-noche); color: #fff; }
.wp-block-button.is-style-tp-contorno .wp-block-button__link { background: transparent; color: var(--tp-indigo); border: 2px solid var(--tp-indigo); font-weight: 600; padding: 13px 20px; }
.wp-block-button.is-style-tp-contorno .wp-block-button__link:hover { background: var(--tp-tinte); color: var(--tp-indigo); }
.wp-block-button.is-style-tp-whatsapp .wp-block-button__link { background: #fff; color: var(--tp-tinta); border: 2px solid #D5DBE8; font-weight: 600; padding: 13px 18px; }
.wp-block-button.is-style-tp-whatsapp .wp-block-button__link:hover { border-color: var(--tp-gris); color: var(--tp-tinta); background: #fff; }
.wp-block-button.is-style-tp-whatsapp .wp-block-button__link::before {
	content: ""; flex: none; width: 18px; height: 18px; background: currentColor;
	-webkit-mask: var(--tp-ico-chat) center / contain no-repeat; mask: var(--tp-ico-chat) center / contain no-repeat;
}
@media (max-width: 759px) {
	.wp-block-buttons.tp-botones-movil-ancho { flex-direction: column; align-items: stretch; }
	.wp-block-buttons.tp-botones-movil-ancho .wp-block-button, .wp-block-buttons.tp-botones-movil-ancho .wp-block-button__link { width: 100%; }
}

/* ---------- Imágenes ---------- */
.wp-block-image img { border-radius: 12px; }
.wp-block-image.is-style-tp-sombra img { border-radius: 8px; box-shadow: 0 18px 40px rgba(17, 24, 39, 0.18); }
.wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: 12px; }
.wp-block-embed iframe { border-radius: 12px; }

/* ---------- Preguntas desplegables ---------- */
.wp-block-details.is-style-tp-acordeon { border: 1px solid var(--tp-borde); border-radius: 14px; padding: 0 18px; background: #fff; }
.wp-block-details.is-style-tp-acordeon > summary {
	list-style: none; cursor: pointer; padding: 16px 32px 16px 0; position: relative; font-weight: 700; font-size: 17px; line-height: 1.4; color: var(--tp-tinta);
}
.wp-block-details.is-style-tp-acordeon > summary::-webkit-details-marker { display: none; }
.wp-block-details.is-style-tp-acordeon > summary::after {
	content: ""; position: absolute; right: 0; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: var(--tp-indigo);
	-webkit-mask: var(--tp-ico-flecha) center / contain no-repeat; mask: var(--tp-ico-flecha) center / contain no-repeat; transform: rotate(90deg); transition: transform 0.2s;
}
.wp-block-details.is-style-tp-acordeon[open] > summary::after { transform: rotate(-90deg); }
.wp-block-details.is-style-tp-acordeon > :not(summary) { margin-top: 0; padding-bottom: 16px; color: var(--tp-gris); }

/* ---------- Bandas que se repiten ---------- */
.tp-banda-costos { border-top: 1px solid var(--tp-borde); }
.tp-banda-costos h2 { font-size: clamp(21px, 2.4vw, 24px); margin: 0; }
.tp-banda-costos p { margin: 4px 0 0; font-size: 15px; color: var(--tp-gris); }
.tp-cifras .wp-block-column { min-width: 0; }
.tp-cursos .tp-curso h3 { font-family: var(--tp-titulos); font-size: 17px; line-height: 1.25; font-weight: 700; letter-spacing: 0; margin: 0; }
.tp-cursos .tp-curso h3 a { color: var(--tp-tinta); text-decoration: none; }
.tp-cursos .tp-curso h3 a:hover { color: var(--tp-indigo); }
.tp-cursos .tp-curso p { font-size: 14px; line-height: 1.5; color: var(--tp-gris); margin: 8px 0 0; }
.tp-cursos .tp-curso .wp-block-image img { height: 140px; width: 100%; object-fit: cover; }
.tp-cursos .tp-curso--oscuro { background: var(--tp-noche); border-color: var(--tp-noche); }
.tp-cursos .tp-curso--oscuro h3 a { color: #fff; }
.tp-cursos .tp-curso--oscuro p { color: #C9D2F2; }
@media (max-width: 781px) {
	.tp-cursos .wp-block-columns { gap: 12px; }
	.tp-cursos .tp-curso { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0 12px; padding: 0 12px 0 0; align-items: center; }
	.tp-cursos .tp-curso.tp-imagen-arriba > .wp-block-image:first-child { margin: 0 !important; width: 96px; grid-row: span 2; align-self: stretch; }
	.tp-cursos .tp-curso.tp-imagen-arriba > .wp-block-image:first-child img { width: 96px !important; height: 100% !important; min-height: 96px; }
	.tp-cursos .tp-curso h3 { font-size: 16px; padding-top: 12px; }
	.tp-cursos .tp-curso p { font-size: 13px; margin: 4px 0 12px; }
	.tp-cursos .tp-curso--oscuro { display: block; padding: 18px; }
	.tp-cifras.wp-block-columns { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
}

/* ---------- Videos livianos (inc/video.php): portada con imagen, título y duración ---------- */
.tp-video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--tp-noche); isolation: isolate; container-type: inline-size; }
.tp-video img, .tp-video .tp-video__imagen { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; margin: 0; }
.tp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; z-index: 3; }
.tp-video--con-titulo::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(11, 16, 32, 0.88) 0%, rgba(11, 16, 32, 0.35) 38%, rgba(11, 16, 32, 0) 62%); }
.tp-video--sin-imagen { background: radial-gradient(circle at 18% 12%, rgba(0, 180, 216, 0.3), transparent 45%), radial-gradient(circle at 88% 92%, var(--tp-indigo), transparent 60%), var(--tp-noche); }
.tp-video__boton {
	position: absolute; left: 50%; top: 50%; z-index: 2; width: clamp(48px, 13cqi, 76px); height: clamp(48px, 13cqi, 76px); transform: translate(-50%, -50%);
	border: 0; border-radius: 999px; background: var(--tp-ambar); color: var(--tp-tinta); display: flex; align-items: center; justify-content: center; padding: 0;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); cursor: pointer; transition: transform 0.15s, background-color 0.15s;
}
.tp-video__boton svg { display: block; width: 44%; height: 44%; }
.tp-video__boton:hover, .tp-video__boton:focus-visible { transform: translate(-50%, -50%) scale(1.07); background: #FBBF24; }
.tp-video--con-titulo .tp-video__boton { top: 42%; }
.tp-video__titulo { position: absolute; left: clamp(14px, 3%, 24px); right: clamp(14px, 3%, 24px); bottom: clamp(12px, 3%, 20px); z-index: 2; pointer-events: none; display: flex; flex-direction: column; gap: 3px; color: #fff; }
.tp-video--sin-titulo:not(.tp-video--sin-imagen) .tp-video__titulo { display: none; }
.tp-video__rotulo { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tp-cian); }
.tp-video__nombre {
	font-family: var(--tp-titulos); font-size: clamp(14px, 3.6cqi, 20px); line-height: 1.22; font-weight: 700; text-wrap: balance;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tp-video__duracion { position: absolute; right: 12px; top: 12px; z-index: 2; background: rgba(11, 16, 32, 0.78); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; font-variant-numeric: tabular-nums; }
/* portada propia (bloque Imagen con el estilo «Video con portada propia»): la imagen ya trae su botón dibujado */
.tp-video--propia .tp-video__boton { inset: 0; width: 100%; height: 100%; transform: none; background: transparent; box-shadow: none; border-radius: 0; }
.tp-video--propia .tp-video__boton:hover, .tp-video--propia .tp-video__boton:focus-visible { transform: none; background: rgba(255, 255, 255, 0.06); }
.tp-video--propia .tp-video__boton:focus-visible { outline: 3px solid var(--tp-ambar); outline-offset: -3px; }
.wp-block-image.is-style-tp-video-portada { margin-left: 0; margin-right: 0; }
.wp-block-image.is-style-tp-video-portada .tp-video { width: 100%; }
/* tarjetas angostas: menos texto encima */
@container (max-width: 300px) { .tp-video__rotulo { display: none; } }

/* ---------- Espaciado de las páginas armadas con bloques ---------- */
.tp-contenido--ancho > .alignfull { margin-top: 0; margin-bottom: 0; }
.tp-contenido--ancho > .alignfull + :not(.alignfull) { margin-top: clamp(24px, 4vw, 40px); }
.tp-contenido--ancho > :not(.alignfull) + .alignfull { margin-top: clamp(32px, 5vw, 56px); }
.tp-contenido--ancho > h2.wp-block-heading:not(:first-child) { margin-top: clamp(32px, 4.5vw, 48px); }
.tp-contenido--ancho > :is(.wp-block-group:not(.alignfull), .wp-block-embed, .wp-block-image, .wp-block-gallery) { margin-top: 28px; }
.tp-contenido--ancho > :is(.wp-block-group:not(.alignfull), .wp-block-embed, .wp-block-image, .wp-block-gallery) + * { margin-top: 28px; }
.tp-contenido--ancho > .wp-block-buttons { margin-top: 24px; }
.tp-contenido--ancho > .wp-block-buttons + * { margin-top: 32px; }
.tp-contenido--ancho > :last-child:not(.alignfull) { margin-bottom: clamp(40px, 6vw, 72px); }
/* si la página termina con una banda a todo el ancho, el pie va pegado a ella */
.tp-contenido--ancho:has(> .alignfull:last-child) { padding-bottom: 0; }
/* marca invisible que agrega Thrive Leads al final del contenido (mientras siga activo): sin márgenes */
.tp-contenido > #tve_leads_end_content { margin: 0 !important; }
.tp-heroe-producto .wp-block-image img { max-height: 380px; width: auto; }

/* ---------- Frases y testimonios ---------- */
.wp-block-quote.is-style-tp-destacada {
	position: relative; margin-left: 0; margin-right: 0; border: 0; border-radius: 14px; background: var(--tp-tinte);
	padding: clamp(16px, 2.4vw, 20px) clamp(18px, 3vw, 24px) clamp(16px, 2.4vw, 20px) calc(clamp(18px, 3vw, 24px) + 38px);
}
.wp-block-quote.is-style-tp-destacada::before {
	content: ""; position: absolute; left: clamp(18px, 3vw, 24px); top: clamp(18px, 2.6vw, 22px); width: 26px; height: 26px; background: var(--tp-indigo);
	-webkit-mask: var(--tp-ico-comillas) center / contain no-repeat; mask: var(--tp-ico-comillas) center / contain no-repeat;
}
.wp-block-quote.is-style-tp-destacada p { margin: 0; font-size: clamp(17px, 2vw, 20px); line-height: 1.5; font-style: italic; font-weight: 600; color: var(--tp-noche); }
.wp-block-quote.is-style-tp-testimonio { margin-left: 0; margin-right: 0; border: 0; padding: 0; }
.wp-block-quote.is-style-tp-testimonio::before {
	content: ""; display: block; width: clamp(28px, 3.6vw, 40px); height: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; background: var(--tp-cian);
	-webkit-mask: var(--tp-ico-comillas) center / contain no-repeat; mask: var(--tp-ico-comillas) center / contain no-repeat;
}
.wp-block-quote.is-style-tp-testimonio.has-text-align-center::before { margin-left: auto; margin-right: auto; }
.wp-block-quote.is-style-tp-testimonio p { margin: 0 0 12px; font-size: clamp(17px, 2.1vw, 21px); line-height: 1.5; font-weight: 500; color: var(--tp-tinta); }
.wp-block-quote.is-style-tp-testimonio cite { display: block; margin-top: 16px; font-style: normal; font-size: 14px; line-height: 1.5; color: var(--tp-gris); }
.wp-block-quote.is-style-tp-testimonio cite strong { display: block; font-family: var(--tp-titulos); font-size: 18px; font-weight: 800; color: var(--tp-tinta); }
.wp-block-quote.tp-sueno::before { background: var(--tp-indigo); }
.wp-block-quote.tp-sueno p { font-size: clamp(19px, 2.6vw, 26px); font-style: italic; margin: 0; }
.tp-firma { gap: 14px; }
.tp-firma .wp-block-image img { width: clamp(52px, 6vw, 64px); height: clamp(52px, 6vw, 64px); border-radius: 999px; object-fit: cover; object-position: 50% 20%; }
.tp-firma p { margin: 0; font-size: clamp(14px, 1.6vw, 16px); font-weight: 700; color: var(--tp-indigo); }
.tp-destacado-foto .wp-block-image img { width: 100%; height: 320px; object-fit: cover; border-radius: 18px; }
@media (max-width: 781px) {
	.tp-destacado-foto .wp-block-image img { width: 120px; height: 120px; border-radius: 999px; }
}

/* ---------- Lista numerada en tarjetas ---------- */
.is-style-tp-tarjetas { list-style: none; padding-left: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: tp-tar; }
.is-style-tp-tarjetas > li {
	counter-increment: tp-tar; position: relative; margin: 0; background: var(--tp-superficie); border: 1px solid var(--tp-borde); border-radius: 14px;
	padding: clamp(16px, 2.4vw, 20px) clamp(16px, 2.4vw, 20px) clamp(16px, 2.4vw, 20px) calc(clamp(16px, 2.4vw, 20px) + clamp(36px, 4vw, 40px) + 14px);
	font-size: clamp(15px, 1.8vw, 17px); line-height: 1.6; color: var(--tp-gris);
}
.is-style-tp-tarjetas > li::before {
	content: counter(tp-tar); position: absolute; left: clamp(16px, 2.4vw, 20px); top: clamp(16px, 2.4vw, 20px); width: clamp(36px, 4vw, 40px); height: clamp(36px, 4vw, 40px);
	border-radius: 10px; background: var(--tp-noche); color: var(--tp-cian); font-family: var(--tp-titulos); font-size: 18px; font-weight: 800;
	display: flex; align-items: center; justify-content: center;
}
.is-style-tp-tarjetas > li > strong:first-child { display: block; margin-bottom: 4px; font-family: var(--tp-titulos); font-size: clamp(18px, 2vw, 20px); line-height: 1.3; font-weight: 800; color: var(--tp-tinta); }

/* ---------- Fichas (testimonios: sobretítulo, nombre, lugar y enlaces) ---------- */
p.is-style-tp-sobretitulo { font-size: 12px; line-height: 1.4; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--tp-indigo); }
p.is-style-tp-lugar { display: flex; align-items: center; gap: 5px; font-size: 13px; line-height: 1.4; color: var(--tp-gris); }
p.is-style-tp-lugar::before {
	content: ""; flex: none; width: 14px; height: 14px; background: currentColor;
	-webkit-mask: var(--tp-ico-lugar) center / contain no-repeat; mask: var(--tp-ico-lugar) center / contain no-repeat;
}
p.is-style-tp-enlaces { display: flex; flex-wrap: wrap; gap: 0 14px; font-size: 13px; line-height: 1.4; }
p.is-style-tp-enlaces a { display: inline-flex; align-items: center; gap: 4px; padding: 4px 0; font-weight: 600; color: var(--tp-indigo); text-decoration: none; }
p.is-style-tp-enlaces a:hover { text-decoration: underline; }
p.is-style-tp-enlaces a::after {
	content: ""; flex: none; width: 13px; height: 13px; background: currentColor;
	-webkit-mask: var(--tp-ico-externo) center / contain no-repeat; mask: var(--tp-ico-externo) center / contain no-repeat;
}
.tp-ficha > * { margin-top: 0; margin-bottom: 0; }
.tp-ficha > * + * { margin-top: 10px; }
.tp-ficha > .is-style-tp-sobretitulo + h3, .tp-ficha > h3 + .is-style-tp-lugar { margin-top: 3px; }
.tp-ficha h3 { font-size: clamp(18px, 2vw, 19px); line-height: 1.25; font-weight: 800; }
.tp-ficha > p:not([class*="is-style"]) { font-size: 15px; line-height: 1.6; }
.tp-ficha > .wp-block-gallery { margin-top: 14px; }
.tp-ficha figcaption, .tp-ficha .wp-element-caption { margin-top: 8px; font-size: 12px; line-height: 1.4; color: var(--tp-gris); text-align: left; }
/* columnas de fichas (Testimonios): las tarjetas de cada columna, una debajo de otra */
.tp-columnas-fichas { gap: 16px; }
.tp-columnas-fichas > .wp-block-column > * { margin-top: 0; margin-bottom: 0; }
.tp-columnas-fichas > .wp-block-column > * + * { margin-top: 16px; }

/* ---------- Collage de fotos (galería sin recortar) ---------- */
.wp-block-gallery.is-style-tp-collage { display: block !important; columns: 3; column-gap: 12px; }
.wp-block-gallery.is-style-tp-collage.columns-2 { columns: 2; }
.wp-block-gallery.is-style-tp-collage.columns-4 { columns: 4; }
.wp-block-gallery.is-style-tp-collage > figure.wp-block-image { display: block; width: 100% !important; margin: 0 0 12px !important; break-inside: avoid; }
.wp-block-gallery.is-style-tp-collage > figure.wp-block-image img { width: 100%; height: auto !important; object-fit: initial; border-radius: 10px; }
@media (max-width: 781px) {
	.wp-block-gallery.is-style-tp-collage { columns: 2 !important; column-gap: 8px; }
	.wp-block-gallery.is-style-tp-collage > figure.wp-block-image { margin-bottom: 8px !important; }
}

/* ---------- Piezas de páginas ---------- */
.wp-block-group.tp-con-linea { border-bottom: 1px solid var(--tp-borde); }
.tp-heroe__texto > p.is-style-tp-entrada { max-width: 760px; }
.tp-heroe__texto > h1 { max-width: 860px; }
.tp-heroe__texto > p.is-style-tp-etiqueta { margin-left: 0 !important; }
.wp-block-image.tp-heroe-foto img { width: 100%; height: 500px; object-fit: cover; object-position: 50% 20%; border-radius: 16px; }
.tp-columnas-texto h2 { font-size: clamp(22px, 2.6vw, 26px); }
.tp-columnas-texto p { font-size: clamp(16px, 1.8vw, 17px); color: var(--tp-gris); }
.tp-columnas-texto strong { color: var(--tp-tinta); }
@media (max-width: 781px) {
	.wp-block-image.tp-heroe-foto img { height: 260px; object-position: 50% 15%; }
	.tp-cifras.tp-cifras--4.wp-block-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Anuncio por país de Salida Laboral (bloque HTML que reemplaza Geo Targetly; ver LEEME) ---------- */
.is-style-tp-anuncio [class^="geotargetly_geocontent"] > * { margin: 8px 0 0; }
.is-style-tp-anuncio [class^="geotargetly_geocontent"] > :first-child { margin-top: 0; }
.tp-anuncio__etiqueta {
	width: fit-content; padding: 5px 10px; border-radius: 999px; background: var(--tp-ambar); color: var(--tp-tinta);
	font-size: 12px; font-weight: 800; line-height: 1.3; letter-spacing: 0.06em; text-transform: uppercase;
}
.is-style-tp-anuncio [class^="geotargetly_geocontent"] > .tp-anuncio__etiqueta + * { margin-top: 12px; }
.is-style-tp-anuncio .tp-anuncio__titulo { font-family: var(--tp-titulos); font-size: clamp(20px, 2.6vw, 26px); line-height: 1.22; font-weight: 800; letter-spacing: -0.01em; color: var(--tp-tinta); }
.is-style-tp-anuncio .tp-anuncio__texto { font-size: clamp(15px, 1.8vw, 17px); line-height: 1.55; }
.is-style-tp-anuncio .tp-anuncio__cierre { font-size: clamp(15px, 1.8vw, 17px); line-height: 1.55; font-weight: 700; }

/* ---------- Páginas de cursos ---------- */
/* foto del héroe con el botón «Ver el video del curso» encima (bloque Portada) */
.wp-block-cover.tp-portada-curso { border-radius: 16px; overflow: hidden; padding: 20px; }
.wp-block-cover.tp-portada-curso .wp-block-cover__inner-container { width: 100%; }
@media (max-width: 781px) { .wp-block-cover.tp-portada-curso { min-height: 220px !important; padding: 12px; } }
.wp-block-button.is-style-tp-reproducir .wp-block-button__link {
	background: #fff; color: var(--tp-tinta); font-size: 15px; font-weight: 700; padding: 8px 18px 8px 8px; border-radius: 999px; gap: 10px;
	box-shadow: 0 8px 24px rgba(17, 24, 39, 0.25);
}
.wp-block-button.is-style-tp-reproducir .wp-block-button__link:hover { background: #fff; color: var(--tp-indigo); }
.wp-block-button.is-style-tp-reproducir .wp-block-button__link::before {
	content: ""; flex: none; width: 36px; height: 36px; border-radius: 999px;
	background: var(--tp-indigo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5.5v13a1 1 0 0 0 1.5.86l10.2-6.5a1 1 0 0 0 0-1.72L9.5 4.64A1 1 0 0 0 8 5.5z'/%3E%3C/svg%3E") 56% 50% / 14px no-repeat;
}
/* ventana del video (tema.js) */
.tp-ventana-video { width: min(960px, 92vw); max-width: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.tp-ventana-video::backdrop { background: rgba(11, 16, 32, 0.82); }
.tp-ventana-video .tp-video { border-radius: 12px; }
.tp-ventana-video__cerrar {
	position: absolute; right: 0; top: -48px; width: 40px; height: 40px; border: 0; border-radius: 999px; background: #fff; color: var(--tp-tinta);
	font-size: 26px; line-height: 1; cursor: pointer;
}
/* accesos a las secciones del curso */
.wp-block-group.tp-subnav { border-top: 1px solid var(--tp-borde); border-bottom: 1px solid var(--tp-borde); padding-top: 12px; padding-bottom: 12px; }
.tp-subnav .wp-block-buttons { gap: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.tp-subnav .wp-block-buttons::-webkit-scrollbar { display: none; }
.wp-block-button.is-style-tp-chip .wp-block-button__link { background: transparent; color: var(--tp-gris); font-size: 14px; font-weight: 600; padding: 9px 14px; border-radius: 999px; white-space: nowrap; }
.wp-block-button.is-style-tp-chip .wp-block-button__link:hover { background: var(--tp-tinte); color: var(--tp-indigo); }
.wp-block-button.is-style-tp-chip:first-child .wp-block-button__link { background: var(--tp-tinte); color: var(--tp-indigo); }
.tp-subnav .wp-block-button:not(.is-style-tp-chip):last-child { margin-left: auto; }
.tp-subnav .wp-block-button:not(.is-style-tp-chip):last-child .wp-block-button__link { padding: 9px 16px; font-size: 14px; border-radius: 999px; white-space: nowrap; }
.tp-subnav .wp-block-button:not(.is-style-tp-chip):last-child .wp-block-button__link::after { display: none; }
@media (max-width: 781px) { .tp-subnav .wp-block-button:not(.is-style-tp-chip):last-child { display: none; } }
:where(#beneficios, #programa, #diploma, #contenidos) { scroll-margin-top: 16px; }
/* lista con tildes en tarjetas (beneficios, elementos del curso) */
ul.is-style-tp-beneficios { list-style: none; padding-left: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(10px, 1.6vw, 16px); }
ul.is-style-tp-beneficios > li {
	position: relative; margin: 0; background: #fff; border: 1px solid var(--tp-borde); border-radius: 14px;
	padding: clamp(14px, 2vw, 20px) clamp(14px, 2vw, 22px) clamp(14px, 2vw, 20px) calc(clamp(14px, 2vw, 22px) + 42px);
	font-size: clamp(15px, 1.7vw, 16px); line-height: 1.6; color: var(--tp-gris);
}
ul.is-style-tp-beneficios > li::before { content: ""; position: absolute; left: clamp(14px, 2vw, 22px); top: clamp(14px, 2vw, 20px); width: 28px; height: 28px; border-radius: 999px; background: var(--tp-tinte); }
ul.is-style-tp-beneficios > li::after {
	content: ""; position: absolute; left: calc(clamp(14px, 2vw, 22px) + 6.5px); top: calc(clamp(14px, 2vw, 20px) + 6.5px); width: 15px; height: 15px; background: var(--tp-indigo);
	-webkit-mask: var(--tp-ico-tilde) center / contain no-repeat; mask: var(--tp-ico-tilde) center / contain no-repeat;
}
ul.is-style-tp-beneficios strong { color: var(--tp-tinta); }
ul.is-style-tp-beneficios.tp-dos-columnas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
ul.is-style-tp-beneficios.tp-dos-columnas > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 781px) { ul.is-style-tp-beneficios.tp-dos-columnas { grid-template-columns: minmax(0, 1fr); } }
p.is-style-tp-nota { font-size: 13px; line-height: 1.5; color: #6B7280; }
/* programa de estudios: unidades desplegables numeradas con romanos */
.tp-unidades { counter-reset: tp-unidad; gap: 12px; }
.tp-unidades > .wp-block-column > * { margin-top: 0; margin-bottom: 0; }
.tp-unidades > .wp-block-column > * + * { margin-top: 10px; }
.tp-unidades .wp-block-details.is-style-tp-acordeon { counter-increment: tp-unidad; padding: 0 16px; }
.tp-unidades .wp-block-details.is-style-tp-acordeon[open] { border-color: var(--tp-indigo); }
.tp-unidades .wp-block-details.is-style-tp-acordeon > summary { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 14px 30px 14px 0; font-size: clamp(15px, 1.7vw, 16px); font-weight: 600; line-height: 1.35; }
.tp-unidades .wp-block-details.is-style-tp-acordeon > summary::before {
	content: counter(tp-unidad, upper-roman); grid-row: span 2; min-width: 40px; height: 40px; padding: 0 6px; box-sizing: border-box; border-radius: 10px;
	background: var(--tp-tinte); color: var(--tp-indigo); font-family: var(--tp-titulos); font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.tp-unidades .wp-block-details.is-style-tp-acordeon > summary strong { font-size: 12px; line-height: 1.4; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tp-indigo); }
.tp-unidades .wp-block-details.is-style-tp-acordeon > ul { margin: 0; padding: 0 0 16px 72px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.5; color: var(--tp-gris); }
.tp-unidades .wp-block-details.is-style-tp-acordeon > ul li { margin: 0; line-height: 1.5; }
@media (max-width: 781px) { .tp-unidades .wp-block-details.is-style-tp-acordeon > ul { padding-left: 18px; } }
/* diploma y contenidos */
.tp-icono-medalla img { width: 48px; height: 48px; border-radius: 0; }
.tp-contenidos .is-style-tp-numerado h3 { font-size: clamp(17px, 2.1vw, 21px); line-height: 1.35; font-weight: 600; }
.tp-contenidos .is-style-tp-numerado h3 strong { font-weight: 800; }
.tp-contenidos .is-style-tp-numerado .tp-numerado__titulo { gap: 16px; }
.tp-contenidos .is-style-tp-numerado p:not(.is-style-tp-numero) { font-size: clamp(16px, 1.8vw, 17px); line-height: 1.65; }
.tp-contenidos .is-style-tp-numerado .wp-block-columns { gap: 28px; }
.tp-contenidos .is-style-tp-numerado .wp-block-image { margin: 0; height: clamp(220px, 26vw, 300px); box-sizing: border-box; padding: 8px; border-radius: 12px; background: var(--tp-superficie); display: flex; align-items: center; justify-content: center; }
.tp-contenidos .is-style-tp-numerado .wp-block-image img { width: auto; max-width: 100%; height: auto; max-height: 100%; object-fit: contain; border-radius: 4px; }
.tp-contenidos .is-style-tp-numerado + .is-style-tp-numerado { margin-top: 20px; }
@media (max-width: 781px) { .tp-invertir-movil { flex-direction: column-reverse; } }
.wp-block-gallery.tp-infografias.has-nested-images figure.wp-block-image { border: 1px solid var(--tp-borde); border-radius: 10px; overflow: hidden; background: var(--tp-superficie); }
.wp-block-gallery.tp-infografias.has-nested-images figure.wp-block-image img { height: clamp(150px, 16vw, 190px); object-fit: cover; border-radius: 0; }
/* tarjetas de cursos: toda la tarjeta es un enlace (el del título) */
.tp-cursos .tp-curso { position: relative; }
.tp-cursos .tp-curso h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tp-cursos .tp-curso:hover { border-color: var(--tp-indigo); }
.tp-cursos--grandes .tp-curso .wp-block-image img { height: clamp(180px, 18vw, 220px); }
.tp-cursos--grandes .tp-curso h3 { font-size: clamp(19px, 2vw, 21px); font-weight: 800; }
.tp-cursos--grandes .tp-curso p { font-size: clamp(15px, 1.6vw, 16px); }
.tp-cursos .tp-curso--oscuro h3 { font-size: clamp(18px, 2vw, 22px); line-height: 1.3; }
/* Tecnicatura Superior */
.wp-block-spacer.tp-flecha-abajo { width: 56px; height: 56px !important; margin: 24px auto; border-radius: 999px; background: var(--tp-noche); position: relative; }
.wp-block-spacer.tp-flecha-abajo::after {
	content: ""; position: absolute; inset: 15px; background: var(--tp-cian);
	-webkit-mask: var(--tp-ico-flecha-abajo) center / contain no-repeat; mask: var(--tp-ico-flecha-abajo) center / contain no-repeat;
}
.tp-diplomas figcaption { font-size: clamp(14px, 1.5vw, 15px); line-height: 1.4; color: var(--tp-gris); text-align: left; margin-top: 10px; }
.tp-diplomas figcaption strong { color: var(--tp-tinta); }
.wp-block-image.tp-gran-diploma { max-width: 560px; margin-left: auto; margin-right: auto; }
.wp-block-image.tp-gran-diploma figcaption { margin-top: 12px; text-align: center; font-family: var(--tp-titulos); font-size: clamp(18px, 2vw, 20px); font-weight: 800; color: var(--tp-tinta); }
.wp-block-group.tp-paso { gap: clamp(14px, 2vw, 22px); padding: clamp(22px, 3vw, 30px) 0; border-top: 1px solid var(--tp-borde); margin-top: 0; }
.wp-block-group.tp-paso > .wp-block-group { flex: 1; min-width: 0; }
.wp-block-group.tp-paso > .wp-block-group > * { margin-top: 0; }
.wp-block-group.tp-paso > .wp-block-group > * + * { margin-top: 10px; }
.wp-block-group.tp-paso p.is-style-tp-numero { width: clamp(40px, 4.6vw, 52px); height: clamp(40px, 4.6vw, 52px); border-radius: 999px; font-size: clamp(18px, 2vw, 22px); }
.wp-block-group.tp-paso h3 { font-size: clamp(19px, 2.3vw, 24px); line-height: 1.25; }
.tp-caja-tecnicatura h2 a { color: #fff; text-decoration: none; }
.tp-caja-tecnicatura h2 a:hover { text-decoration: underline; }
.tp-caja-tecnicatura p { color: #C9D2F2 !important; }
.tp-caja-tecnicatura p strong { color: #fff; }
.wp-block-image.tp-heroe-foto.tp-heroe-foto--baja img { height: 400px; }
.wp-block-gallery.tp-galeria-fotos.has-nested-images figure.wp-block-image img { height: clamp(140px, 17vw, 200px); object-fit: cover; }
.tp-caja-tecnicatura .tp-icono-medalla, .tp-diploma .tp-icono-medalla { margin-bottom: 4px; }
@media (max-width: 781px) {
	.wp-block-image.tp-heroe-foto.tp-heroe-foto--baja img { height: 230px; }
	.tp-cursos.tp-cursos--grandes .tp-curso { display: block; padding: 16px; }
	.tp-cursos.tp-cursos--grandes .tp-curso.tp-imagen-arriba > .wp-block-image:first-child { margin: -16px -16px 16px !important; width: auto; }
	.tp-cursos.tp-cursos--grandes .tp-curso.tp-imagen-arriba > .wp-block-image:first-child img { width: 100% !important; height: 200px !important; min-height: 0; }
	.tp-cursos.tp-cursos--grandes .tp-curso h3 { padding-top: 0; }
	.tp-cursos.tp-cursos--grandes .tp-curso p { margin: 8px 0 0; }
}
.wp-block-group.tp-con-linea-arriba { border-top: 1px solid var(--tp-borde); }
.tp-heroe__texto > p:not(.is-style-tp-etiqueta) { max-width: 820px; }

/* ---------- Páginas de lectura y del autor ---------- */
.wp-block-image.tp-figura-caja { background: var(--tp-superficie); border: 1px solid var(--tp-borde); border-radius: 14px; padding: clamp(16px, 2.5vw, 24px); text-align: center; }
.wp-block-image.tp-figura-caja img { width: min(340px, 100%); border-radius: 0; }
.tp-chips-llenos .wp-block-button.is-style-tp-chip .wp-block-button__link { background: var(--tp-tinte); color: var(--tp-indigo); }
.tp-chips-llenos .wp-block-button.is-style-tp-chip .wp-block-button__link:hover { background: var(--tp-indigo); color: #fff; }
.tp-escuela { gap: clamp(16px, 2.6vw, 28px); background: var(--tp-superficie); border: 1px solid var(--tp-borde); border-radius: 18px; padding: clamp(18px, 3vw, 32px); }
.tp-escuela > .wp-block-image img { width: clamp(88px, 10vw, 120px); height: clamp(88px, 10vw, 120px); border-radius: 999px; object-fit: cover; object-position: 50% 20%; }
.tp-escuela > .wp-block-group { flex: 1; min-width: 0; }
.tp-escuela h2 { font-size: clamp(21px, 2.4vw, 26px); }
.tp-escuela p { color: var(--tp-gris); }
@media (max-width: 781px) { .tp-escuela { flex-direction: column; align-items: flex-start !important; } }
.tp-nota-autor { gap: clamp(12px, 2vw, 18px); background: var(--tp-tinte); border-radius: 16px; padding: clamp(18px, 2.6vw, 28px); }
.tp-nota-autor .wp-block-image img { width: clamp(56px, 6vw, 64px); height: clamp(56px, 6vw, 64px); border-radius: 999px; object-fit: cover; object-position: 50% 20%; }
.tp-nota-autor p { flex: 1; margin: 0; font-size: clamp(16px, 1.9vw, 18px); line-height: 1.65; color: var(--tp-noche); }
@media (max-width: 781px) { .tp-nota-autor { flex-direction: column; align-items: flex-start !important; } }
.wp-block-quote.tp-cita-heroe { margin: 0; }
.wp-block-quote.tp-cita-heroe p { font-family: var(--tp-titulos); font-size: clamp(19px, 2.3vw, 23px); line-height: 1.35; font-style: italic; font-weight: 600; color: var(--tp-noche); }
ul.tp-maestros > li > strong:first-child { display: block; margin-bottom: 4px; font-family: var(--tp-titulos); font-size: clamp(18px, 2vw, 20px); font-weight: 800; color: var(--tp-indigo); }
.has-noche-background-color .wp-block-quote.is-style-tp-testimonio p { color: #E6EAF8; font-size: clamp(17px, 1.9vw, 18px); line-height: 1.6; font-style: italic; font-weight: 400; }
.has-noche-background-color .tp-firma p { color: #fff; font-size: 15px; line-height: 1.45; }
.has-noche-background-color .tp-firma p span { font-weight: 500; color: #C9D2F2; }
.wp-block-group.tp-fila { border-top: 1px solid var(--tp-borde); padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(28px, 4vw, 48px); margin-top: 0; }
.wp-block-group.tp-fila + .wp-block-group.tp-fila { margin-top: 0; }
.tp-fila h3 { font-size: clamp(21px, 2.4vw, 26px); line-height: 1.2; }
.wp-block-image.tp-caja-producto { margin: 0; height: clamp(220px, 24vw, 300px); box-sizing: border-box; padding: clamp(18px, 2vw, 24px); border-radius: 16px; background: var(--tp-superficie); border: 1px solid var(--tp-borde); display: flex; align-items: center; justify-content: center; }
.wp-block-image.tp-caja-producto img { width: auto; max-width: 100%; height: auto; max-height: 100%; object-fit: contain; border-radius: 0; }
.wp-block-image.tp-foto-fila img { width: 100%; height: clamp(220px, 24vw, 300px); object-fit: cover; border-radius: 16px; }
ul.tp-libros { list-style: none; padding-left: 0; display: flex; flex-direction: column; gap: 8px; }
ul.tp-libros > li { position: relative; padding-left: 28px; margin: 0; font-size: clamp(15px, 1.7vw, 16px); line-height: 1.5; }
ul.tp-libros > li::before {
	content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; background: var(--tp-indigo);
	-webkit-mask: var(--tp-ico-libro) center / contain no-repeat; mask: var(--tp-ico-libro) center / contain no-repeat;
}
.tp-libros-intro { font-size: clamp(15px, 1.7vw, 16px); color: var(--tp-gris); }
ul.tp-chips-lista { list-style: none; padding-left: 0; display: flex; flex-wrap: wrap; gap: 8px; }
ul.tp-chips-lista > li { margin: 0; font-size: clamp(14px, 1.6vw, 15px); line-height: 1.4; font-weight: 600; color: var(--tp-noche); background: var(--tp-tinte); padding: 7px 14px; border-radius: 999px; }
.wp-block-image.tp-libro-sombra img { border-radius: 6px; box-shadow: 0 10px 28px rgba(17, 24, 39, 0.18); }
.tp-faqs .wp-block-details.is-style-tp-acordeon + .wp-block-details.is-style-tp-acordeon { margin-top: 12px; }
.tp-faqs .wp-block-details.is-style-tp-acordeon[open] { border-color: var(--tp-indigo); box-shadow: 0 6px 18px rgba(43, 58, 140, 0.10); }
.tp-faqs .wp-block-details.is-style-tp-acordeon > summary { font-family: var(--tp-titulos); font-size: clamp(16px, 1.9vw, 18px); line-height: 1.3; }
.tp-faqs .wp-block-details.is-style-tp-acordeon > :not(summary) { font-size: clamp(15px, 1.7vw, 16px); line-height: 1.65; }
.tp-faqs .wp-block-details.is-style-tp-acordeon > ul { padding-left: 20px; }
.tp-faqs h2 { font-size: clamp(22px, 2.4vw, 26px); }
.wp-block-image.tp-heroe-foto.tp-heroe-foto--media img { height: 340px; }
@media (max-width: 781px) { .wp-block-image.tp-heroe-foto.tp-heroe-foto--media img { height: 200px; } }
.tp-escuela > .wp-block-image, .tp-nota-autor > .wp-block-image, .tp-firma > .wp-block-image { flex: none; width: fit-content; margin: 0; }

/* ---------- Landings, formularios y lecciones ---------- */
.wp-block-button.is-style-tp-documento .wp-block-button__link {
	justify-content: flex-start; gap: 14px; padding: 14px 22px 14px 14px; border-radius: 12px; text-align: left; line-height: 1.3; font-size: 14px; font-weight: 600;
}
.wp-block-button.is-style-tp-documento .wp-block-button__link strong { font-family: var(--tp-titulos); font-size: clamp(19px, 2vw, 21px); font-weight: 800; letter-spacing: 0.01em; }
.wp-block-button.is-style-tp-documento .wp-block-button__link::before {
	content: ""; flex: none; width: 44px; height: 44px; border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2559' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M9 13h6'/%3E%3Cpath d='M9 17h4'/%3E%3C/svg%3E") center / 24px no-repeat;
}
p.is-style-tp-aviso-mail {
	display: flex; align-items: center; gap: 14px; background: var(--tp-tinte); border-radius: 14px; padding: clamp(14px, 2vw, 18px) clamp(16px, 2.4vw, 22px);
	font-size: clamp(16px, 1.9vw, 18px); line-height: 1.4; font-weight: 700; color: var(--tp-noche);
}
p.is-style-tp-aviso-mail::before { content: ""; flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--tp-indigo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center / 20px no-repeat; }
p.tp-nota-mail { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; font-weight: 600; color: var(--tp-gris); }
p.tp-nota-mail::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B3A8C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center / contain no-repeat; }
.wp-block-group.tp-confirmacion { text-align: center; }
.wp-block-group.tp-confirmacion::before {
	content: ""; display: block; width: clamp(56px, 6vw, 72px); height: clamp(56px, 6vw, 72px); margin: 0 auto 16px; border-radius: 999px;
	background: var(--tp-tinte) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B3A8C' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 50% no-repeat;
}
.wp-block-group.tp-confirmacion > p.tp-confirmacion__destacado { font-size: clamp(18px, 2.2vw, 22px); font-weight: 700; color: var(--tp-indigo); }
.wp-block-group.tp-confirmacion > .wp-block-embed { text-align: left; }
.is-style-tp-anuncio h2.tp-con-alerta { display: flex; align-items: center; gap: 10px; font-size: clamp(19px, 2.2vw, 22px); line-height: 1.25; }
.is-style-tp-anuncio h2.tp-con-alerta::before { content: ""; flex: none; width: 22px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B45309' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3C/svg%3E") center / contain no-repeat; }
.tp-aviso-costos p strong:first-child { color: #B42318; font-weight: 800; }
.tp-formulario-externo { box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06); }
.tp-formulario-externo iframe { width: 100%; border: 0; }
.tp-mapa iframe { display: block; width: 100%; height: clamp(240px, 30vw, 340px); border: 0; border-radius: 16px; }
.tp-canales { gap: 16px; }
.tp-canales > .wp-block-column > .wp-block-group { height: 100%; }
.tp-canal h3 { font-family: var(--tp-texto, inherit); font-size: 13px; line-height: 1.4; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tp-gris); margin: 0; }
.tp-canal p { margin: 2px 0 0; font-size: clamp(16px, 1.8vw, 18px); font-weight: 700; overflow-wrap: anywhere; }
.tp-canal p a { color: var(--tp-indigo); text-decoration: none; }
.tp-canal p a::after { content: ""; position: absolute; inset: 0; }
.tp-canal { position: relative; }
.tp-canal:hover { border-color: var(--tp-indigo); }
.tp-canal .wp-block-image img { width: 48px; height: 48px; border-radius: 0; }
.tp-escuela.tp-escuela--simple { background: none; border: 0; padding: 0; border-radius: 0; }
.tp-escuela.tp-escuela--simple > .wp-block-image img { width: clamp(96px, 16vw, 200px); height: clamp(96px, 16vw, 200px); border-radius: clamp(16px, 2vw, 20px); }
.tp-escuela.tp-escuela--retrato > .wp-block-image img { width: clamp(72px, 14vw, 180px); height: clamp(72px, 14vw, 180px); border-radius: clamp(16px, 2vw, 20px); }
.wp-block-image.tp-imagen-alta img { max-height: 440px; width: auto; margin: 0 auto; border-radius: 0; }
@media (max-width: 781px) { .wp-block-image.tp-imagen-alta img { max-height: 210px; } }
.tp-rejilla-lecciones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tp-rejilla-lecciones > * { margin: 0 !important; }
.tp-rejilla-lecciones > .tp-cta-lecciones { grid-column: span 2; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 999px) { .tp-rejilla-lecciones { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tp-rejilla-lecciones > .tp-cta-lecciones { grid-column: span 1; } }
@media (max-width: 599px) { .tp-rejilla-lecciones { grid-template-columns: minmax(0, 1fr); } }
.tp-rejilla-lecciones .tp-ficha .wp-block-image img { aspect-ratio: 16 / 9; object-fit: cover; }
.tp-cta-lecciones p.tp-cta-lecciones__titulo { font-family: var(--tp-titulos); font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; font-weight: 800; }
.tp-cta-lecciones p.tp-nota-mail { color: #C9D2F2 !important; }
.tp-tarjeta-form { box-shadow: 0 12px 32px rgba(17, 24, 39, 0.10); }
.tp-tarjeta-form > .wp-block-image img { height: clamp(130px, 13vw, 150px); width: 100%; object-fit: contain; border-radius: 0; }
.wp-block-image.tp-retrato-tarjeta { border-radius: 16px; overflow: hidden; background: var(--tp-indigo); }
.wp-block-image.tp-retrato-tarjeta img { width: 100%; height: clamp(300px, 30vw, 340px); object-fit: cover; object-position: 50% 20%; border-radius: 0; }
.wp-block-image.tp-retrato-tarjeta figcaption { margin: 0; padding: 14px 16px; text-align: left; font-size: 14px; line-height: 1.4; color: #C9D2F2; }
.wp-block-image.tp-retrato-tarjeta figcaption strong { display: block; font-family: var(--tp-titulos); font-size: 18px; font-weight: 800; color: #fff; }
.tp-heroe--leccion h1 { font-size: clamp(28px, 4vw, 44px); }
.tp-canal::before { content: ""; display: block; width: 48px; height: 48px; margin-bottom: 12px; border-radius: 12px; background: var(--tp-noche) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300B4D8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center / 24px no-repeat; }
.tp-canal--whatsapp::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300B4D8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 0 1-13.2 7.9L3 21l1.1-4.6A9 9 0 1 1 21 12z'/%3E%3C/svg%3E"); }
.tp-canal--messenger::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300B4D8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2 11 13'/%3E%3Cpath d='M22 2 15 22l-4-9-9-4 20-7z'/%3E%3C/svg%3E"); }
p.tp-direccion { display: flex; gap: 8px; align-items: flex-start; }
p.tp-direccion::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B3A8C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-5.6-7-11a7 7 0 0 1 14 0c0 5.4-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 781px) { .tp-canal { display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; } .tp-canal::before { margin: 0; } .tp-canal > .wp-block-group { flex: 1; min-width: 0; } }
/* ---------- Inicio ---------- */
.wp-block-quote.tp-cita-portada { margin: 0; padding: 0; border: 0; }
.wp-block-quote.tp-cita-portada p { font-size: clamp(16px, 1.9vw, 18px); line-height: 1.65; color: var(--tp-gris); }
.wp-block-quote.tp-cita-portada strong { color: var(--tp-tinta); }
.tp-firma p span { display: block; font-size: 14px; font-weight: 400; color: var(--tp-gris); }
.wp-block-image.tp-figura-portada { margin: 0; border-radius: 16px; background: var(--tp-superficie); padding: 24px 20px 20px; }
.wp-block-image.tp-figura-portada img { width: 100%; height: clamp(260px, 34vw, 430px); object-fit: contain; border-radius: 0; }
.wp-block-image.tp-figura-portada figcaption { margin: 10px 0 0; font-size: 11px; line-height: 1.4; color: var(--tp-gris); text-align: center; }
.wp-block-group.has-indigo-background-color, .wp-block-group.has-indigo-background-color :where(h1, h2, h3, p) { color: #fff; }
.has-indigo-background-color .wp-block-quote.is-style-tp-testimonio p { color: #fff; }
.has-indigo-background-color .wp-block-quote.is-style-tp-testimonio cite { color: #C9D2F2; }
.wp-block-group.tp-banda-cita { padding-top: clamp(28px, 4vw, 40px); padding-bottom: clamp(28px, 4vw, 40px); }
.wp-block-group.tp-redes-banda { border-top: 1px solid var(--tp-borde); padding-top: 6px; padding-bottom: 6px; }
p.tp-redes { justify-content: flex-end; gap: 0 20px; }
p.tp-redes a { color: var(--tp-gris); }
.wp-block-image.tp-caja-producto.tp-caja-producto--alta { height: clamp(220px, 34vw, 440px); }
.wp-block-button.is-style-tp-documento .wp-block-button__link { display: inline-grid; grid-template-columns: auto auto; column-gap: 14px; row-gap: 2px; align-items: center; justify-items: start; }
.wp-block-button.is-style-tp-documento .wp-block-button__link::before { grid-row: span 2; }
/* ---------- Recuadro del curso en los artículos (patrón sincronizado «promo-curso») ---------- */
.wp-block-group.tp-promo-curso { gap: 24px; background: var(--tp-superficie); border: 1px solid var(--tp-borde); border-radius: 16px; padding: clamp(18px, 2.4vw, 24px); }
.tp-promo-curso > .wp-block-image { flex: none; margin: 0; }
.tp-promo-curso > .wp-block-image img { height: clamp(140px, 16vw, 190px); width: auto; border-radius: 0; }
.tp-promo-curso > .wp-block-group { flex: 1; min-width: 0; }
.tp-promo-curso > .wp-block-group > * { margin-top: 0; margin-bottom: 0; }
.tp-promo-curso > .wp-block-group > * + * { margin-top: 10px; }
.tp-promo-curso h4 { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.25; }
.tp-promo-curso p { font-size: 16px; line-height: 1.6; color: var(--tp-gris); }
@media (max-width: 599px) { .wp-block-group.tp-promo-curso { flex-direction: column; align-items: flex-start !important; } }

/* ---------- Tarjetas de cursos: todas del mismo alto cuando van lado a lado ---------- */
@media (min-width: 782px) {
	.tp-cursos > .wp-block-column { display: flex; flex-direction: column; }
	.tp-cursos > .wp-block-column > .tp-curso { flex: 1 1 auto; margin-block: 0; }
}
