Spaces:
Running
Running
File size: 28,863 Bytes
16a6a64 db9ea97 16a6a64 0e0100d 16a6a64 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 | <!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Banesco - Fallo de Transacción</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<style>
:root {
--banesco-green: #007953;
--banesco-dark: #005a3d;
--banesco-light: #00a378;
--khaki-bg: #8F9779;
--khaki-light: #b5bda8;
--white: #ffffff;
--error-red: #dc3545;
--warning-orange: #fd7e14;
--text-dark: #2c3e50;
--shadow: rgba(0, 0, 0, 0.15);
--glass-bg: rgba(255, 255, 255, 0.95);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', sans-serif;
background: linear-gradient(135deg, var(--khaki-bg) 0%, #7a8565 100%);
min-height: 100vh;
color: var(--text-dark);
line-height: 1.6;
}
/* Header Styles */
header {
background: linear-gradient(135deg, var(--banesco-green) 0%, var(--banesco-dark) 100%);
color: var(--white);
padding: 1rem 0;
box-shadow: 0 4px 20px var(--shadow);
position: sticky;
top: 0;
z-index: 1000;
backdrop-filter: blur(10px);
}
.header-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 1rem;
}
.logo-section {
display: flex;
align-items: center;
gap: 1rem;
flex: 1;
}
.logo-input-group {
display: flex;
flex-direction: column;
gap: 0.5rem;
flex: 1;
max-width: 400px;
}
.logo-input-group label {
font-size: 0.75rem;
opacity: 0.9;
font-weight: 500;
}
.logo-input-group input {
padding: 0.5rem 1rem;
border: 2px solid rgba(255,255,255,0.3);
border-radius: 8px;
background: rgba(255,255,255,0.1);
color: white;
font-size: 0.9rem;
transition: all 0.3s ease;
}
.logo-input-group input::placeholder {
color: rgba(255,255,255,0.6);
}
.logo-input-group input:focus {
outline: none;
border-color: white;
background: rgba(255,255,255,0.2);
}
.logo-display {
height: 50px;
width: auto;
object-fit: contain;
filter: brightness(0) invert(1);
}
.anycoder-badge {
background: rgba(255,255,255,0.2);
padding: 0.5rem 1rem;
border-radius: 20px;
font-size: 0.8rem;
text-decoration: none;
color: white;
transition: all 0.3s ease;
border: 1px solid rgba(255,255,255,0.3);
}
.anycoder-badge:hover {
background: rgba(255,255,255,0.3);
transform: translateY(-2px);
}
/* Navigation */
nav {
background: rgba(0,0,0,0.1);
padding: 0.5rem 0;
}
.nav-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
display: flex;
gap: 2rem;
overflow-x: auto;
}
.nav-item {
color: white;
text-decoration: none;
font-weight: 500;
padding: 0.5rem 0;
border-bottom: 2px solid transparent;
transition: all 0.3s;
white-space: nowrap;
}
.nav-item:hover, .nav-item.active {
border-bottom-color: white;
}
/* Main Content */
main {
max-width: 1200px;
margin: 2rem auto;
padding: 0 2rem;
}
.transaction-container {
display: grid;
grid-template-columns: 1fr;
gap: 2rem;
margin-bottom: 3rem;
}
@media (min-width: 768px) {
.transaction-container {
grid-template-columns: 1fr 1fr;
}
}
/* Alert Card */
.alert-card {
background: var(--glass-bg);
border-radius: 20px;
padding: 2rem;
box-shadow: 0 10px 40px var(--shadow);
border-left: 6px solid var(--error-red);
position: relative;
overflow: hidden;
}
.alert-card::before {
content: '';
position: absolute;
top: 0;
right: 0;
width: 200px;
height: 200px;
background: linear-gradient(135deg, transparent 50%, rgba(220, 53, 69, 0.1) 50%);
border-radius: 0 0 0 100%;
}
.alert-header {
display: flex;
align-items: center;
gap: 1rem;
margin-bottom: 1.5rem;
}
.alert-icon {
width: 60px;
height: 60px;
background: linear-gradient(135deg, var(--error-red), #c82333);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 2rem;
color: white;
box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
animation: pulse 2s infinite;
}
@keyframes pulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.05); }
}
.alert-title {
font-size: 1.5rem;
color: var(--error-red);
font-weight: 700;
}
.alert-subtitle {
color: #666;
font-size: 0.9rem;
}
.error-details {
background: rgba(220, 53, 69, 0.05);
border-radius: 12px;
padding: 1.5rem;
margin-top: 1rem;
border: 1px solid rgba(220, 53, 69, 0.2);
}
.error-code {
display: inline-block;
background: var(--error-red);
color: white;
padding: 0.25rem 0.75rem;
border-radius: 20px;
font-size: 0.8rem;
font-weight: 600;
margin-bottom: 1rem;
}
.error-message {
color: var(--text-dark);
font-size: 1.1rem;
line-height: 1.6;
}
.error-highlight {
color: var(--error-red);
font-weight: 700;
}
/* Account Details Card */
.details-card {
background: var(--glass-bg);
border-radius: 20px;
padding: 2rem;
box-shadow: 0 10px 40px var(--shadow);
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.card-header {
border-bottom: 2px solid #eee;
padding-bottom: 1rem;
}
.card-title {
font-size: 1.25rem;
color: var(--banesco-green);
font-weight: 700;
display: flex;
align-items: center;
gap: 0.5rem;
}
.balance-display {
background: linear-gradient(135deg, var(--banesco-green), var(--banesco-light));
color: white;
padding: 2rem;
border-radius: 16px;
text-align: center;
box-shadow: 0 8px 25px rgba(0, 121, 83, 0.3);
}
.balance-label {
font-size: 0.9rem;
opacity: 0.9;
text-transform: uppercase;
letter-spacing: 1px;
margin-bottom: 0.5rem;
}
.balance-amount {
font-size: 2.5rem;
font-weight: 700;
text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.detail-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem;
background: rgba(0,0,0,0.03);
border-radius: 10px;
transition: all 0.3s;
}
.detail-row:hover {
background: rgba(0,0,0,0.05);
transform: translateX(5px);
}
.detail-label {
font-weight: 600;
color: #666;
display: flex;
align-items: center;
gap: 0.5rem;
}
.detail-value {
font-weight: 700;
color: var(--text-dark);
font-family: 'Courier New', monospace;
}
.stamp-warning {
background: linear-gradient(135deg, #fff3cd, #ffeeba);
border: 2px solid var(--warning-orange);
border-radius: 12px;
padding: 1.5rem;
margin-top: 1rem;
position: relative;
}
.stamp-warning::before {
content: '⚠️';
position: absolute;
top: -15px;
left: 20px;
background: white;
padding: 0 10px;
font-size: 1.5rem;
}
.stamp-amount {
font-size: 1.5rem;
color: var(--warning-orange);
font-weight: 700;
text-align: center;
margin-top: 0.5rem;
}
/* Action Buttons */
.actions {
display: flex;
gap: 1rem;
flex-wrap: wrap;
margin-top: 1rem;
}
.btn {
padding: 1rem 2rem;
border: none;
border-radius: 10px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s;
font-size: 1rem;
flex: 1;
min-width: 200px;
text-align: center;
text-decoration: none;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
}
.btn-primary {
background: linear-gradient(135deg, var(--banesco-green), var(--banesco-light));
color: white;
box-shadow: 0 4px 15px rgba(0, 121, 83, 0.4);
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0, 121, 83, 0.6);
}
.btn-secondary {
background: white;
color: var(--banesco-green);
border: 2px solid var(--banesco-green);
}
.btn-secondary:hover {
background: var(--banesco-green);
color: white;
}
.btn-danger {
background: white;
color: var(--error-red);
border: 2px solid var(--error-red);
}
.btn-danger:hover {
background: var(--error-red);
color: white;
}
/* Footer */
footer {
background: linear-gradient(135deg, var(--banesco-green) 0%, var(--banesco-dark) 100%);
color: white;
padding: 3rem 0 2rem;
margin-top: 4rem;
}
.footer-content {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
}
.footer-section h3 {
margin-bottom: 1rem;
font-size: 1.1rem;
opacity: 0.9;
}
.footer-section p, .footer-section a {
color: rgba(255,255,255,0.8);
text-decoration: none;
line-height: 1.8;
font-size: 0.9rem;
}
.footer-section a:hover {
color: white;
text-decoration: underline;
}
.footer-bottom {
text-align: center;
margin-top: 2rem;
padding-top: 2rem;
border-top: 1px solid rgba(255,255,255,0.2);
color: rgba(255,255,255,0.6);
font-size: 0.85rem;
}
/* Responsive */
@media (max-width: 768px) {
.header-container {
flex-direction: column;
text-align: center;
}
.logo-input-group {
max-width: 100%;
width: 100%;
}
.balance-amount {
font-size: 1.75rem;
}
.alert-title {
font-size: 1.25rem;
}
.nav-container {
gap: 1rem;
}
}
/* Loading Animation */
.processing {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.8);
z-index: 9999;
justify-content: center;
align-items: center;
flex-direction: column;
gap: 2rem;
}
.processing.active {
display: flex;
}
.spinner {
width: 80px;
height: 80px;
border: 6px solid rgba(255,255,255,0.3);
border-top-color: var(--banesco-green);
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.processing-text {
color: white;
font-size: 1.25rem;
font-weight: 500;
}
/* Icons */
.icon::before {
display: inline-block;
font-style: normal;
font-variant: normal;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
}
</style>
</head>
<body>
<!-- Processing Overlay -->
<div class="processing" id="processingOverlay">
<div class="spinner"></div>
<div class="processing-text">Procesando solicitud...</div>
</div>
<!-- Header -->
<header>
<div class="header-container">
<div class="logo-section">
<img src="https://e7.pngegg.com/pngimages/459/23/png-clipart-banesco-venezuelan-bolivar-bank-money-bank-text-payment-thumbnail.png" alt="Banesco Logo" class="logo-display" id="logoImage">
<div class="logo-input-group">
<label for="logoUrl">URL del Logo (.png)</label>
<input type="url" id="logoUrl" placeholder="https://e7.pngegg.com/pngimages/459/23/png-clipart-banesco-venezuelan-bolivar-bank-money-bank-text-payment-thumbnail.png" onchange="updateLogo()">
</div>
</div>
<a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" class="anycoder-badge">
Built with anycoder 🤗
</a>
</div>
<nav>
<div class="nav-container">
<a href="#" class="nav-item">Inicio</a>
<a href="#" class="nav-item">Cuentas</a>
<a href="#" class="nav-item active">Transferencias</a>
<a href="#" class="nav-item">Pagos</a>
<a href="#" class="nav-item">Servicios</a>
<a href="#" class="nav-item">Ayuda</a>
</div>
</nav>
</header>
<!-- Main Content -->
<main>
<div class="transaction-container">
<!-- Error Alert Section -->
<div class="alert-card">
<div class="alert-header">
<div class="alert-icon">✕</div>
<div>
<div class="alert-title">Transacción Fallida</div>
<div class="alert-subtitle">Operación #TXN-7845291</div>
</div>
</div>
<div class="error-details">
<span class="error-code">ERROR_DOC_001</span>
<p class="error-message">
No se puede completar la transferencia debido a <span class="error-highlight">documentación incompleta</span>.
El timbre fiscal no está aplicado correctamente a su cuenta.
</p>
</div>
<div class="stamp-warning">
<h4 style="color: #856404; margin-bottom: 0.5rem;">Timbre Fiscal Requerido</h4>
<p style="color: #856404; font-size: 0.9rem;">
Para completar transacciones internacionales o de alto valor, es obligatorio tener el timbre fiscal actualizado.
</p>
<div class="stamp-amount">
€200.00 <small style="font-size: 0.8rem; color: #666;">(Impuesto de Timbre)</small>
</div>
</div>
<div class="actions" style="margin-top: 2rem;">
<button class="btn btn-primary" onclick="fixStamp()">
<span>💳</span> Aplicar Timbre Ahora
</button>
<button class="btn btn-secondary" onclick="contactSupport()">
<span>📞</span> Contactar Soporte
</button>
</div>
</div>
<!-- Account Details Section -->
<div class="details-card">
<div class="card-header">
<div class="card-title">
<span>🏦</span> Detalles de la Cuenta
</div>
</div>
<div class="balance-display">
<div class="balance-label">Saldo Disponible</div>
<div class="balance-amount">€650,000.00</div>
</div>
<div style="margin-top: 1rem;">
<div class="detail-row">
<span class="detail-label">
<span>📤</span> Cuenta Origen:
</span>
<span class="detail-value">**** **** **** 4521</span>
</div>
<div class="detail-row">
<span class="detail-label">
<span>📥</span> Cuenta Destino:
</span>
<span class="detail-value">7546629 01145569604</span>
</div>
<div class="detail-row">
<span class="detail-label">
<span>💶</span> Monto a Transferir:
</span>
<span class="detail-value" style="color: var(--banesco-green);">Consultar Saldo</span>
</div>
<div class="detail-row">
<span class="detail-label">
<span>📅</span> Fecha:
</span>
<span class="detail-value" id="currentDate"></span>
</div>
<div class="detail-row">
<span class="detail-label">
<span>⏱️</span> Estado:
</span>
<span class="detail-value" style="color: var(--error-red);">⏸️ PENDIENTE</span>
</div>
</div>
<div style="background: #f8f9fa; padding: 1rem; border-radius: 10px; margin-top: 1rem; font-size: 0.85rem; color: #666;">
<strong>Nota:</strong> La transacción permanecerá en estado pendiente durante 24 horas mientras se resuelve la inconsistencia documental. Pasado este tiempo, será cancelada automáticamente.
</div>
<div class="actions">
<button class="btn btn-danger" onclick="cancelTransaction()">
<span>🚫</span> Cancelar Operación
</button>
<button class="btn btn-secondary" onclick="downloadReport()">
<span>📄</span> Descargar Reporte
</button>
</div>
</div>
</div>
<!-- Additional Information -->
<div style="background: var(--glass-bg); padding: 2rem; border-radius: 20px; box-shadow: 0 10px 40px var(--shadow); margin-top: 2rem;">
<h3 style="color: var(--banesco-green); margin-bottom: 1rem;">¿Qué es el Timbre Fiscal?</h3>
<p style="color: #666; line-height: 1.8; margin-bottom: 1rem;">
El timbre fiscal es un impuesto obligatorio establecido por la normativa bancaria europea para transacciones que exceden ciertos umbrales o que involucran transferencias internacionales. Este impuesto debe estar correctamente registrado en su cuenta antes de realizar operaciones de alto valor.
</p>
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin-top: 1.5rem;">
<div style="padding: 1rem; background: rgba(0,121,83,0.05); border-radius: 10px; border-left: 4px solid var(--banesco-green);">
<strong style="color: var(--banesco-green); display: block; margin-bottom: 0.5rem;">Pago Único</strong>
<span style="font-size: 0.9rem; color: #666;">El timbre se paga una sola vez y es válido por 12 meses.</span>
</div>
<div style="padding: 1rem; background: rgba(0,121,83,0.05); border-radius: 10px; border-left: 4px solid var(--banesco-green);">
<strong style="color: var(--banesco-green); display: block; margin-bottom: 0.5rem;">Cobertura Total</strong>
<span style="font-size: 0.9rem; color: #666;">Cubre todas las transacciones hasta un límite agregado de €5,000,000.</span>
</div>
<div style="padding: 1rem; background: rgba(0,121,83,0.05); border-radius: 10px; border-left: 4px solid var(--banesco-green);">
<strong style="color: var(--banesco-green); display: block; margin-bottom: 0.5rem;">Proceso Rápido</strong>
<span style="font-size: 0.9rem; color: #666;">Una vez aplicado, la activación es inmediata.</span>
</div>
</div>
</div>
</main>
<!-- Footer -->
<footer>
<div class="footer-content">
<div class="footer-section">
<h3>Banesco Banco Universal</h3>
<p>Servicios financieros seguros y confiables para todos sus necesidades bancarias.</p>
<p style="margin-top: 1rem;">
<strong>Teléfono:</strong> +34 900 123 456<br>
<strong>Email:</strong> soporte@banesco.es
</p>
</div>
<div class="footer-section">
<h3>Enlaces Rápidos</h3>
<p>
<a href="#">Estado de Cuenta</a><br>
<a href="#">Transferencias Internacionales</a><br>
<a href="#">Documentación Requerida</a><br>
<a href="#">Límites y Comisiones</a>
</p>
</div>
<div class="footer-section">
<h3>Seguridad</h3>
<p>
<a href="#">Centro de Seguridad</a><br>
<a href="#">Reportar Fraude</a><br>
<a href="#">Política de Privacidad</a><br>
<a href="#">Términos y Condiciones</a>
</p>
</div>
<div class="footer-section">
<h3>Oficinas</h3>
<p>
Madrid: Calle Mayor 15<br>
Barcelona: Passeig de Gràcia 50<br>
Valencia: Plaza del Ayuntamiento 8
</p>
</div>
</div>
<div class="footer-bottom">
<p>© 2024 Banesco Banco Universal. Todos los derechos reservados. | NIF: A12345678</p>
</div>
</footer>
<script>
// Set current date
document.getElementById('currentDate').textContent = new Date().toLocaleDateString('es-ES', {
year: 'numeric',
month: 'long',
day: 'numeric',
hour: '2-digit',
minute: '2-digit'
});
// Update logo function
function updateLogo() {
const url = document.getElementById('logoUrl').value;
if (url) {
document.getElementById('logoImage').src = url;
}
}
// Show processing overlay
function showProcessing() {
document.getElementById('processingOverlay').classList.add('active');
}
function hideProcessing() {
document.getElementById('processingOverlay').classList.remove('active');
}
// Fix stamp action
function fixStamp() {
showProcessing();
setTimeout(() => {
hideProcessing();
alert('Redirigiendo al sistema de pagos de timbre fiscal...\n\nSe procederá al cobro de €200.00 para activar el timbre fiscal en su cuenta.\n\nMétodos de pago aceptados:\n- Tarjeta de Débito/Crédito\n- Transferencia bancaria inmediata\n- Domiciliación bancaria');
}, 1500);
}
// Contact support
function contactSupport() {
const message = `Asunto: Fallo de Transacción - Timbre Fiscal Pendiente\n\nEstimado cliente,\n\nHemos registrado su consulta sobre la transacción fallida #TXN-7845291.\n\nUn agente de soporte se pondrá en contacto con usted en las próximas 24 horas.\n\nMientras tanto, puede:\n1. Aplicar el timbre fiscal automáticamente (€200.00)\n2. Visitar una sucursal física con documentación adicional\n3. Esperar a que un agente le contacte\n\nGracias por su paciencia.`;
alert(message);
}
// Cancel transaction
function cancelTransaction() {
if (confirm('¿Está seguro de que desea cancelar esta transacción?\n\nLa operación #TXN-7845291 será eliminada permanentemente.')) {
showProcessing();
setTimeout(() => {
hideProcessing();
alert('Transacción cancelada exitosamente.\n\nSe ha enviado un correo de confirmación a su dirección registrada.');
// Visual feedback
document.querySelector('.alert-title').textContent = 'Transacción Cancelada';
document.querySelector('.alert-title').style.color = '#666';
document.querySelector('.alert-icon').style.background = '#666';
document.querySelector('.alert-icon').textContent = '✓';
}, 1500);
}
}
// Download report
function downloadReport() {
const reportContent = `
REPORTE DE TRANSACCIÓN FALLIDA
===============================
Banco: Banesco Banco Universal
Fecha: ${new Date().toLocaleString('es-ES')}
DETALLES DE LA OPERACIÓN:
- Número de Transacción: TXN-7845291
- Estado: FALLIDA - Documentación incompleta
- Cuenta Origen: **** **** **** 4521
- Cuenta Destino: 7546629 01145569604
- Saldo Disponible: €650,000.00
ERROR DETECTADO:
- Código: ERROR_DOC_001
- Descripción: Timbre fiscal no aplicado
- Solución: Pago de €200.00 para activación del timbre
ACCIONES REQUERIDAS:
1. Aplicar timbre fiscal (€200.00)
2. Reintentar la operación
3. O contactar soporte técnico
Este documento es una constancia oficial del intento de operación.
`;
const blob = new Blob([reportContent], { type: 'text/plain' });
const url = window.URL.createObjectURL(blob);
const a = document.createElement('a');
a.href = url;
a.download = `Reporte_Fallo_Transaccion_${Date.now()}.txt`;
a.click();
window.URL.revokeObjectURL(url);
}
// Add some interactive hover effects
document.querySelectorAll('.detail-row').forEach(row => {
row.addEventListener('mouseenter', function() {
this.style.borderLeft = '4px solid var(--banesco-green)';
});
row.addEventListener('mouseleave', function() {
this.style.borderLeft = 'none';
});
});
</script>
</body>
</html> |