/* TAXESPRO · estilos que no caben en theme.json: componentes, movimiento y estados.
   Prefijo tp- para no chocar con WordPress ni con plugins. */

/* ---------- Estructura: sin huecos entre cabecera, contenido, secciones y pie ---------- */
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-block-post-content > .alignfull { margin-block: 0; }
main.wp-block-group { margin-block: 0; }

/* ---------- Cabecera ---------- */
/* La barra superior va dentro de la cabecera; con el «top» negativo, al bajar se va y la fila del logo se queda fija */
:root { --tp-alto-barra: 38px; }
@media (max-width: 781px) { :root { --tp-alto-barra: 34px; } }
/* Alto de la fila del logo ya fija (medido): la portada de escritorio se coloca bien desde el primer pintado, sin esperar
   a taxespro.js (que lo recalcula igual). Si cambia la cabecera, volver a medirlo. */
@media (min-width: 1024px) { :root { --tp-alto-cabecera: 80px; } }
@media (min-width: 1321px) { :root { --tp-alto-cabecera: 93px; } }
/* Sin la separación automática de WordPress entre la barra y la fila del logo: la cabecera mide lo mismo que antes */
.tp-cabecera .tp-barra + .tp-cabecera__fila { margin-block-start: 0; }
.tp-cabecera {
	position: sticky; top: calc(-1 * var(--tp-alto-barra)); z-index: 50;
	background: rgba(0, 35, 71, .97);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(214, 186, 108, .28);
}
.admin-bar .tp-cabecera { top: calc(var(--wp-admin--admin-bar--height, 32px) - var(--tp-alto-barra)); }

