/* Fase D — precisión editorial y flujo de compra. */
:root {
	--red: #b42318;
}

html {
	scroll-padding-top: 112px;
}

body.veltrio-theme-autonomous,
body.veltrio-theme-autonomous :where(button, input, select, textarea) {
	font-optical-sizing: auto;
}

body.veltrio-theme-autonomous :where(.mono, [class*="price"], .amount, .quantity, time) {
	font-variant-numeric: tabular-nums;
}

body.veltrio-theme-autonomous :where(h1, h2, h3) {
	text-wrap: balance;
}

body.veltrio-theme-autonomous p {
	text-wrap: pretty;
}

body.veltrio-theme-autonomous blockquote {
	hanging-punctuation: first;
}

/* El enlace de salto nunca asoma fuera del foco real de teclado. */
body.veltrio-theme-autonomous .skip-link:not(:focus):not(:focus-visible) {
	position: fixed !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	transform: none !important;
}

body.veltrio-theme-autonomous .skip-link:focus-visible {
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	margin: 0;
	padding: 11px 16px;
	clip: auto;
	clip-path: none;
}

/* Franja y cabecera con cambio de estado tras 120 px. */
body.veltrio-theme-autonomous .site-announcement {
	min-height: 32px;
	padding: 6px var(--gutter);
	color: var(--ink) !important;
	background: var(--paper-deep);
	border-bottom: 1px solid var(--rule);
	font: 500 11px/1.4 var(--mono);
}

body.veltrio-theme-autonomous .site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(250, 249, 246, .96) !important;
	border-bottom-color: var(--rule-strong) !important;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

body.veltrio-theme-autonomous .site-header__inner {
	min-height: 80px;
	transition: min-height .22s ease, padding .22s ease;
}

body.veltrio-theme-autonomous .site-brand,
body.veltrio-theme-autonomous .site-brand img {
	width: auto;
	height: 36px;
}

body.veltrio-theme-autonomous .site-brand img {
	transition: height .22s ease;
}

body.veltrio-theme-autonomous .site-header.is-compact .site-header__inner {
	min-height: 64px;
	padding-top: 5px;
	padding-bottom: 5px;
}

body.veltrio-theme-autonomous .site-header.is-compact .site-brand,
body.veltrio-theme-autonomous .site-header.is-compact .site-brand img {
	height: 30px;
}

/* Formularios del checkout, cuenta, valoraciones y revisión gratuita. */
body.veltrio-theme-autonomous :where(.woocommerce, .review-form, .comment-form) label {
	color: var(--ink);
	font: 500 13px/1.45 var(--sans);
}

body.veltrio-theme-autonomous :where(.woocommerce, .review-form, .comment-form) .required {
	color: var(--ink-soft) !important;
	font-size: 0 !important;
	text-decoration: none !important;
}

body.veltrio-theme-autonomous :where(.woocommerce, .review-form, .comment-form) .required::after {
	content: "(obligatorio)";
	font: 500 11px/1.4 var(--mono);
}

body.veltrio-theme-autonomous :where(.woocommerce, .review-form, .comment-form) :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
	min-height: 52px;
	padding: 11px 13px;
	color: var(--ink);
	background: #fff;
	border: 1px solid var(--rule-strong);
	border-radius: 0;
	box-shadow: none;
}

body.veltrio-theme-autonomous :where(.woocommerce, .review-form, .comment-form) textarea {
	min-height: 120px;
}

body.veltrio-theme-autonomous :where(.woocommerce, .review-form, .comment-form) :where(.form-row, p):has(:where(input, select, textarea):focus) > label {
	color: var(--stamp);
}

body.veltrio-theme-autonomous :where(.woocommerce, .review-form, .comment-form) :where(input, select, textarea):focus {
	border-color: var(--ink);
	outline: 0;
}

body.veltrio-theme-autonomous :where(.woocommerce, .review-form, .comment-form) :where(input, select, textarea):focus-visible {
	outline: 3px solid var(--violet-dark) !important;
	outline-offset: 3px !important;
}

body.veltrio-theme-autonomous .woocommerce-invalid :where(input.input-text, select, textarea) {
	border-color: var(--red) !important;
}

body.veltrio-theme-autonomous .woocommerce-error {
	border-left-color: var(--red) !important;
}

body.veltrio-theme-autonomous .woocommerce-error::before {
	color: var(--red) !important;
}

/* Checkout 7/5 y columna de pedido unificada por mejora progresiva. */
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) .editorial-page__header {
	padding: 48px 0;
	border-bottom: 1px solid #D8D2C8;
}

body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) .editorial-page__header-inner {
	max-width: 1344px;
}

body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) .editorial-page__layout {
	padding-top: 40px;
}

body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) .editorial-page h1 {
	max-width: none;
	font: 600 clamp(44px, 4.2vw, 56px)/1 var(--serif);
	letter-spacing: -.035em;
}

body.woocommerce-checkout .woocommerce form.checkout.is-veltrio-checkout {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(380px, 5fr);
	grid-template-areas: none;
	gap: 0 clamp(50px, 6vw, 88px);
	align-items: start;
}

body.woocommerce-checkout form.checkout.is-veltrio-checkout #customer_details {
	grid-column: 1;
	grid-row: 1;
	width: 100%;
	min-width: 0;
}

body.woocommerce-checkout #customer_details :where(.col-1, .woocommerce-billing-fields) {
	width: 100%;
	float: none;
}

