/* ==========================================================================
   Toscano – Tarifa (solicitud por correo). Prefijo .ttr, sobre las clases de
   campos del Formulario (.tfm), cuyo CSS se carga como dependencia.
   Figma «Tarifa 2025 · Acceso profesional» (607:799).
   ========================================================================== */

.tfm.ttr {
	--ttr-bg: #f4f8f8;
	--ttr-panel: var(--toscano-brand-deep, #032d35);
	--ttr-panel-2: #064a54;
	--ttr-glow: #2fc4c7;
	--ttr-pad: 110px;

	padding: var(--ttr-pad) 24px;
	background: var(--ttr-bg);
	scroll-margin-top: 90px;
}

.tfm.ttr .ttr__card {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	max-width: 1200px;
	margin: 0 auto;
	overflow: hidden;
	border-radius: 24px;
	background: var(--tfm-card);
	box-shadow: 0 40px 80px -40px rgba(3, 45, 53, .35), 0 0 0 1px rgba(3, 45, 53, .04);
}

/* ---------- Panel de la tarifa (oscuro) ---------- */

.tfm.ttr .ttr__info {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	gap: 36px;
	min-width: 0;
	padding: 52px 48px;
	overflow: hidden;
	background:
		radial-gradient(70% 90% at 0% 100%, color-mix(in srgb, var(--ttr-glow) 14%, transparent) 0%, transparent 70%),
		linear-gradient(135deg, var(--ttr-panel) 0%, var(--ttr-panel-2) 100%);
	color: rgba(255, 255, 255, .78);
}

.tfm.ttr .ttr__info-inner {
	position: relative;
	z-index: 1;
	grid-row: 1;
	max-width: 520px;
	/* Separa el texto de los rayos cuando uno pasa justo por detrás (sobre todo en móvil) */
	text-shadow: 0 1px 14px rgba(3, 45, 53, .65);
}

.tfm.ttr .ttr__chips li {
	background: rgba(3, 45, 53, .35);
}

/* Rayos (shader WebGL del kit, script.js). Sin WebGL queda el degradado del panel */
.tfm.ttr .ttr__fx {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity .8s ease;
	pointer-events: none;
}

.tfm.ttr.ttr--gl .ttr__fx {
	opacity: 1;
}

/* ---------- Portada de la tarifa ---------- */

.tfm.ttr.ttr--cover .ttr__info {
	grid-template-columns: minmax(0, 1fr) auto;
}

.tfm.ttr .ttr__cover {
	position: relative;
	z-index: 1;
	grid-row: 1;
	grid-column: 2;
	width: 190px;
	perspective: 900px;
}

/* Halo turquesa detrás del libro, como si lo alimentaran los rayos */
.tfm.ttr .ttr__cover-glow {
	position: absolute;
	inset: -30% -45%;
	border-radius: 50%;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--ttr-glow) 38%, transparent), transparent);
	opacity: .8;
	pointer-events: none;
	animation: ttr-glow 5s ease-in-out infinite;
}

.tfm.ttr .ttr__cover-book {
	position: relative;
	transform: rotate(-4deg);
	transition: transform .7s cubic-bezier(.2, .7, .2, 1);
	animation: ttr-float 6s ease-in-out infinite;
}

.tfm.ttr .ttr__cover-img {
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .45)) drop-shadow(0 4px 8px rgba(0, 0, 0, .25));
}

.tfm.ttr .ttr__info:hover .ttr__cover-book {
	transform: rotate(0deg) translateY(-6px) scale(1.03);
}

@keyframes ttr-float {
	0%, 100% { translate: 0 0; }
	50% { translate: 0 -8px; }
}

@keyframes ttr-glow {
	0%, 100% { opacity: .65; }
	50% { opacity: 1; }
}

.tfm.ttr .ttr__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ttr-glow);
}

.tfm.ttr .ttr__title {
	margin: 0;
	font-family: "Inter", sans-serif;
	font-size: 44px;
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: 0;
	text-transform: none;
	color: #ffffff;
}

.tfm.ttr .ttr__hl {
	color: var(--ttr-glow);
}

