From 2923c2a8724aa5aa92a9edebf078fd8b2fea7ba2 Mon Sep 17 00:00:00 2001 From: marsalva Date: Fri, 3 Apr 2026 16:14:17 +0000 Subject: [PATCH] Actualizar index.html --- index.html | 38 +++++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/index.html b/index.html index 6aa2259..b41fb42 100644 --- a/index.html +++ b/index.html @@ -85,28 +85,23 @@ -
-
-
- -
-
+ + + +
@@ -376,9 +371,18 @@ if (!data.ok) throw new Error("Token inválido"); const servicesList = data.services || []; - currentQuotes = data.quotes || []; + // 🛑 LÓGICA DEL BANNER: Si NO tiene suscripción activa, se lo enseñamos + const promoBanner = document.getElementById('promo-banner'); + if (promoBanner) { + if (data.subscription) { + promoBanner.classList.add('hidden'); // Ya tiene el plan, lo ocultamos + } else { + promoBanner.classList.remove('hidden'); // No tiene el plan, lo mostramos + } + } + renderPortal(data.client, data.company, servicesList); renderQuotes();