:root {
  --ink: #0f172a;
  --ink-soft: #1e293b;
  --brand: #0ea5e9;
  --brand-dark: #0284c7;
  --accent: #f97316;
  --success: #22c55e;  
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.btn-primary,
.btn-success {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.25);
}

.btn-primary:hover,
.btn-success:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.checkout-hero {
  background: radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 60%),
              linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  color: var(--ink);
}

.hero-eyebrow {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.15);
  color: var(--brand-dark);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.hero-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.hero-benefits i {
  color: var(--brand);
  font-size: 1.1rem;
  margin-top: 0.2rem;
}

.hero-contact {
  padding-left: 1rem;
  border-left: 3px solid rgba(14, 165, 233, 0.4);
}

.hero-meta {
  margin-top: 2rem;
}

.meta-card {
  background: var(--surface);
  border-radius: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  min-width: 180px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

.meta-card .meta-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(15, 23, 42, 0.55);
  margin-bottom: 0.25rem;
}

.hero-panel {
  background: var(--surface);
  border-radius: 1.75rem;
  padding: 2.5rem;
  border: 1px solid rgba(14, 165, 233, 0.15);
  box-shadow: var(--shadow);
  height: 100%;
}

.hero-panel__header .badge {
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

.hero-panel__body ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--ink-soft);
}

.hero-panel__body i {
  color: var(--brand);
  font-size: 1.1rem;
  margin-top: 0.2rem;
}

.support-strip {
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(14, 165, 233, 0.08));
  border: 1px solid rgba(14, 165, 233, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.hero-trust {
  padding: 2rem 2.5rem;
  background: var(--surface);
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

.hero-trust__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--ink);
}

.hero-trust__items {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  color: rgba(15, 23, 42, 0.7);
  font-size: 0.95rem;
}

.hero-trust__items span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.bg-gradient-light {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.value-card {
  background: var(--surface);
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.value-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.timeline {
  position: relative;
  border-left: 2px solid rgba(14, 165, 233, 0.2);
  padding-left: 2.5rem;
}

.timeline-step {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-step__number {
  position: absolute;
  left: -3.2rem;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.25);
}

.plan-card {
  background: var(--surface);
  border-radius: 1.75rem;
  padding: 2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 60px rgba(15, 23, 42, 0.12);
  border-color: var(--success);
}

.plan-card.is-selected {
  border: 2px solid var(--brand);
  box-shadow: 0 36px 80px rgba(14, 165, 233, 0.18);
}

.plan-card--highlight {
  border: 2px solid var(--accent);
  box-shadow: 0 32px 80px rgba(249, 115, 22, 0.15);
}

.plan-card--highlight:hover {
  border: 2px solid var(--success);
}

/* HEADER de la tarjeta de plan */
.plan-card__header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.plan-card__title {
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  margin: 0;
}

.plan-card__subtitle {
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.7);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  white-space: normal;
  line-height: 1.4;
  margin: 0;
}

.plan-card__badge {
  display: inline-block;
  align-self: flex-start;
  background: rgba(249, 115, 22, 0.12);
  color: var(--accent);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  margin-bottom: 0.5rem;
  order: -1; /* Esto pone el badge arriba de todo */
}



.plan-card__price {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.plan-card__amount {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--ink);
}

.plan-card__vat,
.plan-card__usd {
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.65);
}

.plan-card__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.92rem;
}

.plan-card__features li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: rgba(15, 23, 42, 0.75);
}

.plan-card__features i {
  color: var(--brand);
  margin-top: 0.1rem;
}

.plan-card__meta {
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: rgba(15, 23, 42, 0.7);
}

.plan-card__meta i {
  color: rgba(14, 165, 233, 0.8);
  margin-right: 0.4rem;
}

.plan-card__note {
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.6);
  margin-bottom: 0;
}

.wizard-card {
  background: var(--surface);
  border-radius: 2rem;
  padding: 2.5rem;
  margin-top: 2.5rem;
  border: 1px solid var(--border);
}

.wizard-progress {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.wizard-progress__step {
  flex: 1;
  text-align: center;
  padding: 1rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--surface-soft);
  color: rgba(15, 23, 42, 0.6);
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.wizard-progress__step.is-active {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.35);
  color: var(--brand-dark);
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.15);
}

.wizard-progress__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.step-layout {
  position: relative;
}

.lookup-card {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(14, 165, 233, 0.05));
  border-radius: 1.5rem;
  padding: 1.75rem;
  border: 1px solid rgba(14, 165, 233, 0.3);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: 0 18px 45px rgba(14, 165, 233, 0.18);
}

.lookup-card .badge {
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.lookup-control {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}

.lookup-control input {
  flex: 1 1 260px;
}

.lookup-control button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.lookup-feedback {
  font-size: 0.9rem;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  transition: all 0.2s ease;
    display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.lookup-feedback i {
  font-size: 1rem;
  margin-top: 0.1rem;
}

.lookup-feedback.is-success {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.3);
  color: #166534;
}

.lookup-feedback.is-warning {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.3);
  color: #9a3412;
}

.lookup-feedback.is-error {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #7f1d1d;
}

.lookup-debug-panel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-radius: 0.75rem;
  border: 1px dashed rgba(14, 165, 233, 0.4);
  background: rgba(14, 165, 233, 0.06);
  padding: 0.85rem 1rem;
  font-family: "JetBrains Mono", "Fira Code", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.75);
}

.lookup-debug-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.lookup-debug-panel__title {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--brand-dark);
  font-size: 0.7rem;
}

