/**
 * Recomendador interactivo de kits de pesca. Mobile-first, sin dependencias.
 */

.dp-sel {
	--dp-sel-radius: 1.25rem;
	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 #f3dcb4;
	border-radius: var(--dp-sel-radius);
	box-shadow: 0 20px 40px -28px rgba(120, 70, 0, 0.45);
}

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

/* ---------- Cabecera + progreso ---------- */
.dp-sel__head {
	margin-bottom: 1.25rem;
	text-align: center;
}

.dp-sel__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-sel__title {
	margin: 0 0 1rem;
	font-size: 1.45rem;
	line-height: 1.2;
}

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

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

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

/* ---------- Paneles y opciones ---------- */
.dp-sel__panel[hidden] {
	display: none;
}

.dp-sel__panel {
	animation: dp-sel-in 0.35s ease both;
}

.dp-sel__question {
	margin: 0 0 1rem;
	font-size: 1.15rem;
	font-weight: 800;
	text-align: center;
	outline: none;
}

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

.dp-sel__option {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	width: 100%;
	min-height: 4.25rem;
	padding: 0.9rem 1rem;
	font: inherit;
	text-align: left;
	color: inherit;
	background: #fff;
	border: 2px solid #ece3d3;
	border-radius: 1rem;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.dp-sel__option:hover,
.dp-sel__option:focus-visible {
	border-color: #ee8e00;
	box-shadow: 0 10px 22px -14px rgba(238, 142, 0, 0.8);
	transform: translateY(-2px);
}

.dp-sel__option:focus-visible {
	outline: 3px solid #111827;
	outline-offset: 2px;
}

.dp-sel__option:active {
	transform: translateY(0);
}

.dp-sel__emoji {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	font-size: 1.5rem;
	background: #fff3dc;
	border-radius: 0.8rem;
}

.dp-sel__option-text {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
}

.dp-sel__option-text strong {
	font-size: 1rem;
	line-height: 1.25;
}

.dp-sel__option-text small {
	font-size: 0.85rem;
	color: #6b7280;
}

.dp-sel__link,
.dp-sel__restart {
	font: inherit;
	cursor: pointer;
}

.dp-sel__link {
	display: block;
	margin: 1rem auto 0;
	padding: 0.5rem 1rem;
	font-weight: 700;
	color: #6b7280;
	background: none;
	border: 0;
}

.dp-sel__link:hover {
	color: #ee8e00;
}

/* ---------- Resultado ---------- */
.dp-sel__summary {
	margin: 0 0 1rem;
	font-size: 0.85rem;
	text-align: center;
	color: #6b7280;
}

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

.dp-sel__card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 1.25rem;
	background: #fff;
	border: 1px solid #ece3d3;
	border-radius: 1rem;
	box-shadow: 0 14px 30px -22px rgba(16, 24, 40, 0.4);
}

.dp-sel__card--primary {
	border: 2px solid #ee8e00;
}

.dp-sel__ribbon {
	align-self: center;
	margin: -2rem 0 0.75rem;
	padding: 0.3rem 0.9rem;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #fff;
	background: #15803d;
	border-radius: 999px;
}

.dp-sel__card--alt .dp-sel__ribbon {
	background: #6b7280;
}

.dp-sel__media {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 12rem;
	margin-bottom: 1rem;
}

.dp-sel__media img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.dp-sel__media--ph {
	color: #ee8e00;
	background: linear-gradient(135deg, #fff3dc, #ffe2ad);
	border-radius: 0.9rem;
}

.dp-sel__ph-icon {
	width: 4.5rem;
	height: 4.5rem;
}

.dp-sel__product {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
	line-height: 1.3;
	text-align: center;
}

.dp-sel__reason {
	margin: 0 0 0.75rem;
	font-size: 0.95rem;
	text-align: center;
	color: #4b5563;
}

.dp-sel__benefits {
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.dp-sel__benefits li {
	position: relative;
	margin: 0 0 0.4rem;
	padding-left: 1.6rem;
	font-size: 0.95rem;
}

.dp-sel__benefits li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0.1rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.1rem;
	height: 1.1rem;
	font-size: 0.7rem;
	font-weight: 800;
	line-height: 1;
	color: #fff;
	background: #15803d;
	border-radius: 50%;
}

.dp-sel__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
	margin-top: 1.25rem;
}

.dp-sel__restart,
.dp-sel__jump {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.65rem 1.25rem;
	font-weight: 800;
	text-align: center;
	text-decoration: none;
	border-radius: 0.75rem;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.dp-sel__restart {
	color: #1f2937;
	background: #fff;
	border: 2px solid #d9cdb8;
}

.dp-sel__restart:hover {
	background: #f7efe0;
}

.dp-sel__jump {
	color: #8a4f00;
	background: #ffe9c2;
	border: 2px solid transparent;
}

.dp-sel__jump:hover {
	color: #6b3d00;
	background: #ffdfa6;
}

.dp-sel__restart:focus-visible,
.dp-sel__jump:focus-visible,
.dp-sel__link:focus-visible {
	outline: 3px solid #111827;
	outline-offset: 2px;
}

.dp-sel__noscript {
	margin: 1rem 0 0;
	font-size: 0.9rem;
	text-align: center;
}

@keyframes dp-sel-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dp-sel__panel {
		animation: none;
	}
	.dp-sel *,
	.dp-btn-amazon {
		transition: none !important;
	}
}

/* ---------- Tablet / escritorio ---------- */
@media (min-width: 768px) {
	.dp-sel {
		padding: 2rem;
	}

	.dp-sel__title {
		font-size: 1.9rem;
	}

	.dp-sel__options--2col {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.dp-sel__cards--two {
		grid-template-columns: 1.15fr 1fr;
		align-items: stretch;
	}

	.dp-sel__actions {
		flex-direction: row;
		justify-content: center;
	}
}
