:root {
  --rojo: #FF0000;
  --rojo-oscuro: #D40000;
  --rojo-claro: #FFF0F0;
  --negro: #000000;
  --gris-oscuro: #1A1A1A;
  --gris-medio-oscuro: #555555;
  --gris-medio: #808080;
  --gris-claro: #B3B3B3;
  --gris-muy-claro: #D9D9D9;
  --gris-fondo: #F2F2F2;
  --gris-casi-blanco: #F8F8F8;
  --blanco: #FFFFFF;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--gris-casi-blanco);
  background-image: linear-gradient(rgba(248, 248, 248, 0.55), rgba(248, 248, 248, 0.8)), url("/bg-transfer.jpg");
  background-repeat: no-repeat;
  background-position: center 90px;
  background-size: cover;
  color: var(--gris-oscuro);
  min-height: 100vh;
}

.topbar {
  background: var(--blanco);
  border-bottom: 1px solid var(--gris-muy-claro);
}

.topbar-inner {
  margin: 0;
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar .logo { height: 36px; }

.topbar-title {
  font-size: 17px;
  font-weight: bold;
  letter-spacing: 0.3px;
  color: var(--gris-medio-oscuro);
}

.topbar-plus {
  color: var(--rojo);
}

.wrap {
  max-width: 640px;
  margin: 32px auto 24px;
  padding: 0 24px;
}

.card {
  background: var(--blanco);
  border: 1px solid var(--gris-muy-claro);
  border-radius: 12px;
  padding: 30px 40px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--rojo-claro);
  color: var(--rojo);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card-icon-success {
  background: var(--gris-fondo);
  color: var(--negro);
}

.card h1 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: bold;
  color: var(--negro);
}

.muted {
  color: var(--gris-medio-oscuro);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 14px;
}

.step-label {
  display: block;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--rojo);
  margin-bottom: 8px;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid var(--gris-muy-claro);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--gris-oscuro);
  background: var(--blanco);
  transition: border-color 0.15s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: var(--rojo);
}

select {
  padding: 10px 12px;
  border: 1px solid var(--gris-muy-claro);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--gris-oscuro);
  background: var(--blanco);
}

.btn-primary {
  width: 100%;
  background: var(--rojo);
  color: var(--blanco);
  border: none;
  padding: 14px;
  font-size: 15px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-primary:hover:not(:disabled) {
  background: var(--rojo-oscuro);
}

.btn-primary:disabled {
  background: var(--gris-claro);
  cursor: not-allowed;
}

.btn-secondary {
  display: inline-block;
  background: var(--blanco);
  color: var(--negro);
  border: 1.5px solid var(--negro);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-secondary:hover {
  background: var(--negro);
  color: var(--blanco);
}

.dropzone {
  border: 2px dashed var(--gris-muy-claro);
  border-radius: 10px;
  padding: 22px 16px;
  text-align: center;
  margin-bottom: 14px;
  color: var(--gris-oscuro);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.dropzone-icon {
  color: var(--gris-medio);
  margin-bottom: 8px;
}

.dropzone p { margin: 4px 0; }

.dropzone.dragover {
  border-color: var(--rojo);
  background: var(--rojo-claro);
}

.dropzone.dragover .dropzone-icon {
  color: var(--rojo);
}

.file-list {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
  border-top: 1px solid var(--gris-fondo);
}

.file-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gris-oscuro);
  padding: 10px 0;
  border-bottom: 1px solid var(--gris-fondo);
}

.file-list .file-remove {
  color: var(--rojo);
  cursor: pointer;
  font-weight: bold;
  font-size: 12px;
  background: none;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 6px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.label-inline {
  font-size: 13px;
  color: var(--gris-medio-oscuro);
  line-height: 1.4;
}

.progress-bar {
  background: var(--gris-fondo);
  border-radius: 8px;
  height: 8px;
  overflow: hidden;
  margin: 18px 0 8px;
}

.progress-fill {
  background: var(--rojo);
  height: 100%;
  width: 0%;
  transition: width 0.2s ease;
}

#progress-text {
  margin-bottom: 0;
}

.link-box {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.link-box input {
  margin-bottom: 0;
  background: var(--gris-fondo);
  color: var(--gris-oscuro);
  font-size: 13px;
}

.link-box .btn-primary {
  width: auto;
  white-space: nowrap;
  padding: 12px 20px;
}

.error {
  color: var(--rojo);
  font-size: 13px;
  margin-top: 8px;
  margin-bottom: 0;
}

.hidden { display: none !important; }

.footer {
  text-align: center;
  color: var(--gris-claro);
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 8px 0 32px;
}

@media (max-width: 400px) {
  .card { padding: 28px 20px; }
  .wrap { margin-top: 24px; }
}
