/* ==========================================================================
   Verde Maquinaria – recorrido de compra, carrito, pago y confirmación
   ========================================================================== */

/* ---------- Recorrido ---------- */
.vm-journey { background: var(--vm-deep); color: #fff; padding: 34px 0 28px; margin: 0 18px; border-radius: 0 0 28px 28px; position: relative; overflow: hidden; }
.vm-journey::before { content: ""; position: absolute; width: 340px; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .05); right: -90px; top: -170px; }
.vm-journey__in { position: relative; }
.vm-journey__head h1 { color: #fff; font-size: clamp(26px, 3.4vw, 40px); margin: 0 0 6px; }
.vm-journey__head p { color: rgba(255, 255, 255, .78); margin: 0; }
.vm-journey__track { position: relative; height: 46px; margin: 26px 22px 6px; }
.vm-journey__road { position: absolute; left: 0; right: 0; bottom: 6px; height: 6px; border-radius: 6px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 18px, transparent 18px 30px); }
.vm-journey__done { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: #FF9A5C; width: var(--vm-to); animation: vm-road 1.6s var(--vm-ease) both; }
@keyframes vm-road { from { width: var(--vm-from); } to { width: var(--vm-to); } }
.vm-journey__tractor { position: absolute; bottom: 8px; left: var(--vm-to); transform: translateX(-50%); animation: vm-drive 1.6s var(--vm-ease) both; }
.vm-journey__tractor svg { display: block; animation: vm-bounce .45s ease-in-out infinite alternate; }
.vm-journey__smoke { animation: vm-smoke 1.2s ease-out infinite; }
@keyframes vm-drive { from { left: var(--vm-from); } to { left: var(--vm-to); } }
@keyframes vm-bounce { to { transform: translateY(-2px); } }
@keyframes vm-smoke { from { opacity: .8; transform: translate(0, 0); } to { opacity: 0; transform: translate(-6px, -8px); } }
.vm-journey__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.vm-journey__steps li { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .6); }
.vm-journey__steps li:nth-child(2) { justify-content: center; }
.vm-journey__steps li:nth-child(3) { justify-content: flex-end; }
.vm-journey__num { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; border: 2px solid rgba(255, 255, 255, .3); }
.vm-journey__txt { display: flex; flex-direction: column; line-height: 1.2; }
.vm-journey__txt strong { font: 700 15px/1.2 var(--font-heading); }
.vm-journey__txt small { font-size: 12px; opacity: .8; }
.vm-journey__steps li.is-done, .vm-journey__steps li.is-current { color: #fff; }
.vm-journey__steps li.is-done .vm-journey__num { background: #13965B; border-color: #13965B; }
.vm-journey__steps li.is-current .vm-journey__num { background: var(--color-accent); border-color: var(--color-accent); box-shadow: 0 0 0 5px rgba(217, 72, 15, .3); }
@media (max-width: 640px) {
  .vm-journey { margin: 0 8px; padding: 24px 0 20px; }
  .vm-journey__txt small { display: none; }
  .vm-journey__steps li:not(.is-current) .vm-journey__txt { display: none; }
}
@media (prefers-reduced-motion: reduce) { .vm-journey__done, .vm-journey__tractor, .vm-journey__tractor svg, .vm-journey__smoke { animation: none; } }
.vmq-checkout-header-bar { display: none; }

/* ---------- Carrito (bloques y plantilla clásica) ---------- */
.woocommerce-page-wrapper { padding-top: 34px; }
body .wc-block-cart-items { border: 1px solid var(--color-border) !important; border-radius: 22px !important; background: #fff; overflow: hidden; border-collapse: separate !important; }
body .wc-block-cart-items th, body .wc-block-cart-items__header span { color: var(--color-text-muted) !important; font: 600 12px/1 var(--font-body) !important; letter-spacing: .1em !important; }
body .wc-block-cart-items__row { transition: background .2s ease; }
body .wc-block-cart-items__row:hover { background: #FAFCFB; }
body .wc-block-cart-item__image img { border-radius: 16px !important; background: var(--color-section-alt); }
body .wc-block-components-product-name, body .wc-block-cart .product-name a {
  color: var(--color-text) !important; text-decoration: none !important; font: 700 16px/1.35 var(--font-heading) !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
body .wc-block-components-product-name:hover { color: var(--color-primary) !important; }
body .wc-block-components-product-badge, body .wc-block-components-sale-badge {
  background: var(--vm-orange-soft) !important; color: var(--color-accent-hover) !important; border: 0 !important;
  border-radius: 999px !important; padding: 4px 10px !important; font-weight: 700 !important;
}
body .wc-block-cart-item__total .wc-block-components-product-price { color: var(--color-text) !important; font-weight: 700; }
body .wc-block-components-product-price__regular { color: var(--color-text-muted) !important; }
body .wc-block-components-product-metadata { color: var(--color-text-muted) !important; }
body .wc-block-components-quantity-selector { border-radius: 999px !important; border: 1.5px solid var(--color-border) !important; background: var(--color-section-alt) !important; overflow: hidden; }
body .wc-block-components-quantity-selector::after { border: 0 !important; }
body .wc-block-components-quantity-selector__button { color: var(--color-primary) !important; font-weight: 700 !important; transition: background .2s ease !important; }
body .wc-block-components-quantity-selector__button:hover { background: var(--vm-mint) !important; }
body .wc-block-cart-item__remove-link { color: var(--color-text-muted) !important; transition: color .2s ease, transform .2s ease !important; }
body .wc-block-cart-item__remove-link:hover { color: #C0392B !important; transform: scale(1.1); }

body .wp-block-woocommerce-cart-order-summary-block, body .cart_totals {
  background: #fff; border: 1px solid var(--color-border) !important; border-radius: 22px !important; padding: 26px !important;
  box-shadow: 0 18px 40px rgba(10, 77, 48, .07) !important;
}
body .wc-block-cart__totals-title, body .cart_totals h2 { color: var(--color-text) !important; font: 800 20px/1.2 var(--font-heading) !important; letter-spacing: -.01em !important; text-transform: none !important; }
body .wc-block-components-totals-wrapper { border-top: 1px dashed var(--color-border) !important; }
body .wc-block-components-totals-wrapper:empty { display: none; }
body .wc-block-components-totals-item__label { color: var(--color-text-muted) !important; }
body .wc-block-components-totals-footer-item, body .cart_totals .order-total { background: var(--vm-mint) !important; border-radius: 16px !important; padding: 16px 18px !important; border: 0 !important; }
body .wc-block-components-totals-footer-item .wc-block-components-totals-item__label { color: var(--color-text) !important; font: 700 16px/1.2 var(--font-heading) !important; }
body .wc-block-components-totals-footer-item .wc-block-components-totals-item__value, body .cart_totals .order-total .amount { color: var(--color-primary) !important; font: 800 26px/1 var(--font-heading) !important; }

/* Botón de pago: una sola forma, naranja (antes el contenedor y el botón se pintaban los dos) */
body .wc-block-cart__submit, body .wc-block-cart__submit-container, body .wc-proceed-to-checkout {
  background: none !important; box-shadow: none !important; height: auto !important; padding: 0 !important; border: 0 !important; transform: none !important; border-radius: 0 !important;
}
body .wc-block-cart__submit-button, body .wc-block-components-checkout-place-order-button, body .wc-proceed-to-checkout a.checkout-button, body #place_order {
  background: var(--color-accent) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important;
  height: 58px !important; min-height: 58px !important; width: 100% !important; margin: 18px 0 0 !important;
  font: 700 16px/1 var(--font-body) !important; letter-spacing: .02em !important; text-transform: none !important;
  box-shadow: 0 12px 26px rgba(217, 72, 15, .3) !important; position: relative; overflow: hidden;
  transition: background .2s ease, transform .25s var(--vm-ease), box-shadow .25s ease !important;
}
body .wc-block-cart__submit-button:hover, body .wc-block-components-checkout-place-order-button:hover, body .wc-proceed-to-checkout a.checkout-button:hover, body #place_order:hover {
  background: var(--color-accent-hover) !important; transform: translateY(-2px) !important; box-shadow: 0 16px 32px rgba(217, 72, 15, .36) !important;
}
body .wc-block-cart__submit-button::after, body .wc-block-components-checkout-place-order-button::after, body .wc-proceed-to-checkout a.checkout-button::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); animation: vm-shine 3.6s ease-in-out infinite;
}
@keyframes vm-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }

/* Aviso bajo el total */
body .wc-block-cart__sidebar::after, body .cart_totals::after {
  content: "Pago seguro  ·  14 días para desistir  ·  Garantía legal de 3 años" !important;
  background: transparent !important; border: 0 !important; box-shadow: none !important;
  color: var(--color-text-muted) !important; font: 500 12.5px/1.5 var(--font-body) !important; padding: 12px 6px 0 !important; margin: 0 !important;
}

/* Argumentos bajo el carrito */
body .vm-reassure { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px !important; background: none !important; border: 0 !important; padding: 0 18px !important; margin: 26px auto 60px !important; max-width: var(--container-max-width); }
body .vm-reassure .cart-trust-item { background: var(--color-section-alt); border-radius: 18px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; border: 0 !important; transition: transform .3s var(--vm-ease); }
body .vm-reassure .cart-trust-item:hover { transform: translateY(-3px); }
body .vm-reassure .cart-trust-icon { width: 44px; height: 44px; border-radius: 14px; background: #fff !important; color: var(--color-primary) !important; display: grid; place-items: center; flex: none; }
body .vm-reassure .cart-trust-text { display: flex; flex-direction: column; }
body .vm-reassure .cart-trust-text strong { color: var(--color-text); font-size: 14.5px; }
body .vm-reassure .cart-trust-text span { color: var(--color-text-muted); font-size: 13px; }

/* ---------- Pago (bloque) ---------- */
body .wc-block-checkout__main .wc-block-components-checkout-step { background: #fff; border: 1px solid var(--color-border) !important; border-radius: 22px !important; padding: 22px 24px !important; margin-bottom: 16px !important; }
body .wc-block-components-checkout-step__title { font: 800 19px/1.2 var(--font-heading) !important; color: var(--color-text) !important; }
body .wc-block-components-checkout-step__container::after, body .wc-block-components-checkout-step::after { display: none !important; }
body .wc-block-components-text-input input, body .wc-block-components-text-input textarea, body .wc-block-components-combobox .components-combobox-control__input, body .wc-blocks-components-select__select {
  border-radius: 14px !important; border: 1.5px solid var(--color-border) !important; background: #fff !important; transition: border-color .2s ease, box-shadow .2s ease !important;
}
body .wc-block-components-text-input input:focus, body .wc-blocks-components-select__select:focus, body .wc-block-components-combobox .components-combobox-control__input:focus {
  border-color: var(--color-primary) !important; box-shadow: 0 0 0 4px rgba(15, 122, 74, .12) !important; outline: 0 !important;
}
body .wc-block-components-radio-control__option, body .wc-block-components-radio-control-accordion-option { border-radius: 16px !important; }
body .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option--checked-option-highlighted,
body .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted { box-shadow: inset 0 0 0 2px var(--color-primary) !important; background: #FAFCFB; }
body .wc-block-components-radio-control__input:checked { border-color: var(--color-primary) !important; background: var(--color-primary) !important; }
body .wc-block-components-checkbox__input:checked { background: var(--color-primary) !important; border-color: var(--color-primary) !important; }
body .wc-block-components-order-summary-item__image img { border-radius: 12px !important; }
body .wc-block-components-order-summary-item__quantity { background: var(--color-primary) !important; color: #fff !important; border: 0 !important; }
body .wc-block-checkout .wc-block-components-sidebar > div { border: 1px solid var(--color-border); border-radius: 22px; background: #fff; }

/* ---------- Confirmación del pedido ---------- */
.vm-ty { padding-top: 34px !important; padding-bottom: 70px !important; }
.vm-ty__hero { position: relative; overflow: hidden; display: flex; gap: 22px; align-items: center; background: var(--vm-mint); border-radius: 28px; padding: clamp(24px, 4vw, 40px); margin-bottom: 20px; }
.vm-ty__hero h2 { font-size: clamp(24px, 3vw, 36px); color: var(--color-text); margin: 0 0 8px; }
.vm-ty__hero p { color: var(--color-text-muted); margin: 0; font-size: 16.5px; max-width: 62ch; }
.vm-ty__hero .vm-kicker { background: #fff; margin-bottom: 10px; }
.vm-ty__hero--failed { background: #FDECE6; }
.vm-ty__badge { width: 88px; height: 88px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--color-primary); color: #fff; box-shadow: 0 0 0 10px rgba(15, 122, 74, .14); animation: vm-pop .6s var(--vm-ease) both; }
.vm-ty__badge--failed { background: #C0392B; box-shadow: 0 0 0 10px rgba(192, 57, 43, .14); font: 800 40px/1 var(--font-heading); }
.vm-ty__ring { stroke-dasharray: 160; stroke-dashoffset: 160; animation: vm-draw .7s .2s ease-out forwards; opacity: .35; }
.vm-ty__tick { stroke-dasharray: 40; stroke-dashoffset: 40; animation: vm-draw .45s .7s ease-out forwards; }
@keyframes vm-draw { to { stroke-dashoffset: 0; } }
@keyframes vm-pop { from { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } to { transform: none; opacity: 1; } }
.vm-ty__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.vm-ty__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.vm-ty__card { background: #fff; border: 1px solid var(--color-border); border-radius: 22px; padding: 24px 26px; }
.vm-ty__card h3 { font-size: 19px; margin: 0 0 16px; color: var(--color-text); }
.vm-ty__facts { margin: 0; display: grid; gap: 2px; }
.vm-ty__fact { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--color-border); }
.vm-ty__fact dt { color: var(--color-text-muted); font-size: 14px; }
.vm-ty__fact dd { margin: 0; font-weight: 600; color: var(--color-text); text-align: right; display: flex; align-items: center; gap: 10px; }
.vm-ty__fact--num strong { font: 800 20px/1 var(--font-heading); color: var(--color-primary); }
.vm-ty__copy { border: 1px solid var(--color-border); background: var(--color-section-alt); color: var(--color-primary); border-radius: 999px; padding: 6px 12px; font: 600 12px/1 var(--font-body); cursor: pointer; transition: .2s ease; }
.vm-ty__copy:hover, .vm-ty__copy.is-done { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.vm-ty__fact--total { border-bottom: 0; background: var(--vm-mint); border-radius: 14px; padding: 14px 16px; margin-top: 10px; }
.vm-ty__fact--total dt { color: var(--color-text); font-weight: 700; }
.vm-ty__fact--total dd { font: 800 22px/1 var(--font-heading); color: var(--color-primary); }
.vm-ty__next { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: vmn; }
.vm-ty__next li { position: relative; padding-left: 46px; display: flex; flex-direction: column; gap: 2px; counter-increment: vmn; }
.vm-ty__next li::before { content: counter(vmn); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--color-section-alt); color: var(--color-text-muted); font: 700 13px/1 var(--font-body); }
.vm-ty__next li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 34px; bottom: -16px; width: 2px; background: var(--color-border); }
.vm-ty__next li.is-done::before { content: "\2713"; background: var(--color-primary); color: #fff; }
.vm-ty__next li.is-done::after { background: var(--color-primary); }
.vm-ty__next li.is-now::before { background: var(--color-accent); color: #fff; box-shadow: 0 0 0 5px rgba(217, 72, 15, .18); animation: vm-pulse 1.8s ease-in-out infinite; }
@keyframes vm-pulse { 50% { box-shadow: 0 0 0 9px rgba(217, 72, 15, .08); } }
.vm-ty__next strong { color: var(--color-text); font-size: 15px; }
.vm-ty__next span { color: var(--color-text-muted); font-size: 13.5px; }
.vm-ty__help { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--vm-deep); color: #fff; border-radius: 22px; padding: 22px 26px; margin-bottom: 26px; }
.vm-ty__help h3 { color: #fff; margin: 0 0 4px; font-size: 19px; }
.vm-ty__help p { color: rgba(255, 255, 255, .78); margin: 0; }
.vm-ty__help .vm-ty__actions { margin: 0; }
.vm-ty__help .vm-btn--line { color: #fff; border-color: rgba(255, 255, 255, .4); }
.vm-ty__help .vm-btn--line:hover { border-color: #fff; }
.vm-ty__details .woocommerce-order-details, .vm-ty__details .woocommerce-customer-details, .vm-ty__details .wc-bacs-bank-details {
  background: #fff; border: 1px solid var(--color-border); border-radius: 22px; padding: 22px 26px; margin-bottom: 20px;
}
.vm-ty__details h2 { font-size: 20px; color: var(--color-text); }
.vm-ty__details table.shop_table { border: 0 !important; border-radius: 0 !important; }
.vm-ty__details table.shop_table tfoot tr:last-child td, .vm-ty__details table.shop_table tfoot tr:last-child th { color: var(--color-primary); font-size: 18px; }
.vm-ty__details address { border-radius: 16px !important; border: 1px solid var(--color-border) !important; padding: 16px 18px !important; font-style: normal; }
.vm-confetti { position: absolute; inset: 0; pointer-events: none; }
.vm-confetti i { position: absolute; top: -12px; width: 9px; height: 13px; border-radius: 2px; animation: vm-fall linear forwards; }
@keyframes vm-fall { to { transform: translate(var(--vm-x), 340px) rotate(var(--vm-r)); opacity: 0; } }
@media (max-width: 760px) {
  .vm-ty__hero { flex-direction: column; align-items: flex-start; }
  .vm-ty__badge { width: 70px; height: 70px; }
  .vm-ty__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  body .wc-block-cart__submit-button::after, body .wc-block-components-checkout-place-order-button::after, body .wc-proceed-to-checkout a.checkout-button::after { display: none; }
  .vm-ty__badge, .vm-ty__next li.is-now::before { animation: none; }
  .vm-ty__ring, .vm-ty__tick { animation: none; stroke-dashoffset: 0; }
}
