/* ================================
   ColinPay — style.css
   Diseño adaptable, móvil primero
================================ */
:root {
  --purple: #7057e8;
  --blue: #3978ed;
  --ink: #202344;
  --muted: #747895;
  --bg: #f5f7ff;
  --line: #e7e9f5;
  --white: #fff;
  --green: #20b978;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 0%, #eeeaff 0, transparent 35%),
    radial-gradient(circle at 100% 20%, #e7f1ff 0, transparent 32%),
    var(--bg);
}
button, input, select { font: inherit; }
button { cursor: pointer; border: 0; }
.app { max-width: 1080px; margin: auto; padding: 18px 18px 42px; }
.topbar { height: 54px; display: flex; align-items: center; justify-content: space-between; }
.brand {
  font-size: 22px; font-weight: 900; letter-spacing: -1px;
  background: linear-gradient(100deg, var(--purple), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav { display: flex; gap: 8px; }
.nav button { padding: 10px 13px; border-radius: 12px; background: transparent; color: #606582; font-weight: 700; }
.nav button:hover { background: #fff; }
.screen { display: none; }
.screen.active { display: block; animation: appear .3s ease; }
@keyframes appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero {
  min-height: calc(100vh - 100px); display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center; padding: 24px 10px;
}
.hero-mark {
  width: 76px; height: 76px; border-radius: 25px; display: grid; place-items: center;
  color: white; font-size: 35px; font-weight: 900;
  background: linear-gradient(140deg, var(--purple), var(--blue));
  box-shadow: 0 15px 35px #6b61dc45; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(44px, 9vw, 76px); line-height: 1; margin: 0 0 18px; letter-spacing: -3px; }
.gradient {
  background: linear-gradient(100deg, var(--purple), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { font-size: clamp(18px, 3vw, 22px); color: #666d8e; margin: 0 0 32px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; width: min(100%, 470px); }
.btn {
  min-height: 54px; padding: 16px 22px; border-radius: 16px; font-weight: 800;
  transition: transform .2s, filter .2s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.03); }
.primary { color: #fff; background: linear-gradient(110deg, var(--purple), var(--blue)); box-shadow: 0 9px 22px #6659dd35; }
.secondary { color: #5146b9; background: #fff; border: 1px solid #e4e2fb; }
.hero small { margin-top: 24px; color: #9296ae; }
.panel {
  max-width: 620px; margin: 28px auto; padding: clamp(20px, 4vw, 34px);
  background: #ffffffeb; border: 1px solid #eceefa; border-radius: 26px;
  box-shadow: 0 16px 55px #28336a0d;
}
.panel.wide { max-width: 800px; }
.panel h2 { margin: 0 0 8px; text-align: center; font-size: 30px; letter-spacing: -.8px; }
.sub { margin: 0 0 25px; color: var(--muted); text-align: center; }
.profile { padding-top: 36px; text-align: center; }
.avatar-wrap { position: relative; width: 116px; height: 116px; margin: 0 auto 16px; }
.avatar {
  width: 116px; height: 116px; object-fit: cover; border-radius: 50%;
  background: #efedff; border: 5px solid white; box-shadow: 0 7px 24px #3331;
}
.online {
  position: absolute; top: 5px; right: 3px; width: 19px; height: 19px;
  border: 3px solid white; border-radius: 50%; background: var(--green);
}
.profile h2 { margin: 8px 0; font-size: 29px; }
.handle { color: #8a8da5; font-weight: 700; }
.bio { max-width: 420px; margin: 12px auto 25px; color: #686d89; line-height: 1.6; }
.profile .btn { display: block; width: min(100%, 350px); margin: 10px auto; }
.share-menu { display: none; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 14px auto; }
.share-menu.show { display: flex; }
.share-menu button { padding: 11px 14px; border-radius: 12px; background: #f1f2ff; color: #5146b9; font-weight: 700; }
.field { margin: 15px 0; }
.field label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 750; }
.field input, .field select {
  width: 100%; padding: 14px 15px; color: var(--ink); background: #fbfcff;
  border: 1px solid #e2e5f1; border-radius: 13px; outline: none;
}
.field input:focus, .field select:focus { border-color: #8a7bf0; box-shadow: 0 0 0 3px #7057e81a; }
.photo-row { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 16px; background: #f8f8ff; }
.photo-row img { width: 68px; height: 68px; object-fit: cover; border-radius: 50%; background: #ecebff; }
.photo-row button { padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: #5146b9; font-weight: 750; }
.hint { margin-top: 6px; color: #888da7; font-size: 12px; }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; color: #626783; font-size: 14px; }
.check input { margin-top: 3px; accent-color: var(--purple); }
.form-submit { width: 100%; margin-top: 6px; }
.message, .warning {
  display: none; margin-top: 14px; padding: 13px; border-radius: 13px;
  font-size: 14px; line-height: 1.45;
}
.message { background: #e9fbf3; color: #14794f; font-weight: 700; text-align: center; }
.warning { background: #fff3e9; color: #9a4c13; }
.message.show, .warning.show { display: block; }
.success-view { display: none; text-align: center; }
.success-view.show { display: block; }
.success-icon { font-size: 45px; }
.achievements { max-width: 800px; margin: 25px auto; }
.achievements h2 { text-align: center; font-size: 26px; }
.achievement-card { padding: 20px; background: white; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 12px 35px #28336a0a; }
.progress-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 800; }
.progress { height: 9px; margin: 12px 0 18px; overflow: hidden; border-radius: 20px; background: #eff0fa; }
.progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--purple), var(--blue)); transition: width .3s; }
.tasks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.task { display: flex; align-items: flex-start; gap: 9px; padding: 11px; border-radius: 13px; background: #f8f9ff; color: #555b7a; font-size: 13px; line-height: 1.4; }
.task input { flex: none; margin-top: 2px; accent-color: var(--purple); }
.task.done { background: #effbf6; color: #287354; }
.reward { margin-top: 17px; padding: 15px; border-radius: 15px; background: linear-gradient(110deg, #f0edff, #eaf3ff); line-height: 1.5; }
.reward strong { color: #5146b9; }
.video-instruction { margin: 13px 0 0; color: #6d7290; font-size: 13px; }
.video-instruction input { width: 100%; margin-top: 8px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; }
.footer { padding: 20px 0; color: #9a9db2; text-align: center; font-size: 12px; }
.hidden { display: none !important; }
@media (max-width: 600px) {
  .app { padding: 12px 14px 35px; }
  .topbar { height: 48px; }
  .nav button { padding: 8px; font-size: 12px; }
  .hero { min-height: calc(100svh - 80px); padding-bottom: 45px; }
  .hero h1 { letter-spacing: -2px; }
  .actions { flex-direction: column; }
  .actions .btn { width: 100%; }
  .panel { margin: 18px auto; padding: 21px 17px; }
  .panel h2 { font-size: 26px; }
  .tasks { grid-template-columns: 1fr; }
}
