/**
 * Estilos específicos de la Calculadora Interactiva de Jigging.
 * Extiende y reutiliza tokens de selector-kits.css y amazon-cta.css.
 */

.dp-jig-calc {
	--dp-jig-accent: #ee8e00;
	--dp-jig-accent-dark: #b86a00;
	--dp-jig-bg-soft: #fff8ee;
	--dp-jig-border: #f3dcb4;
	position: relative;
	margin: 2rem 0;
	padding: 1.25rem;
	overflow: hidden;
	color: #1f2937;
	background:
		radial-gradient(120% 80% at 100% 0%, rgba(238, 142, 0, 0.12), transparent 60%),
		linear-gradient(180deg, #fffaf2 0%, #ffffff 55%);
	border: 1px solid var(--dp-jig-border);
	border-radius: 1.25rem;
	box-shadow: 0 20px 40px -28px rgba(120, 70, 0, 0.35);
}

.dp-jig-calc *,
.dp-jig-calc *::before,
.dp-jig-calc *::after {
	box-sizing: border-box;
}

.dp-jig-calc__head {
	margin-bottom: 1.25rem;
	text-align: center;
}

.dp-jig-calc__eyebrow {
	display: inline-block;
	margin: 0 0 0.5rem;
	padding: 0.25rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #8a4f00;
	background: #ffe9c2;
	border-radius: 999px;
}

.dp-jig-calc__title {
	margin: 0 0 0.85rem;
	font-size: 1.45rem;
	font-weight: 800;
	line-height: 1.25;
	color: #111827;
}

.dp-jig-calc__progress {
	height: 0.5rem;
	overflow: hidden;
	background: #f1e6d3;
	border-radius: 999px;
}

.dp-jig-calc__progress-bar {
	display: block;
	width: 25%;
	height: 100%;
	background: linear-gradient(90deg, #ee8e00, #ffb02e);
	border-radius: 999px;
	transition: width 0.35s ease;
}

.dp-jig-calc__step-label {
	margin: 0.5rem 0 0;
	font-size: 0.85rem;
	font-weight: 700;
	color: #6b7280;
}

/* Paneles */
.dp-jig-calc__panel[hidden] {
	display: none;
}

.dp-jig-calc__panel {
	animation: dp-jig-in 0.3s ease both;
}

@keyframes dp-jig-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.dp-jig-calc__question {
	margin: 0 0 1rem;
	font-size: 1.15rem;
	font-weight: 800;
	text-align: center;
	color: #1f2937;
}

.dp-jig-calc__options {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.75rem;
}

.dp-jig-calc__option {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	width: 100%;
	padding: 0.9rem 1rem;
	text-align: left;
	background: #ffffff;
	border: 1.5px solid #e5e7eb;
	border-radius: 0.9rem;
	cursor: pointer;
	transition: all 0.18s ease;
}

.dp-jig-calc__option:hover,
.dp-jig-calc__option:focus-visible {
	border-color: #ee8e00;
	background: #fffbf4;
	transform: translateY(-1px);
	box-shadow: 0 4px 14px -4px rgba(238, 142, 0, 0.35);
	outline: none;
}

.dp-jig-calc__option-icon {
	font-size: 1.6rem;
	line-height: 1;
	flex-shrink: 0;
}

.dp-jig-calc__option-body {
	flex: 1;
}

.dp-jig-calc__option-title {
	display: block;
	font-size: 0.98rem;
	font-weight: 800;
	color: #111827;
}

.dp-jig-calc__option-desc {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.82rem;
	color: #6b7280;
	line-height: 1.35;
}

/* Nav */
.dp-jig-calc__nav {
	margin-top: 1rem;
	display: flex;
	justify-content: flex-start;
}

.dp-jig-calc__btn-back {
	padding: 0.4rem 0.85rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: #6b7280;
	background: transparent;
	border: 1px solid #d1d5db;
	border-radius: 0.5rem;
	cursor: pointer;
	transition: all 0.15s ease;
}

.dp-jig-calc__btn-back:hover {
	background: #f3f4f6;
	color: #111827;
}

/* Tarjeta de Especificación Técnica */
.dp-jig-spec {
	margin-bottom: 1.25rem;
	padding: 1.15rem;
	background: #ffffff;
	border: 2px solid #fed7aa;
	border-radius: 1rem;
	box-shadow: 0 8px 24px -10px rgba(238, 142, 0, 0.25);
}

.dp-jig-spec__tag {
	display: inline-block;
	padding: 0.2rem 0.65rem;
	margin-bottom: 0.75rem;
	font-size: 0.75rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #c2410c;
	background: #ffedd5;
	border-radius: 999px;
}

.dp-jig-spec__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
	margin-bottom: 0.85rem;
}

@media (min-width: 576px) {
	.dp-jig-spec__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.dp-jig-spec__metric {
	padding: 0.75rem;
	background: #fffbf5;
	border: 1px solid #fde68a;
	border-radius: 0.75rem;
	text-align: center;
}

.dp-jig-spec__label {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	color: #78350f;
	text-transform: uppercase;
	margin-bottom: 0.25rem;
}

.dp-jig-spec__val {
	display: block;
	font-size: 1.15rem;
	font-weight: 900;
	color: #9a3412;
}

.dp-jig-spec__tip {
	margin: 0;
	padding: 0.65rem 0.85rem;
	font-size: 0.85rem;
	color: #4b5563;
	line-height: 1.45;
	background: #f9fafb;
	border-left: 3px solid #f97316;
	border-radius: 0.4rem;
}

/* Cuadrícula de Productos Recomendados */
.dp-jig-products {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

@media (min-width: 576px) {
	.dp-jig-products {
		grid-template-columns: 1fr 1fr;
	}
}

.dp-jig-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 4px 16px -6px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dp-jig-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.15);
}

.dp-jig-card__thumb {
	position: relative;
	width: 100%;
	height: 10.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fbfbfb;
	padding: 0.75rem;
	border-bottom: 1px solid #f3f4f6;
}

.dp-jig-card__img {
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
}

.dp-jig-card__badge {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	padding: 0.2rem 0.55rem;
	font-size: 0.7rem;
	font-weight: 800;
	color: #ffffff;
	background: #007185;
	border-radius: 999px;
}

.dp-jig-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 0.9rem;
}

