/**
 * Shortcodes styles.
 */

/* «Desarrollado por» del pie: mismo tamaño y colores que el copyright
   (diseño 2026: 13,5 px, blanco al 42 %, enlace al 62 % y rojo en hover). */
.sw-powered-by {
	display: inline-flex;
	font-family: "Poppins", sans-serif;
	align-items: center;
	gap: 0.3em;
	font-size: 13.5px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .42);
}

/* .sw-powered-by delante: el color de enlace del Kit (.elementor-kit-6 a)
   pesa más que una sola clase y lo pintaba rojo. */
.sw-powered-by .sw-powered-by__link {
	font-family: inherit;
	color: rgba(255, 255, 255, .62);
	font-weight: 400;
	text-decoration: none;
	transition: color .3s cubic-bezier(.22, .61, .36, 1);
}

.sw-powered-by *,
.sw-back-button * {
	font-family: inherit;
}

.sw-powered-by .sw-powered-by__link:hover,
.sw-powered-by .sw-powered-by__link:focus {
	color: var(--e-global-color-mlrojo2, #F5121F);
}

/* «Regresar»: enlace de texto con flecha, sin botón (pedido del cliente,
   ronda 17), como el «Leer más» de la portada: rojo, en hover pasa a tinta,
   la flecha se corre a la izquierda y crece un subrayado desde la izquierda.
   Es un <button>: el Kit de Elementor le pone fondo, borde y relleno de botón
   (.elementor-kit-6 button); body + atributo le ganan en especificidad. */
body .sw-back-button[data-sw-back-button] {
	font-family: "Poppins", sans-serif;
	appearance: none;
	-webkit-appearance: none;
	-webkit-tap-highlight-color: transparent;
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 0;
	padding: 6px 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	outline: none;
	color: var(--e-global-color-primary, #E30918);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: .01em;
	text-decoration: none;
	cursor: pointer;
	transition: color .3s cubic-bezier(.22, .61, .36, 1);
}
body .sw-back-button[data-sw-back-button]::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 2px;
	height: 1.5px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}
body .sw-back-button[data-sw-back-button]:hover,
body .sw-back-button[data-sw-back-button]:focus {
	border: 0;
	background: none;
	box-shadow: none;
	transform: none;
	color: var(--e-global-color-accent, #26221F);
}
body .sw-back-button[data-sw-back-button]:hover::after {
	transform: scaleX(1);
}
body .sw-back-button[data-sw-back-button]:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

.sw-back-button__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.15em;
	line-height: 1;
	transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}
.sw-back-button:hover .sw-back-button__icon {
	transform: translateX(-4px);
}

/**
 * Forms with floating placeholders and basic validations.
 * Add class "formsw" to a parent container; styles apply to any form inside it.
 * If the class is placed directly on a form, it is supported too.
 */
.formsw .sw-floating-field {
	position: relative;
	display: block;
	width: 100%;
}

.formsw textarea {
	resize: none !important;
}

.formsw .sw-floating-field input,
.formsw .sw-floating-field textarea {
	width: 100%;
	transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

.formsw .sw-floating-field input {
	padding-top: 1.15rem !important;
	padding-bottom: 0.45rem !important;
}

.formsw .sw-floating-field textarea {
	min-height: 118px;
	padding-top: 1.45rem !important;
	resize: none !important;
}

.formsw .sw-floating-label {
	position: absolute;
	z-index: 2;
	left: 0.95rem;
	top: 50%;
	max-width: calc(100% - 1.9rem);
	color: currentColor;
	font-family: inherit;
	font-size: 1em;
	line-height: 1;
	opacity: 0.62;
	overflow: hidden;
	pointer-events: none;
	text-overflow: ellipsis;
	transform: translateY(-50%);
	transform-origin: left top;
	transition: top 180ms ease, transform 180ms ease, font-size 180ms ease, opacity 180ms ease;
	white-space: nowrap;
}

.formsw .sw-floating-field textarea + .sw-floating-label {
	top: 1rem;
	transform: translateY(0);
}

.formsw .sw-floating-field.is-focused .sw-floating-label,
.formsw .sw-floating-field.has-value .sw-floating-label {
	top: 0.46rem;
	font-size: 0.72em;
	opacity: 0.82;
	transform: translateY(0);
}

.formsw .sw-floating-field.is-focused input,
.formsw .sw-floating-field.is-focused textarea {
	outline: none;
}