.tfm.ttr .ttr__text {
	margin: 20px 0 0;
	font-size: 16px;
	line-height: 1.59;
}

.tfm.ttr .ttr__features {
	display: grid;
	gap: 14px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.tfm.ttr .ttr__features li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.45;
	color: #ffffff;
}

.tfm.ttr .ttr__tick {
	flex: 0 0 22px;
	margin-top: -1px;
}

.tfm.ttr .ttr__tick svg {
	display: block;
}

.tfm.ttr .ttr__tick circle {
	fill: color-mix(in srgb, var(--ttr-glow) 22%, transparent);
}

.tfm.ttr .ttr__tick path {
	stroke: var(--ttr-glow);
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tfm.ttr .ttr__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.tfm.ttr .ttr__chips li {
	margin: 0;
	padding: 7px 13px;
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	color: #ffffff;
}

/* ---------- Formulario ---------- */

.tfm.ttr .ttr__access {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: 48px 44px 40px;
}

.tfm.ttr .ttr__badge {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 7px;
	margin: 0 0 16px;
	padding: 6px 11px;
	border-radius: 8px;
	background: #e0f4f4;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--toscano-text-accent, #007b7e);
}

.tfm.ttr .ttr__form {
	display: flex;
	flex-direction: column;
}

.tfm.ttr .ttr__form[hidden] {
	display: none;
}

.tfm.ttr .ttr__form-title {
	margin: 0;
	font-family: "Inter", sans-serif;
	font-size: 26px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	color: var(--tfm-title);
}

.tfm.ttr .ttr__form-text {
	margin: 8px 0 22px;
	font-size: 14px;
	line-height: 1.55;
}

.tfm.ttr .ttr__stack {
	display: grid;
	gap: 14px;
}

.tfm.ttr .tfm__check {
	margin-top: 18px;
}

.tfm.ttr .tfm__check + .tfm__check {
	margin-top: 12px;
}

.tfm.ttr .ttr__note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 14px 0 0;
	font-size: 12px;
	line-height: 1.4;
	color: #8a9799;
}

.tfm.ttr .ttr__warn {
	margin: 0 0 16px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #fff4e5;
	font-size: 13px;
	color: #8a4b00;
}

/* ---------- Enviado: sobre que se dibuja y rayo que llega ---------- */

.tfm.ttr .ttr__done {
	min-height: 440px;
}

.tfm.ttr .ttr__env svg {
	display: block;
	overflow: visible;
}

.tfm.ttr .ttr__env-body,
.tfm.ttr .ttr__env-flap {
	stroke: var(--tfm-accent);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
}

.tfm.ttr .ttr__env-bolt {
	fill: var(--ttr-glow);
	opacity: 0;
	transform-box: fill-box;
	transform-origin: 50% 50%;
	transform: translateY(-14px) scale(.6);
}

.tfm.ttr .ttr__done.is-in .ttr__env-body {
	animation: tfm-draw .7s ease forwards;
}

.tfm.ttr .ttr__done.is-in .ttr__env-flap {
	animation: tfm-draw .45s ease .55s forwards;
}

.tfm.ttr .ttr__done.is-in .ttr__env-bolt {
	animation: ttr-bolt .5s cubic-bezier(.34, 1.56, .64, 1) .9s forwards;
}

@keyframes ttr-bolt {
	to { opacity: 1; transform: none; }
}

.tfm.ttr .ttr__done-title {
	margin: 22px 0 0;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--tfm-title);
}

.tfm.ttr .ttr__done .tfm__done-text {
	margin-top: 10px;
	font-size: 15px;
	color: var(--tfm-text);
}

/* ---------- Entrada (JS: .ttr--js → .is-in) ---------- */

.tfm.ttr.ttr--js .ttr__card {
	opacity: 0;
	transform: translateY(28px);
}

.tfm.ttr.ttr--js.is-in .ttr__card {
	opacity: 1;
	transform: none;
	transition: opacity .8s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
}

.tfm.ttr.ttr--js .ttr__info-inner > * {
	opacity: 0;
	transform: translateY(16px);
}

