:root {
  --kh-primary: #1769aa;
  --kh-primary-hover: #12598f;
  --kh-primary-dark: #102a4c;
  --kh-primary-soft: #eef6fc;
  --kh-primary-border: #bfd0e6;
  --kh-bg: #f4f7fb;
  --kh-card: #ffffff;
  --kh-text: #102a4c;
  --kh-muted: #64748b;
  --kh-border: #dbe5ef;
  --kh-danger: #dc2626;
  --kh-warning: #f59e0b;
  --kh-success: #16a34a;
  --kh-radius: 18px;
  --kh-shadow: 0 18px 45px rgba(16,42,76,.08);
  --kh-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html,
body {
  font-family: var(--kh-font);
  background: var(--kh-bg);
  color: var(--kh-text);
}

body {
  margin: 0;
  line-height: 1.5;
}

a { color: var(--kh-primary); text-decoration: none; }
a:hover { color: var(--kh-primary-hover); }

button,
input,
select,
textarea {
  font-family: var(--kh-font);
}

.kh-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
}

.kh-topbar,
.auth-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto 22px;
}

.brand,
.kh-brand {
  color: var(--kh-primary-dark);
  font-weight: 900;
  letter-spacing: 0;
}

.nav-actions,
.kh-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.kh-card,
.auth-card,
.card,
.box,
.panel-card {
  background: var(--kh-card);
  border: 1px solid var(--kh-border);
  border-radius: var(--kh-radius);
  box-shadow: var(--kh-shadow);
}

.kh-card,
.panel-card {
  padding: 24px;
}

.btn,
.kh-btn,
button.btn,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--kh-border);
  border-radius: 12px;
  background: #fff;
  color: var(--kh-primary-dark);
  padding: 10px 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.btn:hover,
.kh-btn:hover {
  border-color: var(--kh-primary-border);
  color: var(--kh-primary-hover);
  box-shadow: 0 8px 20px rgba(16,42,76,.07);
}

.btn.active,
.kh-btn.active {
  background: var(--kh-primary-soft);
  border-color: var(--kh-primary-border);
  color: var(--kh-primary-dark);
}

.btn.primary,
.btn.blue,
.kh-btn-primary,
button.primary,
input[type="submit"] {
  background: var(--kh-primary);
  border-color: var(--kh-primary);
  color: #fff;
}

.btn.primary:hover,
.btn.blue:hover,
.kh-btn-primary:hover,
button.primary:hover,
input[type="submit"]:hover {
  background: var(--kh-primary-hover);
  border-color: var(--kh-primary-hover);
  color: #fff;
}

.kh-btn-danger {
  background: #fff;
  border-color: #fecaca;
  color: var(--kh-danger);
}

input,
select,
textarea {
  border: 1px solid var(--kh-border);
  border-radius: 12px;
  background: #fff;
  color: var(--kh-text);
  padding: 11px 12px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--kh-primary);
  box-shadow: 0 0 0 4px rgba(23,105,170,.12);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid #e8eef6;
  text-align: left;
}

th {
  color: var(--kh-muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

tbody tr:hover {
  background: #f8fbff;
}

.kh-table-wrap {
  overflow: auto;
  border: 1px solid var(--kh-border);
  border-radius: 16px;
}

.kh-muted,
.muted {
  color: var(--kh-muted);
}

.kh-grid {
  display: grid;
  gap: 16px;
}

.kh-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kh-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kh-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.kh-badge,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  border: 1px solid var(--kh-primary-border);
  border-radius: 999px;
  background: var(--kh-primary-soft);
  color: var(--kh-primary-dark);
  padding: 5px 11px;
  font-size: .78rem;
  font-weight: 900;
}

.kh-badge-success,
.kh-badge.success,
.badge.success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.kh-badge-warning,
.kh-badge.warning,
.badge.warning {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.kh-badge-danger,
.kh-badge.danger,
.badge.danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.kh-alert {
  border: 1px solid var(--kh-primary-border);
  border-radius: 16px;
  background: var(--kh-primary-soft);
  color: var(--kh-primary-dark);
  padding: 14px 16px;
  margin: 0 0 18px;
  font-weight: 700;
}

.kh-alert.warning {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.kh-alert.danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.kh-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(330px, 1fr));
  gap: 22px;
  align-items: start;
}

.kh-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--kh-primary-border);
  border-radius: var(--kh-radius);
  background: #fff;
  box-shadow: 0 12px 30px rgba(16,42,76,.06);
}

