:root {
	--xsp-accent: #d97706;
	--xsp-text: #1a1a1a;
	--xsp-muted: #737373;
	--xsp-border: #eeeeee;
	--xsp-soft-border: #f5f5f5;
	--xsp-success: #22c55e;
}

html.xsp-modal-open,
html.xsp-modal-open body {
	overflow: hidden;
}

body.xsp-product-card .xsp-card,
body.xsp-product-card .xsp-card * {
	box-sizing: border-box;
}

body.xsp-product-card .xsp-card {
	width: 100%;
	margin: 0 0 14px;
	padding: 0;
	background: transparent;
	color: var(--xsp-text);
	font-size: 12.5px;
	line-height: 1.5;
}

body.xsp-product-card .xsp-card * {
	margin: 0;
	padding: 0;
}

.xsp-card-head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 10px;
	padding: 0 0 12px;
	margin-bottom: 10px;
	border-bottom: 1px solid var(--xsp-border);
}

.xsp-platform-icon {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
}

.xsp-platform-icon img,
.xsp-platform-icon svg {
	display: block;
	width: 24px !important;
	height: 24px !important;
	object-fit: contain;
	fill: #0078d4;
}

.xsp-separator {
	width: 1px;
	height: 15px;
	background: #d4d4d4;
	flex-shrink: 0;
}

.xsp-region {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12.5px;
	color: #525252;
}

.xsp-region strong {
	font-weight: 600;
	color: var(--xsp-text);
}

.xsp-online-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--xsp-success);
	box-shadow: 0 0 5px rgba(34, 197, 94, .5);
	flex-shrink: 0;
	animation: xsp-pulse 2.5s ease-in-out infinite;
}

@keyframes xsp-pulse {
	0%, 100% { box-shadow: 0 0 3px rgba(34, 197, 94, .35); }
	50% { box-shadow: 0 0 8px rgba(34, 197, 94, .7); }
}

.xsp-language-button {
	background: none !important;
	border: 0 !important;
	padding: 0 !important;
	font-size: 12.5px !important;
	font-weight: 400 !important;
	color: #525252 !important;
	cursor: pointer;
	min-height: auto !important;
	line-height: 1.5 !important;
	text-transform: none !important;
	box-shadow: none !important;
}

.xsp-language-button:hover {
	color: var(--xsp-text) !important;
}

.xsp-license-wrap {
	position: relative;
	display: inline-flex;
}

.xsp-license-button {
	display: inline-flex !important;
	align-items: center;
	gap: 4px;
	background: #fafafa !important;
	border: 1px solid #e5e5e5 !important;
	border-radius: 4px !important;
	padding: 2px 8px !important;
	min-height: auto !important;
	font-size: 11.5px !important;
	line-height: 1.5 !important;
	font-weight: 600 !important;
	color: var(--xsp-text) !important;
	cursor: pointer;
	text-transform: none !important;
	box-shadow: none !important;
}

.xsp-license-button:hover,
.xsp-license-wrap.is-open .xsp-license-button {
	border-color: #a3a3a3 !important;
}

.xsp-license-button svg {
	width: 12px;
	height: 12px;
	fill: #a3a3a3;
}

.xsp-license-popover {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	width: max-content;
	max-width: 310px;
	padding: 12px 14px;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	background: #fff;
	opacity: 0;
	visibility: hidden;
	transition: opacity .15s, visibility .15s;
	z-index: 9999;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
	font-weight: 400;
	white-space: normal;
	text-align: left;
	line-height: 1.45;
}

.xsp-license-popover::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 7px solid transparent;
	border-top-color: #fff;
}

.xsp-license-wrap:hover .xsp-license-popover,
.xsp-license-wrap:focus-within .xsp-license-popover,
.xsp-license-wrap.is-open .xsp-license-popover {
	opacity: 1;
	visibility: visible;
}

.xsp-license-row {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	padding: 6px 0;
	border-bottom: 1px solid var(--xsp-soft-border);
}