.tfm.ttr.ttr--js.is-in .ttr__info-inner > * {
	opacity: 1;
	transform: none;
	transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
}

.tfm.ttr.ttr--js.is-in .ttr__info-inner > :nth-child(2) { transition-delay: .1s; }
.tfm.ttr.ttr--js.is-in .ttr__info-inner > :nth-child(3) { transition-delay: .2s; }
.tfm.ttr.ttr--js.is-in .ttr__info-inner > :nth-child(4) { transition-delay: .3s; }
.tfm.ttr.ttr--js.is-in .ttr__info-inner > :nth-child(5) { transition-delay: .4s; }

.tfm.ttr.ttr--js .ttr__tick path {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
}

.tfm.ttr.ttr--js.is-in .ttr__tick path {
	animation: tfm-draw .5s ease forwards;
	animation-delay: calc(.6s + var(--i, 0) * .14s);
}

@media (prefers-reduced-motion: reduce) {
	.tfm.ttr .ttr__cover-book,
	.tfm.ttr .ttr__cover-glow {
		animation: none;
	}

	.tfm.ttr .ttr__env-body,
	.tfm.ttr .ttr__env-flap,
	.tfm.ttr.ttr--js .ttr__tick path {
		stroke-dashoffset: 0;
		animation: none !important;
	}

	.tfm.ttr .ttr__env-bolt {
		opacity: 1;
		transform: none;
		animation: none !important;
	}
}

/* ---------- Responsive ---------- */

@media (max-width: 1199px) {
	.tfm.ttr .ttr__info {
		padding: 44px 36px;
		gap: 28px;
	}

	.tfm.ttr .ttr__title {
		font-size: 38px;
	}

	.tfm.ttr .ttr__cover {
		width: 150px;
	}
}

@media (max-width: 1024px) {
	.tfm.ttr .ttr__card {
		grid-template-columns: minmax(0, 1fr);
		max-width: 720px;
	}

	.tfm.ttr .ttr__info-inner {
		max-width: none;
	}

	.tfm.ttr .ttr__done {
		min-height: 360px;
	}
}

@media (max-width: 767px) {
	.tfm.ttr {
		--ttr-pad: 72px;
		padding-right: 16px;
		padding-left: 16px;
	}

	.tfm.ttr .ttr__card {
		border-radius: 18px;
	}

	.tfm.ttr .ttr__info {
		padding: 36px 22px;
	}

	/* Móvil: el libro arriba, pequeño y centrado; el texto debajo */
	.tfm.ttr.ttr--cover .ttr__info {
		grid-template-columns: minmax(0, 1fr);
		gap: 26px;
	}

	.tfm.ttr .ttr__cover {
		grid-row: 1;
		grid-column: 1;
		justify-self: center;
		width: 132px;
	}

	.tfm.ttr .ttr__info-inner {
		grid-row: 2;
	}

	.tfm.ttr .ttr__title {
		font-size: 32px;
	}

	.tfm.ttr .ttr__text {
		font-size: 15px;
	}

	.tfm.ttr .ttr__access {
		padding: 32px 20px 26px;
	}

	.tfm.ttr .ttr__form-title {
		font-size: 22px;
	}

	.tfm.ttr .tfm__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
		margin-bottom: 12px;
	}

	.tfm.ttr .ttr__stack {
		gap: 12px;
	}

	.tfm.ttr .ttr__done {
		min-height: 320px;
	}
}

/* ==========================================================================
   Diseño compacto para ventana emergente (Popup de Elementor Pro)
   ========================================================================== */

/* La caja del Popup de Elementor, transparente: la tarjeta pone fondo, esquinas y sombra */
.elementor-popup-modal:has(.ttr--popup) .dialog-widget-content {
	background: transparent !important;
	box-shadow: none !important;
	overflow: visible;
}

.elementor-popup-modal:has(.ttr--popup) .dialog-message {
	padding: 0 !important;
}

/* La X de Elementor se oculta: la tarjeta lleva la suya (.ttr__x) */
.elementor-popup-modal:has(.ttr--popup) .dialog-close-button {
	display: none !important;
}

