mails.py 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682
  1. from config.settings import APP_NAME, CURRENT_URL
  2. REGISTER_MAIL = {
  3. "subject": "Bienvenido a " + APP_NAME + " - Confirma tu registro",
  4. "body": """
  5. <html>
  6. <head>
  7. <meta charset="UTF-8">
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  9. <title>¡Bienvenido a {app_name}!</title>
  10. <style>
  11. body {{
  12. margin: 0;
  13. padding: 0;
  14. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  15. background-color: #f3f4f6;
  16. }}
  17. .email-container {{
  18. max-width: 600px;
  19. margin: 0 auto;
  20. background-color: #ffffff;
  21. border-radius: 12px;
  22. box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  23. overflow: hidden;
  24. }}
  25. .header {{
  26. background-color: #101419;
  27. color: white;
  28. padding: 32px;
  29. text-align: center;
  30. }}
  31. .header h1 {{
  32. margin: 0;
  33. font-size: 28px;
  34. font-weight: bold;
  35. }}
  36. .header p {{
  37. margin: 8px 0 0 0;
  38. font-size: 16px;
  39. opacity: 0.9;
  40. }}
  41. .content {{
  42. padding: 32px;
  43. }}
  44. .welcome-message {{
  45. text-align: center;
  46. margin-bottom: 32px;
  47. }}
  48. .welcome-message h2 {{
  49. color: #101419;
  50. font-size: 24px;
  51. margin: 0 0 12px 0;
  52. font-weight: bold;
  53. }}
  54. .welcome-message p {{
  55. color: #6b7280;
  56. font-size: 16px;
  57. line-height: 1.6;
  58. margin: 0;
  59. }}
  60. .benefits-section {{
  61. text-align: center;
  62. gap: 20px;
  63. background-color: #f9fafb;
  64. border-radius: 8px;
  65. padding: 24px;
  66. margin: 24px 0;
  67. }}
  68. .benefits-title {{
  69. color: #101419;
  70. font-size: 18px;
  71. font-weight: 600;
  72. margin: 0 0 16px 0;
  73. text-align: center;
  74. }}
  75. .benefits-list {{
  76. list-style: none;
  77. padding: 0;
  78. margin: 0;
  79. }}
  80. .benefits-list li {{
  81. color: #374151;
  82. font-size: 14px;
  83. line-height: 1.5;
  84. margin-bottom: 8px;
  85. padding-left: 20px;
  86. position: relative;
  87. }}
  88. .benefits-list li:before {{
  89. content: "✓";
  90. color: #10b981;
  91. font-weight: bold;
  92. position: absolute;
  93. left: 0;
  94. }}
  95. .verification-section {{
  96. background: linear-gradient(135deg, #101419 0%, #37404a 100%);
  97. border-radius: 12px;
  98. padding: 32px;
  99. text-align: center;
  100. margin: 32px 0;
  101. color: white;
  102. }}
  103. .verification-icon {{
  104. margin: 32px auto;
  105. width: 100px;
  106. height: 100px;
  107. display: block;
  108. }}
  109. .verification-description {{
  110. font-size: 18px;
  111. margin: 16px 0;
  112. opacity: 0.95;
  113. }}
  114. .verification-description-2 {{
  115. font-size: 18px;
  116. margin-top: 24px;
  117. opacity: 0.95;
  118. }}
  119. .cta-button {{
  120. background-color: white;
  121. color: #101419;
  122. padding: 16px 32px;
  123. border-radius: 8px;
  124. text-decoration: none;
  125. font-weight: 600;
  126. font-size: 16px;
  127. display: inline-block;
  128. margin-top: 16px;
  129. transition: all 0.2s ease;
  130. }}
  131. .cta-button:hover {{
  132. background-color: #f3f4f6;
  133. transform: translateY(-1px);
  134. }}
  135. .security-note {{
  136. background-color: #fef3c7;
  137. border: 1px solid #f59e0b;
  138. border-radius: 8px;
  139. padding: 16px;
  140. margin: 24px 0;
  141. text-align: center;
  142. }}
  143. .security-note p {{
  144. color: #92400e;
  145. font-size: 14px;
  146. margin: 0;
  147. font-weight: 500;
  148. }}
  149. .website-section {{
  150. text-align: center;
  151. margin: 32px 0;
  152. padding: 24px;
  153. background-color: #f9fafb;
  154. border-radius: 8px;
  155. }}
  156. .website-url {{
  157. color: #101419;
  158. font-size: 20px;
  159. font-weight: 600;
  160. text-decoration: none;
  161. border-bottom: 2px solid #101419;
  162. padding-bottom: 4px;
  163. }}
  164. .footer {{
  165. background-color: #f9fafb;
  166. padding: 24px 32px;
  167. text-align: center;
  168. border-top: 1px solid #e5e7eb;
  169. }}
  170. .footer p {{
  171. color: #6b7280;
  172. font-size: 14px;
  173. margin: 0;
  174. line-height: 1.5;
  175. }}
  176. </style>
  177. </head>
  178. <body>
  179. <div style="padding: 20px;">
  180. <div class="email-container">
  181. <!-- Header -->
  182. <div class="header">
  183. <h1>¡Hola {name}!</h1>
  184. <p>Bienvenido a {app_name}</p>
  185. </div>
  186. <!-- Content -->
  187. <div class="content">
  188. <!-- Welcome Message -->
  189. <div class="welcome-message">
  190. <h2>Necesitas crear tu pin de seguridad</h2>
  191. </div>
  192. <!-- Verification Section -->
  193. <div class="verification-section">
  194. <div class="verification-description">¡Solo falta un paso más!</div>
  195. <img class="verification-icon" src="https://www.emojiall.com/images/240/emojitwo/1f510.png"/>
  196. <a href='"""+CURRENT_URL+"""/verify?q={verification_code}' class="cta-button">Crear mi PIN ahora</a>
  197. <div class="verification-description-2">El link vence en <strong>1 hora</strong></div>
  198. </div>
  199. <!-- Security Note -->
  200. <div class="security-note">
  201. <p>🔒 Tu PIN será tu clave personal para acceder de forma segura a {app_name}</p>
  202. </div>
  203. <!-- Website Section -->
  204. <div class="website-section">
  205. <p style="color: #6b7280; margin-bottom: 12px;">Accede desde:</p>
  206. <a href="https://expressklein.store" class="website-url">expressklein.store</a>
  207. </div>
  208. <!-- Benefits Section -->
  209. <div class="benefits-section">
  210. <h3 class="benefits-title">¿Qué puedes hacer con {app_name}?</h3>
  211. <ul class="benefits-list">
  212. <li>Realizar pedidos de forma rápida y sencilla</li>
  213. <li>Acceder a promociones exclusivas</li>
  214. <li>Disfrutar de una experiencia personalizada</li>
  215. <li>Usar nuestra inteligencia artificial</li>
  216. </ul>
  217. </div>
  218. </div>
  219. <!-- Footer -->
  220. <div class="footer">
  221. <p>
  222. <strong>Express Klein</strong> - Tu aplicación de pedidos favorita<br>
  223. Si tienes alguna pregunta, no dudes en contactarnos.<br>
  224. © 2025 Express Klein. Todos los derechos reservados.
  225. </p>
  226. </div>
  227. </div>
  228. </div>
  229. </body>
  230. </html>
  231. """
  232. }
  233. PRINTER_DISCONNECTED_MAIL = {
  234. "subject": "Printer {location} Disconnected",
  235. "body": """
  236. <!DOCTYPE html>
  237. <html>
  238. <head>
  239. <meta charset="UTF-8">
  240. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  241. <title>Alerta: Impresora Desconectada - KlowApp</title>
  242. </head>
  243. <body style="margin: 0; padding: 0; font-family: Arial, sans-serif; background-color: #f3f4f6;">
  244. <table width="100%" cellpadding="0" cellspacing="0" style="background-color: #f3f4f6; padding: 20px;">
  245. <tr>
  246. <td align="center">
  247. <table width="600" cellpadding="0" cellspacing="0" style="max-width: 600px; background-color: #ffffff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);">
  248. <!-- Header -->
  249. <tr>
  250. <td style="background-color: #dc2626; color: white; padding: 32px; text-align: center;">
  251. <h1 style="margin: 0; font-size: 28px; font-weight: bold;">🚨 Alerta del Sistema</h1>
  252. <p style="margin: 8px 0 0 0; font-size: 16px; opacity: 0.9;">Notificación para Desarrolladores</p>
  253. </td>
  254. </tr>
  255. <!-- Content -->
  256. <tr>
  257. <td style="padding: 32px;">
  258. <!-- Alert Message -->
  259. <table width="100%" cellpadding="0" cellspacing="0">
  260. <tr>
  261. <td style="text-align: center; margin-bottom: 32px;">
  262. <h2 style="color: #dc2626; font-size: 24px; margin: 0 0 12px 0; font-weight: bold;">Impresora Desconectada</h2>
  263. <p style="color: #6b7280; font-size: 16px; line-height: 1.6; margin: 0;">Se ha detectado una desconexión en el sistema de impresión de {location}.</p>
  264. </td>
  265. </tr>
  266. </table>
  267. <!-- Alert Details -->
  268. <table width="100%" cellpadding="0" cellspacing="0" style="margin: 24px 0;">
  269. <tr>
  270. <td style="background-color: #fef2f2; border-radius: 8px; padding: 24px; border-left: 4px solid #dc2626;">
  271. <h3 style="color: #dc2626; font-size: 18px; font-weight: 600; margin: 0 0 16px 0;">Detalles del Problema</h3>
  272. <ul style="list-style: none; padding: 0; margin: 0;">
  273. <li style="color: #374151; font-size: 14px; line-height: 1.5; margin-bottom: 8px; padding-left: 20px; position: relative;">
  274. <span style="color: #dc2626; font-weight: bold; position: absolute; left: 0;">🖨️</span>
  275. <strong>Impresora:</strong> {location}
  276. </li>
  277. <li style="color: #374151; font-size: 14px; line-height: 1.5; margin-bottom: 8px; padding-left: 20px; position: relative;">
  278. <span style="color: #dc2626; font-weight: bold; position: absolute; left: 0;">⏰</span>
  279. <strong>Hora de desconexión:</strong> {timestamp}
  280. </li>
  281. </ul>
  282. </td>
  283. </tr>
  284. </table>
  285. <!-- Priority Section -->
  286. <table width="100%" cellpadding="0" cellspacing="0">
  287. <tr>
  288. <td style="background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); border-radius: 12px; padding: 32px; text-align: center; margin: 32px 0; color: white;">
  289. <p style="font-size: 18px; margin: 0 0 16px 0; opacity: 0.95;">Estado del Sistema</p>
  290. <div style="font-size: 32px; font-weight: bold; margin: 16px 0; border: 3px solid white; border-radius: 8px; padding: 16px; display: inline-block; min-width: 200px; background-color: rgba(255,255,255,0.1);">
  291. 🔴 CRÍTICO
  292. </div>
  293. <p style="font-size: 16px; margin: 16px 0 0 0; opacity: 0.9;">Requiere atención inmediata</p>
  294. </td>
  295. </tr>
  296. </table>
  297. <!-- Impact Assessment -->
  298. <table width="100%" cellpadding="0" cellspacing="0" style="margin: 32px 0;">
  299. <tr>
  300. <td style="background-color: #fff7ed; border-radius: 8px; padding: 24px; border-left: 4px solid #f59e0b;">
  301. <h3 style="color: #92400e; font-size: 16px; font-weight: 600; margin: 0 0 12px 0;">Impacto Potencial</h3>
  302. <p style="color: #374151; font-size: 14px; line-height: 1.5; margin: 0;">
  303. ⚠️ Los pedidos no se están imprimiendo automáticamente<br>
  304. ⚠️ El restaurante puede estar perdiendo órdenes<br>
  305. ⚠️ Se requiere intervención manual inmediata<br>
  306. ⚠️ Posible pérdida de ingresos y experiencia del cliente
  307. </p>
  308. </td>
  309. </tr>
  310. </table>
  311. <!-- Action Items -->
  312. <table width="100%" cellpadding="0" cellspacing="0" style="margin: 32px 0;">
  313. <tr>
  314. <td style="background-color: #f0f9ff; border-radius: 8px; padding: 24px; border-left: 4px solid #3b82f6;">
  315. <h3 style="color: #1e40af; font-size: 16px; font-weight: 600; margin: 0 0 12px 0;">Acciones Requeridas</h3>
  316. <p style="color: #374151; font-size: 14px; line-height: 1.5; margin: 0;">
  317. 1. <strong>Verificar</strong> la conexión de red de la impresora<br>
  318. 2. <strong>Contactar</strong> al restaurante para confirmar el estado<br>
  319. 3. <strong>Reiniciar</strong> el servicio de impresión si es necesario<br>
  320. 4. <strong>Monitorear</strong> la reconexión y funcionalidad<br>
  321. 5. <strong>Documentar</strong> la resolución en el sistema
  322. </p>
  323. </td>
  324. </tr>
  325. </table>
  326. </td>
  327. </tr>
  328. <!-- Footer -->
  329. <tr>
  330. <td style="background-color: #f9fafb; padding: 24px 32px; text-align: center; border-top: 1px solid #e5e7eb;">
  331. <p style="color: #6b7280; font-size: 14px; margin: 0; line-height: 1.5;">
  332. <strong>Express Klein - Sistema de Monitoreo</strong><br>
  333. Alerta automática generada el {timestamp}<br>
  334. Este es un email automático del sistema de monitoreo.<br>
  335. © 2025 Express Klein. Todos los derechos reservados.
  336. </p>
  337. </td>
  338. </tr>
  339. </table>
  340. </td>
  341. </tr>
  342. </table>
  343. </body>
  344. </html>
  345. """
  346. }
  347. PIN_RECOVERY_MAIL = {
  348. "subject": "Recuperación de PIN | Pedidos Express",
  349. "body": """
  350. <!DOCTYPE html>
  351. <html>
  352. <head>
  353. <meta charset="UTF-8">
  354. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  355. <title>Recupera tu PIN</title>
  356. </head>
  357. <body style="margin: 0; padding: 0; font-family: Arial, sans-serif; background-color: #f3f4f6;">
  358. <table width="100%" cellpadding="0" cellspacing="0" style="background-color: #f3f4f6; padding: 20px;">
  359. <tr>
  360. <td align="center">
  361. <table width="600" cellpadding="0" cellspacing="0" style="max-width: 600px; background-color: #ffffff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);">
  362. <!-- Header -->
  363. <tr>
  364. <td style="background-color: #101419; color: white; padding: 32px; text-align: center;">
  365. <h1 style="margin: 0; font-size: 28px; font-weight: bold;">¡Hola {name}!</h1>
  366. <p style="margin: 8px 0 0 0; font-size: 16px; opacity: 0.9;">Recuperación de PIN</p>
  367. </td>
  368. </tr>
  369. <!-- Content -->
  370. <tr>
  371. <td style="padding: 32px;">
  372. <!-- Welcome Message -->
  373. <table width="100%" cellpadding="0" cellspacing="0">
  374. <tr>
  375. <td style="text-align: center; margin-bottom: 32px;">
  376. <h2 style="color: #101419; font-size: 24px; margin: 0 0 12px 0; font-weight: bold;">¿Olvidaste tu PIN?</h2>
  377. <p style="color: #6b7280; font-size: 16px; line-height: 1.6; margin: 0;">No te preocupes, usa el siguiente código para crear un nuevo PIN de acceso a {app_name}.</p>
  378. </td>
  379. </tr>
  380. </table>
  381. <!-- Security Code Section -->
  382. <table width="100%" cellpadding="0" cellspacing="0">
  383. <tr>
  384. <td style="background: linear-gradient(135deg, #101419 0%, #37404a 100%); border-radius: 12px; padding: 32px; text-align: center; margin: 32px 0; color: white;">
  385. <p style="font-size: 18px; margin: 0 0 16px 0; opacity: 0.95;">Tu código de verificación es:</p>
  386. <div style="font-size: 48px; font-weight: bold; letter-spacing: 8px; margin: 24px 0; border: 3px solid white; border-radius: 12px; padding: 24px; display: inline-block; min-width: 280px; background-color: rgba(255,255,255,0.1); font-family: 'Courier New', monospace;">
  387. {verification_code}
  388. </div>
  389. <p style="font-size: 16px; margin: 16px 0 0 0; opacity: 0.9;">Ingresa este código en la aplicación para continuar</p>
  390. </td>
  391. </tr>
  392. </table>
  393. <!-- Security Info -->
  394. <table width="100%" cellpadding="0" cellspacing="0" style="margin: 24px 0;">
  395. <tr>
  396. <td style="background-color: #f9fafb; border-radius: 8px; padding: 24px;">
  397. <h3 style="color: #101419; font-size: 18px; font-weight: 600; margin: 0 0 16px 0; text-align: center;">Información Importante</h3>
  398. <ul style="list-style: none; padding: 0; margin: 0;">
  399. <li style="color: #374151; font-size: 14px; line-height: 1.5; margin-bottom: 8px; padding-left: 20px; position: relative;">
  400. <span style="color: #10b981; font-weight: bold; position: absolute; left: 0;">✓</span>
  401. Este código es válido por 15 minutos
  402. </li>
  403. <li style="color: #374151; font-size: 14px; line-height: 1.5; margin-bottom: 8px; padding-left: 20px; position: relative;">
  404. <span style="color: #10b981; font-weight: bold; position: absolute; left: 0;">✓</span>
  405. Solo puedes usarlo una vez
  406. </li>
  407. <li style="color: #374151; font-size: 14px; line-height: 1.5; margin-bottom: 8px; padding-left: 20px; position: relative;">
  408. <span style="color: #10b981; font-weight: bold; position: absolute; left: 0;">✓</span>
  409. Si no solicitaste este código, ignora este correo
  410. </li>
  411. </ul>
  412. </td>
  413. </tr>
  414. </table>
  415. <!-- Next Steps -->
  416. <table width="100%" cellpadding="0" cellspacing="0" style="margin: 32px 0;">
  417. <tr>
  418. <td style="background-color: #f0f9ff; border-radius: 8px; padding: 24px; border-left: 4px solid #3b82f6;">
  419. <h3 style="color: #101419; font-size: 16px; font-weight: 600; margin: 0 0 12px 0;">¿Cómo usar el código?</h3>
  420. <p style="color: #374151; font-size: 14px; line-height: 1.5; margin: 0;">
  421. 1. Abre la aplicación {app_name}<br>
  422. 2. Ve a la opción "Recuperar PIN"<br>
  423. 3. Ingresa el código de 6 dígitos<br>
  424. 4. Crea tu nuevo PIN<br>
  425. 5. ¡Disfruta de todos nuestros beneficios!
  426. </p>
  427. </td>
  428. </tr>
  429. </table>
  430. <!-- Warning -->
  431. <table width="100%" cellpadding="0" cellspacing="0" style="margin: 24px 0;">
  432. <tr>
  433. <td style="background-color: #fef2f2; border-radius: 8px; padding: 20px; border-left: 4px solid #ef4444;">
  434. <p style="color: #991b1b; font-size: 14px; font-weight: 600; margin: 0 0 8px 0;">⚠️ Importante:</p>
  435. <p style="color: #7f1d1d; font-size: 14px; line-height: 1.5; margin: 0;">
  436. No compartas este código con nadie. Nuestro equipo nunca te pedirá este código por teléfono o email.
  437. </p>
  438. </td>
  439. </tr>
  440. </table>
  441. <!-- Website Section -->
  442. <table width="100%" cellpadding="0" cellspacing="0">
  443. <tr>
  444. <td style="text-align: center; margin: 32px 0; padding: 24px; background-color: #f9fafb; border-radius: 8px;">
  445. <p style="color: #6b7280; margin: 0 0 12px 0;">Visita nuestra plataforma:</p>
  446. <a href="https://expressklein.store" style="color: #101419; font-size: 20px; font-weight: 600; text-decoration: none; border-bottom: 2px solid #101419; padding-bottom: 4px;">
  447. expressklein.store
  448. </a>
  449. </td>
  450. </tr>
  451. </table>
  452. </td>
  453. </tr>
  454. <!-- Footer -->
  455. <tr>
  456. <td style="background-color: #f9fafb; padding: 24px 32px; text-align: center; border-top: 1px solid #e5e7eb;">
  457. <p style="color: #6b7280; font-size: 14px; margin: 0; line-height: 1.5;">
  458. <strong>Express Klein</strong> - Tu aplicación de pedidos favorita<br>
  459. Este código de verificación expira en 15 minutos.<br>
  460. Si no solicitaste este código, puedes ignorar este correo.<br>
  461. © 2025 Express Klein. Todos los derechos reservados.
  462. </p>
  463. </td>
  464. </tr>
  465. </table>
  466. </td>
  467. </tr>
  468. </table>
  469. </body>
  470. </html>
  471. """
  472. }
  473. PIN_SUCCESSFULLY = {
  474. "subject": "Tu PIN ha sido cambiado exitosamente",
  475. "body": """
  476. <!DOCTYPE html>
  477. <html>
  478. <head>
  479. <meta charset="UTF-8">
  480. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  481. <title>PIN Restablecido Exitosamente</title>
  482. </head>
  483. <body style="margin: 0; padding: 0; font-family: Arial, sans-serif; background-color: #f3f4f6;">
  484. <table width="100%" cellpadding="0" cellspacing="0" style="background-color: #f3f4f6; padding: 20px;">
  485. <tr>
  486. <td align="center">
  487. <table width="600" cellpadding="0" cellspacing="0" style="max-width: 600px; background-color: #ffffff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);">
  488. <!-- Header -->
  489. <tr>
  490. <td style="background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; padding: 32px; text-align: center;">
  491. <div style="font-size: 48px; margin-bottom: 16px;">✅</div>
  492. <h1 style="margin: 0; font-size: 28px; font-weight: bold;">¡Hola {name}!</h1>
  493. <p style="margin: 8px 0 0 0; font-size: 16px; opacity: 0.9;">PIN Restablecido Exitosamente</p>
  494. </td>
  495. </tr>
  496. <!-- Content -->
  497. <tr>
  498. <td style="padding: 32px;">
  499. <!-- Success Message -->
  500. <table width="100%" cellpadding="0" cellspacing="0">
  501. <tr>
  502. <td style="text-align: center; margin-bottom: 32px;">
  503. <h2 style="color: #101419; font-size: 24px; margin: 0 0 12px 0; font-weight: bold;">🎉 ¡Perfecto!</h2>
  504. <p style="color: #6b7280; font-size: 16px; line-height: 1.6; margin: 0;">Tu PIN de acceso a {app_name} ha sido actualizado correctamente.</p>
  505. </td>
  506. </tr>
  507. </table>
  508. <!-- Confirmation Details -->
  509. <table width="100%" cellpadding="0" cellspacing="0">
  510. <tr>
  511. <td style="background: linear-gradient(135deg, #10b981 0%, #059669 100%); border-radius: 12px; padding: 32px; text-align: center; margin: 32px 0; color: white;">
  512. <div style="font-size: 32px; margin-bottom: 16px;">🔐</div>
  513. <p style="font-size: 18px; margin: 0 0 16px 0; opacity: 0.95;">Tu nuevo PIN está listo</p>
  514. <div style="font-size: 16px; margin: 16px 0; border: 3px solid white; border-radius: 8px; padding: 20px; background-color: rgba(255,255,255,0.1);">
  515. <strong>Fecha de cambio:</strong> {date}<br>
  516. <strong>Hora:</strong> {time}
  517. </div>
  518. <p style="font-size: 16px; margin: 16px 0 0 0; opacity: 0.9;">Ya puedes acceder a tu cuenta con tu nuevo PIN</p>
  519. </td>
  520. </tr>
  521. </table>
  522. <!-- Security Status -->
  523. <table width="100%" cellpadding="0" cellspacing="0" style="margin: 24px 0;">
  524. <tr>
  525. <td style="background-color: #f0fdf4; border-radius: 8px; padding: 24px; border-left: 4px solid #10b981;">
  526. <h3 style="color: #101419; font-size: 18px; font-weight: 600; margin: 0 0 16px 0; text-align: center;">✅ Estado de Seguridad</h3>
  527. <ul style="list-style: none; padding: 0; margin: 0;">
  528. <li style="color: #166534; font-size: 14px; line-height: 1.5; margin-bottom: 8px; padding-left: 20px; position: relative;">
  529. <span style="color: #10b981; font-weight: bold; position: absolute; left: 0;">✓</span>
  530. PIN actualizado exitosamente
  531. </li>
  532. <li style="color: #166534; font-size: 14px; line-height: 1.5; margin-bottom: 8px; padding-left: 20px; position: relative;">
  533. <span style="color: #10b981; font-weight: bold; position: absolute; left: 0;">✓</span>
  534. Tu cuenta está completamente segura
  535. </li>
  536. <li style="color: #166534; font-size: 14px; line-height: 1.5; margin-bottom: 8px; padding-left: 20px; position: relative;">
  537. <span style="color: #10b981; font-weight: bold; position: absolute; left: 0;">✓</span>
  538. Acceso restaurado correctamente
  539. </li>
  540. </ul>
  541. </td>
  542. </tr>
  543. </table>
  544. <!-- Next Steps -->
  545. <table width="100%" cellpadding="0" cellspacing="0" style="margin: 32px 0;">
  546. <tr>
  547. <td style="background-color: #f0f9ff; border-radius: 8px; padding: 24px; border-left: 4px solid #3b82f6;">
  548. <h3 style="color: #101419; font-size: 16px; font-weight: 600; margin: 0 0 12px 0;">🚀 ¿Qué puedes hacer ahora?</h3>
  549. <p style="color: #374151; font-size: 14px; line-height: 1.5; margin: 0;">
  550. 1. Abre la aplicación {app_name}<br>
  551. 2. Ingresa con tu nuevo PIN<br>
  552. 3. Explora todas las funciones disponibles<br>
  553. 4. Realiza tus pedidos favoritos<br>
  554. 5. ¡Disfruta de la experiencia completa!
  555. </p>
  556. </td>
  557. </tr>
  558. </table>
  559. <!-- Security Tips -->
  560. <table width="100%" cellpadding="0" cellspacing="0" style="margin: 24px 0;">
  561. <tr>
  562. <td style="background-color: #fffbeb; border-radius: 8px; padding: 20px; border-left: 4px solid #f59e0b;">
  563. <p style="color: #92400e; font-size: 14px; font-weight: 600; margin: 0 0 8px 0;">💡 Consejos de Seguridad:</p>
  564. <p style="color: #a16207; font-size: 14px; line-height: 1.5; margin: 0;">
  565. • Recuerda tu nuevo PIN y no lo compartas con nadie<br>
  566. • Si tienes problemas para acceder, contáctanos<br>
  567. • Mantén tu aplicación siempre actualizada
  568. </p>
  569. </td>
  570. </tr>
  571. </table>
  572. <!-- Not You Section -->
  573. <table width="100%" cellpadding="0" cellspacing="0" style="margin: 24px 0;">
  574. <tr>
  575. <td style="background-color: #fef2f2; border-radius: 8px; padding: 20px; border-left: 4px solid #ef4444;">
  576. <p style="color: #991b1b; font-size: 14px; font-weight: 600; margin: 0 0 8px 0;">⚠️ ¿No fuiste tú?</p>
  577. <p style="color: #7f1d1d; font-size: 14px; line-height: 1.5; margin: 0;">
  578. Si no realizaste este cambio, contacta inmediatamente a nuestro equipo de soporte. Tu seguridad es nuestra prioridad.
  579. </p>
  580. </td>
  581. </tr>
  582. </table>
  583. <!-- App Download Section -->
  584. <table width="100%" cellpadding="0" cellspacing="0">
  585. <tr>
  586. <td style="text-align: center; margin: 32px 0; padding: 24px; background-color: #f9fafb; border-radius: 8px;">
  587. <p style="color: #6b7280; margin: 0 0 12px 0;">Accede desde nuestra plataforma:</p>
  588. <a href="https://expressklein.store" style="color: #101419; font-size: 20px; font-weight: 600; text-decoration: none; border-bottom: 2px solid #101419; padding-bottom: 4px;">
  589. expressklein.store
  590. </a>
  591. <p style="color: #6b7280; font-size: 14px; margin: 16px 0 0 0;">O descarga nuestra app móvil</p>
  592. </td>
  593. </tr>
  594. </table>
  595. </td>
  596. </tr>
  597. <!-- Footer -->
  598. <tr>
  599. <td style="background-color: #f9fafb; padding: 24px 32px; text-align: center; border-top: 1px solid #e5e7eb;">
  600. <p style="color: #6b7280; font-size: 14px; margin: 0; line-height: 1.5;">
  601. <strong>Express Klein</strong> - Tu aplicación de pedidos favorita<br>
  602. Este correo confirma que tu PIN fue actualizado exitosamente.<br>
  603. Si tienes alguna pregunta, no dudes en contactarnos.<br>
  604. © 2025 Express Klein. Todos los derechos reservados.
  605. </p>
  606. </td>
  607. </tr>
  608. </table>
  609. </td>
  610. </tr>
  611. </table>
  612. </body>
  613. </html>
  614. """
  615. }