body.woocommerce-checkout #customer_details .woocommerce-billing-fields__field-wrapper {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 18px;
}

body.woocommerce-checkout #customer_details .form-row {
	width: 100% !important;
	min-width: 0;
	margin: 0 0 18px;
	float: none !important;
}

body.woocommerce-checkout #customer_details :is(
	#billing_company_field,
	#billing_country_field,
	#billing_address_1_field,
	#billing_address_2_field,
	#billing_email_field,
	#order_comments_field
) {
	grid-column: 1 / -1;
}

body.woocommerce-checkout #customer_details .woocommerce-input-wrapper,
body.woocommerce-checkout #customer_details :where(input, select:not(.select2-hidden-accessible), textarea, .select2-container) {
	width: 100% !important;
}

body.woocommerce-checkout #customer_details select.select2-hidden-accessible {
	width: 1px !important;
	height: 1px !important;
}

body.woocommerce-checkout .veltrio-order-column {
	position: sticky;
	top: 112px;
	grid-column: 2;
	grid-row: 1;
	align-self: start;
	background: var(--paper-deep);
	border-top: 2px solid var(--ink);
}

body.woocommerce-checkout .veltrio-checkout-heading {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin: 0;
	font: 600 29px/1.08 var(--serif);
	letter-spacing: -.025em;
}

body.woocommerce-checkout .veltrio-checkout-heading .mono {
	color: var(--stamp);
	font: 500 12px/1.4 var(--mono);
	letter-spacing: .04em;
}

body.woocommerce-checkout .woocommerce-billing-fields > .veltrio-checkout-heading {
	margin-bottom: 30px;
}

body.woocommerce-checkout .veltrio-order-column > .veltrio-checkout-heading {
	padding: 25px 28px 17px;
}

body.woocommerce-checkout .veltrio-order-column .veltrio-review-label {
	margin: 0 28px;
	padding: 0 0 10px;
	color: var(--ink-soft);
	border-bottom: 1px solid var(--rule);
	font: 500 11px/1.4 var(--mono);
	letter-spacing: .04em;
	text-transform: uppercase;
}

body.woocommerce-checkout form.checkout.is-veltrio-checkout #order_review {
	position: static;
	width: 100%;
	padding: 0 28px 28px;
	background: transparent;
	border: 0;
}

body.woocommerce-checkout #order_review table.shop_table {
	border-top: 0;
}

body.woocommerce-checkout #order_review table.shop_table th,
body.woocommerce-checkout #order_review table.shop_table td {
	padding-inline: 0;
}

body.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info,
body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
	min-height: 0;
	margin: 0;
	padding: 12px 0;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--rule);
	font: 500 12px/1.55 var(--mono);
}

body.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info::before,
body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before {
	display: none;
}

body.woocommerce-checkout .woocommerce-form-login-toggle,
body.woocommerce-checkout .woocommerce-form-coupon-toggle {
	margin-bottom: 18px;
}

body.woocommerce-checkout .editorial-prose > .woocommerce > .woocommerce-notices-wrapper:empty {
	display: none;
	margin: 0;
}

body.woocommerce-checkout p.create-account .woocommerce-form__label-for-checkbox {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	gap: 10px;
}

body.woocommerce-checkout p.create-account #createaccount {
	width: 20px !important;
	height: 20px !important;
	min-width: 20px !important;
	min-height: 20px !important;
	margin: 0 !important;
	flex: 0 0 20px;
}

body.woocommerce-checkout .woocommerce-message {
	padding: 18px 18px 18px 46px !important;
	background: #F1EEE7 !important;
	border: 0 !important;
	border-left: 2px solid #5B3BC4 !important;
}

body.woocommerce-checkout .woocommerce-message::before {
	top: 18px;
	left: 18px;
}

body.veltrio-theme-autonomous .woocommerce-message,
body.veltrio-theme-autonomous .woocommerce-message:focus {
	background: #F1EEE7 !important;
	border: 0 !important;
	border-left: 2px solid #5B3BC4 !important;
	outline: 0 !important;
}

.veltrio-order-note {
	margin-top: 4px;
	border-bottom: 1px solid var(--rule);
}

.veltrio-order-note summary {
	display: flex;
	min-height: 52px;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	color: var(--violet-dark);
	font: 500 12px/1.4 var(--mono);
	list-style: none;
}

.veltrio-order-note summary::-webkit-details-marker { display: none; }
.veltrio-order-note summary::after { content: "+"; font-size: 19px; }
.veltrio-order-note[open] summary::after { content: "−"; }
.veltrio-order-note textarea { width: 100%; margin-bottom: 16px; }

body.woocommerce-checkout #payment {
	background: transparent !important;
}

body.woocommerce-checkout #payment ul.payment_methods {
	padding: 8px 0 0 !important;
	border: 0 !important;
}

body.woocommerce-checkout #payment ul.payment_methods > li {
	padding: 15px 0;
	border-bottom: 1px solid var(--rule);
}

body.woocommerce-checkout #payment input[type="radio"] {
	display: inline-grid !important;
	width: 20px;
	height: 20px;
	min-width: 20px !important;
	min-height: 20px !important;
	flex: 0 0 20px;
	margin: 0 9px 0 0;
	padding: 0 !important;
	place-content: center;
	appearance: none;
	-webkit-appearance: none;
	background: var(--paper) !important;
	border: 1px solid var(--ink) !important;
	border-radius: 50%;
	box-shadow: none !important;
	vertical-align: -4px;
}