.kh-plan-card.recommended {
  border-color: var(--kh-primary);
  box-shadow: 0 18px 45px rgba(23,105,170,.14);
}

.kh-plan-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.kh-plan-code {
  margin: 0;
  font-size: 1.18rem;
  color: var(--kh-primary-dark);
}

.kh-price {
  color: var(--kh-primary);
  font-size: 2rem;
  font-weight: 950;
  line-height: 1.1;
}

.kh-price small {
  color: var(--kh-muted);
  font-size: .9rem;
  font-weight: 800;
}

.kh-feature-list {
  display: grid;
  gap: 8px;
  margin: 4px 0 10px;
  padding: 0;
  list-style: none;
  color: #475569;
}

.kh-feature-list li {
  padding-top: 8px;
  border-top: 1px solid #edf2f7;
}

.kh-plan-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.kh-vps-plan-card {
  position: relative;
  min-height: 100%;
  overflow: visible;
  padding: 24px;
  border: 1px solid var(--kh-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(9,38,74,.10);
}

.kh-vps-plan-card.is-recommended {
  border-color: var(--kh-primary);
  box-shadow: 0 18px 50px rgba(23,105,170,.14);
}

.kh-vps-ribbon {
  position: absolute;
  top: -13px;
  right: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 210px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #ffd333;
  color: #061d38;
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.kh-vps-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 145px;
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
}

.kh-vps-code {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 13px;
  border-radius: 7px;
  background: var(--kh-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}

.kh-vps-price {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  margin-bottom: 8px;
}

.kh-vps-price strong {
  color: var(--kh-primary);
  font-size: 34px;
  font-weight: 1000;
  letter-spacing: -1px;
  line-height: .9;
}

.kh-vps-price span {
  padding-bottom: 3px;
  color: #30455f;
  font-size: 12px;
  font-weight: 950;
}

.kh-vps-desc {
  max-width: 100%;
  margin: 0;
  color: #445b78;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.kh-vps-visual {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.kh-vps-tech-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  overflow: hidden;
  white-space: nowrap;
}

.kh-vps-tech {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border: 1px solid #d9e6f2;
  border-radius: 999px;
  background: #eef7ff;
  color: var(--kh-primary);
  font-size: 7px;
  font-weight: 950;
  line-height: 1;
}

.kh-vps-tech-asterisk {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #f97316;
}

.kh-vps-voip {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 2px;
  color: var(--kh-primary);
}

.kh-vps-server-icon {
  font-size: 25px;
  font-weight: 950;
  line-height: 1;
}

.kh-vps-voip div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: .88;
}

.kh-vps-voip span:not(.kh-vps-server-icon) {
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .2px;
}

.kh-vps-voip strong {
  font-size: 20px;
  font-weight: 1000;
  letter-spacing: .3px;
}

.kh-vps-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 16px 0 14px;
}

.kh-vps-spec {
  display: flex;
  min-height: 66px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 7px 4px;
  border: 1px solid var(--kh-border);
  border-radius: 11px;
  background: #fff;
  text-align: center;
}

.kh-vps-spec-icon {
  color: var(--kh-primary);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

.kh-vps-spec strong {
  color: #52677f;
  font-size: 9px;
  font-weight: 1000;
  line-height: 1.05;
}

.kh-vps-spec small {
  color: #7b8da4;
  font-size: 7px;
  font-weight: 800;
  line-height: 1;
}

.kh-vps-section-title,
.kh-vps-payment-title {
  margin: 0 0 8px;
  color: var(--kh-primary);
  font-size: 12px;
  font-weight: 950;
}

.kh-vps-payment-title {
  margin-top: 12px;
  color: #52677f;
  font-size: 11px;
  font-weight: 850;
}

.kh-vps-includes {
  display: grid;
  gap: 0;
  margin-bottom: 12px;
}

.kh-vps-includes > div {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e8eef5;
}

.kh-vps-includes span {
  color: var(--kh-primary);
  font-size: 13px;
  font-weight: 950;
  text-align: center;
}

.kh-vps-includes strong {
  color: #30455f;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.kh-vps-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.kh-vps-actions .btn {
  flex: 1 1 150px;
}

.kh-payment-strip {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--kh-primary-border);
  border-radius: 14px;
  background: #f8fbff;
}