.xsp-license-row:last-child {
	border: 0;
	padding-bottom: 0;
}

.xsp-license-row:first-child {
	padding-top: 0;
}

.xsp-license-letter {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 4px;
	flex-shrink: 0;
	background: #f5f5f5;
	color: #404040;
	font-size: 10px;
	font-weight: 700;
}

.xsp-license-letter--current {
	background: #fef3c7;
	color: #92400e;
}

.xsp-license-copy {
	flex: 1;
	font-size: 11px;
}

.xsp-license-name {
	display: flex;
	align-items: center;
	gap: 5px;
	flex-wrap: wrap;
	margin-bottom: 1px;
	color: var(--xsp-text);
	font-weight: 600;
}

.xsp-current-badge {
	padding: 1px 5px;
	border-radius: 3px;
	background: var(--xsp-accent);
	color: #fff;
	font-size: 8.5px;
	font-weight: 700;
	letter-spacing: .02em;
}

.xsp-license-alt {
	color: var(--xsp-accent);
	font-size: 10.5px;
	font-weight: 600;
	text-decoration: none;
}

.xsp-license-alt:hover {
	text-decoration: underline;
}

.xsp-license-description {
	display: block;
	color: var(--xsp-muted);
	line-height: 1.35;
}

.xsp-features {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	margin-bottom: 8px;
}

.xsp-feature {
	display: flex;
	gap: 7px;
	align-items: first baseline;
	padding: 7px 0;
	border-bottom: 1px solid var(--xsp-soft-border);
}

.xsp-feature:nth-child(odd) {
	padding-right: 12px;
	border-right: 1px solid var(--xsp-soft-border);
}

.xsp-feature:nth-child(even) {
	padding-left: 12px;
}

.xsp-feature:nth-last-child(-n+2) {
	border-bottom: 0;
}

.xsp-feature-check {
	color: var(--xsp-accent);
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	flex-shrink: 0;
}

.xsp-feature strong {
	display: block;
	color: var(--xsp-text);
	font-size: 12.5px;
	line-height: 1.3;
}

.xsp-feature small {
	display: block;
	margin-top: 1px;
	color: var(--xsp-muted);
	font-size: 11px;
	line-height: 1.45;
}

.xsp-requirements {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	padding: 10px 4px 0;
	border-top: 1px solid var(--xsp-border);
	color: var(--xsp-muted);
	font-size: 11.5px;
	text-align: center;
}

.xsp-requirements-title {
	display: block;
	color: var(--xsp-text);
	font-weight: 600;
	line-height: 1.35;
}

.xsp-requirements-line {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 100%;
	line-height: 1.45;
}

.xsp-requirements-line svg {
	display: block;
	width: 14px;
	height: 14px;
	fill: #0078d4;
	flex: 0 0 14px;
}

.xsp-guarantee {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 10px;
	padding: 10px 4px 0;
	border-top: 1px solid var(--xsp-border);
	color: #525252;
	font-size: 11.5px;
	text-align: center;
}

.xsp-guarantee svg {
	width: 15px;
	height: 15px;
	fill: var(--xsp-accent);
	flex-shrink: 0;
}

.xsp-language-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99998;
}

.xsp-language-modal.is-open {
	display: block;
}

.xsp-language-backdrop {
	position: fixed;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	border: 0;
	background: rgba(15, 23, 42, .35);
	cursor: default;
}

.xsp-language-dialog {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 2;
	transform: translate(-50%, -50%);
	width: min(720px, 95vw);
	max-height: 85vh;
	overflow-y: auto;
	padding: 18px 18px 20px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 10px 40px rgba(15, 23, 42, .12);
	color: var(--xsp-text);
}

.xsp-language-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
}

.xsp-language-header h3 {
	margin: 0;
	font-size: 21px;
}

.xsp-language-subtitle {
	margin: 0 0 12px;
	color: #6b7280;
	font-size: 12px;
}