.tfm.ttr .ttr__x {
	position: absolute;
	z-index: 7;
	top: 16px;
	right: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 1px solid #dfe9eb;
	border-radius: 50%;
	background: #f4f8f8;
	box-shadow: none;
	color: var(--tfm-deep);
	cursor: pointer;
	transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1);
}

.tfm.ttr .ttr__x:hover,
.tfm.ttr .ttr__x:focus-visible {
	border-color: var(--tfm-accent);
	background: #e0f4f4;
	color: var(--tfm-accent);
	transform: rotate(90deg);
}

.tfm.ttr .ttr__x:focus-visible {
	outline: 2px solid var(--tfm-accent);
	outline-offset: 2px;
}

.tfm.ttr .ttr__x svg {
	display: block;
}

.tfm.ttr.ttr--popup.is-entering .ttr__x {
	animation: ttr-in-up .5s ease .9s both;
}

.tfm.ttr.ttr--popup.is-leaving .ttr__x {
	animation: ttr-out-fade .15s ease both;
}

@media (max-width: 767px) {
	/* Márgenes con los bordes de la pantalla y desplazamiento interno si no cabe */
	.elementor-popup-modal:has(.ttr--popup) {
		box-sizing: border-box;
		padding: 12px !important;
	}

	/* Elementor da al contenido 100vw (con la barra de scroll incluida) y lo posiciona
	   en absoluto: sin esto sale una barra horizontal dentro de la ventana */
	.elementor-popup-modal:has(.ttr--popup) .dialog-message {
		width: 100% !important;
		max-width: 100% !important;
	}

	.elementor-popup-modal:has(.ttr--popup) .dialog-widget-content {
		position: relative !important;
		top: auto !important;
		left: auto !important;
		width: 100% !important;
		max-width: 100% !important;
		max-height: calc(100vh - 24px);
		max-height: calc(100dvh - 24px);
		margin: 0 !important;
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	/* La X sobre la cabecera oscura */
	.tfm.ttr .ttr__x {
		top: 12px;
		right: 12px;
		width: 34px;
		height: 34px;
		border-color: rgba(255, 255, 255, .25);
		background: rgba(3, 45, 53, .45);
		color: #ffffff;
	}

	.tfm.ttr .ttr__x:hover,
	.tfm.ttr .ttr__x:focus-visible {
		border-color: #2fc4c7;
		background: rgba(3, 45, 53, .7);
		color: #ffffff;
	}

	.tfm.ttr.ttr--popup .ttr__info-inner {
		padding-right: 36px;
	}
}

/* ---------- Entrada de la ventana (script.js añade .is-entering al abrirse) ----------
   1. La tarjeta sube y escala; una línea de luz la recorre de arriba abajo («se energiza»).
   2. El libro cae girando hasta su sitio con un destello del halo; se encienden los rayos.
   3. Antetítulo, título y texto, uno tras otro.
   4. Campos en cascada; al llegar el botón, un destello lo cruza y el rayo se enciende. */

.tfm.ttr.ttr--popup.is-entering .ttr__card {
	animation: ttr-in-card .75s cubic-bezier(.16, .84, .24, 1) both;
}

.tfm.ttr.ttr--popup .ttr__card::after {
	content: "";
	position: absolute;
	z-index: 6;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, #2fc4c7 20%, #ffffff 50%, #2fc4c7 80%, transparent);
	box-shadow: 0 0 18px 4px rgba(47, 196, 199, .55);
	opacity: 0;
	pointer-events: none;
}

.tfm.ttr.ttr--popup .ttr__card {
	position: relative;
}

.tfm.ttr.ttr--popup.is-entering .ttr__card::after {
	animation: ttr-in-scan .9s cubic-bezier(.45, 0, .25, 1) .18s both;
}

.tfm.ttr.ttr--popup.is-entering .ttr__fx {
	animation: ttr-in-fade 1s ease .35s both;
}

.tfm.ttr.ttr--popup.is-entering .ttr__cover {
	animation: ttr-in-book 1s cubic-bezier(.2, .9, .25, 1.15) .3s both;
}

.tfm.ttr.ttr--popup.is-entering .ttr__cover-glow {
	animation: ttr-in-glow 1.3s ease-out .45s both;
}

.tfm.ttr.ttr--popup.is-entering .ttr__info-inner > *,
.tfm.ttr.ttr--popup.is-entering .ttr__form > :not(input):not(.tfm__hp) {
	animation: ttr-in-up .7s cubic-bezier(.16, .84, .24, 1) both;
	animation-delay: calc(.42s + var(--k, 0) * .07s);
}

.tfm.ttr.ttr--popup.is-entering .tfm__submit::before {
	animation: ttr-in-shine .9s ease calc(.6s + var(--k, 0) * .07s) both;
}

.tfm.ttr.ttr--popup.is-entering .tfm__bolt {
	animation: ttr-in-bolt 1.1s ease calc(.75s + var(--k, 0) * .07s) both;
}

@keyframes ttr-in-card {
	from { opacity: 0; transform: translateY(34px) scale(.94); }
	to { opacity: 1; transform: none; }
}

@keyframes ttr-in-scan {
	0% { top: 0; opacity: 0; }
	12% { opacity: 1; }
	85% { opacity: 1; }
	100% { top: 100%; opacity: 0; }
}

@keyframes ttr-in-fade {
	from { opacity: 0; }
}

@keyframes ttr-in-book {
	0% { opacity: 0; transform: translate(-26px, 46px) rotate(-20deg) scale(.7); }
	60% { opacity: 1; transform: translate(0, -6px) rotate(3deg) scale(1.04); }
	100% { opacity: 1; transform: none; }
}

@keyframes ttr-in-glow {
	0% { opacity: 0; transform: scale(.4); }
	45% { opacity: 1; transform: scale(1.18); }
	100% { opacity: .8; transform: scale(1); }
}

@keyframes ttr-in-up {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: none; }
}