.kh-payment-strip-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: var(--kh-primary-dark);
  font-size: .88rem;
}

.kh-payment-strip-head span {
  color: var(--kh-muted);
  font-size: .78rem;
  font-weight: 800;
}

.kh-card-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  min-height: 30px;
}

.kh-card-brand {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #fff;
  color: #102a4c;
  font-size: .72rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.kh-card-brand.paypal {
  color: #12598f;
  background: #eef6fc;
  border-color: #bfd0e6;
}

.kh-card-brand.visa {
  color: #1434cb;
}

.kh-card-brand.mastercard {
  color: #b45309;
}

.kh-card-brand.amex {
  color: #1769aa;
}

.kh-card-brand.discover {
  color: #7c2d12;
}

.kh-payment-icon {
  display: inline-flex;
  width: 52px;
  height: 30px;
  flex: 0 0 52px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
  line-height: 1;
}

.kh-payment-icon svg {
  width: 52px;
  height: 30px;
  display: block;
}

.kh-secure-payment-note {
  margin: 0;
  color: var(--kh-muted);
  font-size: .82rem;
  line-height: 1.35;
}

.kh-addon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  align-items: stretch;
}

@media (min-width: 1180px) {
  .kh-addon-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .kh-addon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .kh-addon-grid {
    grid-template-columns: 1fr;
  }
}

.kh-addon-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 300px;
  padding: 14px;
  gap: 0;
}

.kh-addon-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
}

.kh-addon-head h3 {
  margin: 0;
  color: var(--kh-primary-dark);
  font-size: 1rem;
  line-height: 1.18;
}

.kh-addon-price-row {
  margin: 4px 0 8px;
}

.kh-addon-price-row .kh-price,
.kh-addon-price-row .price {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin: 0;
  color: var(--kh-primary);
  font-size: 1.55rem;
  font-weight: 950;
  line-height: 1;
}

.kh-addon-price-row small {
  color: var(--kh-muted);
  font-size: .78rem;
  font-weight: 900;
}

.kh-addon-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 116px;
}

.kh-addon-description {
  margin: 0;
  color: var(--kh-muted);
  font-size: .87rem;
  line-height: 1.35;
}

.kh-addon-card .kh-feature-list {
  margin: 0;
  padding: 0;
  gap: 4px;
  color: #475569;
  font-size: .82rem;
  line-height: 1.28;
}

.kh-addon-card .kh-feature-list li {
  padding-top: 5px;
}

.kh-addon-payment {
  margin-top: 10px;
}

.kh-addon-payment .kh-card-brands {
  margin: 0;
}

.kh-addon-payment .kh-secure-payment-note {
  margin-top: 6px;
  font-size: .76rem;
}

.kh-addon-actions {
  display: flex;
  margin-top: auto;
  padding-top: 10px;
}

.actions.kh-addon-actions,
.card .kh-addon-actions {
  margin-top: auto;
}

.kh-addon-actions .btn {
  width: 100%;
  min-height: 40px;
  justify-content: center;
  padding: 9px 12px;
  text-align: center;
}

.kh-premium-compact {
  border: 1px solid var(--kh-primary-border);
  background: #eef6fc;
  border-radius: 12px;
  padding: 14px;
  margin: 12px 0;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 14px;
  align-items: center;
}

.kh-premium-compact h2 {
  margin: 4px 0;
  color: var(--kh-primary-dark);
}

.kh-premium-price {
  color: var(--kh-primary-dark);
  font-size: 1.6rem;
  font-weight: 950;
  white-space: nowrap;
}

.kh-premium-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.kh-premium-chip,
.kh-preview-ribbon {
  display: inline-flex;
  align-items: center;
  border: 1px solid #bfd0e6;
  background: #fff;
  color: #102a4c;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: .78rem;
  font-weight: 850;
}

.kh-preview-ribbon {
  background: #f8fbff;
  margin-bottom: 10px;
}

.kh-readonly-panel {
  position: relative;
}

.kh-readonly-panel input,
.kh-readonly-panel select,
.kh-readonly-panel textarea {
  background: #f8fafc;
  color: #64748b;
}

.kh-readonly-panel input:disabled,
.kh-readonly-panel select:disabled,
.kh-readonly-panel textarea:disabled,
.kh-readonly-panel button:disabled {
  cursor: not-allowed;
  opacity: .72;
}