.xsp-language-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.xsp-language-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px 5px 10px;
	border: 1px solid #e5e5e5;
	border-radius: 9999px;
	background: #fafafa;
	font-size: 12.5px;
}

.xsp-language-close {
	min-height: auto !important;
	padding: 2px 6px !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #111 !important;
	font-size: 24px !important;
	line-height: 1 !important;
	cursor: pointer;
}

.xsp-sold-count {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 10px;
	color: #343434;
	font-size: 16px;
	line-height: 1.2;
}

.xsp-sold-count strong {
	font-weight: 700;
}

.xsp-flame {
	width: 17px;
	height: 17px;
	fill: #ff7a00;
	flex-shrink: 0;
}

.xsp-product-rating {
	margin-bottom: 10px;
}

.xsp-product-rating a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: inherit;
	text-decoration: none;
}

.xsp-stars {
	position: relative;
	display: inline-block;
	width: 110px;
	height: 22px;
	font-size: 22px;
	line-height: 1;
	letter-spacing: 0;
}

.xsp-stars::before,
.xsp-stars > span::before {
	content: "★★★★★";
	position: absolute;
	inset: 0;
	white-space: nowrap;
}

.xsp-stars::before {
	color: #d0d0d0;
}

.xsp-stars > span {
	position: absolute;
	inset: 0 auto 0 0;
	overflow: hidden;
	white-space: nowrap;
}

.xsp-stars > span::before {
	color: #ffd700;
}

.xsp-rating-text {
	color: #333;
	font-size: 15px;
}

