/* ON Tabs Panel Widget — estilos estructurales.
   Los colores/tamaños definidos aquí son solo valores por defecto;
   los controles de Elementor (pestaña Estilo) los sobreescriben. */

.ontpw {
	font-family: inherit;
	box-sizing: border-box;
}
.ontpw *,
.ontpw *::before,
.ontpw *::after {
	box-sizing: border-box;
}

.ontpw-header {
	margin-bottom: 40px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.ontpw-header > * { max-width: 100%; }

.ontpw-eyebrow {
	color: #3B5FCB;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin: 0 0 14px;
}

.ontpw-title {
	color: #101B33;
	font-size: clamp(26px, 3.4vw, 40px);
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 16px;
}

.ontpw-subtitle {
	color: #6B7280;
	font-size: 16px;
	line-height: 1.6;
	max-width: 620px;
	margin: 0;
	width: 100%;
}

.ontpw-grid {
	display: grid;
	grid-template-columns: minmax(220px, 380px) 1fr;
	gap: 24px;
	align-items: start;
	text-align: left;
}

/* Lista de pestañas */
.ontpw-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ontpw-tab {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 16px 18px;
	background: #FFFFFF;
	border: 1px solid #E7EAF3;
	border-radius: 14px;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
	appearance: none;
}

.ontpw-tab:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(30, 45, 90, 0.08);
}

.ontpw-tab:focus-visible {
	outline: 2px solid #2E59C2;
	outline-offset: 2px;
}

.ontpw-tab.is-active {
	background: #EFF3FE;
	border-color: #C7D6FA;
}

.ontpw-badge {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 9px;
	background: #EEF1F8;
	color: #7C88A6;
	font-weight: 700;
	font-size: 14px;
	transition: background 0.2s ease, color 0.2s ease;
}

.ontpw-badge img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}

.ontpw-badge i,
.ontpw-badge svg {
	width: 1em;
	height: 1em;
}

.ontpw-tab.is-active .ontpw-badge {
	background: #2E59C2;
	color: #FFFFFF;
}

.ontpw-tab-label {
	font-size: 15.5px;
	font-weight: 600;
	color: #16213D;
}

.ontpw-tab.is-active .ontpw-tab-label {
	color: #101B33;
	font-weight: 700;
}

/* Panel derecho */
.ontpw-panel {
	background: linear-gradient(155deg, #182960, #0E1730);
	border-radius: 24px;
	padding: 36px 36px 40px;
	min-height: 340px;
	box-shadow: 0 24px 48px rgba(15, 25, 55, 0.28);
	position: relative;
	overflow: hidden;
}

.ontpw-panel-content { display: none; }
.ontpw-panel-content.is-active {
	display: block;
	animation: ontpw-fade 0.25s ease;
}

@keyframes ontpw-fade {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

.ontpw-panel-title {
	color: #FFFFFF;
	font-size: 26px;
	font-weight: 800;
	margin: 0 0 24px;
}

.ontpw-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.ontpw-card {
	background: #1F3363;
	border-radius: 14px;
	padding: 20px 22px;
}

.ontpw-card.is-solution { background: #22398C; }

.ontpw-card-label {
	display: block;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.ontpw-card p {
	margin: 0;
	color: #D7DEEF;
	font-size: 15px;
	line-height: 1.5;
}

.ontpw-card.is-solution p { color: #FFFFFF; font-weight: 600; }

.ontpw-label-1 { color: #9FB4E8; }
.ontpw-label-2 { color: #E2967D; }
.ontpw-label-3 { color: #7EE3B0; }
.ontpw-label-4 { color: #A3C3FF; }

/* Responsive */
@media (max-width: 860px) {
	.ontpw-grid { grid-template-columns: 1fr !important; }
	.ontpw-cards { grid-template-columns: 1fr; }
	.ontpw-panel { padding: 28px 24px 32px; }
}