body.woocommerce-checkout #payment input[type="radio"]::before {
	width: 10px;
	height: 10px;
	background: #5B3BC4;
	border-radius: 50%;
	content: "";
	transform: scale(0);
}

body.woocommerce-checkout #payment input[type="radio"]:checked::before { transform: scale(1); }
body.woocommerce-checkout #payment input[type="radio"]:focus-visible {
	outline: 3px solid #5B3BC4;
	outline-offset: 3px;
}

body.woocommerce-checkout .order-total small.includes_tax {
	display: block;
	margin-top: 6px;
	color: var(--ink-soft);
	font: 500 11px/1.5 var(--mono);
}

body.woocommerce-checkout #payment div.payment_box {
	margin: 12px 0 0 !important;
	padding: 0 0 0 29px !important;
	color: var(--ink-soft) !important;
	background: transparent !important;
	font-size: 14px;
	line-height: 1.6;
}

body.woocommerce-checkout #payment div.payment_box::before { display: none !important; }

body.woocommerce-checkout .vt-renuncia-desistimiento,
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
	margin: 18px 0 !important;
	padding: 16px 16px 16px 18px !important;
	color: var(--ink) !important;
	background: var(--paper-deep) !important;
	border: 0 !important;
	border-left: 2px solid var(--stamp) !important;
	border-radius: 0 !important;
	font-size: 14px !important;
	line-height: 1.6 !important;
}

body.woocommerce-checkout .vt-renuncia-desistimiento label,
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label {
	display: grid !important;
	grid-template-columns: 20px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	font-size: 14px;
	line-height: 1.6;
}

body.woocommerce-checkout .vt-renuncia-desistimiento input[type="checkbox"],
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
	position: static !important;
	width: 20px !important;
	height: 20px !important;
	margin: 2px 0 0 !important;
	border-radius: 0 !important;
}

body.woocommerce-checkout #place_order {
	width: 100%;
	min-height: 56px;
	margin-top: 8px;
	color: var(--paper) !important;
	background: var(--ink) !important;
	border-color: var(--ink) !important;
}

.veltrio-order-assurance {
	margin: 10px 0 0;
	color: var(--ink-soft);
	font: 500 11px/1.55 var(--mono);
	text-align: center;
}

/* Carrito como recibo 7/5. */
body.woocommerce-cart .editorial-prose > .woocommerce:has(.woocommerce-cart-form) {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(350px, 5fr);
	gap: 0 clamp(46px, 6vw, 84px);
	align-items: start;
}

body.woocommerce-cart .woocommerce-notices-wrapper,
body.woocommerce-cart .woocommerce-form-coupon-toggle {
	grid-column: 1 / -1;
}

body.woocommerce-cart .woocommerce-cart-form {
	grid-column: 1;
	min-width: 0;
}

body.woocommerce-cart .cart-collaterals {
	position: sticky;
	top: 112px;
	display: block;
	grid-column: 2;
	width: 100%;
	margin: 0;
}

body.veltrio-theme-autonomous .woocommerce .cart-collaterals .cart_totals {
	width: 100%;
	padding: 28px;
}

body.woocommerce-cart table.cart thead th {
	color: var(--ink-soft);
	font: 500 11px/1.4 var(--mono);
	letter-spacing: .035em;
	text-transform: uppercase;
}

body.woocommerce-cart table.cart td.product-thumbnail img,
body.woocommerce-cart .veltrio-cart-still-life {
	width: 72px !important;
	height: 72px !important;
	object-fit: cover;
}

@media (min-width: 761px) {
	body.woocommerce-cart table.cart td.product-thumbnail {
		width: 96px;
		min-width: 96px;
	}

	body.woocommerce-cart table.cart td.product-thumbnail img,
	body.woocommerce-cart .veltrio-cart-still-life {
		max-width: none !important;
	}
}

body.woocommerce-cart table.cart td.product-name > a {
	color: var(--ink);
	font: 500 22px/1.08 var(--serif);
}

body.woocommerce-cart table.cart .variation,
.veltrio-cart-sku {
	display: block;
	margin: 7px 0 0;
	color: var(--ink-soft);
	font: 500 11px/1.55 var(--mono);
}

body.woocommerce-cart table.cart :where(.product-price, .product-subtotal) {
	font: 500 13px/1.4 var(--mono);
	font-variant-numeric: tabular-nums;
}

body.veltrio-theme-autonomous .woocommerce a.remove.veltrio-remove-link {
	display: inline-flex;
	width: auto;
	height: 44px;
	align-items: center;
	color: var(--ink-soft) !important;
	font: 500 11px/1 var(--mono);
	text-decoration: underline;
	text-decoration-color: var(--rule-strong);
	text-underline-offset: 4px;
}

body.veltrio-theme-autonomous .woocommerce a.remove.veltrio-remove-link:hover {
	color: var(--red) !important;
	background: transparent;
}

.veltrio-quantity-stepper {
	display: inline-grid;
	grid-template-columns: 44px 44px 44px;
	border: 1px solid var(--rule-strong);
}

.veltrio-quantity-stepper button,
body.veltrio-theme-autonomous .woocommerce .veltrio-quantity-stepper .qty {
	width: 44px !important;
	height: 44px;
	min-height: 44px;
	margin: 0;
	padding: 0;
	color: var(--ink);
	background: #fff;
	border: 0;
	border-radius: 0;
	font: 500 15px/1 var(--mono);
	text-align: center;
}

