@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=DM+Serif+Display:ital@0;1&display=swap');

/* ── VARIABLES ─────────────────────────────────────── */
:root {
  --green:       #0B6B4E;
  --green-mid:   #1D9E75;
  --green-light: #E8F7F2;
  --green-glow:  rgba(29,158,117,0.15);
  --navy:        #0F2235;
  --navy-mid:    #1A3A5C;
  --blue-accent: #4A9EDB;
  --orange:      #D85A30;
  --gold:        #F0A500;
  --bg:          #F5F7F6;
  --white:       #FFFFFF;
  --border:      #E0E8E4;
  --text:        #0F2235;
  --muted:       #64746C;
  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   20px;
  --shadow-sm:   0 1px 4px rgba(15,34,53,0.08);
  --shadow:      0 4px 20px rgba(15,34,53,0.10);
  --shadow-lg:   0 12px 40px rgba(15,34,53,0.16);
}

/* ── BASE ──────────────────────────────────────────── */
#ecoems-plataforma-root * { box-sizing: border-box; margin: 0; padding: 0; }
#ecoems-plataforma-root {
  font-family: 'Sora', sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 60vh;
}

/* ── NAV ───────────────────────────────────────────── */
.ecoplat-nav {
  background: var(--navy);
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ecoplat-nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: white;
  letter-spacing: -0.3px;
}
.ecoplat-nav-logo span { color: #5ECFA8; font-style: italic; }
.ecoplat-nav-right { display: flex; align-items: center; gap: 12px; }
.ecoplat-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-mid), var(--blue-accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: white;
}
.ecoplat-nav-name { font-size: 13px; color: rgba(255,255,255,0.75); font-weight: 500; }
.ecoplat-nav-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  font-size: 12px; font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Sora', sans-serif;
  transition: all 0.15s;
}
.ecoplat-nav-btn:hover { background: rgba(255,255,255,0.18); }

/* ── AUTH WRAP ─────────────────────────────────────── */
.ecoplat-auth {
  min-height: 80vh;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(150deg, var(--navy) 0%, #0D3B2A 100%);
  position: relative;
  overflow: hidden;
}
.ecoplat-auth::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29,158,117,0.15) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}
.ecoplat-auth::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,158,219,0.1) 0%, transparent 70%);
  bottom: -80px; left: -60px;
  pointer-events: none;
}

/* ── CARD ──────────────────────────────────────────── */
.ecoplat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.25rem;
  width: 100%; max-width: 500px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}
.ecoplat-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--navy);
  text-align: center;
  margin-bottom: 4px;
}
.ecoplat-logo span { color: var(--green-mid); font-style: italic; }
.ecoplat-auth-sub {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 1.75rem;
}
.ecoplat-titulo {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

/* ── PASOS ─────────────────────────────────────────── */
.ecoplat-pasos {
  display: flex;
  gap: 0;
  margin-bottom: 1.75rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.ecoplat-paso {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 4px;
  background: var(--bg);
  color: var(--muted);
  letter-spacing: 0.3px;
}
.ecoplat-paso + .ecoplat-paso { border-left: 1px solid var(--border); }
.ecoplat-paso.active {
  background: var(--green-light);
  color: var(--green);
}
.ecoplat-paso.done {
  background: var(--green);
  color: white;
}

/* ── FIELDS ────────────────────────────────────────── */
.ecoplat-field { margin-bottom: 1.25rem; }
.ecoplat-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}
.ecoplat-field input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: 'Sora', sans-serif;
  outline: none;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ecoplat-field input:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px var(--green-glow);
}
.ecoplat-hint { font-size: 12px; color: var(--muted); margin-top: 5px; }

