:root {
  --ion-color-primary: #da0081;
  --ion-background-color: #ffffff;
  --uva: #200020;
  --uva-80: #4d334d;
  --orquidea: #da0081;
  --input-bg: #fbf7fb;
  --input-border: #e8e8e8;
  --muted: #6e6e6e;
  --success: #11da7a;
  --error: #ff3e60;
  --font: "Manrope", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  background: var(--uva);
  color: var(--uva);
  -webkit-font-smoothing: antialiased;
}

.ion-app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.ion-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.uva-hero {
  background: var(--uva);
  color: #fff;
  text-align: center;
  padding: calc(env(safe-area-inset-top, 0) + 16px) 16px 24px;
}

.uva-hero__brand {
  display: block;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
  color: #fff;
  margin-bottom: 12px;
}

.hero-art {
  display: flex;
  justify-content: center;
  margin: 4px 0 16px;
}

.hero-art img {
  width: 120px;
  height: 120px;
}

.uva-hero__title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.uva-hero__subtitle {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.content-sheet {
  flex: 1;
  background: #fff;
  border-radius: 16px 16px 0 0;
  margin-top: -4px;
  padding-top: 20px;
  padding-bottom: 8px;
}

.ion-padding-horizontal {
  padding-left: 16px;
  padding-right: 16px;
}

.hero {
  padding-bottom: 12px;
}

.page-subtitle {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--uva-80);
}

.page-subtitle strong {
  color: var(--orquidea);
  font-weight: 700;
}

.nequi-item {
  position: relative;
  margin-bottom: 20px;
  min-height: 66px;
  border: 1px solid var(--input-border);
  border-radius: 4px;
  background: var(--input-bg);
  padding: 0 20px;
}

.nequi-label {
  position: absolute;
  left: 20px;
  top: 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--orquidea);
  pointer-events: none;
  transition: all 0.15s ease;
}

.nequi-input {
  width: 100%;
  height: 66px;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 600;
  color: var(--uva);
  padding: 30px 0 8px;
  outline: none;
}

.nequi-item:focus-within .nequi-label,
.nequi-item.has-value .nequi-label {
  top: 9px;
  font-size: 13px;
}

.nequi-item:focus-within {
  border-color: rgba(218, 0, 129, 0.45);
  box-shadow: 0 0 0 2px rgba(218, 0, 129, 0.1);
}

.section-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--uva);
}

.package-list {
  display: grid;
  gap: 10px;
  margin-bottom: 8px;
}

.package {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--input-border);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.package:hover {
  border-color: #d8d8d8;
}

.package.selected {
  border-color: var(--orquidea);
  background: #f9f4f7;
}

.package-saldo {
  font-size: 16px;
  font-weight: 700;
  color: var(--uva);
}

.package-desc {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.3;
}

.package-price {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.package-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #d0d0d0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  transition: all 0.15s;
}

.package.selected .package-check {
  background: var(--orquidea);
  border-color: var(--orquidea);
}

.nequi-footer {
  padding: 16px 0 8px;
}

.ion-button {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pay-btn__label {
  line-height: 1;
}

.nequi-spinner {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
}

.ion-button--loading .nequi-spinner {
  display: flex;
}

.ion-button--loading .nequi-spinner svg {
  animation: nequi-spin 1s linear infinite;
}

@keyframes nequi-spin {
  to {
    transform: rotate(360deg);
  }
}

.ion-button--loading .pay-btn__label {
  visibility: hidden;
}

.ion-button--loading:disabled {
  opacity: 1;
  cursor: wait;
}

.ion-button--orquidea {
  background: var(--orquidea);
  color: #fff;
}

.ion-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.ion-button:not(:disabled):active {
  opacity: 0.9;
}

.ion-button--outline {
  margin-top: 12px;
  background: #fff;
  color: var(--uva);
  border: 1px solid var(--uva);
}

.form-error {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--error);
  text-align: center;
}

.nequi-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--uva);
}

.status-panel {
  text-align: center;
  padding: 40px 8px 16px;
}

.status-icon {
  font-size: 52px;
  margin-bottom: 12px;
}

.status-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--muted);
}

.ion-footer {
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
  background: #fff;
  border-top: 1px solid #f0f0f0;
}

.wompi-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.wompi-badge strong {
  color: var(--uva);
  font-weight: 700;
}

.wompi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

@media (min-width: 420px) {
  .ion-padding-horizontal,
  .uva-hero {
    padding-left: 20px;
    padding-right: 20px;
  }
}
