diff --git a/public/css/styles.css b/public/css/styles.css
index 69179bc..16b690a 100644
--- a/public/css/styles.css
+++ b/public/css/styles.css
@@ -4397,13 +4397,53 @@ body.dark-mode .carousel-nav-btn {
font-weight: 700 !important;
}
+/* ==========================================================================
+ CÁPSULAS TRANSLÚCIDAS GLASSMORPHISM EN TARJETA VIRTUAL (SALDO Y CÓDIGO)
+ ========================================================================== */
+.card-balance-glass,
+.wallet-card .amount span#walletBalance,
+.wallet-card #walletBalance {
+ display: inline-flex !important;
+ align-items: center !important;
+ background: rgba(0, 0, 0, 0.52) !important;
+ backdrop-filter: blur(8px) !important;
+ -webkit-backdrop-filter: blur(8px) !important;
+ border: 1px solid rgba(255, 255, 255, 0.28) !important;
+ color: #ffffff !important;
+ text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
+ border-radius: 12px !important;
+ padding: 4px 14px !important;
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28) !important;
+ font-weight: 900 !important;
+ letter-spacing: -0.5px !important;
+}
+
+.card-glass-badge,
+#devLiveCardCode,
+#walletStudentCode {
+ display: inline-flex !important;
+ align-items: center !important;
+ background: rgba(0, 0, 0, 0.52) !important;
+ backdrop-filter: blur(8px) !important;
+ -webkit-backdrop-filter: blur(8px) !important;
+ border: 1px solid rgba(255, 255, 255, 0.25) !important;
+ color: #ffffff !important;
+ text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
+ font-size: 0.74rem !important;
+ font-weight: 800 !important;
+ padding: 2.5px 9px !important;
+ border-radius: 8px !important;
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22) !important;
+ letter-spacing: 0.4px !important;
+}
+
.wallet-card.card-text-light-bg .amount span,
.wallet-card.card-style-light .amount span,
.wallet-card.card-text-light-bg #walletBalance,
.wallet-card.card-style-light #walletBalance {
- color: #047857 !important;
+ color: #ffffff !important;
font-weight: 900 !important;
- text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8) !important;
+ text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}
.wallet-card.card-text-light-bg .qr-toggle-btn,
@@ -4439,8 +4479,8 @@ body.dark-mode .carousel-nav-btn {
.wallet-card.card-style-dark .amount span,
.wallet-card.card-text-dark-bg #walletBalance,
.wallet-card.card-style-dark #walletBalance {
- color: #4ade80 !important;
- text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95) !important;
+ color: #ffffff !important;
+ text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}
.wallet-card.card-text-dark-bg .qr-toggle-btn,
diff --git a/public/index.html b/public/index.html
index cd8cff4..b0aca83 100644
--- a/public/index.html
+++ b/public/index.html
@@ -397,10 +397,10 @@
-
Saldo Disponible
-
₡5.300
+
Saldo Disponible
+
₡5.300
-
EST-2026-00001
+
EST-2026-00001
@@ -2164,16 +2164,19 @@
-
SALDO DISPONIBLE
+
SALDO DISPONIBLE
- ₡0
+ ₡0
diff --git a/public/js/app.js b/public/js/app.js
index 904d7b6..e962e8a 100644
--- a/public/js/app.js
+++ b/public/js/app.js
@@ -749,7 +749,13 @@ function updateStudentUI() {
}
}
document.getElementById('walletName').textContent = currentStudent.nombre_completo;
- document.getElementById('walletGrade').textContent = `${currentStudent.grado} • Sección ${currentStudent.seccion} • Cód: ${currentStudent.codigo_estudiante}`;
+ document.getElementById('walletGrade').textContent = `${currentStudent.grado} • Sección ${currentStudent.seccion}`;
+ const codeEl = document.getElementById('walletStudentCode');
+ if (codeEl) {
+ codeEl.textContent = `Cód: ${currentStudent.codigo_estudiante || ''}`;
+ } else {
+ document.getElementById('walletGrade').textContent = `${currentStudent.grado} • Sección ${currentStudent.seccion} • Cód: ${currentStudent.codigo_estudiante}`;
+ }
// Aplicar tema personalizado de tarjeta
if (typeof applyCardTheme === 'function' && typeof getSavedCardTheme === 'function') {
@@ -7591,7 +7597,8 @@ function renderCardDesignsCarousel() {
const currentTheme = getSavedCardTheme();
const avatarUrl = (currentStudent && currentStudent.foto_url) ? currentStudent.foto_url : 'https://api.dicebear.com/7.x/bottts/svg?seed=est';
const studentName = (currentStudent && currentStudent.nombre_completo) ? currentStudent.nombre_completo : 'Mateo Alvarado Castro';
- const studentGrade = (currentStudent && currentStudent.grado) ? `${currentStudent.grado} • Sección ${currentStudent.seccion || 'A'} • Cód: ${currentStudent.codigo_estudiante || 'EST-001'}` : '2° Grado • Sección 2-A • Cód: EST-2026-001';
+ const studentGradeOnly = (currentStudent && currentStudent.grado) ? `${currentStudent.grado} • Sección ${currentStudent.seccion || 'A'}` : '2° Grado • Sección 2-A';
+ const studentCodeOnly = (currentStudent && currentStudent.codigo_estudiante) ? currentStudent.codigo_estudiante : 'EST-2026-001';
const studentBalance = (currentStudent && currentStudent.saldo_colones !== undefined) ? currentStudent.saldo_colones.toLocaleString('es-CR') : '5.300';
container.innerHTML = themes.map((t, idx) => {
@@ -7610,14 +7617,17 @@ function renderCardDesignsCarousel() {
${getStudentInitials(studentName)}
-
SALDO DISPONIBLE
+
SALDO DISPONIBLE
- ₡${studentBalance}
+ ₡${studentBalance}
@@ -8156,13 +8166,13 @@ function updateDevCardLivePreview() {
if (textStyle === 'light') {
if (cardName) { cardName.style.color = '#0f172a'; cardName.style.textShadow = '0 1px 2px rgba(255,255,255,0.9)'; }
if (cardGrade) { cardGrade.style.color = '#334155'; cardGrade.style.textShadow = 'none'; }
- if (cardBalVal) { cardBalVal.style.color = '#047857'; cardBalVal.style.textShadow = '0 1px 2px rgba(255,255,255,0.8)'; }
+ if (cardBalVal) { cardBalVal.style.color = '#ffffff'; cardBalVal.style.textShadow = '0 1px 3px rgba(0,0,0,0.8)'; }
if (cardBalLbl) { cardBalLbl.style.color = '#334155'; }
if (cardBrand) { cardBrand.style.color = '#0f172a'; cardBrand.style.textShadow = '0 1px 2px rgba(255,255,255,0.8)'; }
} else {
if (cardName) { cardName.style.color = '#ffffff'; cardName.style.textShadow = '0 2px 8px rgba(0,0,0,0.9)'; }
if (cardGrade) { cardGrade.style.color = '#cbd5e1'; cardGrade.style.textShadow = '0 2px 6px rgba(0,0,0,0.9)'; }
- if (cardBalVal) { cardBalVal.style.color = '#4ade80'; cardBalVal.style.textShadow = '0 2px 10px rgba(0,0,0,0.95)'; }
+ if (cardBalVal) { cardBalVal.style.color = '#ffffff'; cardBalVal.style.textShadow = '0 1px 3px rgba(0,0,0,0.8)'; }
if (cardBalLbl) { cardBalLbl.style.color = '#cbd5e1'; }
if (cardBrand) { cardBrand.style.color = '#ffffff'; cardBrand.style.textShadow = '0 2px 8px rgba(0,0,0,0.8)'; }
}