/* ── BADGES ────────────────────────────────────────── */
.ecoplat-precio-badge {
  background: var(--green-light);
  border: 1.5px solid var(--green-mid);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-align: center;
  margin: 1rem 0 1.5rem;
}
.ecoplat-precio-num {
  font-family: 'DM Serif Display', serif;
  font-size: 38px;
  color: var(--green);
  line-height: 1;
}
.ecoplat-precio-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.ecoplat-precio-inc { font-size: 13px; color: var(--green); font-weight: 600; margin-top: 5px; }

/* ── BUTTONS ───────────────────────────────────────── */
.ecoplat-btn-primary {
  width: 100%;
  padding: 15px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.5rem;
  letter-spacing: 0.2px;
}
.ecoplat-btn-primary:hover:not(:disabled) {
  background: #1A3A5C;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(15,34,53,0.25);
}
.ecoplat-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.ecoplat-btn-accent {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.5rem;
  letter-spacing: 0.2px;
}
.ecoplat-btn-accent:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(29,158,117,0.35);
}
.ecoplat-btn-accent:disabled { opacity: 0.5; cursor: not-allowed; }

.ecoplat-btn-outline {
  width: 100%;
  padding: 13px;
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green-mid);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
  cursor: pointer;
  transition: all 0.15s;
  margin-top: 0.5rem;
}
.ecoplat-btn-outline:hover { background: var(--green-light); }

/* ── SWITCH / LINKS ────────────────────────────────── */
.ecoplat-switch {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 1.25rem;
  line-height: 1.8;
}
.ecoplat-switch a { color: var(--green-mid); cursor: pointer; font-weight: 600; }

/* ── ALERTS ────────────────────────────────────────── */
.ecoplat-error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.ecoplat-success {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid rgba(29,158,117,0.3);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 1rem;
  font-weight: 500;
}

/* ── PLANES GRID ───────────────────────────────────── */
.ecoplat-planes-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.ecoplat-planes-header { text-align: center; margin-bottom: 2.5rem; }
.ecoplat-planes-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.ecoplat-planes-logo span { color: var(--green-mid); font-style: italic; }
.ecoplat-planes-title {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.ecoplat-planes-sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}
.ecoplat-planes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 2rem;
}
.ecoplat-plan-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}
.ecoplat-plan-card:hover {
  border-color: var(--green-mid);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.ecoplat-plan-card.popular {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 4px var(--green-glow);
}
.ecoplat-plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-mid);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.ecoplat-plan-nombre {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 4px;
}
.ecoplat-plan-desc {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.ecoplat-plan-precio { margin: 1rem 0 1rem; }
.ecoplat-plan-num {
  font-family: 'DM Serif Display', serif;
  font-size: 44px;
  color: var(--navy);
  line-height: 1;
}
.ecoplat-plan-sub { font-size: 14px; color: var(--muted); }
.ecoplat-plan-examenes {
  font-size: 12px;
  color: var(--muted);
  background: var(--bg);
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 1.25rem;
  display: inline-block;
}
.ecoplat-plan-btn {
  width: 100%;
  padding: 12px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  cursor: pointer;
  transition: all 0.15s;
}
.ecoplat-plan-card:hover .ecoplat-plan-btn { background: var(--green); }
.ecoplat-plan-btn.popular-btn { background: var(--green); }
.ecoplat-plan-card.popular:hover .ecoplat-plan-btn { background: var(--green); filter: brightness(1.1); }
.ecoplat-planes-footer {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.ecoplat-planes-footer a { color: var(--green-mid); cursor: pointer; font-weight: 600; }

/* ── RESUMEN USUARIO / PLAN ────────────────────────── */
.ecoplat-resumen-usuario {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
}
.ecoplat-resumen-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 4px 0;
  color: var(--muted);
}
.ecoplat-resumen-row + .ecoplat-resumen-row { border-top: 1px solid var(--border); padding-top: 8px; margin-top: 4px; }
.ecoplat-resumen-row strong { color: var(--text); font-weight: 600; }

.ecoplat-resumen-plan {
  background: linear-gradient(135deg, var(--green-light) 0%, #D5F0E8 100%);
  border: 1.5px solid rgba(29,158,117,0.3);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
}
.ecoplat-resumen-plan-nombre {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--green);
  margin-bottom: 4px;
}
.ecoplat-resumen-plan-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.ecoplat-resumen-plan-precio {
  font-family: 'DM Serif Display', serif;
  font-size: 40px;
  color: var(--navy);
  line-height: 1;
}
.ecoplat-resumen-plan-precio span { font-size: 16px; color: var(--muted); font-family: 'Sora', sans-serif; }
.ecoplat-cambiar-plan {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--green-mid);
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
  background: none;
  border: none;
  font-family: 'Sora', sans-serif;
}