@keyframes ttr-in-shine {
	from { left: -40%; }
	to { left: 120%; }
}

@keyframes ttr-in-bolt {
	0% { fill: transparent; filter: none; }
	35% { fill: #ffffff; filter: drop-shadow(0 0 6px #b8fbfc); }
	100% { fill: transparent; filter: none; }
}

/* ---------- Salida: «apagado eléctrico» (script.js añade .is-leaving antes de cerrar) ----------
   El contenido se desvanece, la tarjeta se pliega a una línea de luz en el centro, la
   línea se encoge hasta un punto y se apaga mientras se funde el fondo oscuro. */

.tfm.ttr.ttr--popup.is-leaving .ttr__info-inner > *,
.tfm.ttr.ttr--popup.is-leaving .ttr__form > :not(input):not(.tfm__hp),
.tfm.ttr.ttr--popup.is-leaving .ttr__done > * {
	animation: ttr-out-fade .22s ease both;
}

.tfm.ttr.ttr--popup.is-leaving .ttr__cover {
	animation: ttr-out-book .3s ease-in both;
}

.tfm.ttr.ttr--popup.is-leaving .ttr__card {
	animation: ttr-out-card .5s cubic-bezier(.6, 0, .35, 1) .14s both;
}

.tfm.ttr.ttr--popup.is-leaving .ttr__card::after {
	top: 50%;
	height: 3px;
	margin-top: -1.5px;
	animation: ttr-out-line .5s ease .14s both;
}

.elementor-popup-modal.ttr-leaving {
	animation: ttr-out-overlay .3s ease .38s both;
}

.elementor-popup-modal.ttr-leaving .dialog-close-button {
	opacity: 0;
	transition: opacity .15s ease;
}

@keyframes ttr-out-fade {
	to { opacity: 0; transform: translateY(-8px); }
}

@keyframes ttr-out-book {
	to { opacity: 0; transform: translateY(-26px) rotate(10deg) scale(.9); }
}

@keyframes ttr-out-card {
	0% { transform: none; filter: none; opacity: 1; }
	50% { transform: scaleY(.012); filter: brightness(2.4); opacity: 1; }
	80% { transform: scaleX(.2) scaleY(.012); filter: brightness(3); opacity: 1; }
	100% { transform: scaleX(0) scaleY(.012); filter: brightness(3); opacity: 0; }
}

@keyframes ttr-out-line {
	0% { opacity: 0; }
	40%, 85% { opacity: 1; }
	100% { opacity: 0; }
}

@keyframes ttr-out-overlay {
	to { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.tfm.ttr.ttr--popup.is-entering *,
	.tfm.ttr.ttr--popup.is-entering .ttr__card,
	.tfm.ttr.ttr--popup.is-entering .ttr__card::after {
		animation: none !important;
	}
}

/* Ya pedida o cerrada hace poco: la ventana no llega a pintarse (script.js) */
html.ttr-pop-off .elementor-popup-modal:has(.ttr--popup) {
	display: none !important;
}

.tfm.ttr.ttr--popup {
	--ttr-pad: 0px;
	padding: 0;
	background: transparent;
}

.tfm.ttr.ttr--popup .ttr__card {
	grid-template-columns: 300px minmax(0, 1fr);
	max-width: 860px;
	border-radius: 20px;
	box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55);
}

.tfm.ttr.ttr--popup .ttr__info,
.tfm.ttr.ttr--popup.ttr--cover .ttr__info {
	grid-template-columns: minmax(0, 1fr);
	align-content: center;
	gap: 22px;
	padding: 36px 30px;
}

.tfm.ttr.ttr--popup .ttr__cover {
	grid-row: 1;
	grid-column: 1;
	justify-self: start;
	width: 118px;
}

.tfm.ttr.ttr--popup .ttr__info-inner {
	grid-row: 2;
}

.tfm.ttr.ttr--popup .ttr__eyebrow {
	margin-bottom: 10px;
	font-size: 12px;
}

.tfm.ttr.ttr--popup .ttr__title {
	font-size: 29px;
}

.tfm.ttr.ttr--popup .ttr__text {
	margin-top: 12px;
	font-size: 14px;
	line-height: 1.55;
}

.tfm.ttr.ttr--popup .ttr__access {
	padding: 26px 32px 24px;
}

/* Título corto del formulario, en la misma fila que la X */
.tfm.ttr.ttr--popup .ttr__form-title {
	min-height: 38px;
	margin: 0 52px 16px 0;
	font-size: 19px;
	font-weight: 600;
	line-height: 38px;
}

.tfm.ttr.ttr--popup .tfm__input {
	height: 52px;
	padding-top: 21px;
	font-size: 14px;
}

.tfm.ttr.ttr--popup .tfm__label {
	top: 16px;
	font-size: 14px;
}

.tfm.ttr.ttr--popup .tfm__grid {
	gap: 12px;
	margin-bottom: 12px;
}

.tfm.ttr.ttr--popup .ttr__grid-mail {
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	margin-bottom: 0;
}

.tfm.ttr.ttr--popup .tfm__check {
	margin-top: 14px;
	font-size: 12px;
}

.tfm.ttr.ttr--popup .tfm__check + .tfm__check {
	margin-top: 10px;
}

.tfm.ttr.ttr--popup button.tfm__submit {
	height: 52px;
	margin-top: 18px;
}

.tfm.ttr.ttr--popup .ttr__note {
	margin-top: 10px;
}

.tfm.ttr.ttr--popup .ttr__done {
	min-height: 340px;
}

@media (max-width: 767px) {
	.tfm.ttr.ttr--popup .ttr__card {
		grid-template-columns: minmax(0, 1fr);
		border-radius: 16px;
	}

	/* Cabecera compacta: libro pequeño al lado del título */
	.tfm.ttr.ttr--popup .ttr__info,
	.tfm.ttr.ttr--popup.ttr--cover .ttr__info {
		grid-template-columns: 64px minmax(0, 1fr);
		gap: 16px;
		padding: 22px 20px;
	}

	.tfm.ttr.ttr--popup .ttr__cover {
		grid-row: 1;
		grid-column: 1;
		width: 64px;
	}

	.tfm.ttr.ttr--popup .ttr__info-inner {
		grid-row: 1;
		grid-column: 2;
	}

	.tfm.ttr.ttr--popup .ttr__title {
		font-size: 22px;
	}

	.tfm.ttr.ttr--popup .ttr__text {
		display: none;
	}

	.tfm.ttr.ttr--popup .ttr__access {
		padding: 22px 18px 18px;
	}

	.tfm.ttr.ttr--popup .ttr__form-title {
		min-height: 0;
		margin: 0 0 14px;
		font-size: 17px;
		line-height: 1.3;
	}

	.tfm.ttr.ttr--popup .tfm__grid:not(.ttr__grid-mail) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tfm.ttr.ttr--popup .ttr__grid-mail {
		grid-template-columns: minmax(0, 1fr);
	}

	.tfm.ttr.ttr--popup .ttr__done {
		min-height: 280px;
	}
}

/* ---------- Franja móvil (sustituye a la ventana automática en móvil) ----------
   Va en el <body>, fuera del widget: los botones llevan (0,2,2) para ganar al estilo
   global de botones del Kit de Elementor (también en :hover). */
.ttr-mbar {
	position: fixed;
	right: 12px;
	bottom: 12px;
	left: 12px;
	z-index: 9990; /* sobre Toscanito (9980), bajo las ventanas de Elementor */
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px 10px 10px;
	border-radius: 16px;
	background: linear-gradient(135deg, #032d35 0%, #064a54 100%);
	box-shadow: 0 18px 40px -12px rgba(3, 45, 53, .55), 0 0 0 1px rgba(255, 255, 255, .06);
	color: #ffffff;
	font-family: var(--toscano-font, "Inter", sans-serif);
	opacity: 0;
	transform: translateY(calc(100% + 24px));
	transition: transform .45s cubic-bezier(.22, 1, .36, 1), opacity .3s ease;
}

.ttr-mbar.is-in {
	opacity: 1;
	transform: none;
}

.ttr-mbar .ttr-mbar__img {
	display: flex;
	flex: 0 0 38px;
	align-items: center;
	justify-content: center;
	height: 50px;
}

.ttr-mbar .ttr-mbar__img img {
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35));
	transform: rotate(-6deg);
}