.lookup-debug-panel__clear {
  border: none;
  background: transparent;
  color: var(--brand-dark);
  font-size: 0.75rem;
  padding: 0;
  cursor: pointer;
}

.lookup-debug-panel__clear:hover,
.lookup-debug-panel__clear:focus {
  text-decoration: underline;
}

.lookup-debug-panel__entries {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 180px;
  overflow-y: auto;
}

.lookup-debug-panel__entry {
  word-break: break-word;
  white-space: pre-wrap;
}

.step-title {
  font-weight: 700;
  color: var(--ink);
}

.wizard-sidecard {
  background: var(--surface);
  border-radius: 1.5rem;
  padding: 1.75rem;
  border: 1px dashed rgba(14, 165, 233, 0.35);
  background-image: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(14, 165, 233, 0));
    display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.sidecard-note {
  background: rgba(14, 165, 233, 0.08);
  border-radius: 1.1rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(14, 165, 233, 0.18);
  margin-top: 1.5rem;
}

.details-card {
  background: var(--surface);
  border-radius: 1.75rem;
  padding: 2rem 2.25rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.details-card__header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.details-card__title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  display: flex;
  align-items: center;
}

.details-card__subtitle {
  font-size: 0.95rem;
}

.wizard-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  background: rgba(239, 68, 68, 0.12);
  color: #7f1d1d;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.wizard-status.is-success {
  background: rgba(34, 197, 94, 0.14);
  color: #14532d;
  border-color: rgba(34, 197, 94, 0.35);
}

.wizard-status i {
  font-size: 1.1rem;
}

.wizard-status.is-success i {
  color: #16a34a;
}

.form-control.is-incomplete,
.form-select.is-incomplete {
  border-color: rgba(220, 38, 38, 0.85);
  background: rgba(254, 226, 226, 0.6);
  box-shadow: 0 0 0 0.25rem rgba(220, 38, 38, 0.15);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-control.is-incomplete:focus,
.form-select.is-incomplete:focus {
  border-color: rgba(185, 28, 28, 0.95);
  box-shadow: 0 0 0 0.3rem rgba(220, 38, 38, 0.25);
  background: #fff5f5;
}

.lookup-feedback strong {
  font-weight: 700;
}


.wizard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2.5rem;
    align-items: center;
  flex-wrap: wrap;
}

.wizard-actions--with-status {
  justify-content: flex-end;
}

.wizard-actions--with-status .wizard-status {
  margin: 0;
  margin-right: auto;
}

.wizard-actions .btn[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.checkout-overlay[hidden] {
  display: none !important;
}

.checkout-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(248, 249, 250, 0.95);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1080;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

.checkout-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.checkout-overlay__content {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.12);
  padding: 2rem 2.5rem;
  max-width: 28rem;
  width: 100%;
}

.upsell-list {
  background: var(--surface);
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  padding: 1.75rem;
}

.upsell-item {
  display: block;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface-soft);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.upsell-item:hover {
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.12);
}

@media (max-width: 991.98px) {
  .lookup-card,
  .wizard-sidecard,
  .details-card {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  }

  .wizard-status {
    width: 100%;
    justify-content: center;
    border-radius: 1rem;
	    margin-right: 0;
  }
}

.upsell-item input {
  margin-right: 0.75rem;
}

.upsell-item__body {
  margin-left: 1.5rem;
}

.summary-card {
  background: var(--surface);
  border-radius: 1.5rem;
  padding: 1.75rem;
  border: 1px solid rgba(14, 165, 233, 0.25);
  box-shadow: 0 16px 40px rgba(14, 165, 233, 0.12);
}

/* U4.2: Sticky summary en desktop */
@media (min-width: 992px) {
  .summary-card,
  .totals-card {
    position: sticky;
    top: 100px; /* Altura del navbar + espacio */
    z-index: 10;
  }
}

.summary-card__features {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.summary-card__features li {
  display: flex;
  gap: 0.6rem;
  color: rgba(15, 23, 42, 0.75);
}

.summary-card__features li::before {
  content: '•';
  color: var(--brand);
}

.summary-card__meta {
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.65);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.totals-card {
  background: var(--surface);
  border-radius: 1.5rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.totals-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.totals-note {
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.75);
  margin-top: 0.5rem;
}

.totals-row--total {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

.payment-card {
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 1.5rem;
  padding: 1.75rem;
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(14, 165, 233, 0.12);
}

.payment-card .label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(15, 23, 42, 0.5);
}

.support-card,
.guarantee-card {
  background: var(--surface);
  border-radius: 1.5rem;
  padding: 2.25rem;
  border: 1px solid var(--border);
}

.support-item {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.support-item i {
  font-size: 1.5rem;
  color: var(--brand);
}

.guarantee-card ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.25rem 0;
}

.guarantee-card ul li {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.75);
}

.guarantee-card ul li i {
  color: var(--brand);
}

.status-card {
  background: var(--surface);
  border-radius: 1.75rem;
  padding: 2.5rem;
  border: 1px solid var(--border);
}

.status-section {
  margin-top: 2rem;
  text-align: left;
}

.status-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.status-sidecard {
  background: var(--surface);
  border-radius: 1.5rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

@media (max-width: 991px) {
  .hero-meta {
    flex-direction: column;
  }

  .meta-card {
    width: 100%;
  }

  .wizard-progress {
    flex-direction: column;
  }

  .wizard-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 575px) {
  .wizard-card,
  .plan-card,
  .status-card {
    padding: 1.75rem;
  }

  .hero-panel {
    padding: 1.75rem;
  }
}