.kh-readonly-panel button:disabled {
  background: #dbe5ef;
  border-color: #dbe5ef;
  color: #475569;
}

.kh-tab-preview {
  border: 1px solid #dbe5ef;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.kh-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(190px,1fr));
  gap: 10px;
}

@media (max-width: 760px) {
  .kh-premium-compact {
    grid-template-columns: 1fr;
  }
}

.kh-plan-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 0 4px;
}

.kh-plan-spec {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 6px;
  align-items: center;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid #e4edf7;
  border-radius: 10px;
  background: #f8fbff;
  color: #102a4c;
  font-size: .78rem;
  font-weight: 850;
  line-height: 1.2;
}

.kh-plan-spec small {
  display: block;
  color: var(--kh-muted);
  font-size: .66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.kh-plan-spec-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--kh-primary-soft);
  color: var(--kh-primary);
  font-size: .78rem;
}

.kh-plan-note {
  margin: 5px 0 0;
  color: var(--kh-muted);
  font-size: .74rem;
  line-height: 1.3;
}

.kh-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.kh-tab {
  border: 1px solid var(--kh-border);
  border-radius: 999px;
  background: #fff;
  color: var(--kh-primary-dark);
  padding: 9px 13px;
  font-weight: 900;
}

.kh-tab.active {
  border-color: var(--kh-primary);
  background: var(--kh-primary);
  color: #fff;
}

.container {
  font-family: var(--kh-font);
}

.sidebar {
  background: #ffffff;
  border-right: 1px solid var(--kh-border);
  box-shadow: 8px 0 30px rgba(16,42,76,.05);
  color: var(--kh-primary-dark);
}

.sidebar-header h2 {
  color: var(--kh-primary-dark);
}

.sidebar-header p,
.sidebar .muted {
  color: var(--kh-muted) !important;
}

.sidebar-menu a {
  border-radius: 12px;
  border-left: 0 !important;
  color: #334155;
}

.sidebar-menu a.active,
.sidebar-menu a:hover {
  background: rgba(23,105,170,.10);
  color: var(--kh-primary-dark);
}

.alert,
.kh-alert {
  border-left: 0 !important;
}

.kh-help {
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--kh-primary-border);
  background: var(--kh-primary-soft);
  color: var(--kh-primary-dark);
  font-weight: 900;
}

.kh-help-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  background: rgba(16,42,76,.35);
  padding: 18px;
}

.kh-help-modal.open { display: flex; }

.kh-help-dialog {
  width: min(520px, 94vw);
  background: #fff;
  border: 1px solid var(--kh-border);
  border-radius: 18px;
  box-shadow: var(--kh-shadow);
  padding: 22px;
}

.kh-help-dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.content,
.main-content {
  background: var(--kh-bg);
}

@media (max-width: 980px) {
  .kh-grid-2,
  .kh-grid-3,
  .kh-grid-4,
  .kh-plan-grid {
    grid-template-columns: 1fr;
  }

  .kh-vps-card-top {
    grid-template-columns: 1fr;
  }

  .kh-vps-visual {
    align-items: flex-start;
  }

  .kh-vps-tech-row,
  .kh-vps-voip {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .kh-shell {
    padding: 16px;
  }

  .kh-topbar,
  .auth-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .btn,
  .kh-btn {
    width: 100%;
  }

  .kh-vps-plan-card {
    padding: 18px;
  }

  .kh-vps-ribbon {
    left: 18px;
    right: auto;
    max-width: calc(100% - 36px);
  }

  .kh-vps-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================================================
   KONNECTA — Payment icons realistic badges
   Mejora visual para PayPal / SINPE / Visa / Mastercard / Amex / Diners
   No toca lógica, solo presentación.
   ============================================================ */

.kh-card-brands,
.kh-payment-strip .kh-card-brands,
.kh-addon-payment .kh-card-brands {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  flex-wrap: wrap !important;
}

.kh-card-brand,
.kh-payment-icon {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 38px !important;
  height: 24px !important;
  padding: 0 8px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(15, 23, 42, .10) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  box-shadow:
    0 1px 1px rgba(15, 23, 42, .06),
    inset 0 1px 0 rgba(255,255,255,.9) !important;
  color: #0f172a !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: .2px !important;
  text-transform: uppercase !important;
  overflow: hidden !important;
}

.kh-card-brand svg,
.kh-payment-icon svg {
  width: 22px !important;
  height: 14px !important;
  display: block !important;
}

/* PayPal */
.kh-card-brand.paypal {
  min-width: 44px !important;
  color: #003087 !important;
  background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%) !important;
  border-color: rgba(0, 48, 135, .22) !important;
}

.kh-card-brand.paypal::first-letter {
  color: #009cde !important;
}

/* SINPE / transferencia local */
.kh-card-brand.sinpe,
.kh-card-brand.n12,
.kh-card-brand.transfer,
.kh-card-brand.bank {
  min-width: 42px !important;
  color: #123c7c !important;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%) !important;
  border-color: rgba(37, 99, 235, .22) !important;
}

/* Visa */
.kh-card-brand.visa {
  min-width: 42px !important;
  color: #1434cb !important;
  font-style: italic !important;
  letter-spacing: .7px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  border-color: rgba(20, 52, 203, .18) !important;
}

/* Mastercard: círculos reales dibujados con CSS */
.kh-card-brand.mastercard {
  min-width: 42px !important;
  color: transparent !important;
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, .12) !important;
}