.veltrio-quantity-stepper button { cursor: pointer; }
.veltrio-quantity-stepper button:hover { background: var(--paper-deep); }

.veltrio-cart-coupon {
	margin-right: auto;
	text-align: left;
}

.veltrio-cart-coupon summary {
	display: flex;
	min-height: 44px;
	align-items: center;
	cursor: pointer;
	color: var(--violet-dark);
	font: 500 12px/1.4 var(--mono);
	list-style: none;
}

.veltrio-cart-coupon summary::-webkit-details-marker { display: none; }
.veltrio-cart-coupon summary::after { margin-left: 10px; content: "+"; }
.veltrio-cart-coupon[open] summary::after { content: "−"; }

.veltrio-cart-coupon .coupon-error-notice {
	width: 100%;
	margin: 2px 0 0;
	padding: 9px 11px;
	color: var(--red);
	background: #fff6f4;
	border-left: 2px solid var(--red);
	font: 500 12px/1.55 var(--mono);
}

body.veltrio-theme-autonomous .woocommerce-cart table.cart td.actions .veltrio-cart-coupon .coupon {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 8px 0 12px;
}

body.veltrio-theme-autonomous .woocommerce-cart table.cart td.actions .veltrio-cart-coupon .coupon .input-text {
	width: 280px !important;
}

body.woocommerce-cart table.cart td.actions > .button {
	float: right;
	min-height: 44px;
	color: var(--ink) !important;
	background: transparent !important;
	border-color: var(--rule-strong) !important;
	font-size: 12px;
}

body.woocommerce-cart table.cart td.actions > .button:disabled {
	opacity: .5;
}

body.woocommerce-cart .cart_totals h2 {
	font: 600 28px/1.05 var(--serif);
}

body.woocommerce-cart .cart_totals .order-total th,
body.woocommerce-cart .cart_totals .order-total td {
	font: 600 28px/1.05 var(--serif);
}

body.woocommerce-cart .cart_totals .order-total small.includes_tax {
	display: block;
	margin-top: 8px;
	color: var(--ink-soft);
	font: 500 11px/1.5 var(--mono);
}

/* Cuenta: entrada editorial y panel con navegación marcada. */
body.woocommerce-account #customer_login {
	grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
	gap: clamp(46px, 7vw, 110px);
}

body.woocommerce-account #customer_login form {
	padding: 26px 0 0;
	background: transparent;
	border-top: 2px solid var(--ink);
}

body.woocommerce-account #customer_login h2 {
	font-size: 29px;
	line-height: 1.08;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li {
	position: relative;
}

body.woocommerce-account.logged-in .editorial-prose > .woocommerce {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: clamp(40px, 6vw, 90px);
	align-items: start;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation {
	grid-column: 1;
	grid-row: 1;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-content {
	grid-column: 2;
	grid-row: 1;
}

body.woocommerce-account .woocommerce-MyAccount-navigation .is-active::before {
	position: absolute;
	top: -1px;
	bottom: -1px;
	left: 0;
	width: 2px;
	background: var(--stamp);
	content: "";
}

body.woocommerce-account .woocommerce-MyAccount-navigation a {
	padding: 0 14px;
}

body.woocommerce-account .woocommerce-orders-table {
	display: block;
	border-top: 2px solid var(--ink) !important;
}

body.woocommerce-account .woocommerce-orders-table thead { display: none; }
body.woocommerce-account .woocommerce-orders-table tbody { display: block; }
body.woocommerce-account .woocommerce-orders-table tr {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr auto;
	gap: 18px;
	align-items: center;
	padding: 20px 0;
	border-bottom: 1px solid var(--rule);
}

body.woocommerce-account .woocommerce-orders-table td {
	display: block;
	padding: 0 !important;
	border: 0 !important;
}

/* Ficha: compra fija durante la descripción y plan como radios. */
body.single-product.veltrio-theme-autonomous .woocommerce div.product .veltrio-product-gallery {
	position: static;
	grid-column: 1;
	grid-row: 1;
	width: 100%;
	margin: 0;
}

body.single-product .veltrio-product-gallery .woocommerce-product-gallery__wrapper {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

body.single-product .veltrio-product-gallery .veltrio-product-gallery__editorial {
	grid-column: 1 / -1;
	background-image: var(--veltrio-product-image) !important;
	background-position: center !important;
	background-repeat: no-repeat !important;
	background-size: cover !important;
}

body.single-product .veltrio-product-gallery .veltrio-product-gallery__editorial img {
	display: block;
	opacity: 1 !important;
}

body.single-product .veltrio-product-gallery .woocommerce-product-gallery__image:not(.veltrio-product-gallery__editorial) {
	width: 100% !important;
	margin: 0;
	float: none !important;
}

body.single-product .veltrio-product-gallery .woocommerce-product-gallery__image:not(.veltrio-product-gallery__editorial) img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

body.single-product.veltrio-theme-autonomous .woocommerce div.product div.summary {
	position: sticky;
	top: 112px;
	grid-column: 2;
	grid-row: 1 / span 2;
	align-self: start;
	max-width: 600px;
}

body.single-product.veltrio-theme-autonomous .woocommerce div.product .woocommerce-tabs {
	grid-column: 1;
	grid-row: 2;
	width: 100%;
	margin-top: 64px;
}

body.single-product .woocommerce-Tabs-panel {
	max-width: 68ch;
}

body.single-product .woocommerce-Tabs-panel > h2:first-child {
	display: none;
}

/* El contenido heredado trae colores inline de la tabla oscura anterior. */
body.single-product .woocommerce-Tabs-panel table thead strong {
	color: var(--ink) !important;
}

body.single-product #tab-description p[style*="color"] {
	color: var(--ink-soft) !important;
}

body.single-product #tab-description p[style*="color"] strong {
	color: inherit !important;
}

body.single-product #tab-description p[style*="color"] a {
	color: var(--violet-dark) !important;
}