.ttr-mbar .ttr-mbar__text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.ttr-mbar .ttr-mbar__text small {
	font-size: 10px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #2fc4c7;
}

.ttr-mbar .ttr-mbar__text strong {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
	color: #ffffff;
}

body .ttr-mbar button.ttr-mbar__cta,
body .ttr-mbar button.ttr-mbar__cta:hover,
body .ttr-mbar button.ttr-mbar__cta:focus {
	flex: 0 0 auto;
	min-height: 40px;
	margin: 0;
	padding: 0 14px;
	border: 0;
	border-radius: 10px;
	background: var(--toscano-brand-teal, #009a9d);
	box-shadow: none;
	color: #ffffff;
	font-family: var(--toscano-font, "Inter", sans-serif);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
}

body .ttr-mbar button.ttr-mbar__x,
body .ttr-mbar button.ttr-mbar__x:hover,
body .ttr-mbar button.ttr-mbar__x:focus {
	position: absolute;
	top: -10px;
	right: -6px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 4px 12px rgba(3, 45, 53, .3);
	color: var(--toscano-brand-deep, #032d35);
	cursor: pointer;
}

/* Zona táctil de 44 px alrededor de la X */
.ttr-mbar .ttr-mbar__x::after {
	content: "";
	position: absolute;
	inset: -8px;
}

.ttr-mbar button:focus-visible {
	outline: 2px solid #2fc4c7;
	outline-offset: 2px;
}

/* Toscanito sube mientras se ve la franja */
html.ttr-mbar-on .tas {
	bottom: calc(var(--tas-b, 16px) + 84px);
}

.tas {
	transition: bottom .4s cubic-bezier(.22, 1, .36, 1);
}

@media (prefers-reduced-motion: reduce) {
	.ttr-mbar,
	.tas {
		transition: none;
	}
}