.kh-card-brand.mastercard::before,
.kh-card-brand.mastercard::after {
  content: "" !important;
  position: absolute !important;
  top: 5px !important;
  width: 14px !important;
  height: 14px !important;
  border-radius: 999px !important;
  opacity: .94 !important;
}

.kh-card-brand.mastercard::before {
  left: 11px !important;
  background: #eb001b !important;
}

.kh-card-brand.mastercard::after {
  left: 18px !important;
  background: #f79e1b !important;
  mix-blend-mode: multiply !important;
}

/* Amex */
.kh-card-brand.amex,
.kh-card-brand.aex {
  min-width: 42px !important;
  color: #ffffff !important;
  background: linear-gradient(180deg, #2e77bc 0%, #006fcf 100%) !important;
  border-color: rgba(0, 111, 207, .45) !important;
  letter-spacing: .4px !important;
}

/* Diners */
.kh-card-brand.diners,
.kh-card-brand.dinersclub,
.kh-card-brand.din {
  min-width: 42px !important;
  color: #1f2937 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  border-color: rgba(15, 23, 42, .14) !important;
}

.kh-card-brand.diners::after,
.kh-card-brand.dinersclub::after,
.kh-card-brand.din::after {
  content: "" !important;
  width: 7px !important;
  height: 7px !important;
  margin-left: 4px !important;
  border-radius: 999px !important;
  background: #f97316 !important;
  box-shadow: -4px 0 0 #111827 !important;
}

/* Nota bajo íconos */
.kh-secure-payment-note {
  color: #64748b !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
  margin-top: 8px !important;
}

/* Mejor alineación en cards VPS */
.kh-payment-strip {
  margin-top: 12px !important;
}

.kh-payment-strip-head {
  margin-bottom: 8px !important;
}


/* KH_PANEL_HOME_VPS_CARDS_START */
.kh-plan-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(300px,1fr));
  gap:18px;
  align-items:start;
}

.plan-card.kh-panel-home-vps-card{
  position:relative;
  background:#fff;
  border:1px solid #d9e6f2;
  border-radius:18px;
  box-shadow:0 18px 50px rgba(9,38,74,.10);
  overflow:visible;
  padding:24px;
  color:#09264a;
}

.plan-card.kh-panel-home-vps-card .recommended-ribbon{
  position:absolute;
  top:-13px;
  right:18px;
  background:#ffd333;
  color:#061d38;
  font-size:10px;
  font-weight:900;
  padding:7px 12px;
  border-radius:999px;
  text-transform:uppercase;
  z-index:3;
  white-space:nowrap;
}

.plan-card.kh-panel-home-vps-card .card-top{
  display:grid;
  grid-template-columns:1fr 170px;
  gap:16px;
  align-items:start;
  margin-bottom:18px;
}

.plan-card.kh-panel-home-vps-card .plan-code{
  display:inline-flex;
  background:#0b6fc9;
  color:#fff;
  padding:7px 13px;
  border-radius:7px;
  font-size:15px;
  font-weight:900;
  margin-bottom:12px;
}

.plan-card.kh-panel-home-vps-card .price{
  display:flex;
  align-items:flex-end;
  gap:8px;
  margin-bottom:10px;
}

