/*
 * Plantilla "Página de producto" (template-producto.php).
 *
 * Réplica del layout que la página de asistencias tenía en Elementor: los
 * valores (paddings, anchos máximos, colores de fondo) salen de ese diseño.
 * Los bloques internos traen su propio CSS desde runa_shortcodes.
 */

.runa-producto {
	font-family: "Proxima Nova", sans-serif;
	color: var(--runa-ink);
	margin: 0;
	padding: 0;
	max-width: none;
}

/* Prefijado con el tipo: el kit de Elementor da margin-block-end a todo <p>. */
.runa-producto p.runa-producto__desc,
.runa-producto p.runa-producto__hero-desc,
.runa-producto h1,
.runa-producto h2 {
	margin: 0;
}

.runa-producto p.runa-producto__desc {
	margin-top: 16px;
}

/* Sección = franja a todo el ancho; el contenido se acota a 1140px como el kit. */
.runa-producto__section {
	padding: 4rem 2rem;
}

.runa-producto__inner {
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
}

.runa-producto__stack {
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.runa-producto__block {
	width: 100%;
}

/* ---------- Página protegida ---------- */

.runa-producto__gate {
	padding: 6rem 2rem;
}

.runa-producto__gate-title {
	margin-bottom: 24px;
	font-size: 40px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--runa-ink);
}

.runa-producto__gate input[type="password"] {
	min-width: 260px;
	padding: 12px 16px;
	border: 1px solid var(--runa-border);
	border-radius: var(--runa-radius-sm);
	font-size: 16px;
}

.runa-producto__gate input[type="submit"] {
	margin-left: 8px;
	padding: 12px 24px;
	border: 1px solid var(--runa-accent-theme);
	border-radius: var(--runa-radius-pill);
	background: var(--runa-accent-theme);
	color: #fff;
	font-size: 14px;
	font-weight: 200;
	cursor: pointer;
}

/* ---------- Encabezado de sección ---------- */

.runa-producto__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	width: 100%;
	margin: 0 auto;
}

.runa-producto__eyebrow {
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--runa-accent-theme);
	text-align: center;
}

.runa-producto__title {
	font-size: 40px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--runa-ink);
}

/* 16px: es lo que rinde el original, pese a que el widget declara 20px. */
.runa-producto__desc {
	max-width: 410px;
	margin-top: 16px;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--runa-ink);
}

.runa-producto__eyebrow--solo-movil {
	display: none;
}

/* ---------- Hero ---------- */

.runa-producto__section--hero {
	padding: 2rem 1rem 4rem;
}

.runa-producto__hero {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 20px;
}

/* Las dos columnas reparten a partes iguales el ancho menos el gap. */
.runa-producto__hero-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 20px;
	flex: 1 1 0;
	min-width: 0;
}

.runa-producto__hero-heading {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

/* El eyebrow va arriba del H1 en pantalla y después de él en el DOM. */
.runa-producto__hero-eyebrow {
	order: -1;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--runa-accent-theme);
}

.runa-producto__hero-title {
	font-size: 56px;
	font-weight: 700;
	line-height: 1;
	color: var(--runa-ink);
	text-wrap: auto;
}

.runa-producto__hero-desc {
	max-width: 500px;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
}

.runa-producto__hero-bullets {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.runa-producto__hero-bullets li {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--runa-accent-theme);
}

.runa-producto__hero-check {
	display: inline-flex;
	flex-shrink: 0;
	width: 15px;
	height: 15px;
}

.runa-producto__hero-check svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.runa-producto__hero-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	width: 100%;
	margin: 10px 0;
}

/*
 * Botón pill (DESIGN.md §8). Va prefijado con el contenedor y con el tipo `a`
 * para ganarle a `.elementor-kit-218466 a`, que si no pinta el texto de morado.
 */
.runa-producto a.runa-producto__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 180px;
	padding: 12px 24px;
	border: 1px solid #3b2f73;
	border-radius: var(--runa-radius-pill);
	background: transparent;
	color: #3b2f73;
	font-family: inherit;
	font-size: 14px;
	font-weight: 200;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background var(--runa-t-color), color var(--runa-t-color),
		border-color var(--runa-t-color);
}

.runa-producto a.runa-producto__btn:hover,
.runa-producto a.runa-producto__btn:focus {
	background: #3b2f73;
	color: #fff;
	border-color: #3b2f73;
	text-decoration: none;
}

/* Variante de acento: el amarillo de marca del hero, con la misma firma pill. */
.runa-producto a.runa-producto__btn--primario {
	background: #f5a623;
	border-color: #f5a623;
	color: #fff;
}

.runa-producto a.runa-producto__btn--primario:hover,
.runa-producto a.runa-producto__btn--primario:focus {
	background: transparent;
	color: #3b2f73;
	border-color: #3b2f73;
}

.runa-producto__hero-media {
	display: flex;
	align-items: center;
	flex: 1 1 0;
	min-width: 0;
}

.runa-producto__hero-media img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
}