/* ---------- Barra superior: contacto, estado de la oficina en directo y redes ---------- */
/* Azul más profundo que la cabecera, texto crema y detalles dorados (contraste > 12:1 y 9:1) */
.tp-barra { position: relative; background: #00152b; color: #e9e3d3; font-size: .8125rem; font-weight: 600; letter-spacing: .01em; }
.tp-barra__dentro { height: var(--tp-alto-barra); display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.tp-barra ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.tp-barra__datos { gap: 1.6rem; min-width: 0; }
.tp-barra a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; transition: color .2s ease; }
.tp-barra a:hover, .tp-barra a:focus-visible { color: #ffffff; }
.tp-barra svg { width: 15px; height: 15px; flex: none; color: var(--wp--preset--color--dorado); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; transition: transform .25s cubic-bezier(.2, .7, .2, 1), filter .25s ease; }
.tp-barra .tp-ico-relleno, .tp-barra .tp-ico-punto { fill: currentColor; stroke: none; }
.tp-barra a:hover svg, .tp-barra a:focus-visible svg { transform: translateY(-1px) scale(1.15); filter: drop-shadow(0 0 6px rgba(214, 186, 108, .6)); }
.tp-barra__redes { gap: .4rem; flex: none; }
.tp-barra__redes a { width: 28px; height: 28px; justify-content: center; border-radius: 999px; border: 1px solid rgba(214, 186, 108, .35); transition: background-color .2s ease, border-color .2s ease; }
.tp-barra__redes a:hover, .tp-barra__redes a:focus-visible { background: rgba(214, 186, 108, .14); border-color: var(--wp--preset--color--dorado); }
.tp-barra__redes svg { width: 14px; height: 14px; }
/* Estado de la oficina: punto verde que late si está abierta; dorado si está cerrada */
/* El hueco del estado existe desde el principio (ocupa el espacio libre): al rellenarlo no se mueve nada */
.tp-barra__estado { margin: 0; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: .5rem; white-space: nowrap; }
.tp-barra__estado > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.tp-barra__punto { width: 8px; height: 8px; border-radius: 50%; background: var(--wp--preset--color--dorado); flex: none; }
.tp-barra__estado.is-abierto .tp-barra__punto { background: #3ddc84; animation: tp-latido 2.2s ease-out infinite; }
.tp-barra__estado.is-abierto strong { color: #8ef0b8; }
.tp-barra__estado strong { font-weight: 800; }
@keyframes tp-latido { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55); } 70% { box-shadow: 0 0 0 7px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
/* Filo dorado inferior con un destello que lo recorre cada pocos segundos */
.tp-barra::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, rgba(214, 186, 108, 0), rgba(214, 186, 108, .45) 18%, rgba(214, 186, 108, .45) 82%, rgba(214, 186, 108, 0)); }
.tp-barra::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: 1; pointer-events: none; background: linear-gradient(90deg, transparent, #fff1bd, transparent) no-repeat; background-size: 18% 100%; background-position: -40% 0; animation: tp-destello 7s ease-in-out 1.5s infinite; }
@keyframes tp-destello { 0% { background-position: -40% 0; } 40%, 100% { background-position: 140% 0; } }
@media (max-width: 1199px) { .tp-barra__largo { display: none; } }
@media (max-width: 999px) { .tp-barra__email { display: none; } .tp-barra__datos { gap: 1.2rem; } }
@media (max-width: 781px) {
	.tp-barra { font-size: .75rem; }
	.tp-barra .tp-barra__datos { display: none; }
	.tp-barra__estado { justify-content: flex-start; }
	.tp-barra__redes a { width: 26px; height: 26px; }
}
/* Estado: versión corta en pantallas estrechas («Cerrado · abre mañana 9:30 (TX)») */
.tp-barra__corto, .tp-barra__zona-corta { display: none; }
@media (max-width: 600px) {
	.tp-barra__detalle, .tp-barra__zona { display: none; }
	.tp-barra__corto, .tp-barra__zona-corta { display: inline; }
}
.tp-cabecera { color: #e8edf5; }
.tp-cabecera__fila { gap: 1.5rem; padding-block: .75rem; }
.tp-logo { display: inline-flex; align-items: center; line-height: 0; flex-shrink: 0; }
.tp-logo svg { height: auto; }
.tp-logo .tp-logo__completo { display: block; width: 272px; }
.tp-logo .tp-logo__compacto { display: none; width: 190px; }
/* WordPress obliga a los enlaces del menú a heredar el color: se lo damos al contenedor */
.tp-cabecera .wp-block-navigation { color: #e8edf5; }
.tp-cabecera .wp-block-navigation a { text-decoration: none; }
.tp-cabecera .wp-block-navigation-item:hover,
.tp-cabecera .wp-block-navigation-item.current-menu-item { color: #ffffff; }
.tp-cabecera .wp-block-navigation-item:hover > a,
.tp-cabecera .wp-block-navigation-item.current-menu-item > a { box-shadow: inset 0 -2px 0 var(--wp--preset--color--dorado); }
.tp-boton-cita .wp-block-button__link, .tp-idioma { white-space: nowrap; }
.tp-cabecera .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--marino); color: #ffffff; }
.tp-cabecera .wp-block-navigation__responsive-container-open svg,
.tp-cabecera .wp-block-navigation__responsive-container-close svg { fill: #ffffff; }
/* Desplegable de servicios: caja blanca en escritorio; dentro del menú del móvil, lista integrada */
.tp-cabecera .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container {
	background: #ffffff !important; color: var(--wp--preset--color--marino) !important; border: 1px solid var(--wp--preset--color--linea) !important;
	border-radius: 16px; padding: .5rem; min-width: 300px !important; box-shadow: 0 24px 50px rgba(0, 35, 71, .18);
}
.tp-cabecera .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .55rem .8rem; border-radius: 10px; font-weight: 600; }
.tp-cabecera .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item:hover > a { background: var(--wp--preset--color--niebla); box-shadow: none; color: var(--wp--preset--color--marino); }
.tp-cabecera .is-menu-open .wp-block-navigation__submenu-container { background: transparent !important; border: 0 !important; box-shadow: none; padding: .2rem 0 .4rem 1rem !important; }
.tp-cabecera .is-menu-open .wp-block-navigation-item__content { color: #ffffff; }
.tp-cabecera .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: .95rem; opacity: .85; }
/* Con seis entradas y el desplegable, el menú pasa al botón por debajo de 1100 px y se compacta hasta 1320 px */
@media (max-width: 1320px) {
	.tp-logo .tp-logo__completo { width: 220px; }
	.tp-cabecera .wp-block-navigation { font-size: .875rem; }
	.tp-cabecera .wp-block-navigation__container { gap: .9rem; }
}
@media (max-width: 1099px) {
	.tp-cabecera .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
	.tp-cabecera .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
}
.tp-boton-cita .wp-block-button__link { background: var(--wp--preset--color--dorado); color: var(--wp--preset--color--marino); font-weight: 800; }
.tp-boton-cita .wp-block-button__link:hover { background: #e3c77c; color: var(--wp--preset--color--marino); }
.tp-idioma a, .tp-idioma { color: #e8edf5; font-size: .8125rem; font-weight: 700; }
.tp-idioma { display: flex; align-items: center; gap: .35rem; margin: 0; }
.tp-idioma a { text-decoration: none; padding: .35rem .2rem; border-bottom: 2px solid transparent; }
.tp-idioma a:hover { color: #ffffff; border-bottom-color: var(--wp--preset--color--dorado); }
.tp-idioma [aria-current] { color: var(--wp--preset--color--dorado); }
.tp-idioma__sep { opacity: .5; }

/* ---------- Botones ---------- */
.wp-block-button__link { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 35, 71, .18); }
.wp-block-button.is-style-outline .wp-block-button__link {
	background: #ffffff; color: var(--wp--preset--color--marino);
	border: 1.5px solid #cdd7e4;
}
/* Iconos de los botones por clase, para que el texto siga siendo editable en el editor */
.tp-flecha .wp-block-button__link, .tp-boton-whatsapp .wp-block-button__link { display: inline-flex; align-items: center; gap: .6rem; }
.tp-flecha .wp-block-button__link::after { content: ""; width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); mask: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); transition: transform .2s ease; }
.tp-flecha .wp-block-button__link:hover::after { transform: translateX(4px); }
.tp-boton-whatsapp .wp-block-button__link::before { content: ""; width: 20px; height: 20px; flex: none; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7a45' stroke-width='2'%3E%3Cpath d='M21 11.5a8.5 8.5 0 0 1-12.6 7.4L3 20l1.2-5.1A8.5 8.5 0 1 1 21 11.5z'/%3E%3Cpath d='M9 9.5c.3 2.6 2.4 4.7 5 5l1.2-1.3 2 1-.6 1.8c-4 .2-8.3-4.1-8.1-8.1l1.8-.6 1 2z'/%3E%3C/svg%3E"); }

/* ---------- Etiquetas y textos de sección ---------- */
.tp-etiqueta { font-family: var(--wp--preset--font-family--manrope); font-size: .8125rem; font-weight: 800; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--dorado-texto); margin: 0; }
.tp-encabezado { max-width: 660px; }
.tp-insignia {
	display: inline-flex; align-items: center; gap: .6rem; width: fit-content;
	background: #ffffff; border: 1px solid #e6d6a3; color: #5e4710; border-radius: 999px;
	padding: .5rem .9rem; font-size: .875rem; font-weight: 700; line-height: 1.35; box-shadow: 0 6px 18px rgba(122, 93, 18, .08);
}
.tp-insignia::before { content: ""; width: 16px; height: 16px; flex: none; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8954a' stroke-width='2'%3E%3Cpath d='M12 2l7 4v6c0 5-3.5 8.5-7 10-3.5-1.5-7-5-7-10V6l7-4z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
.tp-acento { color: var(--wp--preset--color--dorado-oscuro); }
.tp-garantias { list-style: none; padding: 0; margin-inline: 0; margin-block-end: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .9rem; font-weight: 600; color: #44546b; }
.tp-garantias li { display: inline-flex; align-items: center; gap: .5rem; }
.tp-garantias li::before { content: ""; width: 16px; height: 16px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8954a' stroke-width='2.6'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }

/* ---------- Portada ---------- */
.tp-portada {
	background:
		radial-gradient(760px 460px at 80% 34%, rgba(214, 186, 108, .30), transparent 70%),
		radial-gradient(620px 420px at 6% 0%, rgba(12, 58, 107, .08), transparent 70%),
		linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
	overflow: hidden;
	overflow: clip; /* recorta igual, pero sin romper el «sticky» de la escena */
}
.tp-escena { position: relative; width: 460px; max-width: 100%; height: 440px; margin-inline: auto; perspective: 1100px; }
.tp-emblema { position: absolute; left: 50%; top: 50%; width: 300px; height: 280px; margin: -150px 0 0 -150px; transform-style: preserve-3d; filter: drop-shadow(0 34px 40px rgba(122, 93, 18, .28)); animation: tp-girar 16s ease-in-out infinite; }
.tp-emblema span { position: absolute; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.tp-emblema .c1 { inset: 0; background: linear-gradient(140deg, #fff1bd 0%, #e3c06a 30%, #b8882d 58%, #9a6b20 100%); transform: translateZ(-30px); opacity: .5; }
.tp-emblema .c2 { inset: 0; background: linear-gradient(140deg, #fff1bd 0%, #e3c06a 26%, #b8882d 52%, #e8cb78 74%, #9a6b20 100%); }
.tp-emblema .c3 { left: 13%; right: 13%; top: 22%; bottom: 6%; background: #ffffff; transform: translateZ(8px); }
.tp-emblema .c4 { left: 24%; right: 24%; top: 41%; bottom: 11%; background: linear-gradient(140deg, #fff1bd, #e3c06a 40%, #b8882d 75%); transform: translateZ(18px); }
.tp-emblema .c5 { left: 33%; right: 33%; top: 58%; bottom: 15%; background: #ffffff; transform: translateZ(26px); }
.tp-emblema .c6 { left: 41%; right: 41%; top: 72%; bottom: 18%; background: linear-gradient(140deg, #fff1bd, #b8882d); transform: translateZ(34px); }
.tp-flota { position: absolute; background: #ffffff; border: 1px solid #eef1f6; color: var(--wp--preset--color--tinta); border-radius: 16px; padding: 14px 16px; box-shadow: 0 20px 44px rgba(0, 35, 71, .14); display: flex; flex-direction: column; gap: 4px; min-width: 180px; }
.tp-flota b { font-size: 12px; letter-spacing: 1px; color: var(--wp--preset--color--dorado-texto); }
.tp-flota strong { font-size: 15px; }
.tp-flota em { font-style: normal; font-size: 13px; font-weight: 700; color: #1f6f43; }
.tp-flota--a { left: 0; top: 30px; animation: tp-flotar 6s ease-in-out infinite; }
.tp-flota--b { right: 0; top: 150px; animation: tp-flotar 7s ease-in-out -2s infinite; }
.tp-flota--c { left: 30px; bottom: 16px; animation: tp-flotar 8s ease-in-out -4s infinite; }
/* Escena «Del caos al orden» (vídeo generado con Higgsfield). Los bordes se funden con el fondo de la portada. */
.tp-cine { position: relative; width: min(100%, 600px); aspect-ratio: 1; margin-inline: auto;
	-webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent 100%); mask-image: radial-gradient(closest-side, #000 70%, transparent 100%); }
.tp-cine img, .tp-cine video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tp-cine video { opacity: 0; transition: opacity .6s ease; }
.tp-cine--listo video { opacity: 1; }
@media (min-width: 1024px) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
	/* La portada se queda fija mientras el scroll hace avanzar el vídeo; luego la página sigue */
	/* El recorrido va en un pseudo-elemento y no en padding: el «sticky» solo se mueve dentro del contenido */
	/* Se maqueta desde el primer pintado (tp-js lo pone un script en el <head>), no cuando llega taxespro.js:
	   así la portada no salta al cargar (CLS 0,41 medido el 2026-10-06 cuando dependía de taxespro.js). */
	.tp-js .tp-portada:has([data-tp-cine] video) { padding-block: 0 !important; }
	.tp-js .tp-portada:has([data-tp-cine] video)::after { content: ""; display: block; height: 80vh; }
	.tp-js .tp-portada:has([data-tp-cine] video) > .wp-block-columns { position: sticky; top: var(--tp-alto-cabecera, 94px); min-height: calc(100vh - var(--tp-alto-cabecera, 94px)); }
}
@keyframes tp-girar { 0%, 100% { transform: rotateY(-26deg) rotateX(8deg); } 50% { transform: rotateY(26deg) rotateX(-6deg); } }
@keyframes tp-flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Carrusel de clientes ---------- */
.tp-clientes { border-block: 1px solid #eef1f6; }
.tp-clientes .tp-etiqueta { color: var(--wp--preset--color--gris); letter-spacing: .16em; }
.tp-carrusel { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tp-carrusel__pista { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px; }
.tp-carrusel--activo .tp-carrusel__pista { flex-wrap: nowrap; justify-content: flex-start; width: max-content; animation: tp-marquesina 40s linear infinite; }
.tp-carrusel:hover .tp-carrusel__pista { animation-play-state: paused; }
.tp-carrusel__pista > * { margin: 0 !important; flex: 0 0 auto; }
.tp-carrusel__pista img { height: 54px; width: auto; max-width: 160px; object-fit: contain; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.tp-carrusel__pista a:hover img, .tp-carrusel__pista figure:hover img { transform: scale(1.16); }
@keyframes tp-marquesina { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Secciones y tarjetas ---------- */
.tp-seccion--niebla { background: linear-gradient(180deg, #f6f9fd 0%, #eef3f9 100%); }
.tp-tarjeta {
	background: #ffffff; border: 1px solid var(--wp--preset--color--linea); border-radius: 20px; padding: 1.6rem;
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.tp-tarjeta:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(0, 35, 71, .12); border-color: #d8c48a; }
.tp-tarjeta a { text-decoration: none; }
.tp-tarjeta > * + *, .tp-aviso > * + *, .tp-modalidad > * + * { margin-block-start: .6rem; }
.tp-tarjeta p { font-size: .95rem; line-height: 1.55; color: #4a5a70; }
.tp-tarjeta h3, .tp-modalidad h3 { font-family: var(--wp--preset--font-family--manrope); font-size: 1.1875rem; font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.tp-nuevo { display: inline-block; background: var(--wp--preset--color--marino); color: #ffffff !important; border-radius: 999px; padding: 4px 10px; font-size: 12px !important; font-weight: 800; line-height: 1.4 !important; letter-spacing: .04em; text-transform: uppercase; }
.tp-numero { font-family: var(--wp--preset--font-family--fraunces); font-size: 2.1rem !important; line-height: 1 !important; color: var(--wp--preset--color--dorado-oscuro) !important; margin: 0; }
.tp-aviso { border: 1px solid #e6d6a3; background: #fffdf6; border-radius: 20px; padding: 1.25rem 1.4rem; }
.tp-aviso p { font-size: .95rem; line-height: 1.55; }

/* Tarjeta de servicio: el triángulo del logo arriba y toda la tarjeta enlaza al servicio */
.tp-servicio { position: relative; display: flex; flex-direction: column; }
/* Icono dorado 3D de cada servicio (Higgsfield). Sin icono, la tarjeta muestra el triángulo del logo. */
.tp-servicio:not(:has(.tp-icono))::before { content: ""; width: 28px; height: 26px; margin-bottom: .2rem; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 28'%3E%3Cpath d='M15 1 L29 27 H1 Z' fill='none' stroke='%23b8954a' stroke-width='2.2'/%3E%3Cpath d='M15 12 L21 23 H9 Z' fill='%23b8954a'/%3E%3C/svg%3E"); }
.tp-servicio .tp-icono { margin: -.9rem 0 -.4rem -1.05rem; }
.tp-servicio .tp-icono img { width: 92px; height: 92px; object-fit: contain; mix-blend-mode: multiply; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.tp-servicio:hover .tp-icono img { transform: translateY(-4px) rotate(-5deg) scale(1.1); }
.tp-servicio .tp-nuevo { position: absolute; top: 1.5rem; right: 1.5rem; margin: 0; }
.tp-servicio h3 a { color: var(--wp--preset--color--marino); }
.tp-servicio h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tp-servicio h3 a:focus-visible { outline: none; }
.tp-servicio:has(h3 a:focus-visible) { outline: 3px solid var(--wp--preset--color--dorado); outline-offset: 3px; }
.tp-servicio .tp-mas { margin-top: auto; padding-top: .4rem; font-size: .9rem; font-weight: 700; color: var(--wp--preset--color--dorado-texto); }
.tp-paso h3 { font-size: 1.0625rem; }

/* Adelanto de citas */
.tp-cita { background: #ffffff; border: 1px solid var(--wp--preset--color--linea); border-radius: 24px; padding: clamp(1.25rem, 3vw, 1.75rem); box-shadow: 0 30px 70px rgba(0, 35, 71, .10); }
.tp-cita > * + * { margin-block-start: 1.4rem; }
.tp-modalidad { border: 2px solid var(--wp--preset--color--linea); border-radius: 16px; padding: 1rem; transition: border-color .2s ease, background-color .2s ease; }
.tp-modalidad:hover { border-color: var(--wp--preset--color--marino); background: #f4f7fb; }
.tp-modalidad h3 { font-size: 1rem; }
.tp-modalidad p { font-size: .85rem; line-height: 1.45; color: #4a5a70; }
.tp-modalidad .tp-duracion { font-size: .875rem; font-weight: 800; color: var(--wp--preset--color--dorado-texto); }

/* ---------- Equipo ---------- */
.tp-persona { padding: 14px 14px 20px; border-radius: 22px; }
.tp-persona h3 { font-family: var(--wp--preset--font-family--fraunces); font-size: 1.5rem; font-weight: 600; padding-inline: 6px; }
.tp-persona .tp-chips { padding-inline: 6px; }
.tp-retrato img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.tp-retrato { overflow: hidden; border-radius: 16px; margin: 0; }
.tp-tarjeta:hover .tp-retrato img { transform: scale(1.06); }
.tp-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tp-chips li { background: var(--wp--preset--color--crema); color: #5e4710; border-radius: 999px; padding: 5px 10px; font-size: 12.5px; font-weight: 700; }

/* ---------- Blog ---------- */
.tp-entradas .wp-block-post { background: #ffffff; border: 1px solid var(--wp--preset--color--linea); border-radius: 22px; padding: 12px 12px 22px; transition: transform .3s ease, box-shadow .3s ease; }
.tp-entradas .wp-block-post:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(0, 35, 71, .12); }
.tp-entradas .wp-block-post-featured-image { overflow: hidden; border-radius: 16px; margin: 0; }
.tp-entradas .wp-block-post-featured-image img { aspect-ratio: 16 / 10; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.tp-entradas .wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.06); }
.tp-entradas .wp-block-post-title { font-size: 1.45rem; line-height: 1.25; padding-inline: 8px; }
.tp-entradas .wp-block-post-title a { color: var(--wp--preset--color--marino); text-decoration: none; }
.tp-entradas .wp-block-post-terms, .tp-entradas .wp-block-post-date { padding-inline: 8px; font-size: .8125rem; font-weight: 800; color: var(--wp--preset--color--dorado-texto); }

/* ---------- Preguntas frecuentes ---------- */
.wp-block-details { background: #ffffff; padding: 0; }
.wp-block-details summary {
	list-style: none; cursor: pointer; padding: 1.2rem 1.4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
	font-weight: 700; font-size: 1.0625rem; color: var(--wp--preset--color--marino); min-height: 44px;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; font-size: 1.4rem; color: var(--wp--preset--color--dorado-oscuro); transition: transform .2s ease; }
.wp-block-details[open] summary::after { content: "−"; }
.wp-block-details > :not(summary) { padding: 0 1.4rem 1.2rem; margin-top: 0; }
.tp-preguntas > * + * { margin-block-start: .75rem; }

/* ---------- Banner de páginas interiores ---------- */
.tp-banner { background: var(--wp--preset--gradient--banner); color: #ffffff; }
.tp-banner h1 { color: #ffffff; font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.1; }
.tp-banner p { color: #d5deea; }
.tp-banner .aioseo-breadcrumbs, .tp-banner .aioseo-breadcrumbs a { color: #dfe6f0; font-size: .875rem; font-weight: 600; }
.tp-banner .aioseo-breadcrumbs .aioseo-breadcrumb:last-child { color: #e9d49a; }

/* ---------- Página de servicio ---------- */
/* El diseño restringido centra los hijos con !important: el subtítulo ocupa todo el ancho y se limita su texto */
.tp-banner > .wp-block-post-excerpt { max-width: 1240px !important; }
.tp-banner .wp-block-post-excerpt__excerpt { margin: 0; max-width: 760px; font-size: 1.125rem; line-height: 1.6; }
.tp-servicio-cuerpo > .wp-block-column:first-child > * + * { margin-block-start: clamp(2.5rem, 5vw, 3.5rem); }
.tp-imagen-servicio { margin: 0; }
.tp-imagen-servicio img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 24px; box-shadow: 0 24px 60px rgba(0, 35, 71, .12); }
.tp-bloque > * + * { margin-block-start: 1.1rem; }
.tp-ventaja::before { content: ""; display: block; width: 30px; height: 30px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8954a' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.6 2.6L16 9.5'/%3E%3C/svg%3E"); }
.tp-ventaja h3 { font-size: 1.0625rem; }
.tp-nota-pie { font-size: .9rem; color: var(--wp--preset--color--gris); }
.tp-incluye { display: grid; gap: .9rem; }
.tp-incluye > * { margin: 0 !important; }
.tp-incluye__item { display: grid; grid-template-columns: 44px 1fr; column-gap: 1.1rem; row-gap: .4rem; align-items: start; border: 1px solid var(--wp--preset--color--linea); border-radius: 18px; padding: 1.2rem 1.4rem; background: #ffffff; transition: border-color .3s ease, box-shadow .3s ease; }
.tp-incluye__item:hover { border-color: #d8c48a; box-shadow: 0 14px 34px rgba(0, 35, 71, .08); }
.tp-incluye__item > * { margin: 0 !important; grid-column: 2; }
.tp-incluye__item > .tp-incluye__num { grid-column: 1; grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 999px; background: var(--wp--preset--color--marino); color: #e9d49a; display: flex; align-items: center; justify-content: center; font-family: var(--wp--preset--font-family--fraunces); font-size: 1.25rem; font-weight: 600; line-height: 1; }
.tp-incluye__item h3 { font-family: var(--wp--preset--font-family--manrope); font-size: 1.0625rem; font-weight: 700; line-height: 1.35; letter-spacing: 0; padding-top: .6rem; }
.tp-incluye__item p { font-size: .95rem; line-height: 1.6; color: #4a5a70; }
.tp-vinetas { list-style: none; padding: 0; display: grid; gap: .35rem; font-size: .95rem; line-height: 1.55; color: #4a5a70; }
.tp-vinetas li { position: relative; padding-left: 1.2rem; }
.tp-vinetas li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 999px; background: var(--wp--preset--color--dorado); }
.tp-nota { background: linear-gradient(135deg, #f6f9fd, #eef3f9); border-radius: 22px; padding: clamp(1.4rem, 3vw, 2rem); }
.tp-nota > * + * { margin-block-start: .75rem; }
.tp-nota h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.tp-lateral__caja { border: 1px solid var(--wp--preset--color--linea); border-radius: 24px; padding: 1.6rem; background: #ffffff; box-shadow: 0 24px 60px rgba(0, 35, 71, .10); }
.tp-lateral__caja > * + * { margin-block-start: 1.1rem; }
.tp-datos { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.tp-datos li { font-size: .95rem; font-weight: 700; line-height: 1.45; color: var(--wp--preset--color--tinta); }
.tp-datos strong { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--gris); }
.tp-botones-lateral { flex-direction: column; align-items: stretch; gap: .6rem; }
.tp-botones-lateral .wp-block-button { width: 100%; }
.tp-botones-lateral .wp-block-button__link { width: 100%; justify-content: center; }
.tp-enlace-irs { text-align: center; font-size: .85rem; }
.tp-lateral .tp-aviso { margin-block-start: 1rem; }
.tp-aviso > * + * { margin-block-start: .4rem; }
.tp-aviso__titulo { margin: 0; font-size: .875rem; font-weight: 800; color: #5e4710; }
.tp-aviso p { font-size: .9rem; line-height: 1.6; }
.tp-relacionados { margin-block-start: clamp(3rem, 6vw, 4.5rem) !important; }
.tp-relacionados > * + * { margin-block-start: 1.4rem; }
.tp-cierre { margin-block-start: clamp(2.5rem, 5vw, 3.5rem) !important; background: var(--wp--preset--gradient--banner); color: #ffffff; border-radius: 28px; padding: clamp(2rem, 5vw, 3.25rem); }
.tp-cierre > * + * { margin-block-start: 1rem; }
.tp-cierre h2 { color: #ffffff; }
.tp-cierre p { max-width: 640px; color: #d5deea; }
.tp-cierre .wp-block-buttons { margin-block-start: 1.6rem; }
.tp-cierre .is-style-outline .wp-block-button__link { background: transparent; color: #ffffff; border-color: rgba(255, 255, 255, .45); }
@media (min-width: 782px) { .tp-lateral { position: sticky; top: 118px; align-self: flex-start; } }

/* ---------- Artículos del blog: títulos a escala de lectura ---------- */
.single-post .wp-block-post-content h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-block-start: 2.2rem; }
.single-post .wp-block-post-content h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); margin-block-start: 1.8rem; }
.single-post .wp-block-post-content p, .single-post .wp-block-post-content li { font-size: 1.0625rem; line-height: 1.75; }

/* ---------- Páginas generales (Servicios, Quiénes somos, Contacto, Preguntas, Portal) ---------- */
.wp-block-post-content > .alignwide + .alignwide,
.wp-block-post-content > .alignwide + .tp-bloque,
.wp-block-post-content > .tp-bloque + .tp-bloque,
.wp-block-post-content > .tp-bloque + .alignwide { margin-block-start: clamp(2.5rem, 5vw, 3.5rem); }
.wp-block-post-content > p.has-media-font-size:first-child + * { margin-block-start: clamp(1.75rem, 4vw, 2.5rem); }
.tp-cierre-ancho > .tp-cierre { margin-block-start: 0 !important; }
.tp-entradilla { max-width: 760px; }
.tp-historia { align-items: center; }
.tp-equipo--pagina { max-width: 760px; }
.tp-contacto { position: relative; }
.tp-contacto::before { content: ""; display: block; width: 40px; height: 40px; border-radius: 12px; background: var(--wp--preset--color--crema) no-repeat center/22px; }
.tp-contacto--tel::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a7426' stroke-width='2'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E"); }
.tp-contacto--wa::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7a45' stroke-width='2'%3E%3Cpath d='M21 11.5a8.5 8.5 0 0 1-12.6 7.4L3 20l1.2-5.1A8.5 8.5 0 1 1 21 11.5z'/%3E%3C/svg%3E"); }
.tp-contacto--mail::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a7426' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.tp-contacto--ofi::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a7426' stroke-width='2'%3E%3Cpath d='M12 21s-7-6.2-7-11a7 7 0 0 1 14 0c0 4.8-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
.tp-contacto h3 { font-size: 1.0625rem; }
.tp-contacto .tp-contacto__dato { font-size: 1.0625rem; font-weight: 700; color: var(--wp--preset--color--marino); }
.tp-contacto .tp-contacto__dato a { color: var(--wp--preset--color--marino); }
.tp-contacto .tp-contacto__dato a:hover { color: var(--wp--preset--color--dorado-texto); }
.tp-reserva { margin-block-start: clamp(2.5rem, 5vw, 3.5rem); }
.tp-reserva > * + * { margin-block-start: 1.1rem; }
/* Asistente de IA (plugin): ventana en la esquina; en el móvil, a pantalla completa */
.tp-asis { position: fixed; right: 20px; bottom: 100px; z-index: 80; width: min(390px, calc(100vw - 32px)); height: min(620px, calc(100vh - 140px)); display: flex; flex-direction: column; overflow: hidden;
	background: #ffffff; border: 1px solid var(--wp--preset--color--linea); border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 35, 71, .28); font-family: var(--wp--preset--font-family--manrope); }
.tp-asis[hidden] { display: none; }
.tp-asis__cabecera { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; background: var(--wp--preset--gradient--banner); color: #ffffff; }
.tp-asis__avatar { flex: none; width: 40px; height: 40px; border-radius: 999px; border: 2px solid var(--wp--preset--color--dorado);
	background: var(--wp--preset--color--marino) no-repeat center/22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 28'%3E%3Cpath d='M15 1 L29 27 H1 Z' fill='none' stroke='%23d6ba6c' stroke-width='2.4'/%3E%3Cpath d='M15 12 L21 23 H9 Z' fill='%23d6ba6c'/%3E%3C/svg%3E"); }
.tp-asis__nombre { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.tp-asis__nombre strong { font-size: .95rem; }
.tp-asis__nombre small { font-size: .75rem; color: #c9d3e1; }
.tp-asis__cerrar, .tp-asis__nueva { flex: none; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: #ffffff; font-size: 1.35rem; line-height: 1; cursor: pointer; }
.tp-asis__cerrar:hover, .tp-asis__nueva:hover { background: rgba(255, 255, 255, .14); }
.tp-asis__lista { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: .6rem; padding: 1rem; background: var(--wp--preset--color--niebla); }
.tp-asis__msg { max-width: 86%; padding: .65rem .85rem; border-radius: 16px; font-size: .92rem; line-height: 1.5; overflow-wrap: anywhere; }
.tp-asis__msg--ia { align-self: flex-start; background: #ffffff; color: var(--wp--preset--color--tinta); border: 1px solid var(--wp--preset--color--linea); border-bottom-left-radius: 6px; }
.tp-asis__msg--yo { align-self: flex-end; background: var(--wp--preset--color--marino); color: #ffffff; border-bottom-right-radius: 6px; }
.tp-asis__msg--yo a { color: #e9d49a; }
.tp-asis__msg--espera { opacity: .65; font-style: italic; }
.tp-asis__rapidas { display: flex; flex-wrap: wrap; gap: .4rem; padding: .6rem 1rem; background: var(--wp--preset--color--niebla); border-top: 1px solid var(--wp--preset--color--linea); }
.tp-asis__rapidas[hidden] { display: none; }
.tp-asis__rapidas button { border: 1.5px solid #cdd7e4; border-radius: 999px; padding: .4rem .75rem; background: #ffffff; color: var(--wp--preset--color--marino); font: 700 .8rem var(--wp--preset--font-family--manrope); cursor: pointer; }
.tp-asis__rapidas button:hover { border-color: var(--wp--preset--color--marino); }
.tp-asis__form { display: flex; gap: .5rem; padding: .7rem; background: #ffffff; border-top: 1px solid var(--wp--preset--color--linea); }
.tp-asis__form textarea { flex: 1; min-height: 44px; max-height: 120px; resize: none; border: 1px solid #cdd7e4; border-radius: 12px; padding: .6rem .8rem; font: 500 .95rem var(--wp--preset--font-family--manrope); color: var(--wp--preset--color--tinta); }
.tp-asis__form button { flex: none; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--wp--preset--color--marino); color: var(--wp--preset--color--dorado); font-size: 1.05rem; cursor: pointer; }
.tp-asis__form button:disabled { opacity: .5; cursor: wait; }
.tp-asis__aviso { margin: 0; padding: .35rem .9rem .6rem; background: #ffffff; font-size: .7rem; line-height: 1.4; color: var(--wp--preset--color--gris); }
@media (max-width: 781px) {
	.tp-asis { inset: 0; width: 100%; height: 100%; border-radius: 0; border: 0; }
	html.tp-asis-abierto body { overflow: hidden; }
}

/* Reserva de citas (plugin, [taxespro_reservar]) */
.tp-reservar { display: grid; gap: 1.6rem; margin-block-start: 1.2rem !important; }
.tp-reservar [hidden], .tp-formulario [hidden] { display: none !important; }
.tp-reservar__paso { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: .8rem; }
.tp-reservar__paso[disabled] { opacity: .45; }
.tp-reservar .tp-reservar__titulo, .tp-reservar legend { margin: 0; padding: 0; font-family: var(--wp--preset--font-family--manrope); font-size: 1.0625rem; font-weight: 800; color: var(--wp--preset--color--marino); letter-spacing: 0; }
.tp-reservar p { margin: 0; }
.tp-reservar label, .tp-reservar__etiqueta { display: block; margin-bottom: .35rem; font-size: .875rem; font-weight: 700; color: var(--wp--preset--color--marino); }
.tp-reservar select { width: 100%; max-width: 420px; min-height: 48px; border: 1px solid #cdd7e4; border-radius: 12px; padding: .7rem 1rem; background: #ffffff; font: 500 1rem var(--wp--preset--font-family--manrope); color: var(--wp--preset--color--tinta); }
.tp-reservar__modalidades { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .7rem; }
.tp-reservar__modalidad, .tp-reservar__dia, .tp-reservar__hora, .tp-reservar__mas {
	cursor: pointer; border: 2px solid var(--wp--preset--color--linea); background: #ffffff; color: var(--wp--preset--color--marino);
	border-radius: 14px; font: 700 .95rem var(--wp--preset--font-family--manrope); transition: border-color .2s ease, background-color .2s ease, transform .2s ease; }
.tp-reservar__modalidad { display: grid; gap: .2rem; text-align: left; padding: .9rem 1rem; }
.tp-reservar__modalidad span { font-size: .85rem; color: var(--wp--preset--color--dorado-texto); }
.tp-reservar__modalidad:hover, .tp-reservar__dia:hover, .tp-reservar__hora:hover { border-color: var(--wp--preset--color--marino); transform: translateY(-1px); }
.tp-reservar__modalidad[aria-checked="true"], .tp-reservar__dia[aria-pressed="true"], .tp-reservar__hora[aria-pressed="true"] { border-color: var(--wp--preset--color--marino); background: var(--wp--preset--color--marino); color: #ffffff; }
.tp-reservar__modalidad[aria-checked="true"] span { color: #e9d49a; }
.tp-reservar__dias { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
.tp-reservar__dia { flex: none; padding: .6rem .9rem; text-transform: capitalize; }
.tp-reservar__horas { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: .5rem; }
.tp-reservar__hora { padding: .6rem .4rem; }
.tp-reservar__mas { justify-self: start; padding: .55rem 1rem; font-size: .875rem; }
.tp-reservar__nota { font-size: .85rem; color: var(--wp--preset--color--gris); }
.tp-reservar__resumen { padding: .8rem 1rem; border-radius: 12px; background: var(--wp--preset--color--niebla); font-weight: 700; color: var(--wp--preset--color--marino); }
.tp-reservar__confirmar { min-height: 52px; border: 0; border-radius: 999px; padding: .9rem 2rem; cursor: pointer; background: var(--wp--preset--color--marino); color: #ffffff; font: 800 1rem var(--wp--preset--font-family--manrope); }
.tp-reservar__confirmar:disabled { opacity: .6; cursor: wait; }
.tp-reservar__vivo:empty { display: none; }
.tp-reservar__vivo { padding: .8rem 1rem; border-radius: 12px; background: #fffdf6; border: 1px solid #e6d6a3; font-weight: 600; }
.tp-reservar__listo { display: grid; gap: .6rem; padding: 1.4rem; border-radius: 18px; background: #eaf6ee; border: 1px solid #bfe3cb; }
.tp-reservar .tp-reservar__listo .tp-reservar__titulo { color: #1f6f43; font-size: 1.25rem; }
.tp-reservar__cuando { font-size: 1.125rem; font-weight: 800; color: var(--wp--preset--color--marino); text-transform: capitalize; }

/* Formulario de contacto (plugin) y mapa */
.tp-escribenos { align-items: stretch; }
.tp-formulario { display: grid; gap: .9rem; }
.tp-formulario p { margin: 0; }
.tp-formulario__fila { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .9rem; }
.tp-formulario label, .tp-formulario legend { display: block; margin-bottom: .35rem; font-size: .875rem; font-weight: 700; color: var(--wp--preset--color--marino); }
.tp-formulario input[type="text"], .tp-formulario input[type="email"], .tp-formulario input[type="tel"], .tp-formulario select, .tp-formulario textarea {
	width: 100%; box-sizing: border-box; min-height: 48px; border: 1px solid #cdd7e4; border-radius: 12px; padding: .7rem 1rem; background: #ffffff;
	font: 500 1rem var(--wp--preset--font-family--manrope); color: var(--wp--preset--color--tinta); }
.tp-formulario textarea { resize: vertical; min-height: 130px; }
.tp-formulario input:focus-visible, .tp-formulario select:focus-visible, .tp-formulario textarea:focus-visible { outline: 3px solid var(--wp--preset--color--dorado); outline-offset: 1px; border-color: var(--wp--preset--color--marino); }
.tp-formulario__via { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.tp-formulario__via legend { width: 100%; }
.tp-formulario__via label, .tp-formulario__acepto label { display: inline-flex; align-items: center; gap: .45rem; margin: 0; font-weight: 600; color: #3a4a60; }
.tp-formulario__acepto label { align-items: flex-start; font-size: .85rem; line-height: 1.5; }
.tp-formulario__acepto input { margin-top: 3px; flex: none; width: 18px; height: 18px; accent-color: var(--wp--preset--color--marino); }
.tp-formulario__via input { accent-color: var(--wp--preset--color--marino); }
.tp-formulario button { min-height: 50px; border: 0; border-radius: 999px; padding: .85rem 1.8rem; cursor: pointer; background: var(--wp--preset--color--marino); color: #ffffff; font: 700 1rem var(--wp--preset--font-family--manrope); transition: transform .2s ease, background-color .2s ease; }
.tp-formulario button:hover { background: var(--wp--preset--color--marino-2); transform: translateY(-2px); }
.tp-formulario button:disabled { opacity: .6; cursor: wait; }
.tp-formulario__estado { padding: .9rem 1.1rem; border-radius: 12px; background: #eaf6ee; color: #1f6f43; font-weight: 700; }
.tp-formulario__estado--error { background: #fdecec; color: #9b1c1c; }
.tp-formulario__trampa { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tp-mapa { height: 100%; min-height: 360px; border-radius: 24px; overflow: hidden; border: 1px solid var(--wp--preset--color--linea); box-shadow: 0 24px 60px rgba(0, 35, 71, .10); }
.tp-mapa iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }
.tp-portal { border: 1px solid var(--wp--preset--color--linea); border-radius: 24px; padding: clamp(1.4rem, 3vw, 2rem); background: #ffffff; box-shadow: 0 24px 60px rgba(0, 35, 71, .08); }
.tp-portal input[type="text"], .tp-portal input[type="email"], .tp-portal input[type="password"] { width: 100%; min-height: 48px; box-sizing: border-box; border: 1px solid #cdd7e4; border-radius: 12px; padding: .7rem 1rem; font: 500 1rem var(--wp--preset--font-family--manrope); }
.tp-portal input[type="submit"], .tp-portal button { min-height: 48px; border: 0; border-radius: 999px; padding: .8rem 1.6rem; background: var(--wp--preset--color--marino); color: #ffffff; font: 700 1rem var(--wp--preset--font-family--manrope); cursor: pointer; }

/* ---------- Boletín ---------- */
.tp-boletin { background: radial-gradient(700px 300px at 85% 20%, rgba(214, 186, 108, .28), transparent 70%), var(--wp--preset--color--crema); }
.tp-boletin__formulario { display: flex; flex-direction: column; gap: .75rem; }
.tp-boletin__fila { display: flex; flex-wrap: wrap; gap: .6rem; }
.tp-boletin__fila input { flex: 1 1 240px; min-width: 0; min-height: 48px; box-sizing: border-box; border: 1px solid #e0d3a8; border-radius: 999px; padding: .9rem 1.25rem; font: 500 1rem var(--wp--preset--font-family--manrope); color: var(--wp--preset--color--tinta); background: #ffffff; }
.tp-boletin__fila input:focus-visible { outline: 3px solid var(--wp--preset--color--dorado); outline-offset: 2px; }
.tp-boletin__fila button { min-height: 48px; border: 0; border-radius: 999px; padding: .85rem 1.5rem; cursor: pointer; background: var(--wp--preset--color--marino); color: #ffffff; font: 700 1rem var(--wp--preset--font-family--manrope); transition: transform .2s ease, background-color .2s ease; }
.tp-boletin__fila button:hover { background: var(--wp--preset--color--marino-2); transform: translateY(-2px); }
.tp-boletin__acepto { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; line-height: 1.5; color: #4a5a70; }
.tp-boletin__acepto input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--wp--preset--color--marino); }
.tp-boletin__mensaje { margin: 0; font-size: .9rem; font-weight: 700; color: var(--wp--preset--color--marino); }
.tp-oculto-visual { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Pie ---------- */
.tp-pie { background: var(--wp--preset--color--marino); color: #c9d3e1; }
.tp-pie a { color: #c9d3e1; text-decoration: none; font-weight: 500; }
.tp-pie a:hover { color: #ffffff; }
.tp-pie h2, .tp-pie h3, .tp-pie .tp-pie__titulo { color: #ffffff; font-family: var(--wp--preset--font-family--manrope); font-size: .8125rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tp-pie__lista { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .9rem; }
.tp-pie__legal { border-top: 1px solid rgba(201, 211, 225, .18); font-size: .8125rem; color: #9fb0c6; }
.tp-pie .wp-block-social-links .wp-social-link { background: transparent; border: 1px solid rgba(201, 211, 225, .3); color: #c9d3e1; }
.tp-caa { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(214, 186, 108, .6); border-radius: 12px; padding: 10px 12px; color: #f1e6c4 !important; font-size: 13px; font-weight: 700 !important; }

/* ---------- Botones flotantes y barra del móvil ---------- */
.tp-flotantes { position: fixed; right: 20px; bottom: 28px; z-index: 60; display: flex; flex-direction: column; gap: 12px; }
.tp-flotantes a, .tp-flotantes button { width: 58px; height: 58px; border-radius: 999px; display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer; transition: transform .2s ease; }
.tp-flotantes a:hover, .tp-flotantes button:hover { transform: translateY(-3px); }
.tp-flotantes .tp-whatsapp { background: #1f9d55; box-shadow: 0 12px 30px rgba(31, 157, 85, .32); }
.tp-flotantes .tp-asistente { background: var(--wp--preset--color--marino); border: 2px solid var(--wp--preset--color--dorado); box-shadow: 0 12px 30px rgba(0, 35, 71, .30); }
.tp-barra-movil { display: none; }

/* ---------- Movimiento al desplazarse (CSS moderno, sin librerías) ---------- */
.tp-entra { animation: tp-entrar .9s cubic-bezier(.2, .7, .2, 1) both; }
.tp-entra-2 { animation-delay: .12s; } .tp-entra-3 { animation-delay: .24s; } .tp-entra-4 { animation-delay: .36s; } .tp-entra-5 { animation-delay: .48s; }
@keyframes tp-entrar { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
/* El titular solo se desliza, sin partir de invisible: así no retrasa el LCP */
.tp-entra-suave { animation: tp-deslizar .9s cubic-bezier(.2, .7, .2, 1) .12s both; }
@keyframes tp-deslizar { from { transform: translateY(18px); } to { transform: none; } }
@supports (animation-timeline: view()) {
	.tp-revelar, .tp-revelar-hijos > * { animation: tp-revelar linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
	@keyframes tp-revelar { from { opacity: 0; transform: translateY(56px) scale(.98); } to { opacity: 1; transform: none; } }
	.tp-cabecera { animation: tp-cabecera linear both; animation-timeline: scroll(root); animation-range: 0 160px; }
	@keyframes tp-cabecera { from { box-shadow: 0 0 0 rgba(0, 35, 71, 0); } to { box-shadow: 0 10px 30px rgba(0, 35, 71, .18); } }
	.tp-paralaje { animation: tp-paralaje linear both; animation-timeline: view(); animation-range: cover; }
	@keyframes tp-paralaje { from { transform: translateY(46px); } to { transform: translateY(-46px); } }
}

/* ---------- Móvil ---------- */
@media (max-width: 781px) {
	.tp-logo .tp-logo__completo { display: none; }
	.tp-logo .tp-logo__compacto { display: block; }
	.tp-oculto-movil { display: none !important; }
	.tp-escena { height: 360px; transform: scale(.86); }
	.tp-tarjeta { padding: 1.25rem; }
	.tp-servicio .tp-nuevo { top: 1.15rem; right: 1.15rem; }
	.tp-persona { padding: 8px 8px 14px; }
	.tp-persona h3 { font-size: 1.25rem; padding-inline: 4px; }
	.tp-persona .tp-chips { padding-inline: 4px; }
	.tp-chips li { font-size: 11.5px; padding: 4px 8px; }
	.tp-pie .wp-block-columns { row-gap: 2.25rem; }
	.tp-flotantes { display: none; }
	.tp-barra-movil {
		display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: 8px; padding: 10px 12px;
		background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
		border-top: 1px solid var(--wp--preset--color--linea); box-shadow: 0 -10px 30px rgba(0, 35, 71, .10);
	}
	.tp-barra-movil button { border: 0; background: transparent; cursor: pointer; font-family: inherit; }
	.tp-barra-movil a, .tp-barra-movil button { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 48px; text-decoration: none; font-size: 12.5px; font-weight: 700; color: var(--wp--preset--color--marino); }
	.tp-barra-movil .tp-barra-movil__cita { flex: 1.5 1 0; background: var(--wp--preset--color--marino); color: #ffffff; border-radius: 999px; font-size: 14px; font-weight: 800; }
	body { padding-bottom: 72px; }
}

/* ---------- Accesibilidad y editor ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
.editor-styles-wrapper .tp-revelar, .editor-styles-wrapper .tp-revelar-hijos > *, .editor-styles-wrapper .tp-entra, .editor-styles-wrapper .tp-entra-suave,
.editor-styles-wrapper .tp-emblema, .editor-styles-wrapper .tp-flota, .editor-styles-wrapper .tp-paralaje { animation: none !important; }
/* En el editor, el enlace que cubre la tarjeta impediría pinchar en sus textos */
.editor-styles-wrapper .tp-servicio h3 a::after { display: none; }
.editor-styles-wrapper .tp-cabecera { position: relative; }