.plan-card.kh-panel-home-vps-card .price strong{
  font-size:36px;
  line-height:.9;
  color:#0b6fc9;
  letter-spacing:-1px;
  font-weight:1000;
}

.plan-card.kh-panel-home-vps-card .price span{
  font-size:12px;
  color:#30455f;
  font-weight:900;
  padding-bottom:3px;
}

.plan-card.kh-panel-home-vps-card .desc{
  margin:0;
  font-size:12px;
  color:#445b78;
  line-height:1.35;
  font-weight:600;
}

.plan-card.kh-panel-home-vps-card .right-visual{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:flex-start;
  min-width:0;
}

.plan-card.kh-panel-home-vps-card .tech-row{
  display:flex;
  justify-content:flex-end;
  gap:5px;
  flex-wrap:nowrap;
  margin-bottom:8px;
  width:100%;
}

.plan-card.kh-panel-home-vps-card .tech-chip{
  display:inline-flex;
  align-items:center;
  gap:4px;
  background:#eef7ff;
  border:1px solid #d9e6f2;
  color:#0b6fc9;
  border-radius:999px;
  padding:4px 7px;
  font-size:8px;
  font-weight:900;
  white-space:nowrap;
}

.plan-card.kh-panel-home-vps-card .tech-chip.asterisk{
  color:#ff7a00;
  background:#fff8ef;
  border-color:#ffe3bf;
}

.plan-card.kh-panel-home-vps-card .voip-brand{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  color:#0b6fc9;
  width:100%;
  min-height:48px;
}

.plan-card.kh-panel-home-vps-card .voip-brand i{
  font-size:24px;
}

.plan-card.kh-panel-home-vps-card .voip-text{
  display:flex;
  flex-direction:column;
  line-height:.9;
  align-items:flex-start;
}

.plan-card.kh-panel-home-vps-card .voip-text .server{
  font-size:12px;
  font-weight:900;
}

.plan-card.kh-panel-home-vps-card .voip-text .voip{
  font-size:20px;
  font-weight:1000;
}

.plan-card.kh-panel-home-vps-card .specs{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  margin:18px 0 16px;
}

.plan-card.kh-panel-home-vps-card .spec{
  min-height:54px;
  border:1px solid #d9e6f2;
  border-radius:10px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  background:#fff;
  text-align:center;
  padding:6px 4px;
  overflow:hidden;
}

.plan-card.kh-panel-home-vps-card .spec i{
  color:#0b6fc9;
  font-size:13px;
}

.plan-card.kh-panel-home-vps-card .spec .main{
  font-size:9px;
  font-weight:1000;
  color:#30455f;
  line-height:1.05;
}

.plan-card.kh-panel-home-vps-card .spec .sub{
  font-size:8px;
  color:#7b8da4;
  font-weight:800;
  line-height:1;
}

.plan-card.kh-panel-home-vps-card .section-title{
  font-size:13px;
  color:#0b6fc9;
  font-weight:900;
  margin:0 0 8px;
}

.plan-card.kh-panel-home-vps-card .includes{
  display:grid;
  gap:0;
  margin-bottom:12px;
}

.plan-card.kh-panel-home-vps-card .include-row{
  display:grid;
  grid-template-columns:22px 1fr;
  gap:8px;
  align-items:center;
  padding:7px 0;
  border-bottom:1px solid #e8eef5;
  font-size:12px;
  color:#30455f;
  font-weight:800;
  line-height:1.2;
}

.plan-card.kh-panel-home-vps-card .include-row i{
  color:#0b6fc9;
  font-size:13px;
  text-align:center;
}

.plan-card.kh-panel-home-vps-card .clean-accordion{
  border:1px solid #e2ebf4;
  border-radius:12px;
  background:#f8fbfe;
  margin:8px 0;
  overflow:hidden;
}

.plan-card.kh-panel-home-vps-card .clean-accordion summary{
  min-height:40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  cursor:pointer;
  padding:9px 10px;
  color:#30455f;
  font-size:11px;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.25px;
  list-style:none;
}

.plan-card.kh-panel-home-vps-card .clean-accordion summary::-webkit-details-marker{
  display:none;
}

.plan-card.kh-panel-home-vps-card .clean-accordion summary:after{
  content:'⌄';
  color:#0b6fc9;
  font-size:14px;
}