/* Placeholder de media del repo: 16/10 sobre la superficie oscura. */
.runa-producto__placeholder {
	width: 100%;
	aspect-ratio: 16 / 10;
	background-color: var(--runa-surface, #352c60);
	border-radius: var(--runa-radius-media, 18px);
}

/* ---------- Secciones ---------- */

.runa-producto__section--logos {
	padding: 1rem;
	background: #f7f7f9;
}

.runa-producto__section--icc {
	background: #fff;
}

.runa-producto__section--vr {
	background: #e2e0fe;
}

.runa-producto__section--casos {
	padding: 4rem 1rem 5rem;
	background: #b9b2fb;
}

.runa-producto__section--spotlight {
	padding: 1rem;
	background: #afa9f6;
}

/* Sin contenido en la ficha, la franja entera desaparece. */
.runa-producto__section--spotlight:has(.runa-spotlight__content:not(:has(*))),
.runa-producto__section--spotlight:not(:has(.runa-spotlight)) {
	display: none;
}

.runa-producto__section--modulos {
	padding: 4rem 1rem 6rem;
	background: #fff;
}

.runa-producto__block--panel {
	max-width: 1000px;
	margin: -36px auto 0;
}

/*
 * Ajustes del panel de plataforma para esta plantilla. Van prefijados con el
 * contenedor para no alterar la variante lateral en las otras páginas que la
 * usan. El !important le gana al del propio componente.
 */
.runa-producto .runa-plataforma-panel--lateral .runa-plataforma-panel__heading {
	margin: 0 !important;
	font-size: 20px !important;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0;
	text-align: left;
	text-transform: none;
	color: #fff;
}

.runa-producto .runa-plataforma-panel--lateral .runa-plataforma-panel__title {
	font-size: 10px !important;
	font-weight: 500;
}

/*
 * En escritorio las columnas se centran en el hueco sobrante del panel. El
 * wrap pasa a flex para centrarlas también en vertical: el track es más bajo
 * que la columna del título y si no queda pegado arriba.
 */
@media (min-width: 768px) {
	.runa-producto .runa-plataforma-panel--lateral .runa-plataforma-panel-wrap {
		display: flex;
		align-items: center;
	}

	.runa-producto .runa-plataforma-panel--lateral .runa-plataforma-panel__track {
		flex: 1;
		justify-content: center;
	}
}

.runa-producto__faq {
	display: flex;
	flex-direction: row;
	gap: 20px;
}

.runa-producto__faq-col {
	flex: 1 1 0;
	min-width: 0;
}

.runa-producto__faq-title {
	font-size: 40px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--runa-ink);
}

/* ---------- Tablet ---------- */

@media (max-width: 1024px) {
	.runa-producto__hero {
		flex-direction: column;
		align-items: center;
	}

	.runa-producto__hero-copy {
		width: 100%;
		flex-basis: auto;
	}

	.runa-producto__hero-media {
		max-width: 100%;
	}

	.runa-producto__eyebrow--solo-escritorio {
		display: none;
	}

	.runa-producto__eyebrow--solo-movil {
		display: block;
	}
}

/* ---------- Móvil ---------- */

@media (max-width: 767px) {
	/* "MODULOS RUNA": mismo color y tamano que el eyebrow del panel
	   de plataforma, que lo sigue en la pagina. */
	.runa-producto__eyebrow--solo-movil {
		font-size: 14px;
		color: var(--runa-ink, #352C60);
		padding-bottom: 20px;
	}

	.runa-producto__section {
		padding: 4rem 1rem;
	}

	.runa-producto__eyebrow {
		font-size: 13px;
	}

	.runa-producto__title,
	.runa-producto__hero-title {
		font-size: 36px;
	}

	.runa-producto__desc,
	.runa-producto__hero-desc {
		max-width: 350px;
	}

	.runa-producto__section--hero {
		margin-top: 13px;
		padding: 0 1rem 4rem;
	}

	.runa-producto__hero-heading {
		gap: 0;
	}

	.runa-producto__hero-eyebrow {
		font-size: 13px;
	}

	.runa-producto__hero-bullets {
		flex-wrap: wrap;
		gap: 16px;
	}

	.runa-producto__hero-bullets li {
		font-size: 14px;
	}

	/* El CTA del hero no crece a todo el ancho como el resto de los
	   pills en movil; queda a 180px y centrado. */
	.runa-producto .runa-producto__hero-ctas a.runa-producto__btn {
		max-width: 180px;
	}

	.runa-producto__hero-ctas {
		justify-content: center;
	}

	/* DESIGN.md §8: en móvil el pill crece y se centra. */
	.runa-producto a.runa-producto__btn {
		width: 100%;
		padding: 20px;
		font-size: 16px;
	}

	.runa-producto__section--logos {
		padding: 3rem 1rem;
	}

	.runa-producto__block--icc,
	.runa-producto__block--quotes {
		margin-top: 32px;
	}

	.runa-producto__section--spotlight {
		padding: 4rem 1rem;
	}

	.runa-producto__block--carousel {
		margin-top: -48px;
	}

	.runa-producto__block--panel {
		margin-top: 0;
	}

	.runa-producto__faq {
		flex-direction: column;
	}

	.runa-producto__faq-title {
		font-size: 30px;
	}
}