.dp-jig-card__category {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 800;
	text-transform: uppercase;
	color: #ea580c;
	margin-bottom: 0.3rem;
}

.dp-jig-card__title {
	font-size: 0.92rem;
	font-weight: 800;
	line-height: 1.35;
	color: #111827;
	margin: 0 0 0.85rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.5rem;
}

.dp-jig-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	margin-top: auto;
	padding: 0.7rem 1rem;
	font-size: 0.9rem;
	font-weight: 800;
	color: #111827 !important;
	text-decoration: none !important;
	background: #ff9900;
	background: linear-gradient(180deg, #ffb338 0%, #ff9900 100%);
	border: 1px solid #d97706;
	border-radius: 999px;
	box-shadow: 0 2px 6px rgba(217, 119, 6, 0.35);
	cursor: pointer;
	transition: all 0.18s ease;
}

.dp-jig-card__btn:hover {
	background: linear-gradient(180deg, #ffa71a 0%, #e68a00 100%);
	box-shadow: 0 4px 12px rgba(217, 119, 6, 0.45);
	transform: translateY(-1px);
}

.dp-jig-card__prime {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	margin-top: 0.45rem;
	font-size: 0.72rem;
	color: #4b5563;
}

.dp-jig-card__prime-check {
	color: #059669;
	font-weight: 900;
}

/* Botón reiniciar */
.dp-jig-calc__restart {
	text-align: center;
}

.dp-jig-calc__btn-restart {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 1.15rem;
	font-size: 0.85rem;
	font-weight: 700;
	color: #4b5563;
	background: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 999px;
	cursor: pointer;
	transition: all 0.18s ease;
}

.dp-jig-calc__btn-restart:hover {
	background: #f9fafb;
	color: #111827;
	border-color: #9ca3af;
}