body.single-product .woocommerce-tabs ul.tabs li a {
	font: 500 12px/1.4 var(--mono) !important;
}

body.single-product .woocommerce-tabs ul.tabs li.active a {
	border-bottom-width: 1px !important;
	border-color: var(--stamp) !important;
}

.js body.single-product select.veltrio-select-enhanced {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
}

.veltrio-plan-options {
	margin: 0 0 18px;
	padding: 0;
	border: 0;
	border-top: 2px solid var(--ink);
}

.veltrio-plan-options legend {
	width: 100%;
	padding: 0 0 10px;
	font: 500 12px/1.4 var(--mono);
}

body.single-product .variations tr:has(.veltrio-plan-options) > th.label {
	display: none !important;
}

.veltrio-plan-option {
	position: relative;
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	min-height: 56px;
	padding: 8px 12px 8px 10px;
	border-bottom: 1px solid #D8D2C8;
	border-left: 2px solid transparent;
	cursor: pointer;
}

body.single-product.veltrio-theme-autonomous .woocommerce div.product form.cart .variations .veltrio-plan-option {
	display: grid;
	width: 100%;
	margin: 0;
}

.veltrio-plan-option input {
	position: absolute;
	top: 50%;
	left: 10px;
	z-index: 1;
	width: 20px;
	height: 20px;
	margin: 0;
	padding: 0;
	cursor: pointer;
	opacity: 0;
	transform: translateY(-50%);
}

.veltrio-plan-option input:disabled { cursor: default; }

.veltrio-plan-option__radio {
	position: relative;
	display: block;
	width: 20px;
	height: 20px;
	background: #fff;
	border: 1px solid var(--ink);
	border-radius: 50%;
}

.veltrio-plan-option input:checked + .veltrio-plan-option__radio::after {
	position: absolute;
	inset: 4px;
	background: #5B3BC4;
	border-radius: 50%;
	content: "";
}

.veltrio-plan-option input:focus-visible + .veltrio-plan-option__radio {
	outline: 3px solid #5B3BC4;
	outline-offset: 3px;
}