.plan-card.kh-panel-home-vps-card .clean-accordion[open] summary:after{
  content:'⌃';
}

.plan-card.kh-panel-home-vps-card .accordion-body{
  border-top:1px solid #e2ebf4;
  background:#fff;
  padding:8px 10px;
}

.plan-card.kh-panel-home-vps-card .addon-row,
.plan-card.kh-panel-home-vps-card .support-row{
  border-bottom:1px solid #edf2f7;
  padding:7px 0;
}

.plan-card.kh-panel-home-vps-card .addon-row:last-child,
.plan-card.kh-panel-home-vps-card .support-row:last-child{
  border-bottom:0;
}

.plan-card.kh-panel-home-vps-card .addon-main{
  display:grid;
  grid-template-columns:18px 1fr 22px auto auto;
  gap:8px;
  align-items:center;
}

.plan-card.kh-panel-home-vps-card .addon-main > i,
.plan-card.kh-panel-home-vps-card .support-row > i{
  color:#0b6fc9;
  font-size:13px;
  text-align:center;
}

.plan-card.kh-panel-home-vps-card .addon-copy,
.plan-card.kh-panel-home-vps-card .support-row span{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.plan-card.kh-panel-home-vps-card .addon-name,
.plan-card.kh-panel-home-vps-card .support-row strong{
  color:#30455f;
  font-size:11px;
  font-weight:900;
}

.plan-card.kh-panel-home-vps-card .addon-desc,
.plan-card.kh-panel-home-vps-card .support-row small{
  color:#7b8da4;
  font-size:9px;
  font-weight:600;
}

.plan-card.kh-panel-home-vps-card .info-btn{
  width:20px;
  height:20px;
  border:0;
  border-radius:999px;
  background:#eef7ff;
  color:#0b6fc9;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-size:10px;
}

.plan-card.kh-panel-home-vps-card .addon-price,
.plan-card.kh-panel-home-vps-card .support-row b{
  font-size:10px;
  color:#09264a;
  font-weight:1000;
  white-space:nowrap;
}

.plan-card.kh-panel-home-vps-card .add-btn{
  border:0;
  background:#0b6fc9;
  color:#fff;
  font-size:10px;
  font-weight:900;
  padding:7px 10px;
  border-radius:8px;
  cursor:pointer;
}

.plan-card.kh-panel-home-vps-card .add-btn.is-added{
  background:#16a34a;
}

.plan-card.kh-panel-home-vps-card .support-row{
  display:grid;
  grid-template-columns:18px 1fr auto;
  gap:8px;
  align-items:center;
}

.plan-card.kh-panel-home-vps-card .payment-title{
  font-size:11px;
  color:#52677f;
  font-weight:900;
  margin:12px 0 8px;
}

.plan-card.kh-panel-home-vps-card .payments{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:7px;
  margin-bottom:12px;
}

.plan-card.kh-panel-home-vps-card .pay{
  height:28px;
  border:1px solid #d9e6f2;
  border-radius:7px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  font-size:8px;
  font-weight:1000;
  color:#0b4f97;
}

.plan-card.kh-panel-home-vps-card .pay.paypal{color:#0070ba;font-style:italic}
.plan-card.kh-panel-home-vps-card .pay.visa{color:#073f9e}
.plan-card.kh-panel-home-vps-card .pay.master{position:relative}
.plan-card.kh-panel-home-vps-card .pay.master:before,
.plan-card.kh-panel-home-vps-card .pay.master:after{
  content:"";
  width:13px;
  height:13px;
  border-radius:50%;
  display:block;
  position:absolute;
}
.plan-card.kh-panel-home-vps-card .pay.master:before{background:#eb001b;left:calc(50% - 12px)}
.plan-card.kh-panel-home-vps-card .pay.master:after{background:#f79e1b;right:calc(50% - 12px);opacity:.92}
.plan-card.kh-panel-home-vps-card .pay.amex{background:#0b6fc9;color:#fff}
.plan-card.kh-panel-home-vps-card .pay.din{color:#111827}
.plan-card.kh-panel-home-vps-card .pay.din span{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#ff8a1d;
  display:inline-block;
  margin-left:4px;
}

.plan-card.kh-panel-home-vps-card .total{
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:#062143;
  color:#fff;
  padding:12px 14px;
  border-radius:10px;
  margin-bottom:12px;
  font-weight:1000;
}

.plan-card.kh-panel-home-vps-card .total span{
  font-size:12px;
}

.plan-card.kh-panel-home-vps-card .total strong{
  font-size:17px;
}

.plan-card.kh-panel-home-vps-card .kh-vps-actions{
  display:grid;
  grid-template-columns:1fr;
  gap:9px;
}

.plan-card.kh-panel-home-vps-card .kh-vps-actions .btn,
.plan-card.kh-panel-home-vps-card .cta{
  width:100%;
  min-height:44px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:1000;
  text-align:center;
}

.plan-card.kh-panel-home-vps-card .kh-vps-actions .btn.primary,
.plan-card.kh-panel-home-vps-card .cta{
  background:#0b6fc9;
  color:#fff;
  box-shadow:0 8px 20px rgba(11,111,201,.24);
}

.kh-front-tooltip-modal{
  position:fixed;
  inset:0;
  background:rgba(9,38,74,.28);
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:99999;
}

.kh-front-tooltip-modal.is-open{
  display:flex;
}

.kh-front-tooltip-card{
  width:min(100%,520px);
  background:#fff;
  border:1px solid #d9e6f2;
  border-radius:18px;
  box-shadow:0 24px 70px rgba(9,38,74,.22);
  padding:20px;
  position:relative;
}

.kh-front-tooltip-close{
  position:absolute;
  top:12px;
  right:12px;
  width:30px;
  height:30px;
  border:0;
  border-radius:999px;
  background:#f1f5f9;
  color:#64748b;
  cursor:pointer;
}

.kh-front-tooltip-head{
  display:grid;
  grid-template-columns:42px 1fr;
  gap:12px;
  align-items:center;
  margin-bottom:14px;
  padding-right:28px;
}

.kh-front-tooltip-icon{
  width:42px;
  height:42px;
  border-radius:13px;
  background:#eef7ff;
  color:#0b6fc9;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
}

.kh-front-tooltip-head h3{
  margin:0;
  font-size:18px;
  color:#09264a;
  font-weight:900;
}

.kh-front-tooltip-head small{
  color:#7b8da4;
  font-size:12px;
  font-weight:600;
}

.kh-front-tooltip-body{
  display:grid;
  gap:10px;
}

.kh-front-tooltip-body p{
  margin:0;
  color:#52677f;
  font-size:13px;
  line-height:1.45;
  font-weight:500;
}

@media(max-width:1180px){
  .kh-plan-grid{grid-template-columns:repeat(2,minmax(300px,1fr))}
}

@media(max-width:760px){
  .kh-plan-grid{grid-template-columns:1fr}
  .plan-card.kh-panel-home-vps-card .card-top{grid-template-columns:1fr}
  .plan-card.kh-panel-home-vps-card .right-visual{align-items:flex-start}
  .plan-card.kh-panel-home-vps-card .tech-row{justify-content:flex-start}
  .plan-card.kh-panel-home-vps-card .voip-brand{justify-content:flex-start}
  .plan-card.kh-panel-home-vps-card .specs{grid-template-columns:repeat(2,1fr)}
  .plan-card.kh-panel-home-vps-card .addon-main{grid-template-columns:18px 1fr 22px}
  .plan-card.kh-panel-home-vps-card .addon-price,
  .plan-card.kh-panel-home-vps-card .add-btn{grid-column:2 / 4;justify-self:start}
}
/* KH_PANEL_HOME_VPS_CARDS_END */




/* KH_FIX_BILLING_VPS_FA_ICONS */
.kh-vps-spec-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  color:#0b6fc9;
  font-size:14px;
  line-height:1;
}

.kh-vps-spec-icon i{
  color:#0b6fc9;
  font-size:14px;
  line-height:1;
}

.kh-vps-server-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  color:#0b6fc9;
  font-size:22px;
  line-height:1;
}

.kh-vps-server-icon i{
  color:#0b6fc9;
  font-size:22px;
}

.kh-vps-tech i{
  font-size:9px;
  margin-right:4px;
}

.kh-vps-tech{
  display:inline-flex;
  align-items:center;
  gap:3px;
}

.kh-vps-tech-asterisk,
.kh-vps-tech-asterisk i{
  color:#ff7a00;
}

.kh-vps-voip{
  gap:8px;
}

.kh-vps-voip strong{
  font-weight:950;
}

.kh-vps-spec strong{
  font-weight:900;
}

