/**
 * Recomendador de Carrete y Tabla de Tamaños (1000 a 10000).
 * Mobile-first, compatible con Bootstrap 5 y diseño consistente con selector-kits.
 */

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

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

.dp-reels-sel__head {
	margin-bottom: 1.25rem;
	text-align: center;
}

.dp-reels-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-reels-sel__title {
	margin: 0 0 0.75rem;
	font-size: 1.45rem;
	font-weight: 800;
	line-height: 1.25;
	color: #111827;
}

.dp-reels-sel__desc {
	margin: 0 auto;
	max-width: 38rem;
	font-size: 0.92rem;
	color: #4b5563;
	line-height: 1.4;
}

/* Opciones de Modalidad */
.dp-reels-sel__options {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.75rem;
	margin-top: 1.25rem;
}

@media (min-width: 640px) {
	.dp-reels-sel__options {
		grid-template-columns: repeat(2, 1fr);
	}
	.dp-reels-sel__option--full {
		grid-column: span 2;
	}
}

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

.dp-reels-sel__option:hover,
.dp-reels-sel__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-reels-sel__option.is-active {
	border-color: #ee8e00;
	background: #fff8ee;
	box-shadow: 0 0 0 2px rgba(238, 142, 0, 0.4);
}

.dp-reels-sel__option-icon {
	font-size: 1.5rem;
	line-height: 1;
	flex-shrink: 0;
}

.dp-reels-sel__option-body {
	flex: 1;
}

.dp-reels-sel__option-title {
	display: block;
	font-size: 0.92rem;
	font-weight: 800;
	color: #111827;
}

.dp-reels-sel__option-sub {
	display: block;
	margin-top: 0.15rem;
	font-size: 0.78rem;
	color: #6b7280;
	line-height: 1.3;
}

/* Panel de Resultados */
.dp-reels-result {
	margin-top: 1.5rem;
	animation: dp-reels-in 0.3s ease both;
}

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

.dp-reels-spec {
	padding: 1.15rem;
	background: #ffffff;
	border: 2px solid #fed7aa;
	border-radius: 1rem;
	box-shadow: 0 8px 24px -10px rgba(238, 142, 0, 0.25);
	margin-bottom: 1.25rem;
}

.dp-reels-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-reels-spec__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.65rem;
	margin-bottom: 0.85rem;
}

@media (min-width: 640px) {
	.dp-reels-spec__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

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

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

.dp-reels-spec__val {
	display: block;
	font-size: 1.05rem;
	font-weight: 900;
	color: #9a3412;
	line-height: 1.25;
}

.dp-reels-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;
}

/* Tarjetas de carretes */
.dp-reels-products {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
	.dp-reels-products {
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	}
}

.dp-reels-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-reels-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.15);
}

.dp-reels-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-reels-card__img {
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
}

.dp-reels-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-reels-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 0.9rem;
}

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

.dp-reels-card__title {
	font-size: 0.9rem;
	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.4rem;
}

.dp-reels-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	margin-top: auto;
	padding: 0.68rem 1rem;
	font-size: 0.88rem;
	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-reels-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-reels-card__prime {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	margin-top: 0.45rem;
	font-size: 0.72rem;
	color: #4b5563;
}

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