* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #8cc1e6;
  height: 100%;
}
::-webkit-scrollbar { width: 0; height: 0; }

@keyframes wave { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes floatY { 0%, 100% { transform: translateY(0) rotate(45deg); } 50% { transform: translateY(-11px) rotate(45deg); } }
@keyframes rise { 0% { transform: translateY(20px) rotate(45deg); opacity: 0; } 25% { opacity: .7; } 100% { transform: translateY(-160px) rotate(45deg); opacity: 0; } }
@keyframes pop { 0% { transform: scale(.5); opacity: 0; } 65% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* En celular: la página ocupa el viewport real, sin marco simulado.
   En desktop (>480px): se presenta como una tarjeta centrada, ancho fijo tipo teléfono,
   porque ahí no compite con un status bar nativo. */
.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: radial-gradient(circle at 28% 18%, #d6edfb 0%, #a9d4ef 55%, #8cc1e6 100%);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #EAF4FB;
}

.scroll-content {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  overflow-y: auto; overflow-x: hidden;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 18px calc(110px + env(safe-area-inset-bottom, 0px));
}

/* ---------- Loading / Error states ---------- */
.state-screen {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 32px; background: #EAF4FB; z-index: 100;
}
.spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 4px solid rgba(32,170,226,.18); border-top-color: #20AAE2;
  animation: spin .8s linear infinite;
}
.state-title { font-weight: 700; font-size: 19px; color: #20364C; margin-top: 18px; }
.state-text { font-size: 13.5px; color: #7d96a8; font-weight: 600; margin-top: 8px; max-width: 280px; line-height: 1.5; }

/* ---------- Banner / Club header ---------- */
.banner-wrap { position: relative; margin-top: 0; }
.banner-wrap img { display: block; width: 100%; height: auto; border-radius: 24px; }
.bell-btn {
  position: absolute; top: 14px; right: 16px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.16); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.bell-dot {
  position: absolute; top: 7px; right: 8px; width: 8px; height: 8px;
  border-radius: 50%; background: #9CCB3B; border: 2px solid #16273a;
}

.club-card {
  margin-top: 16px; border: 1.5px solid #9CCB3B; border-radius: 24px;
  background: transparent; padding: 10px 20px; text-align: center;
}
.club-title { font-weight: 800; font-size: 18px; letter-spacing: 3.5px; color: #20364C; text-indent: 3.5px; white-space: nowrap; }
.club-title span { color: #7fb22f; }
.club-sub { margin-top: 4px; font-weight: 600; font-size: 13.5px; color: rgba(32,54,76,.66); }
.club-sub b { color: #7fb22f; font-weight: 800; }

/* ---------- Hero ---------- */
.hero {
  margin-top: 14px; position: relative; border-radius: 30px; overflow: hidden;
  background: linear-gradient(162deg, #2a4d6b 0%, #20364C 58%, #16273a 100%);
  padding: 20px 20px 26px; color: #fff; box-shadow: 0 20px 44px rgba(32,54,76,.32);
}
.hero-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-particles span { position: absolute; border-radius: 50% 50% 50% 0; animation: floatY 4s ease-in-out infinite; }
.hero-row { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.hero-greet { font-size: 13px; color: rgba(255,255,255,.7); font-weight: 600; }
.hero-name { font-size: 22px; font-weight: 600; line-height: 1.1; }
.hero-level-badge {
  display: flex; align-items: center; gap: 6px; background: rgba(32,170,226,.2);
  border: 1px solid rgba(32,170,226,.45); padding: 6px 13px; border-radius: 30px;
}
.hero-level-badge i { color: #54c4ef; font-size: 15px; }
.hero-level-badge span { font-weight: 600; font-size: 13px; }

.hero-gotas-label { font-size: 13px; color: rgba(255,255,255,.65); font-weight: 600; position: relative; z-index: 2; }
.hero-gotas-row { display: flex; align-items: center; gap: 8px; margin-top: 3px; position: relative; z-index: 2; }
.hero-gotas-row i { color: #20AAE2; font-size: 30px; }
.hero-gotas-num { font-size: 46px; font-weight: 700; line-height: 1; letter-spacing: -1px; }
.hero-gotas-unit { font-size: 16px; font-weight: 500; color: rgba(255,255,255,.7); align-self: flex-end; margin-bottom: 7px; }

.hero-progress-wrap { position: relative; z-index: 2; margin-top: 20px; }
.hero-progress-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 12px; font-weight: 700; }
.hero-progress-top .left { color: rgba(255,255,255,.85); }
.hero-progress-top .left span { color: #9CCB3B; }
.hero-progress-top .right { color: rgba(255,255,255,.6); }
.progress-track { height: 12px; border-radius: 8px; background: rgba(255,255,255,.14); overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #20AAE2, #54c4ef); border-radius: 8px; transition: width 1.5s cubic-bezier(.22,1,.36,1); width: 0%; }

.niveles-track { display: flex; justify-content: space-between; margin-top: 14px; }
.nivel-item { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.nivel-dot { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.16); }
.nivel-dot.done, .nivel-dot.cur { background: #20AAE2; }
.nivel-dot.cur { box-shadow: 0 0 0 5px rgba(32,170,226,.22); }
.nivel-dot i { font-size: 15px; color: rgba(255,255,255,.5); }
.nivel-dot.done i, .nivel-dot.cur i { color: #fff; }
.nivel-name { font-size: 10px; color: rgba(255,255,255,.6); font-weight: 500; }
.nivel-name.cur { color: #fff; font-weight: 700; }

.hero-wave { position: absolute; bottom: -1px; left: 0; width: 200%; height: 42px; opacity: .16; animation: wave 9s linear infinite; }

/* ---------- Quick actions ---------- */
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.quick-btn {
  position: relative; z-index: 0; overflow: hidden; text-align: left; cursor: pointer;
  border: none; border-radius: 22px; padding: 16px; color: #fff;
}
.quick-btn.green { background: linear-gradient(150deg, #9CCB3B, #7fb22f); box-shadow: 0 10px 24px rgba(156,203,59,.32); }
.quick-btn.blue { background: linear-gradient(150deg, #20AAE2, #1b8fd0); box-shadow: 0 10px 24px rgba(32,170,226,.32); }
.quick-btn .deco {
  position: absolute; top: 50%; right: -26px; width: 78px; height: 78px;
  border: 1.5px solid rgba(255,255,255,.32); border-radius: 50% 50% 50% 0;
  transform: translateY(-50%) rotate(45deg); z-index: -1; pointer-events: none;
}
.quick-btn i { font-size: 26px; }
.quick-btn .qt { font-weight: 600; font-size: 15px; margin-top: 8px; line-height: 1.15; }
.quick-btn .qs { font-size: 11.5px; opacity: .92; font-weight: 700; }

/* ---------- Hydration card ---------- */
.hyd-card { background: #fff; border-radius: 24px; padding: 18px; margin-top: 16px; box-shadow: 0 10px 26px rgba(32,54,76,.07); }
.hyd-top { display: flex; align-items: center; justify-content: space-between; }
.hyd-top-left { display: flex; align-items: center; gap: 8px; }
.hyd-top-left i { color: #20AAE2; font-size: 20px; }
.hyd-top-left span { font-weight: 600; font-size: 15px; color: #20364C; }
.hyd-badge { font-size: 11px; font-weight: 700; color: #7fb22f; background: rgba(156,203,59,.16); padding: 4px 11px; border-radius: 20px; }
.hyd-gauges { display: flex; align-items: flex-end; justify-content: space-between; gap: 4px; margin-top: 4px; }
.hyd-gauge-wrap { position: relative; flex: 1; min-width: 0; max-width: 50%; }
.hyd-gauge-wrap svg { width: 100%; height: auto; max-width: 168px; display: block; margin: 0 auto; }
.hyd-center { position: absolute; bottom: 2px; left: 0; right: 0; text-align: center; pointer-events: none; }
.hyd-center .val { font-size: 22px; font-weight: 700; color: #20364C; line-height: 1; letter-spacing: -0.5px; }
.hyd-center .sub { font-size: 10px; font-weight: 700; color: #9DB6C9; margin-top: 2px; text-transform: capitalize; }
.hyd-center .sub.hyd-sub-cur { font-size: 11px; font-weight: 800; color: #20364C; letter-spacing: 0.01em; }
.hyd-foot { font-size: 12px; color: #7d96a8; text-align: center; font-weight: 600; margin-top: 2px; }

/* ---------- Sustainability ---------- */
.eco-card {
  margin-top: 16px; border-radius: 24px; padding: 18px;
  background: linear-gradient(150deg, #9CCB3B, #84b531); color: #fff;
  box-shadow: 0 12px 28px rgba(132,181,49,.3); position: relative; overflow: hidden;
}
.eco-card .leaf-bg { position: absolute; right: -12px; bottom: -16px; font-size: 100px; opacity: .16; }
.eco-top { display: flex; align-items: center; gap: 8px; position: relative; z-index: 2; }
.eco-top span { font-weight: 600; font-size: 15px; }
.eco-num-row { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; position: relative; z-index: 2; }
.eco-num { font-size: 40px; font-weight: 700; line-height: 1; }
.eco-num-label { font-size: 13px; font-weight: 800; opacity: .95; }
.eco-foot { font-size: 12px; font-weight: 700; opacity: .92; margin-top: 5px; position: relative; z-index: 2; max-width: 260px; }

/* ---------- Featured rewards ---------- */
.section-head { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; }
.section-head span { font-weight: 600; font-size: 17px; color: #20364C; }
.link-btn { background: none; border: none; cursor: pointer; font-weight: 800; font-size: 12px; color: #20AAE2; }
.featured-scroll { display: flex; gap: 12px; overflow-x: auto; margin-top: 12px; padding-bottom: 4px; }
.featured-card {
  flex: none; width: 150px; text-align: left; cursor: pointer; border: none;
  background: #fff; border-radius: 20px; padding: 14px; box-shadow: 0 8px 22px rgba(32,54,76,.07);
}
.fc-icon { width: 46px; height: 46px; border-radius: 14px; background: rgba(32,170,226,.12); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fc-icon img { width: 100%; height: 100%; object-fit: cover; }
.fc-icon i { font-size: 24px; color: #20AAE2; }
.fc-name { font-weight: 500; font-size: 13.5px; color: #20364C; margin-top: 10px; line-height: 1.2; min-height: 33px; }
.fc-cost { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.fc-cost i { font-size: 14px; color: #20AAE2; }
.fc-cost span { font-weight: 600; font-size: 14px; color: #20364C; }

/* ---------- Premios grid ---------- */
.premios-head { margin-top: 16px; }
.premios-title-row { display: flex; align-items: center; justify-content: space-between; }
.premios-title { font-weight: 700; font-size: 25px; color: #20364C; }
.premios-balance { display: flex; align-items: center; gap: 6px; background: #20364C; padding: 7px 14px; border-radius: 24px; }
.premios-balance i { color: #20AAE2; font-size: 15px; }
.premios-balance span { font-weight: 600; font-size: 14px; color: #fff; }
.premios-sub { font-size: 13px; color: #7d96a8; font-weight: 600; margin-top: 2px; }

.chips-row { display: flex; gap: 8px; overflow-x: auto; margin-top: 16px; padding-bottom: 4px; }
.chip { flex: none; cursor: pointer; border: none; font-weight: 700; font-size: 13px; padding: 9px 17px; border-radius: 22px; background: #fff; color: #5b7387; box-shadow: 0 4px 12px rgba(32,54,76,.06); }
.chip.active { background: #20364C; color: #fff; box-shadow: none; }

.premios-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.premio-card { position: relative; text-align: left; cursor: pointer; border: none; background: #fff; border-radius: 20px; padding: 14px; box-shadow: 0 8px 22px rgba(32,54,76,.07); }
.premio-card.locked { opacity: .74; }
.premio-lock { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%; background: #EAF1F6; display: flex; align-items: center; justify-content: center; }
.premio-lock i { font-size: 13px; color: #9DB6C9; }
.premio-icon { width: 48px; height: 48px; border-radius: 14px; background: rgba(32,170,226,.12); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.premio-icon img { width: 100%; height: 100%; object-fit: cover; }
.premio-icon i { font-size: 25px; color: #20AAE2; }
.premio-name { font-weight: 500; font-size: 13.5px; color: #20364C; margin-top: 10px; line-height: 1.2; min-height: 33px; }
.premio-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.premio-cost { display: flex; align-items: center; gap: 4px; }
.premio-cost i { font-size: 14px; color: #20AAE2; }
.premio-cost span { font-weight: 600; font-size: 14px; color: #20364C; }
.premio-cat { font-size: 10px; font-weight: 800; color: #9DB6C9; }
.empty-msg { text-align: center; padding: 30px 10px; color: #7d96a8; font-size: 13.5px; font-weight: 600; }

/* ---------- Perfil ---------- */
.perfil-head { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px 0 4px; }
.perfil-avatar {
  width: 84px; height: 84px; border-radius: 50%;
  background: linear-gradient(150deg, #20AAE2, #20364C);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 36px; color: #fff;
  box-shadow: 0 10px 26px rgba(32,170,226,.32);
}
.perfil-name { font-weight: 600; font-size: 22px; color: #20364C; margin-top: 12px; }
.perfil-badge { display: flex; align-items: center; gap: 6px; margin-top: 6px; background: rgba(32,170,226,.12); padding: 5px 13px; border-radius: 22px; }
.perfil-badge i { color: #20AAE2; font-size: 14px; }
.perfil-badge span { font-weight: 800; font-size: 12px; color: #20364C; }

.stats-row { display: flex; gap: 10px; margin-top: 18px; }
.stat-box { flex: 1; background: #fff; border-radius: 18px; padding: 14px 8px; text-align: center; box-shadow: 0 8px 20px rgba(32,54,76,.06); }
.stat-box i { font-size: 22px; color: #20AAE2; }
.stat-box.green i { color: #9CCB3B; }
.stat-box .v { font-weight: 700; font-size: 19px; color: #20364C; margin-top: 4px; }
.stat-box .l { font-size: 10.5px; font-weight: 700; color: #9DB6C9; }

.ref-card {
  margin-top: 16px; border-radius: 24px; padding: 18px;
  background: linear-gradient(150deg, #9CCB3B, #7fb22f); color: #fff;
  box-shadow: 0 12px 28px rgba(132,181,49,.3); position: relative; overflow: hidden;
}
.ref-card .icon-bg { position: absolute; right: -10px; bottom: -14px; font-size: 92px; opacity: .16; }
.ref-title { font-weight: 600; font-size: 16px; position: relative; z-index: 2; }
.ref-sub { font-size: 12.5px; font-weight: 700; opacity: .92; margin-top: 3px; position: relative; z-index: 2; max-width: 250px; }
.ref-btn-row { margin-top: 14px; position: relative; z-index: 2; }
.ref-cta {
  width: 100%; cursor: pointer; border: none; background: #fff; color: #7fb22f;
  border-radius: 14px; padding: 12px 16px; font-weight: 800; font-size: 13.5px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

.activity-title { font-weight: 600; font-size: 17px; color: #20364C; margin-top: 22px; margin-bottom: 10px; }
.activity-list { background: #fff; border-radius: 20px; padding: 4px 16px; box-shadow: 0 8px 20px rgba(32,54,76,.06); }
.activity-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #EEF4F8; }
.activity-row:last-child { border-bottom: none; }
.activity-row.pending { background: rgba(245,158,11,.07); margin: 0 -16px; padding: 13px 16px; border-radius: 12px; border-bottom-color: transparent; }
.activity-row.pending + .activity-row.pending { margin-top: -1px; }
.activity-icon { width: 38px; height: 38px; border-radius: 12px; background: rgba(32,170,226,.1); display: flex; align-items: center; justify-content: center; flex: none; }
.activity-icon i { font-size: 18px; color: #20AAE2; }
.activity-icon.pending { background: rgba(245,158,11,.16); }
.activity-icon.pending i { color: #b8650f; }
.activity-mid { flex: 1; min-width: 0; }
.activity-t { font-weight: 700; font-size: 13.5px; color: #20364C; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.activity-badge { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; color: #b8650f; background: rgba(245,158,11,.18); padding: 2.5px 8px; border-radius: 10px; }
.activity-d { font-size: 11.5px; font-weight: 700; color: #9DB6C9; }
.activity-v { font-weight: 600; font-size: 14px; white-space: nowrap; }

.account-title { font-weight: 600; font-size: 17px; color: #20364C; margin-top: 22px; margin-bottom: 10px; }
.account-list { background: #fff; border-radius: 20px; padding: 4px 16px; box-shadow: 0 8px 20px rgba(32,54,76,.06); }
.account-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #EEF4F8; cursor: pointer; }
.account-row:last-child { border-bottom: none; }
.account-row i:first-child { font-size: 20px; color: #20364C; }
.account-row span { flex: 1; font-weight: 700; font-size: 14px; color: #20364C; }
.account-row .caret { font-size: 16px; color: #C2D2DD; }

/* ---------- Bottom nav (botonera flotante) ---------- */
.bottom-nav {
  position: absolute; left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px; border-radius: 30px;
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: 0 14px 34px rgba(32,54,76,.22);
  z-index: 40;
}
.nav-btn {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 18px; border-radius: 22px;
  transition: background .25s ease, color .25s ease;
}
.nav-btn i { font-size: 23px; color: #5b7387; transition: color .25s ease; }
.nav-btn span { font-size: 10.5px; font-weight: 800; color: #5b7387; transition: color .25s ease; }
.nav-btn.active { background: rgba(32,170,226,.16); }
.nav-btn.active i, .nav-btn.active span { color: #20AAE2; }

/* ---------- Overlays ---------- */
.overlay { position: absolute; inset: 0; z-index: 60; background: #EAF4FB; animation: slideUp .38s cubic-bezier(.22,1,.36,1); display: none; flex-direction: column; }
.overlay.open { display: flex; }
.overlay-head { padding: 50px 18px 14px; display: flex; align-items: center; gap: 12px; }
.back-btn { cursor: pointer; border: none; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(32,54,76,.1); display: flex; align-items: center; justify-content: center; flex: none; }
.back-btn i { font-size: 18px; color: #20364C; }
.overlay-head span { font-weight: 600; font-size: 17px; color: #20364C; }
.overlay-body { flex: 1; overflow-y: auto; padding: 0 18px 16px; }
.overlay-banner { margin-bottom: 16px; }

.reward-hero { height: 200px; border-radius: 24px; background: linear-gradient(155deg, #2a4d6b, #20364C); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; box-shadow: 0 16px 36px rgba(32,54,76,.22); }
.reward-hero.has-img { height: auto; min-height: 200px; background: #fff; padding: 20px; box-shadow: 0 8px 22px rgba(32,54,76,.07); }
.reward-hero img { width: 100%; height: auto; max-height: 280px; object-fit: contain; position: relative; z-index: 2; }
.reward-hero i { font-size: 96px; color: #20AAE2; position: relative; z-index: 2; }
.reward-name { font-weight: 600; font-size: 23px; color: #20364C; margin-top: 20px; line-height: 1.15; }
.reward-cost-row { display: flex; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.reward-cost-row i { font-size: 20px; color: #20AAE2; }
.reward-cost-row .num { font-weight: 700; font-size: 22px; color: #20364C; }
.reward-cost-row .unit { font-weight: 700; font-size: 14px; color: #7d96a8; }
.reward-cost-row .cat { margin-left: 6px; font-size: 11px; font-weight: 800; color: #20AAE2; background: rgba(32,170,226,.12); padding: 4px 10px; border-radius: 16px; }
.reward-desc { font-size: 14px; line-height: 1.55; color: #5b7387; font-weight: 600; margin-top: 14px; }
.reward-locked-msg { margin-top: 16px; background: rgba(32,170,226,.08); border-radius: 16px; padding: 14px; display: flex; align-items: center; gap: 10px; }
.reward-locked-msg i { font-size: 22px; color: #20AAE2; flex: none; }
.reward-locked-msg span { font-weight: 700; font-size: 13px; color: #20364C; line-height: 1.4; }
.reward-error { margin-top: 14px; background: rgba(224,86,79,.08); border-radius: 16px; padding: 14px; color: #c0392b; font-weight: 700; font-size: 13px; display: none; }
.overlay-foot { padding: 14px 18px 30px; }
.cta-btn { width: 100%; border: none; border-radius: 18px; padding: 17px; font-weight: 600; font-size: 17px; cursor: pointer; }
.cta-btn.locked { background: #D2DFE9; color: #fff; cursor: not-allowed; }
.cta-btn.ready { background: linear-gradient(90deg, #20AAE2, #1b8fd0); color: #fff; box-shadow: 0 12px 26px rgba(32,170,226,.35); }
.cta-btn[disabled] { opacity: .7; cursor: wait; }

/* ---------- Confirmación de canje ---------- */
.confirm-reward-row { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 20px; padding: 16px; box-shadow: 0 8px 22px rgba(32,54,76,.07); }
.confirm-reward-icon { width: 56px; height: 56px; border-radius: 16px; background: rgba(32,170,226,.12); display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.confirm-reward-icon img { width: 100%; height: 100%; object-fit: cover; }
.confirm-reward-icon i { font-size: 28px; color: #20AAE2; }
.confirm-reward-name { font-weight: 600; font-size: 16px; color: #20364C; line-height: 1.2; }
.confirm-reward-cat { font-size: 11.5px; font-weight: 800; color: #9DB6C9; margin-top: 3px; text-transform: uppercase; }

.confirm-breakdown { margin-top: 16px; background: #fff; border-radius: 20px; padding: 18px; box-shadow: 0 8px 22px rgba(32,54,76,.07); }
.confirm-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; }
.confirm-label { font-size: 14px; font-weight: 600; color: #5b7387; }
.confirm-value { font-size: 15px; font-weight: 700; color: #20364C; font-variant-numeric: tabular-nums; }
.confirm-row.minus .confirm-value { color: #c0392b; }
.confirm-divider { height: 1px; background: #EEF4F8; margin: 4px 0; }
.confirm-row.total { padding-top: 12px; }
.confirm-row.total .confirm-label { font-weight: 700; color: #20364C; }
.confirm-row.total .confirm-value { font-size: 20px; color: #20AAE2; }

.confirm-warning { margin-top: 14px; display: flex; align-items: flex-start; gap: 9px; background: rgba(32,170,226,.07); border-radius: 16px; padding: 13px 14px; }
.confirm-warning i { font-size: 18px; color: #20AAE2; flex: none; margin-top: 1px; }
.confirm-warning span { font-size: 12px; font-weight: 600; color: #5b7387; line-height: 1.5; }

.canje-overlay {
  position: absolute; inset: 0; z-index: 70; color: #fff;
  background: linear-gradient(160deg, #2a4d6b, #20364C 60%, #16273a);
  display: none; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 30px; animation: slideUp .38s cubic-bezier(.22,1,.36,1); overflow: hidden;
}
.canje-overlay.open { display: flex; }
.canje-particles { position: absolute; inset: 0; pointer-events: none; }
.canje-particles span { position: absolute; border-radius: 50% 50% 50% 0; animation: rise 3.2s ease-in infinite; }
.canje-check-ring { width: 120px; height: 120px; border-radius: 50%; background: rgba(156,203,59,.18); display: flex; align-items: center; justify-content: center; animation: pop .55s cubic-bezier(.22,1,.36,1); position: relative; z-index: 2; }
.canje-check-circle { width: 84px; height: 84px; border-radius: 50%; background: #9CCB3B; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 8px rgba(156,203,59,.2); }
.canje-check-circle i { font-size: 42px; color: #fff; }
.canje-title { font-weight: 700; font-size: 26px; margin-top: 24px; position: relative; z-index: 2; }
.canje-sub { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.82); margin-top: 8px; max-width: 290px; line-height: 1.5; position: relative; z-index: 2; }
.canje-code-box { margin-top: 24px; background: rgba(255,255,255,.1); border: 1.5px dashed rgba(255,255,255,.4); border-radius: 18px; padding: 18px 34px; position: relative; z-index: 2; }
.canje-code-label { font-size: 11px; font-weight: 800; color: rgba(255,255,255,.6); letter-spacing: 1.5px; }
.canje-code-val { font-weight: 700; font-size: 30px; letter-spacing: 3px; margin-top: 4px; }
.canje-done-btn { margin-top: 30px; cursor: pointer; border: none; background: #20AAE2; color: #fff; border-radius: 16px; padding: 15px 44px; font-weight: 600; font-size: 16px; box-shadow: 0 12px 26px rgba(32,170,226,.4); position: relative; z-index: 2; }

/* ---------- Referido form overlay ---------- */
.ref-form-group { margin-top: 16px; }
.ref-form-label { font-size: 12px; font-weight: 700; color: #20364C; margin-bottom: 6px; display: block; }
.ref-form-input {
  width: 100%; border: 1.5px solid #DDE9F1; border-radius: 14px; padding: 13px 16px;
  font-size: 15px; font-weight: 500; color: #20364C; background: #fff; font-family: inherit;
}
.ref-form-input:focus { outline: none; border-color: #20AAE2; }
.ref-form-error { color: #c0392b; font-size: 12px; font-weight: 700; margin-top: 6px; display: none; }
.ref-form-success { text-align: center; padding: 30px 10px; }
.ref-form-success i { font-size: 56px; color: #9CCB3B; }
.ref-form-success .t { font-weight: 700; font-size: 18px; color: #20364C; margin-top: 14px; }
.ref-form-success .s { font-size: 13.5px; color: #7d96a8; font-weight: 600; margin-top: 6px; line-height: 1.5; }

/* ---------- noscript fallback ---------- */
.noscript-msg {
  position: fixed; bottom: 12px; left: 12px; font-size: 13px; color: #999;
  background: rgba(255,255,255,.9); padding: 6px 12px; border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08); z-index: 10000;
}

/* En desktop: columna de contenido centrada a pantalla completa (no un mockup de
   teléfono). Solo limitamos el ancho para que el contenido no se estire feo en
   pantallas grandes, y separamos la columna del fondo con un resplandor suave. */
@media (min-width: 481px) {
  .phone-screen {
    width: 100%;
    max-width: 460px;
    height: 100vh;
    height: 100dvh;
    margin: 0 auto;
    box-shadow: 0 0 80px rgba(20,40,60,.18);
  }
}