/* ── DASHBOARD ─────────────────────────────────────── */
.ecoplat-dash { padding: 1.75rem 1.5rem; max-width: 900px; margin: 0 auto; }
.ecoplat-greeting {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  color: var(--navy);
  margin-bottom: 4px;
}
.ecoplat-greeting span { color: var(--green-mid); font-style: italic; }
.ecoplat-greeting-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

/* ── STATS ─────────────────────────────────────────── */
.ecoplat-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 1.75rem;
}
.ecoplat-stat {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.ecoplat-stat-val {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  color: var(--navy);
  line-height: 1;
}
.ecoplat-stat-lbl {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── NEW EXAM CARD ─────────────────────────────────── */
.ecoplat-new-exam {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.ecoplat-new-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ecoplat-new-header h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  color: white;
  font-weight: 400;
}
.ecoplat-new-header span {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ecoplat-new-body { padding: 1.5rem; }

/* ── CONFIG ────────────────────────────────────────── */
.ecoplat-config-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 1.25rem;
}
.ecoplat-config-item label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.ecoplat-config-item select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: 'Sora', sans-serif;
  color: var(--text);
  background: var(--bg);
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
}
.ecoplat-config-item select:focus { border-color: var(--green-mid); }

/* ── AREAS ─────────────────────────────────────────── */
.ecoplat-areas-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.ecoplat-areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 7px;
  margin-bottom: 1.25rem;
}
.ecoplat-area-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
  transition: all 0.12s;
  user-select: none;
  background: white;
}
.ecoplat-area-chip:hover { border-color: var(--green-mid); color: var(--green); }
.ecoplat-area-chip.active {
  border-color: var(--green-mid);
  background: var(--green-light);
  color: var(--green);
  font-weight: 600;
}