body.xsp-product-card.single-product .summary .product_title {
	margin-bottom: 10px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

body.xsp-product-card.single-product .summary p.price {
	margin: 18px 0;
	color: var(--xsp-accent);
	font-weight: 700;
}

body.xsp-product-card.single-product form.cart {
	display: flex;
	align-items: stretch;
	gap: 10px;
	width: 100%;
	margin-top: 18px;
}

body.xsp-product-card.single-product form.cart .quantity {
	flex: 0 0 86px;
	margin: 0 !important;
}

body.xsp-product-card.single-product form.cart .quantity .qty {
	width: 100% !important;
	height: 58px !important;
	border-radius: 4px !important;
}

body.xsp-product-card.single-product form.cart .single_add_to_cart_button {
	flex: 1 1 auto;
	min-height: 58px;
	border-radius: 4px;
	background: var(--xsp-accent);
	text-transform: none;
	font-size: 18px;
	font-weight: 700;
}

body.xsp-product-card.single-product form.cart .single_add_to_cart_button:hover {
	filter: brightness(.92);
}

body.xsp-product-card.single-product .woocommerce-product-gallery__image img,
body.xsp-product-card.single-product .woocommerce-product-gallery img {
	width: 100% !important;
	height: auto !important;
	object-fit: contain !important;
	object-position: center !important;
}

@media (min-width: 993px) {
	body.xsp-product-card.xsp-skinny-layout .product .woocommerce-product-gallery {
		width: 40%;
	}

	body.xsp-product-card.xsp-skinny-layout .product .summary {
		width: 56%;
	}
}

@media (max-width: 640px) {
	body.xsp-product-card .xsp-card {
		margin-bottom: 16px;
		padding: 0;
		font-size: 13px;
	}

	.xsp-card-head {
		gap: 6px 8px;
		padding-bottom: 10px;
		margin-bottom: 8px;
	}

	.xsp-platform-icon img,
	.xsp-platform-icon svg {
		width: 23px !important;
		height: 23px !important;
	}

	.xsp-license-button {
		padding: 2px 7px !important;
		font-size: 11.5px !important;
	}

	.xsp-region,
	.xsp-language-button {
		font-size: 12.5px !important;
	}

	.xsp-separator--languages {
		display: none;
	}

	.xsp-language-button {
		flex-basis: 100%;
		text-align: left;
	}

	.xsp-features {
		grid-template-columns: 1fr;
		margin-bottom: 8px;
	}

	.xsp-feature,
	.xsp-feature:nth-child(even),
	.xsp-feature:nth-child(odd) {
		gap: 8px;
		padding: 8px 0;
		border-right: 0;
		border-bottom: 1px solid var(--xsp-soft-border);
	}

	.xsp-feature:last-child {
		border-bottom: 0;
	}

	.xsp-feature-check {
		font-size: 16px;
	}

	.xsp-feature strong {
		font-size: 14px;
		line-height: 1.3;
	}

	.xsp-feature small {
		font-size: 12px;
		line-height: 1.45;
	}

	.xsp-requirements {
		gap: 4px;
		padding: 11px 0 0;
		font-size: 12px;
	}

	.xsp-requirements-title {
		font-size: 13px;
	}

	.xsp-requirements-line {
		flex-wrap: wrap;
	}

	.xsp-guarantee {
		gap: 6px;
		margin-top: 11px;
		padding: 11px 0 0;
		font-size: 12px;
	}

	.xsp-license-popover {
		left: 0;
		transform: none;
		max-width: calc(100vw - 60px);
	}

	.xsp-license-popover::after {
		left: 24px;
		transform: none;
	}

	.xsp-sold-count {
		margin-bottom: 9px;
		font-size: 16px;
	}

	.xsp-stars {
		width: 96px;
		height: 19px;
		font-size: 19px;
	}

	.xsp-rating-text {
		font-size: 14px;
	}

	body.xsp-product-card.single-product .summary .product_title {
		margin-bottom: 9px;
		font-size: clamp(29px, 8vw, 38px);
		line-height: 1.08;
	}

	body.xsp-product-card.single-product .summary p.price {
		margin: 16px 0 20px;
	}

	body.xsp-product-card.single-product form.cart {
		gap: 8px;
		margin-top: 20px;
	}

	body.xsp-product-card.single-product form.cart .quantity {
		flex-basis: 82px;
	}

	body.xsp-product-card.single-product form.cart .quantity .qty,
	body.xsp-product-card.single-product form.cart .single_add_to_cart_button {
		min-height: 58px;
		height: 58px !important;
	}

	body.xsp-product-card.single-product form.cart .single_add_to_cart_button {
		padding-right: 12px;
		padding-left: 12px;
		font-size: 17px;
	}
}

@media (max-width: 420px) {
	body.xsp-product-card.single-product form.cart .quantity {
		flex-basis: 72px;
	}

	body.xsp-product-card.single-product form.cart .single_add_to_cart_button {
		font-size: 16px;
	}

	.xsp-language-dialog {
		width: 94vw;
		padding: 15px 15px 16px;
	}
}

/* ==========================================================
   V0.3.0 — AJUSTES ESPECÍFICOS PARA ESCRITORIO
   Mantiene intacto el diseño móvil de la v0.2.0.
   ========================================================== */

@media (min-width: 993px) {
	body.xsp-product-card.single-product .product-details-wrapper {
		align-items: flex-start;
	}

	body.xsp-product-card.single-product .summary {
		padding-top: 4px;
	}

	body.xsp-product-card.single-product .xsp-sold-count {
		margin-bottom: 14px;
		font-size: 19px;
	}

	body.xsp-product-card.single-product .xsp-flame {
		width: 20px;
		height: 20px;
	}

	body.xsp-product-card.single-product .summary .product_title {
		margin-bottom: 12px;
		font-size: clamp(38px, 3vw, 54px);
		line-height: 1.06;
		letter-spacing: -0.035em;
	}

	body.xsp-product-card.single-product .xsp-product-rating {
		margin-bottom: 15px;
	}

	body.xsp-product-card.single-product .xsp-stars {
		width: 125px;
		height: 25px;
		font-size: 25px;
	}

	body.xsp-product-card.single-product .xsp-rating-text {
		font-size: 17px;
	}

	body.xsp-product-card.single-product .summary p.price {
		margin: 20px 0 24px;
		font-size: clamp(30px, 2.3vw, 43px);
		line-height: 1;
	}

	body.xsp-product-card .xsp-card {
		margin-bottom: 18px;
		font-size: 15px;
	}

	body.xsp-product-card .xsp-card-head {
		gap: 8px 13px;
		padding-bottom: 16px;
		margin-bottom: 12px;
	}

	body.xsp-product-card .xsp-platform-icon img,
	body.xsp-product-card .xsp-platform-icon svg {
		width: 33px !important;
		height: 33px !important;
	}

	body.xsp-product-card .xsp-license-button {
		padding: 4px 10px !important;
		font-size: 14px !important;
	}

	body.xsp-product-card .xsp-license-button svg {
		width: 14px;
		height: 14px;
	}

	body.xsp-product-card .xsp-region,
	body.xsp-product-card .xsp-language-button {
		font-size: 14px !important;
	}

	body.xsp-product-card .xsp-separator {
		height: 18px;
	}

	body.xsp-product-card .xsp-online-dot {
		width: 9px;
		height: 9px;
	}

	body.xsp-product-card .xsp-features {
		margin-bottom: 10px;
	}

	body.xsp-product-card .xsp-feature {
		gap: 9px;
		min-height: 72px;
		padding-top: 11px;
		padding-bottom: 11px;
	}

	body.xsp-product-card .xsp-feature:nth-child(odd) {
		padding-right: 18px;
	}

	body.xsp-product-card .xsp-feature:nth-child(even) {
		padding-left: 18px;
	}

	body.xsp-product-card .xsp-feature-check {
		font-size: 19px;
	}

	body.xsp-product-card .xsp-feature strong {
		margin-bottom: 3px;
		font-size: 16px;
		line-height: 1.3;
	}

	body.xsp-product-card .xsp-feature small {
		font-size: 13.5px;
		line-height: 1.45;
	}

	body.xsp-product-card .xsp-requirements {
		gap: 5px;
		padding-top: 14px;
		font-size: 13.5px;
	}

	body.xsp-product-card .xsp-requirements-title {
		font-size: 14px;
	}

	body.xsp-product-card .xsp-requirements-line svg {
		width: 17px;
		height: 17px;
		flex-basis: 17px;
	}

	body.xsp-product-card .xsp-guarantee {
		gap: 7px;
		margin-top: 13px;
		padding-top: 13px;
		font-size: 13.5px;
	}

	body.xsp-product-card .xsp-guarantee svg {
		width: 17px;
		height: 17px;
	}

	body.xsp-product-card.single-product form.cart {
		gap: 12px;
		margin-top: 22px;
	}

	body.xsp-product-card.single-product form.cart .quantity {
		flex-basis: 96px;
	}

	body.xsp-product-card.single-product form.cart .quantity .qty,
	body.xsp-product-card.single-product form.cart .single_add_to_cart_button {
		height: 64px !important;
		min-height: 64px;
	}

	body.xsp-product-card.single-product form.cart .single_add_to_cart_button {
		font-size: 20px;
	}

	body.xsp-product-card.single-product .woocommerce-product-gallery__image img,
	body.xsp-product-card.single-product .woocommerce-product-gallery img {
		max-height: 700px;
		object-fit: contain !important;
	}
}

/* Ajuste intermedio para portátiles y pantallas estrechas */
@media (min-width: 993px) and (max-width: 1280px) {
	body.xsp-product-card.single-product .summary .product_title {
		font-size: 38px;
	}

	body.xsp-product-card .xsp-feature strong {
		font-size: 14px;
	}

	body.xsp-product-card .xsp-feature small,
	body.xsp-product-card .xsp-requirements,
	body.xsp-product-card .xsp-guarantee {
		font-size: 12px;
	}

	body.xsp-product-card .xsp-card-head {
		gap: 7px 9px;
	}

	body.xsp-product-card .xsp-region,
	body.xsp-product-card .xsp-language-button {
		font-size: 12.5px !important;
	}
}