.veltrio-plan-option__name { font: 600 16px/1.35 var(--sans); }
.veltrio-plan-option__price {
	justify-self: end;
	font: 500 13px/1.35 var(--mono);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.veltrio-plan-option__price del { color: var(--ink-soft); text-decoration-thickness: 1px; }
.veltrio-plan-option__price ins { color: var(--ink); text-decoration: none; }
.veltrio-plan-option.is-selected { background: #F1EEE7; border-left-color: #5B3BC4; }
.veltrio-plan-option.is-informative { color: var(--ink-soft); cursor: default; }
.veltrio-plan-option.is-informative .veltrio-plan-option__radio { border-color: #8D8791; background: #F1EEE7; }
.veltrio-plan-option.is-informative .veltrio-plan-option__radio::after {
	position: absolute;
	top: 9px;
	left: 5px;
	width: 8px;
	height: 1px;
	background: #8D8791;
	content: "";
}
.veltrio-plan-option__download { color: #5B3BC4; font-weight: 600; text-underline-offset: 3px; }

body.single-product .reset_variations {
	min-height: 0;
	padding: 5px 0;
	color: #5C5761 !important;
	font: 500 12px/1.4 var(--mono);
}

body.single-product .single_add_to_cart_button.disabled,
body.single-product .single_add_to_cart_button:disabled {
	color: var(--paper) !important;
	background: var(--rule-strong) !important;
	border-color: var(--rule-strong) !important;
}

body.single-product.veltrio-theme-autonomous .woocommerce .woocommerce-variation-price .price {
	color: var(--ink) !important;
	font: 600 24px/1.15 var(--serif) !important;
	font-variant-numeric: tabular-nums;
}

body.single-product.veltrio-theme-autonomous .woocommerce .woocommerce-variation-price .woocommerce-price-suffix {
	color: #5C5761 !important;
	font: 500 12px/1.4 var(--mono) !important;
	white-space: nowrap;
}

html body.single-product.veltrio-theme-autonomous .woocommerce div.product .woocommerce-variation-price .price small.woocommerce-price-suffix {
	color: #5C5761 !important;
	font-family: var(--mono) !important;
	font-size: 12px !important;
	font-style: normal !important;
	font-weight: 500 !important;
	line-height: 1.4 !important;
}

/* Bloques heredados del contenido largo: el contenido no cambia, solo su piel. */
body.single-product .woocommerce-Tabs-panel div:has(> table) {
	color: var(--ink) !important;
	background: var(--paper-deep) !important;
	border-top: 2px solid var(--ink) !important;
	border-radius: 0 !important;
}

body.single-product .woocommerce-Tabs-panel table {
	width: 100%;
	color: var(--ink) !important;
	background: transparent !important;
	border-collapse: collapse;
}

body.single-product .woocommerce-Tabs-panel table :where(thead, tbody, tr, th, td) {
	color: var(--ink) !important;
	background: transparent !important;
}

body.single-product .woocommerce-Tabs-panel table :where(th, td) {
	padding: 12px !important;
	border: 0 !important;
	border-bottom: 1px solid var(--rule) !important;
}

body.single-product .woocommerce-Tabs-panel table .is-check {
	color: var(--ink) !important;
	font-weight: 700;
}

body.single-product .woocommerce-Tabs-panel table .is-dash {
	color: var(--rule-strong) !important;
	font: 500 13px/1 var(--mono);
}

body.single-product .woocommerce-Tabs-panel div[style*="background:#f0f4ff"],
body.single-product .woocommerce-Tabs-panel div[style*="background: #f0f4ff"] {
	color: var(--ink) !important;
	background: var(--paper-deep) !important;
	border: 0 !important;
	border-left: 2px solid var(--stamp) !important;
	border-radius: 0 !important;
}

body.single-product .woocommerce-Tabs-panel div[style*="background:#f0f4ff"] p,
body.single-product .woocommerce-Tabs-panel div[style*="background: #f0f4ff"] p {
	color: var(--ink) !important;
}

/* Avisos editoriales de las descripciones corta y larga, sin colores heredados. */
body.single-product :is(.woocommerce-product-details__short-description, #tab-description)
	:is(p, div)[style*="background"] {
	color: var(--ink) !important;
	background: #F1EEE7 !important;
	border: 0 !important;
	border-left: 2px solid #5B3BC4 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

body.single-product :is(.woocommerce-product-details__short-description, #tab-description)
	:is(p, div)[style*="background"] :where(span, strong) {
	color: inherit !important;
}

body.single-product :is(.woocommerce-product-details__short-description, #tab-description)
	:is(p, div)[style*="background"] a {
	color: #5B3BC4 !important;
}

body.single-product .woocommerce-Tabs-panel blockquote[style*="#10b981"] {
	position: relative;
	margin: 26px 0 !important;
	padding: 22px 0 22px 42px !important;
	border: 0 !important;
	border-top: 2px solid var(--ink) !important;
}

body.single-product .woocommerce-Tabs-panel blockquote[style*="#10b981"]::before {
	position: absolute;
	top: 10px;
	left: -4px;
	color: var(--violet);
	content: "«";
	font: italic 500 64px/.8 var(--serif);
}

body.single-product .woocommerce-Tabs-panel blockquote[style*="#10b981"] > p:first-child {
	font: 400 18px/1.6 var(--sans);
}

body.single-product .woocommerce-Tabs-panel blockquote[style*="#10b981"] > p:last-child {
	color: var(--ink-soft) !important;
	font: 500 11px/1.5 var(--mono) !important;
}

/* Lectura: escala deliberada, metadatos y cierres editoriales. */
.single-article h1 {
	max-width: 22ch;
	font-size: clamp(2.5rem, 3.6vw, 3.25rem);
	line-height: 1.02;
}

.single-article__category,
.single-article__byline {
	display: block;
	color: var(--ink-soft);
	font: 500 11px/1.5 var(--mono);
}

.single-article__category {
	width: fit-content;
	margin-bottom: 22px;
	color: var(--violet-dark);
}

body.veltrio-site .single-article__byline { margin: 20px 0 0; }
.single-article .editorial-prose h2 { margin: 64px 0 20px; font-size: 36px; line-height: 1.1; }
.single-article .editorial-prose h3 { margin: 42px 0 16px; font-size: 24px; line-height: 1.2; }

.post-navigation--editorial {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	padding-top: 0;
	padding-bottom: 0;
	border-top: 2px solid var(--ink);
}

.post-navigation--editorial > a {
	display: grid;
	min-height: 150px;
	align-content: center;
	gap: 10px;
	padding: 25px 30px 25px 0;
	text-decoration: none;
}

.post-navigation--editorial > a + a {
	padding-right: 0;
	padding-left: 30px;
	border-left: 1px solid var(--rule);
	text-align: right;
}

.post-navigation--editorial .mono { color: var(--ink-soft); font-size: 11px; }
.post-navigation--editorial strong { font: 600 27px/1.05 var(--serif); }

.related-guides { padding-top: 82px; padding-bottom: 100px; }
.related-guides > h2 { margin-bottom: 32px; font-size: 36px; line-height: 1.1; }
.related-guides__list { border-top: 2px solid var(--ink); }
.related-guides__list article {
	display: grid;
	grid-template-columns: 125px minmax(0, 1fr) 46px;
	gap: 25px;
	align-items: center;
	min-height: 112px;
	padding: 18px 0;
	border-bottom: 1px solid var(--rule);
}
.related-guides__list time { color: var(--ink-soft); font-size: 11px; }
.related-guides__list h3 { margin: 0; font-size: 28px; line-height: 1.08; }
.related-guides__list h3 a { text-decoration: none; }

.post-ledger__image {
	padding: 8px;
	background: var(--paper);
	border: 1px solid var(--rule);
}

.post-ledger__image {
	text-decoration: none !important;
}

body.tax-product_cat .woocommerce-products-header {
	align-items: start;
}

.post-ledger__placeholder {
	display: grid;
	place-items: center;
	padding: 18px;
	background: var(--paper-deep);
	text-decoration: none;
}

.post-ledger__placeholder b {
	color: var(--rule);
	font: italic 500 96px/.8 var(--serif);
}

body.veltrio-site .post-ledger__body h2 {
	font-size: 34px;
	line-height: 1.12;
	text-wrap: balance;
}

/* Woo mantiene float:left aunque este listado editorial sea de una columna. */
body.veltrio-theme-autonomous .woocommerce ul.products li.product { float: none !important; }

/* Nosotros y páginas legales. */
.editorial-page__feature--still-life img {
	display: block;
	width: 100%;
	aspect-ratio: 12 / 7;
	object-fit: cover;
}

.editorial-page--legal .editorial-prose {
	counter-reset: legal-section;
}

.legal-updated {
	margin: 0 0 48px;
	padding-bottom: 14px;
	color: var(--ink-soft);
	border-bottom: 1px solid var(--rule);
	font-size: 11px;
}

.editorial-page--legal .editorial-prose h2 {
	position: relative;
	margin: 58px 0 20px;
	font-size: 29px;
	line-height: 1.1;
	counter-increment: legal-section;
}

.editorial-page--legal .editorial-prose h2::before {
	position: absolute;
	top: .55em;
	right: calc(100% + 18px);
	color: var(--stamp);
	content: counter(legal-section, decimal-leading-zero);
	font: 500 12px/1 var(--mono);
}

/* Oferta al lado del precio anterior, nunca como pegatina circular. */
body.veltrio-theme-autonomous .woocommerce span.onsale { display: none !important; }
.veltrio-offer-label {
	display: inline-block;
	margin-inline: 7px;
	color: var(--ink-soft);
	font: 500 11px/1.4 var(--mono);
	vertical-align: baseline;
}

/* Flotantes compactos, en las esquinas y fuera de contenido/compra. */
body.veltrio-theme-autonomous .vp-fab {
	right: 16px !important;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
	display: inline-flex !important;
	width: auto !important;
	max-width: min(310px, calc(100vw - 32px));
	height: 44px !important;
	min-height: 44px !important;
	gap: 9px !important;
	align-items: center !important;
	padding: 0 13px !important;
	font: 500 11px/1.2 var(--mono) !important;
	z-index: 90 !important;
}

body.veltrio-theme-autonomous .vp-fab__icon {
	width: 20px !important;
	height: 20px !important;
	flex: 0 0 20px;
}

body.veltrio-theme-autonomous .vp-fab__label { display: block; }
body.veltrio-theme-autonomous .vp-fab__title { font: 500 11px/1.2 var(--mono) !important; white-space: nowrap; }
body.veltrio-theme-autonomous .vp-fab__sub { display: none !important; }
body.veltrio-theme-autonomous .vp-fab.is-expanded { height: auto !important; min-height: 44px !important; padding-block: 9px !important; }
body.veltrio-theme-autonomous .vp-fab.is-expanded .vp-fab__title { font-family: var(--sans) !important; font-size: 12px !important; }
body.veltrio-theme-autonomous .vp-fab.is-expanded .vp-fab__sub { display: block !important; margin-top: 2px; font: 500 10px/1.25 var(--mono) !important; }
body.veltrio-theme-autonomous.veltrio-fab-guarded .vp-fab {
	opacity: 0 !important;
	pointer-events: none !important;
	transform: translateY(8px) !important;
}

/* Cookie con fondo propio y margen del borde/pie. */
body.veltrio-theme-autonomous #gp-cookies-float-btn {
	bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
	left: 16px !important;
	min-width: 36px !important;
	height: 36px !important;
	min-height: 36px !important;
	padding: 0 10px !important;
	color: var(--paper) !important;
	background: var(--ink) !important;
	border: 1px solid #514d54 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font: 500 11px/34px var(--mono) !important;
}

body.veltrio-theme-autonomous.veltrio-cookie-guarded #gp-cookies-float-btn {
	opacity: 0 !important;
	pointer-events: none !important;
}

body.veltrio-theme-autonomous.veltrio-cookie-choice-made #gp-cookies-float-btn {
	display: none !important;
	opacity: 0 !important;
	pointer-events: none !important;
	transform: translateY(8px) !important;
}

.site-footer__cookie-preferences {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	padding: 0;
	cursor: pointer;
	color: inherit;
	background: transparent;
	border: 0;
	border-radius: 0;
	font: inherit;
	text-align: left;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: .2em;
}

.site-footer__cookie-preferences:hover { color: var(--paper); text-decoration-color: currentColor; }
.site-footer__cookie-preferences:focus-visible { outline: 3px solid #AD98FF; outline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
	body.veltrio-theme-autonomous .button,
	body.veltrio-theme-autonomous .woocommerce :where(a.button, button.button, input.button) {
		transform: none !important;
		transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
	}

	body.veltrio-theme-autonomous .button:hover,
	body.veltrio-theme-autonomous .woocommerce :where(a.button, button.button, input.button):hover {
		background: var(--violet-dark) !important;
		transform: none !important;
	}

	.text-link span { transition: transform 180ms ease; }
	.text-link:hover span { transform: translateX(4px); }

	:is(.product-row, .guide-list article, .related-guides__list article, .faqs details, .woocommerce ul.products li.product) {
		transition: background-color 160ms ease;
	}

	:is(.product-row, .guide-list article, .related-guides__list article, .faqs details, .woocommerce ul.products li.product):hover {
		background: var(--paper-deep);
	}

	:is(.product-row, .guide-list article, .related-guides__list article, .woocommerce ul.products li.product):hover :is(.guide-arrow, .product-arrow) {
		color: var(--paper) !important;
		background: var(--ink);
	}

	.faqs summary::after {
		content: "+" !important;
		transition: transform 200ms ease;
	}

	.faqs details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

	.veltrio-fade-image { opacity: 1; transition: opacity 400ms ease; }
	.veltrio-fade-image.is-loaded { opacity: 1; }

	.veltrio-reveal {
		opacity: 0;
		transform: translateY(12px);
		transition: opacity 480ms cubic-bezier(.2,.7,.2,1), transform 480ms cubic-bezier(.2,.7,.2,1);
	}

	.veltrio-reveal.is-visible { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
	body.woocommerce-checkout .woocommerce form.checkout.is-veltrio-checkout,
	body.woocommerce-cart .editorial-prose > .woocommerce:has(.woocommerce-cart-form) {
		grid-template-columns: minmax(0, 1fr);
		gap: 42px;
	}

	body.woocommerce-checkout form.checkout.is-veltrio-checkout #customer_details,
	body.woocommerce-checkout .veltrio-order-column,
	body.woocommerce-cart .woocommerce-cart-form,
	body.woocommerce-cart .cart-collaterals {
		position: static;
		grid-column: 1;
		grid-row: auto;
	}

	body.single-product.veltrio-theme-autonomous .woocommerce div.product div.summary,
	body.single-product.veltrio-theme-autonomous .woocommerce div.product .woocommerce-tabs {
		position: static;
		grid-column: 1;
		grid-row: auto;
		max-width: none;
	}
}

@media (max-width: 760px) {
	body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) .editorial-page__header { padding: 32px 0; }
	body.woocommerce-checkout #customer_details .woocommerce-billing-fields__field-wrapper { grid-template-columns: minmax(0, 1fr); }
	body.woocommerce-checkout #customer_details .form-row { grid-column: 1 !important; }

	body.veltrio-theme-autonomous .site-header__inner,
	body.veltrio-theme-autonomous .site-header.is-compact .site-header__inner { min-height: 64px; }
	body.veltrio-theme-autonomous .site-brand,
	body.veltrio-theme-autonomous .site-brand img { height: 30px; }

	body.woocommerce-checkout .veltrio-order-column > .veltrio-checkout-heading { padding: 22px 18px 15px; }
	body.woocommerce-checkout .veltrio-order-column .veltrio-review-label { margin-inline: 18px; }
	body.woocommerce-checkout form.checkout.is-veltrio-checkout #order_review { padding: 0 18px 22px; }

	body.woocommerce-cart table.cart .product-thumbnail { display: block !important; }
	body.woocommerce-cart table.cart td.product-thumbnail::before { display: none; }
	body.woocommerce-cart table.cart td.product-thumbnail { padding-bottom: 0 !important; text-align: left !important; }
	body.woocommerce-cart table.cart td.product-name { padding-top: 10px !important; text-align: left !important; }
	body.woocommerce-cart table.cart td.product-name::before { display: none; }
	body.woocommerce-cart table.cart td.product-remove { text-align: left !important; }
	body.woocommerce-cart table.cart td.actions > .button { width: 100%; margin-top: 12px; }
	body.veltrio-theme-autonomous .woocommerce-cart table.cart td.actions .veltrio-cart-coupon .coupon .input-text { width: 100% !important; }

	body.woocommerce-account #customer_login { grid-template-columns: 1fr; }
	body.woocommerce-account #customer_login .u-column1,
	body.woocommerce-account #customer_login .u-column2 { grid-column: 1; grid-row: auto; }
	body.woocommerce-account.logged-in .editorial-prose > .woocommerce { grid-template-columns: 1fr; gap: 34px; }
	body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation,
	body.woocommerce-account.logged-in .woocommerce-MyAccount-content { grid-column: 1; grid-row: auto; }
	body.woocommerce-account .woocommerce-orders-table tr { grid-template-columns: 1fr; gap: 8px; }

	.post-navigation--editorial { grid-template-columns: 1fr; }
	.post-navigation--editorial > a + a { padding-left: 0; border-top: 1px solid var(--rule); border-left: 0; text-align: left; }
	.related-guides__list article { grid-template-columns: minmax(0, 1fr) 46px; gap: 15px; }
	.related-guides__list time { grid-column: 1 / -1; }
	.post-ledger__body h2 { font-size: 34px; }
	.editorial-page--legal .editorial-prose h2::before { position: static; display: block; margin-bottom: 9px; }
}

@media (max-width: 399px) {
	html:lang(es) body.veltrio-theme-autonomous :where(.editorial-prose, .section-lead, .product-loop-descriptor) p,
	html:lang(es) body.veltrio-theme-autonomous .editorial-prose :where(li, blockquote) {
		hyphens: auto;
	}
}

/* Barra de cookies abierta: ni «¿Dudas?» ni el botón de cookies encima de sus botones (11-nov). */
body.veltrio-theme-autonomous.veltrio-cookie-bar-open .vp-fab,
body.veltrio-theme-autonomous.veltrio-cookie-bar-open #gp-cookies-float-btn {
	opacity: 0 !important;
	pointer-events: none !important;
	visibility: hidden !important;
}
