/* ============================================================
   ACADEMIA DE CRACKS · "Tu Potencial" UI (iter8)
   ============================================================ */

.pot-screen { background: var(--carbon); }

/* ---- Hero block: rating actual → POT proyectado ---- */
.pot-hero {
  margin: 0 16px 12px;
  padding: 24px 20px;
  background: radial-gradient(ellipse at top right, rgba(255,158,0,0.22), rgba(255,158,0,0.04) 60%),
              linear-gradient(135deg, #1a1410 0%, #0f0a06 100%);
  border: 1px solid rgba(255,158,0,0.4);
  border-radius: 18px;
  display: grid;
  grid-template-columns: 1fr auto 1.4fr;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

/* glow sutil rotativo en el background */
.pot-hero::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(255,158,0,0.06) 40%, transparent 50%);
  animation: pot-spin 12s linear infinite;
  pointer-events: none;
}
@keyframes pot-spin { to { transform: rotate(360deg); } }

.pot-hero-now, .pot-hero-future {
  position: relative;
  z-index: 1;
  text-align: center;
}
.pot-hero-future { text-align: left; padding-left: 8px; }

.pot-hero-label {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
}

.pot-hero-value {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 56px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pot-hero-pot {
  color: var(--orange);
  text-shadow: 0 0 18px rgba(255,158,0,0.55);
  font-size: 68px;
}

.pot-hero-arrow {
  position: relative;
  z-index: 1;
  color: var(--orange);
  font-size: 30px;
  font-weight: 300;
  opacity: 0.7;
}

.pot-hero-subtag {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Confidence variants */
.pot-hero.conf-high   { border-color: rgba(30, 155, 255,0.45); }
.pot-hero.conf-medium { border-color: rgba(255,158,0,0.45); }
.pot-hero.conf-low    { border-color: rgba(255,80,80,0.35); }

/* ---- Confidence row ---- */
.pot-conf-row {
  margin: 0 16px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  flex-wrap: wrap;
}

.pot-conf-badge {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
}
.pot-conf-badge.conf-high   { background: rgba(30, 155, 255,0.15); color: #54d6ff; }
.pot-conf-badge.conf-medium { background: rgba(255,158,0,0.15); color: var(--orange); }
.pot-conf-badge.conf-low    { background: rgba(255,80,80,0.15); color: #ff8a8a; }

.pot-conf-detail { color: var(--smoke-dim); }

/* ---- Cards ---- */
.pot-card {
  margin: 0 16px 14px;
  padding: 18px 18px 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

.pot-card h3 {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #fff;
  margin: 0 0 14px;
}

/* ---- Projection table ---- */
.pot-table { display: flex; flex-direction: column; gap: 6px; }
.pot-table-head, .pot-table-row {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 6px;
  align-items: center;
  font-size: 12px;
  padding: 8px 4px;
  border-radius: 8px;
}
.pot-table-head {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--smoke-dim);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding-bottom: 8px;
}
.pot-table-row { font-variant-numeric: tabular-nums; }
.pot-table-row:nth-child(odd) { background: rgba(255,255,255,0.02); }
.pot-skill {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 11px;
}
.pot-target {
  color: var(--orange);
  font-weight: 700;
  position: relative;
}
.pot-delta {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  color: var(--carbon);
  background: var(--orange);
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
}

.pot-table-note {
  margin-top: 12px;
  font-size: 11px;
  color: var(--smoke-dim);
  font-style: italic;
}

/* ---- Comparable card ---- */
.pot-cmp { background: linear-gradient(140deg, rgba(255,158,0,0.08), rgba(255,158,0,0.02)); }
.pot-cmp-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.pot-cmp-icon {
  font-size: 38px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(255,158,0,0.35));
}
.pot-cmp-kicker {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2px;
}
.pot-cmp-label {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
}
.pot-cmp-tag {
  font-size: 13px;
  color: var(--white);
  line-height: 1.45;
  margin-bottom: 12px;
}
.pot-cmp-tip {
  font-size: 12px;
  color: var(--white);
  background: rgba(255,255,255,0.04);
  padding: 12px 14px;
  border-left: 3px solid var(--orange);
  border-radius: 6px;
  line-height: 1.5;
}
.pot-cmp-tip strong { color: var(--orange); margin-right: 4px; }

.pot-cmp-disclaimer {
  margin-top: 10px;
  font-size: 10px;
  color: var(--smoke-dim);
  font-style: italic;
  line-height: 1.4;
}

/* ---- Caveats ---- */
.pot-caveats {
  margin: 0 16px 14px;
  padding: 14px 18px;
  background: rgba(255,255,150,0.05);
  border: 1px solid rgba(255,255,150,0.18);
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.5;
}
.pot-caveats strong { color: #ffd66b; display: block; margin-bottom: 6px; }
.pot-caveats ul { margin: 0; padding-left: 18px; color: rgba(255,255,255,0.75); }
.pot-caveats li { margin-bottom: 4px; }

/* ---- POT badge en el Player Card (iter9) ----
   Aparece bajo el rating + posición en la card grande. Tap → screen-potential. */
.pc-pot-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 6px;
  padding: 3px 8px 4px;
  background: linear-gradient(135deg, rgba(255,158,0,0.25), rgba(255,158,0,0.10));
  border: 1px solid rgba(255,158,0,0.55);
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.pc-pot-badge:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(255,158,0,0.35);
}
.pc-pot-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(255,158,0,0.25), transparent 60%);
  pointer-events: none;
}
.pc-pot-kicker {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}
.pc-pot-value {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  text-shadow: 0 0 8px rgba(255,158,0,0.5);
  font-variant-numeric: tabular-nums;
}
.pc-pot-badge[data-conf="high"]   { border-color: rgba(30, 155, 255,0.55); }
.pc-pot-badge[data-conf="medium"] { border-color: rgba(255,158,0,0.55); }

/* ---- CTA row ---- */
.pot-cta-row {
  display: flex;
  gap: 10px;
  padding: 4px 16px 16px;
  flex-wrap: wrap;
}
.pot-cta-row .btn {
  flex: 1;
  min-width: 120px;
  font-size: 13px;
  padding: 14px 10px;
}