/* ── STATUS / PROGRESS ─────────────────────────────── */
.ecoplat-status {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 0.875rem;
  font-weight: 500;
}
.ecoplat-status.loading {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid rgba(29,158,117,0.2);
}
.ecoplat-status.error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}
.ecoplat-prog {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  margin-bottom: 0.875rem;
  overflow: hidden;
}
.ecoplat-prog-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--blue-accent));
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* ── COMPRAR BOX ───────────────────────────────────── */
.ecoplat-comprar-box {
  background: linear-gradient(135deg, #FFF8E7, #FFF3D0);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.ecoplat-comprar-box p {
  font-size: 14px;
  color: #7A5500;
  margin-bottom: 1rem;
  line-height: 1.6;
}
.ecoplat-comprar-box button {
  background: var(--gold);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  cursor: pointer;
  transition: all 0.15s;
}
.ecoplat-comprar-box button:hover {
  background: #D4920A;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(240,165,0,0.35);
}

/* ── HISTORIAL ─────────────────────────────────────── */
.ecoplat-hist-title {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 1rem;
}
.ecoplat-exam-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s;
}
.ecoplat-exam-item:hover { box-shadow: var(--shadow); }
.ecoplat-exam-item h4 { font-size: 14px; font-weight: 600; color: var(--text); }
.ecoplat-exam-item p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ecoplat-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}
.score-verde { background: #D1FAE5; color: #065F46; }
.score-amarillo { background: #FEF3C7; color: #92400E; }
.score-rojo { background: #FEE2E2; color: #991B1B; }
.ecoplat-btn-sm {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid var(--green-mid);
  color: var(--green);
  background: transparent;
  cursor: pointer;
  font-family: 'Sora', sans-serif;
  transition: all 0.12s;
}
.ecoplat-btn-sm:hover { background: var(--green-light); }

/* ── EXAMEN ────────────────────────────────────────── */
.ecoplat-exam { padding: 1.5rem; max-width: 800px; margin: 0 auto; }
.ecoplat-exam-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.ecoplat-exam-info { font-size: 14px; color: var(--muted); }
.ecoplat-exam-info strong { font-size: 20px; color: var(--text); font-family: 'DM Serif Display', serif; }
.ecoplat-timer {
  background: var(--navy);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'DM Serif Display', serif;
  letter-spacing: 0.5px;
}
.ecoplat-timer.urgente { background: #DC2626; animation: pulse-timer 1s ease-in-out infinite; }
@keyframes pulse-timer { 0%,100% { opacity: 1; } 50% { opacity: 0.75; } }

.ecoplat-exam-bar {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  margin-bottom: 1.25rem;
  overflow: hidden;
}
.ecoplat-exam-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--blue-accent));
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* ── MINI MAP ──────────────────────────────────────── */
.ecoplat-minimap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 1.25rem;
  padding: 10px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.ecoplat-mini-dot {
  width: 24px; height: 24px;
  border-radius: 5px;
  border: 1.5px solid var(--border);
  background: white;
  cursor: pointer;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--muted);
  transition: all 0.1s;
}
.ecoplat-mini-dot:hover { border-color: var(--green-mid); }
.ecoplat-mini-dot.respondida { background: var(--green-mid); border-color: var(--green-mid); color: white; }
.ecoplat-mini-dot.actual { border-color: var(--orange); color: var(--orange); border-width: 2px; font-weight: 800; }

/* ── QUESTION CARD ─────────────────────────────────── */
.ecoplat-q-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.ecoplat-q-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ecoplat-q-texto {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

/* ── OPTIONS ───────────────────────────────────────── */
.ecoplat-opciones { display: flex; flex-direction: column; gap: 10px; }
.ecoplat-opcion {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  transition: all 0.12s;
  background: white;
  line-height: 1.4;
}
.ecoplat-opcion:hover { border-color: var(--green-mid); background: var(--green-light); }
.ecoplat-opcion.correcta { border-color: #10B981; background: #D1FAE5; color: #065F46; font-weight: 600; }
.ecoplat-opcion.incorrecta { border-color: #EF4444; background: #FEE2E2; color: #991B1B; }
.ecoplat-opcion.tenue { opacity: 0.35; pointer-events: none; }
.ecoplat-opcion-letra {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 7px;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px;
  color: var(--muted);
  transition: all 0.12s;
}
.ecoplat-opcion:hover .ecoplat-opcion-letra { background: var(--green-mid); color: white; }
.ecoplat-opcion.correcta .ecoplat-opcion-letra { background: #10B981; color: white; }
.ecoplat-opcion.incorrecta .ecoplat-opcion-letra { background: #EF4444; color: white; }
.ecoplat-opcion.tenue .ecoplat-opcion-letra { background: var(--bg); }

.ecoplat-explicacion {
  background: #F0FDF4;
  border-left: 4px solid #10B981;
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 1rem;
  font-size: 13px;
  color: #065F46;
  line-height: 1.6;
}

/* ── NAV BTNS ──────────────────────────────────────── */
.ecoplat-nav-btns {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ecoplat-btn-nav {
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text);
  cursor: pointer;
  font-family: 'Sora', sans-serif;
  transition: all 0.12s;
}
.ecoplat-btn-nav:hover { border-color: var(--green-mid); color: var(--green); }
.ecoplat-btn-nav:disabled { opacity: 0.35; cursor: not-allowed; }
.ecoplat-btn-nav.primary { background: var(--navy); color: white; border-color: var(--navy); }
.ecoplat-btn-nav.primary:hover { background: var(--navy-mid); }
.ecoplat-btn-nav.terminar { background: var(--green); color: white; border-color: var(--green); }
.ecoplat-btn-nav.terminar:hover { background: var(--green-mid); }

/* ── RESULTADOS ────────────────────────────────────── */
.ecoplat-results { padding: 1.75rem 1.5rem; max-width: 700px; margin: 0 auto; }
.ecoplat-score-circulo {
  width: 140px; height: 140px;
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  border: 7px solid;
  box-shadow: 0 0 0 8px rgba(0,0,0,0.05);
}
.ecoplat-score-pct {
  font-family: 'DM Serif Display', serif;
  font-size: 42px;
  line-height: 1;
}
.ecoplat-score-frac { font-size: 13px; font-weight: 600; margin-top: 3px; }
.ecoplat-results-title {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  text-align: center;
  margin-bottom: 6px;
  color: var(--navy);
}
.ecoplat-results-sub {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 1.75rem;
}
.ecoplat-areas-breakdown {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.ecoplat-areas-breakdown h3 {
  padding: 0.875rem 1.25rem;
  font-size: 11px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ecoplat-area-fila {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 1.25rem;
  border-bottom: 1px solid var(--border);
}
.ecoplat-area-fila:last-child { border-bottom: none; }
.ecoplat-area-fila .nombre { flex: 1; font-size: 13px; font-weight: 500; color: var(--text); }
.ecoplat-area-barra { width: 110px; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.ecoplat-area-fill { height: 100%; border-radius: 3px; transition: width 0.6s ease; }
.ecoplat-area-pct { font-size: 13px; font-weight: 700; width: 38px; text-align: right; }
.ecoplat-results-btns { display: flex; flex-direction: column; gap: 10px; margin-bottom: 1.5rem; }

/* ── SOLUCIONARIO ──────────────────────────────────── */
.ecoplat-sol-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}
.ecoplat-sol-item .qnum {
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.ecoplat-sol-item .qtext {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}
.ecoplat-sol-correct {
  font-size: 12px;
  color: #065F46;
  background: #D1FAE5;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  font-weight: 600;
}
.ecoplat-sol-wrong {
  font-size: 12px;
  color: #991B1B;
  background: #FEE2E2;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  font-weight: 600;
}
.ecoplat-sol-expl {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
  line-height: 1.5;
  padding-top: 7px;
  border-top: 1px solid var(--border);
}

/* ── PASOS DE REGISTRO ─────────────────────────────── */
.ecoplat-pasos { display: flex; gap: 0; margin-bottom: 1.75rem; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.ecoplat-paso { flex: 1; text-align: center; font-size: 11px; font-weight: 700; padding: 9px 4px; background: var(--bg); color: var(--muted); letter-spacing: 0.3px; text-transform: uppercase; }
.ecoplat-paso + .ecoplat-paso { border-left: 1px solid var(--border); }
.ecoplat-paso.active { background: var(--green-light); color: var(--green); }
.ecoplat-paso.done { background: var(--green); color: white; }

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 600px) {
  .ecoplat-config-row { grid-template-columns: 1fr 1fr; }
  .ecoplat-areas-grid { grid-template-columns: 1fr 1fr; }
  .ecoplat-planes-grid { grid-template-columns: 1fr 1fr; }
  .ecoplat-planes-title { font-size: 28px; }
  .ecoplat-card { padding: 2rem 1.5rem; }
}
@media (max-width: 400px) {
  .ecoplat-planes-grid { grid-template-columns: 1fr; }
  .ecoplat-config-row { grid-template-columns: 1fr; }
}

/* ── SPINNER ───────────────────────────────────────── */
@keyframes ecoplat-spin { to { transform: rotate(360deg); } }
