Spaces:
Running
Running
File size: 47,007 Bytes
c591f25 15f0939 b35734c 15f0939 90339e3 15f0939 b35734c 15f0939 5cd2097 15f0939 b35734c 15f0939 5cd2097 15f0939 5cd2097 1903435 15f0939 4c0c572 69b373d 90339e3 69b373d 90339e3 1903435 90339e3 1903435 90339e3 abedbe8 4c0c572 15f0939 90339e3 15f0939 90339e3 15f0939 90339e3 15f0939 90339e3 15f0939 90339e3 15f0939 90339e3 15f0939 90339e3 15f0939 90339e3 15f0939 90339e3 15f0939 90339e3 15f0939 90339e3 c82f4ee 15f0939 c82f4ee 15f0939 4cc33a0 c82f4ee 4cc33a0 c82f4ee 15f0939 c82f4ee 15f0939 c82f4ee 15f0939 90339e3 c82f4ee 90339e3 c82f4ee 90339e3 15f0939 90339e3 75342c3 c82f4ee 75342c3 90339e3 5cd2097 15f0939 90339e3 b35734c 15f0939 75342c3 5cd2097 15f0939 ffa370c 9ccf417 90339e3 24dabc8 90339e3 9ccf417 90339e3 0026bbb 90339e3 0026bbb 90339e3 0026bbb 90339e3 0026bbb 90339e3 0026bbb 90339e3 4c0c572 ffa370c c82f4ee ffa370c b35734c 5cd2097 ffa370c abedbe8 b35734c 42cb144 90339e3 42cb144 ffa370c b35734c c82f4ee b35734c 5cd2097 ffa370c c82f4ee 854e936 75342c3 9ccf417 75342c3 854e936 75342c3 9ccf417 75342c3 42cb144 90339e3 9ccf417 75342c3 9ccf417 ffa370c b35734c ffa370c c82f4ee b35734c ffa370c abedbe8 c82f4ee 9ccf417 75342c3 9ccf417 75342c3 ffa370c abedbe8 b35734c 9ccf417 ffa370c cf02a17 24dabc8 9ccf417 cf02a17 15f0939 c591f25 15f0939 5cd2097 abedbe8 15f0939 abedbe8 15f0939 abedbe8 c432fe3 15f0939 abedbe8 15f0939 c591f25 15f0939 5cd2097 15f0939 abedbe8 1903435 15f0939 c591f25 15f0939 5cd2097 abedbe8 15f0939 abedbe8 c432fe3 15f0939 abedbe8 c432fe3 15f0939 abedbe8 c432fe3 15f0939 c591f25 15f0939 5cd2097 15f0939 abedbe8 1903435 abedbe8 15f0939 e53fbce 15f0939 abedbe8 15f0939 e53fbce 15f0939 c591f25 4cc33a0 15f0939 5cd2097 15f0939 4cc33a0 abedbe8 15f0939 4cc33a0 15f0939 4cc33a0 15f0939 4cc33a0 15f0939 4cc33a0 15f0939 4cc33a0 15f0939 abedbe8 4cc33a0 15f0939 4cc33a0 15f0939 4cc33a0 15f0939 4cc33a0 15f0939 c591f25 15f0939 5cd2097 15f0939 abedbe8 15f0939 1903435 15f0939 abedbe8 9ccf417 15f0939 abedbe8 15f0939 abedbe8 75342c3 15f0939 c591f25 15f0939 c591f25 75342c3 c591f25 90339e3 0026bbb 90339e3 15f0939 abedbe8 15f0939 abedbe8 5cd2097 abedbe8 1903435 abedbe8 15f0939 abedbe8 15f0939 abedbe8 15f0939 abedbe8 c82f4ee 90339e3 0026bbb 90339e3 24dabc8 90339e3 24dabc8 90339e3 24dabc8 90339e3 cf02a17 0026bbb 24dabc8 c82f4ee cf02a17 24dabc8 cf02a17 24dabc8 c82f4ee 0026bbb 24dabc8 0026bbb 24dabc8 0026bbb 24dabc8 c82f4ee cf02a17 24dabc8 c82f4ee cf02a17 4c0c572 24dabc8 4c0c572 69b373d cf02a17 24dabc8 4c0c572 24dabc8 c82f4ee cf02a17 24dabc8 90339e3 24dabc8 c82f4ee 69b373d 24dabc8 c82f4ee 0026bbb 24dabc8 0026bbb 24dabc8 90339e3 887561d 0026bbb 90339e3 24dabc8 0026bbb 24dabc8 90339e3 24dabc8 90339e3 15f0939 c591f25 | 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 | <!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>MIGUEL - Pitch Deck</title>
<!-- LIBRERÍAS PARA PDF -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,600;1,400&family=Manrope:wght@200;300;400;500;600;700&display=swap');
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: 'Manrope', sans-serif;
background: #050505;
color: #f0f0f0;
overflow: hidden;
touch-action: manipulation;
}
.slide {
width: 100vw;
height: 100vh;
position: relative;
display: none;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
.slide.active { display: flex; align-items: center; justify-content: center; }
.overlay, .overlay-slide2, .overlay-slide4, .overlay-slide5, .overlay-slide6 {
position: absolute; top: 0; left: 0; width: 100%; height: 100%;
z-index: 1;
opacity: 0;
pointer-events: none;
}
/* ===================== ANIMACIONES ===================== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes fadeInOverlay { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
.animate-overlay { animation: fadeInOverlay 1.5s ease-out forwards; animation-delay: 1.5s; }
.animate-title { opacity: 0; animation: fadeInUp 1s ease-out forwards; animation-delay: 1.8s; }
.animate-tagline { opacity: 0; animation: fadeIn 1.2s ease-out forwards; animation-delay: 1.6s; }
.animate-credits { opacity: 0; animation: fadeInUp 1s ease-out forwards; animation-delay: 2.2s; }
.animate-genre { opacity: 0; animation: fadeIn 1s ease-out forwards; animation-delay: 2.6s; }
.animate-text { opacity: 0; animation: slideInLeft 1s ease-out forwards; animation-delay: 1.8s; }
.animate-title-slide { opacity: 0; animation: fadeInUp 0.8s ease-out forwards; animation-delay: 1.6s; }
.animate-table { opacity: 0; animation: fadeIn 1.2s ease-out forwards; animation-delay: 1.8s; }
.animate-notes { opacity: 0; animation: fadeInUp 1s ease-out forwards; animation-delay: 2.5s; }
.animate-contact { opacity: 0; animation: slideInLeft 0.8s ease-out forwards; animation-delay: 1.6s; }
.animate-contact-item { opacity: 0; animation: fadeInUp 0.6s ease-out forwards; }
.animate-contact-item:nth-child(1) { animation-delay: 2.0s; }
.animate-contact-item:nth-child(2) { animation-delay: 2.2s; }
.animate-contact-item:nth-child(3) { animation-delay: 2.4s; }
.animate-miembro { opacity: 0; animation: scaleIn 0.8s ease-out forwards; }
.animate-miembro:nth-child(1) { animation-delay: 1.8s; }
.animate-miembro:nth-child(2) { animation-delay: 2.0s; }
.animate-miembro:nth-child(3) { animation-delay: 2.2s; }
.animate-highlight { opacity: 0; animation: fadeInUp 0.8s ease-out forwards; animation-delay: 1.8s; }
/* ===================== ESTILOS GENERALES ===================== */
.tagline-top {
position: absolute; top: 25px; width: 100%; text-align: center;
font-family: 'EB Garamond', serif; font-style: italic; font-size: 2rem;
color: #000000; z-index: 10; font-weight: 600;
text-shadow: 0 0 15px rgba(255,255,255,0.8);
}
.titulo-main {
font-family: 'EB Garamond', serif; font-size: 9rem; font-weight: 400;
letter-spacing: 25px; margin-top: 80px; margin-bottom: 20px;
text-shadow: 0 5px 25px rgba(0,0,0,0.8);
}
.credits-bottom { margin-top: 180px; width: 80%; margin-left: auto; margin-right: auto; }
.credits {
font-family: 'Manrope', sans-serif; font-size: 1.5rem; font-weight: 500;
letter-spacing: 1px; line-height: 2; text-shadow: 0 2px 15px rgba(0,0,0,1); margin-bottom: 30px;
}
.credits span { display: block; white-space: nowrap; }
.credits a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3); transition: all 0.3s; }
.credits a:hover { color: #4ade80; border-bottom-color: #4ade80; }
.genre {
font-family: 'Manrope', sans-serif; font-size: 1rem; letter-spacing: 6px;
border-top: 1px solid rgba(255,255,255,0.6); display: inline-block;
padding-top: 20px; text-transform: uppercase; font-weight: 500;
text-shadow: 0 2px 10px rgba(0,0,0,1);
}
.overlay-slide2 { background: linear-gradient(to bottom, rgba(0,0,0,0.98) 0%, rgba(0,0,0,0.0) 100%); }
.content-slide2 { position: absolute; top: 35px; left: 5%; width: 85%; z-index: 10; text-align: left; }
.titulo-slide2 {
font-family: 'EB Garamond', serif; font-size: 4.8rem; margin-bottom: 15px;
font-weight: 600; letter-spacing: 2px; text-shadow: 0 4px 10px rgba(0,0,0,0.9); line-height: 1;
}
.texto-slide2 {
font-family: 'Manrope', sans-serif; font-size: 1.2rem; line-height: 1.85;
text-align: justify; font-weight: 300; color: #f5f5f5; text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}
.titulo-slide-top-right {
font-family: 'EB Garamond', serif; font-size: 3.2rem; font-weight: 400;
letter-spacing: 1px; text-align: right; position: absolute;
top: 60px; right: 5%; z-index: 10; text-shadow: 0 4px 15px rgba(0,0,0,0.9);
}
.equipo-container {
position: absolute; bottom: 60px; left: 5%; right: 5%;
display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; z-index: 10;
}
.miembro {
padding: 25px; background: rgba(0,0,0,0.6); backdrop-filter: blur(10px);
border: 1px solid rgba(255,255,255,0.1); text-align: center;
}
.miembro-nombre {
font-family: 'EB Garamond', serif; font-size: 1.8rem; font-weight: 700;
margin-bottom: 10px; letter-spacing: 1px; border-bottom: 1px solid rgba(255,255,255,0.3);
padding-bottom: 12px; display: block;
}
.miembro-nombre a { color: #fff; text-decoration: none; transition: all 0.3s; }
.miembro-nombre a:hover { color: #4ade80; }
.miembro-rol {
font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px;
opacity: 0.8; margin-bottom: 15px; display: block; font-weight: 400; color: #fff;
}
.miembro-bio { font-size: 1rem; line-height: 1.7; font-weight: 300; opacity: 0.95; }
.overlay-slide4 { background: linear-gradient(to right, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 60%, rgba(0,0,0,0.0) 100%); }
.content-slide4 { position: absolute; top: 20px; left: 5%; width: 60%; z-index: 10; }
.titulo-slide4 {
font-family: 'EB Garamond', serif; font-size: 3.2rem; font-weight: 600;
letter-spacing: 2px; margin-bottom: 0px; text-shadow: 0 4px 10px rgba(0,0,0,0.9);
}
.subtitulo-slide4 {
font-family: 'Manrope', sans-serif; font-size: 1rem; font-weight: 400;
letter-spacing: 3px; text-transform: uppercase; opacity: 0.8; margin-bottom: 20px;
}
.highlight-row { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 25px; flex-wrap: wrap; }
.highlight-box {
background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2);
padding: 15px 20px; display: inline-flex; align-items: baseline; gap: 15px;
border-radius: 4px; flex-shrink: 0;
}
.highlight-number { font-family: 'Manrope', sans-serif; font-size: 2.8rem; font-weight: 700; color: #fff; line-height: 1; }
.highlight-text { font-family: 'Manrope', sans-serif; font-size: 0.9rem; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: #ccc; }
.sources-box { font-size: 0.8rem; color: #bbb; line-height: 1.5; max-width: 400px; padding-top: 5px; }
.table-container { display: grid; gap: 6px; }
.table-row {
display: grid; grid-template-columns: 2.2fr 0.8fr 0.8fr; padding: 8px 0;
border-bottom: 1px solid rgba(255,255,255,0.1); align-items: start;
}
.col-movie-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px; }
.col-movie-header strong { font-family: 'EB Garamond', serif; font-size: 1.05rem; font-weight: 600; color: #fff; }
.col-movie-header span.year { font-size: 0.85rem; color: #888; }
.col-movie-header span.country { font-family: 'Manrope', sans-serif; font-size: 0.8rem; font-weight: 700; color: #999; letter-spacing: 1px; }
.col-movie-desc { font-size: 0.75rem; line-height: 1.4; color: #aaa; display: block; margin-top: 2px; }
.col-budget, .col-roi { font-family: 'Manrope', sans-serif; font-size: 0.95rem; font-weight: 700; text-align: right; padding-top: 2px; }
.roi-excellent { color: #4ade80; } .roi-good { color: #22c55e; } .roi-ok { color: #fbbf24; } .roi-risk { color: #fb923c; } .roi-low { color: #f87171; }
.overlay-slide5 { background: linear-gradient(to right, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 55%, rgba(0,0,0,0.0) 100%); }
/* Ajustes clave para SCROLL y TAMAÑO */
.content-slide5 {
position: absolute;
top: 20px;
left: 5%;
width: 65%;
z-index: 10;
max-height: 85vh; /* Permite scroll si es necesario */
overflow-y: auto; /* Activa scroll vertical */
padding-bottom: 50px; /* Espacio al final del scroll */
}
.titulo-slide5 {
font-family: 'EB Garamond', serif;
font-size: 2.2rem; /* REDUCIDO: de 3.5rem a 2.2rem */
font-weight: 600;
letter-spacing: 1px;
margin-bottom: 15px; /* Menor margen inferior */
text-shadow: 0 4px 15px rgba(0,0,0,0.9);
}
.slide5-desc {
font-family: 'Manrope', sans-serif; font-size: 0.95rem; line-height: 1.6;
margin-bottom: 20px; color: #ddd; opacity: 0.9;
}
.cascada-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 0.9rem; }
.cascada-table th { text-align: left; padding: 10px 12px; border-bottom: 2px solid rgba(255,255,255,0.3); font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; color: #ccc; }
.cascada-table td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.1); vertical-align: top; }
.cascada-table .col-etapa { width: 20%; font-weight: 700; color: #fff; }
.cascada-table .col-concepto { width: 50%; color: #ddd; }
.cascada-table .col-monto { width: 30%; text-align: right; font-weight: 700; color: #4ade80; font-size: 1rem; }
.cascada-table .total-row { background: rgba(255,255,255,0.08); }
.cascada-table .total-row td { border-bottom: 2px solid rgba(255,255,255,0.4); font-weight: 700; }
.cascada-table .total-row .col-monto { color: #fbbf24; font-size: 1.05rem; }
.cascada-table .fase3-row .col-monto { color: #fbbf24; }
.notas-tecnicas {
background: rgba(0,0,0,0.8); border-left: 3px solid rgba(255,255,255,0.3);
padding: 15px; margin-top: 20px; /* Menor margen superior */
}
.notas-tecnicas h3 { font-family: 'EB Garamond', serif; font-size: 1.2rem; margin-bottom: 10px; color: #fff; font-weight: 600; }
.nota-item { margin-bottom: 12px; font-size: 0.8rem; line-height: 1.5; color: #ccc; }
.nota-item strong { color: #fff; display: block; margin-bottom: 4px; font-weight: 600; }
.overlay-slide6 { background: linear-gradient(to right, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 50%, rgba(0,0,0,0.0) 100%); }
.content-slide6 { position: absolute; top: 50%; left: 5%; transform: translateY(-50%); width: 50%; z-index: 10; }
.gracias-title { font-family: 'EB Garamond', serif; font-size: 4.5rem; font-weight: 600; margin-bottom: 50px; letter-spacing: 3px; text-shadow: 0 4px 20px rgba(0,0,0,0.9); }
.contacto-nombre { font-family: 'EB Garamond', serif; font-size: 2rem; font-weight: 600; margin-bottom: 30px; color: #fff; letter-spacing: 2px; }
.contacto-item { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; font-size: 1.1rem; color: #ddd; }
.contacto-item a { color: #fff; text-decoration: none; transition: color 0.3s; }
.contacto-item a:hover { color: #4ade80; }
.whatsapp-icon { width: 24px; height: 24px; fill: #25D366; }
.talishte-credit {
position: absolute; bottom: 85px; right: 5%; font-size: 0.9rem; font-weight: 700;
color: #1a1a1a; z-index: 5; text-shadow: 0 0 10px rgba(255,255,255,0.6);
}
.talishte-credit a { color: #000; text-decoration: none; font-weight: 700; border-bottom: 2px solid #000; transition: color 0.3s; }
.talishte-credit a:hover { color: #333; border-bottom-color: #333; }
/* ===================== CONTROLES INFERIORES ===================== */
.bottom-controls {
position: fixed;
bottom: 0; left: 0; width: 100%;
z-index: 1000;
pointer-events: none;
}
.bottom-controls > * { pointer-events: auto; }
.nav {
position: fixed; bottom: 30px; right: 30px;
display: flex; gap: 10px;
}
.nav button, #btn-pdf {
background: rgba(0,0,0,0.7); border: 2px solid rgba(255,255,255,0.5);
color: white; padding: 12px 20px; cursor: pointer;
font-family: 'Manrope', sans-serif; font-size: 0.85rem; letter-spacing: 2px;
transition: 0.3s; border-radius: 5px; backdrop-filter: blur(5px);
}
.nav button:hover, #btn-pdf:hover { background: rgba(0,0,0,0.9); border-color: white; }
.nav button:active, #btn-pdf:active { transform: scale(0.95); }
.nav button:disabled, #btn-pdf:disabled { opacity: 0.3; cursor: not-allowed; }
.slide-counter {
position: fixed; bottom: 30px; left: 30px;
font-size: 0.9rem; opacity: 0.8; letter-spacing: 3px;
background: rgba(0,0,0,0.6); padding: 8px 15px; border-radius: 5px; backdrop-filter: blur(5px);
}
/* BOTÓN PDF: ARRIBA DERECHA FIJO (DESKTOP) */
#btn-pdf {
position: fixed;
top: 30px;
right: 30px;
z-index: 1001;
}
/* LOADING OVERLAY - NEGRO SÓLIDO Y CAPA SUPERIOR ABSOLUTA */
#pdf-loading {
position: fixed; top: 0; left: 0; width: 100%; height: 100%;
background: #000000;
z-index: 99999;
display: none;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 25px;
}
.spinner {
width: 60px; height: 60px;
border: 5px solid rgba(255,255,255,0.2);
border-top-color: #4ade80;
border-radius: 50%;
animation: spin 1s linear infinite;
}
#pdf-loading p {
font-family: 'Manrope', sans-serif;
font-size: 1.4rem;
color: #fff;
letter-spacing: 2px;
font-weight: 600;
}
#pdf-loading .progress-text {
font-family: 'Manrope', sans-serif;
font-size: 1rem;
color: #aaa;
letter-spacing: 1px;
margin-top: 10px;
}
/* ===================== RESPONSIVE + SCROLL FIX ===================== */
@media (max-width: 1024px) {
.titulo-main { font-size: 6rem; letter-spacing: 15px; }
.titulo-slide2 { font-size: 3.5rem; }
.titulo-slide4 { font-size: 2.5rem; }
.titulo-slide5 { font-size: 2rem; } /* Más pequeño en tablet */
.gracias-title { font-size: 3.5rem; }
.equipo-container { grid-template-columns: 1fr 1fr; gap: 20px; }
.table-row { grid-template-columns: 1.8fr 0.8fr 0.7fr; }
}
@media (max-width: 768px) {
.titulo-main { font-size: 3.5rem; letter-spacing: 8px; margin-top: 60px; }
.tagline-top { font-size: 1.1rem; top: 10px; }
.credits { font-size: 1rem; line-height: 1.8; }
.genre { font-size: 0.75rem; }
.titulo-slide2 { font-size: 2.2rem; }
.texto-slide2 { font-size: 0.95rem; }
.titulo-slide-top-right { font-size: 1.8rem; top: 30px; right: 5%; }
.equipo-container { grid-template-columns: 1fr; bottom: 120px; gap: 15px; }
.miembro { padding: 15px; }
.miembro-nombre { font-size: 1.4rem; }
.overlay-slide4, .overlay-slide5, .overlay-slide6 {
width: 100%;
background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.0) 100%);
}
.content-slide4, .content-slide5 {
width: 90%; left: 5%;
max-height: calc(100vh - 140px);
overflow-y: auto;
padding-bottom: 20px;
}
.content-slide6 { width: 90%; left: 5%; }
.titulo-slide4 { font-size: 1.8rem; }
.titulo-slide5 { font-size: 1.6rem; } /* Más pequeño en móvil */
.gracias-title { font-size: 2.5rem; margin-bottom: 30px; }
.contacto-nombre { font-size: 1.4rem; }
.table-row { grid-template-columns: 1fr; gap: 5px; padding: 10px 0; }
.col-budget, .col-roi { text-align: left; font-size: 0.85rem; }
.col-movie-desc { font-size: 0.7rem; }
.cascada-table { font-size: 0.85rem; }
.cascada-table th, .cascada-table td { padding: 8px 10px; }
.notas-tecnicas { margin-top: 15px; padding: 12px; }
/* MÓVIL: BARRA INFERIOR FLEX UNIFICADA */
.bottom-controls {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 15px;
bottom: 15px;
}
.slide-counter, .nav, #btn-pdf {
position: relative !important;
bottom: auto !important; left: auto !important; right: auto !important; top: auto !important;
transform: none !important;
margin: 0;
}
.slide-counter { order: 1; padding: 6px 10px; font-size: 0.75rem; }
#btn-pdf {
order: 2;
padding: 8px 12px;
font-size: 0.7rem;
background: rgba(0,0,0,0.7);
border: 2px solid rgba(255,255,255,0.5);
color: white;
border-radius: 5px;
backdrop-filter: blur(5px);
white-space: nowrap;
flex-shrink: 0;
}
.nav { order: 3; gap: 8px; }
.nav button { padding: 8px 14px; font-size: 0.75rem; }
.content-slide4::-webkit-scrollbar, .content-slide5::-webkit-scrollbar { width: 4px; }
.content-slide4::-webkit-scrollbar-thumb, .content-slide5::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 2px; }
/* MÓVIL: Subir crédito de talishte.io para no taparlo */
.talishte-credit {
bottom: 120px;
right: 5%;
left: 5%;
text-align: center;
font-size: 0.8rem;
}
}
@media (max-width: 480px) {
.titulo-main { font-size: 2.5rem; letter-spacing: 5px; margin-top: 50px; }
.tagline-top { font-size: 0.9rem; top: 5px; }
.credits { font-size: 0.85rem; line-height: 1.6; }
.genre { font-size: 0.65rem; }
.titulo-slide2 { font-size: 1.8rem; }
.texto-slide2 { font-size: 0.85rem; line-height: 1.5; }
.titulo-slide-top-right { font-size: 1.4rem; }
.miembro-nombre { font-size: 1.2rem; }
.miembro-bio { font-size: 0.85rem; }
.titulo-slide4, .titulo-slide5 { font-size: 1.5rem; }
.highlight-number { font-size: 1.8rem; }
.highlight-text { font-size: 0.7rem; }
.gracias-title { font-size: 2rem; letter-spacing: 2px; }
.contacto-item { font-size: 0.9rem; margin-bottom: 15px; }
.whatsapp-icon { width: 20px; height: 20px; }
.table-row { font-size: 0.8rem; }
.cascada-table { font-size: 0.75rem; }
.notas-tecnicas h3 { font-size: 1rem; }
.nota-item { font-size: 0.7rem; }
.bottom-controls { bottom: 10px; padding: 0 10px; }
.slide-counter { padding: 5px 8px; font-size: 0.7rem; }
#btn-pdf { padding: 6px 10px; font-size: 0.65rem; }
.nav button { padding: 6px 10px; font-size: 0.7rem; }
.talishte-credit { bottom: 100px; font-size: 0.7rem; }
}
@media (max-height: 500px) and (orientation: landscape) {
.titulo-main { font-size: 2.5rem; margin-top: 0; }
.credits { font-size: 0.8rem; margin-top: 80px; }
.gracias-title { font-size: 1.8rem; margin-bottom: 20px; }
.contacto-item { margin-bottom: 8px; font-size: 0.85rem; }
.nav { bottom: 10px; right: 10px; }
.nav button { padding: 8px 12px; font-size: 0.7rem; }
.slide-counter { bottom: 10px; left: 10px; font-size: 0.7rem; }
#btn-pdf { top: 10px; right: 10px; padding: 8px 12px; font-size: 0.75rem; bottom: auto; }
}
/* ===================== MODO CAPTURA PDF ===================== */
.slide.capture-mode {
display: flex !important;
opacity: 1 !important;
position: fixed !important;
top: 0 !important; left: 0 !important;
z-index: 1 !important;
width: 1920px !important;
height: 1080px !important;
transform: none !important;
}
.slide.capture-mode [class*="animate-"] {
animation: none !important;
opacity: 1 !important;
transform: none !important;
transition: none !important;
}
.slide.capture-mode .overlay,
.slide.capture-mode .overlay-slide2,
.slide.capture-mode .overlay-slide4,
.slide.capture-mode .overlay-slide5,
.slide.capture-mode .overlay-slide6 {
opacity: 1 !important;
}
</style>
</head>
<body>
<!-- ==================== SLIDE 1: PORTADA ==================== -->
<div class="slide active" style="background-image: url('imagenes/portada.png');">
<div class="overlay animate-overlay"></div>
<div class="tagline-top animate-tagline">Sólo un monstruo puede cazar a otro</div>
<div class="content">
<h1 class="titulo-main animate-title">MIGUEL</h1>
<div class="credits-bottom">
<div class="credits animate-credits">
<span>Una película dirigida por Jorge Gurvich</span>
<span>Sobre una idea original de Juan Diego Rodríguez</span>
<span>Escrita por Angel E. Pariente</span>
</div>
<div class="genre animate-genre">Thriller • Época • Hechos Reales</div>
</div>
</div>
</div>
<!-- ==================== SLIDE 2: GUATEMALA ==================== -->
<div class="slide" style="background-image: url('imagenes/slide2.png');">
<div class="overlay-slide2 animate-overlay"></div>
<div class="content-slide2">
<h2 class="titulo-slide2 animate-text">Guatemala, 1946</h2>
<div class="texto-slide2 animate-text" style="animation-delay: 2.0s;">
El nuevo gobierno revolucionario se enfrenta a una inesperada crisis: un asesino en serie está abusando y asesinando niños de entre 10 y 15 años. Es como un fantasma: nadie le ha visto, no hay testigos. Parece algo sobrenatural. En la urgencia por detener la ola de violentos crímenes, las autoridades ofrecen al comisario Miguel un indulto por todos sus delitos durante el régimen anterior a cambio de capturar al asesino. En un sistema corrupto, la búsqueda de justicia exige las mismas manos manchadas que pretende limpiar.
</div>
</div>
</div>
<!-- ==================== SLIDE 3: EQUIPO ==================== -->
<div class="slide" style="background-image: url('imagenes/slide3.png');">
<div class="overlay animate-overlay"></div>
<h2 class="titulo-slide-top-right animate-title-slide">El talento detrás de la visión</h2>
<div class="equipo-container">
<div class="miembro animate-miembro">
<span class="miembro-nombre">
<a href="https://www.imdb.com/name/nm4602685/" target="_blank">Juan Diego Rodriguez</a>
</span>
<span class="miembro-rol">Idea Original y protagonista (GT)</span>
<p class="miembro-bio">Con más de treinta años de experiencia profesional como actor y productor, Juan Diego es una de las caras más conocidas del panorama teatral y cinematográfico guatemalteco.</p>
</div>
<div class="miembro animate-miembro">
<span class="miembro-nombre">
<a href="https://www.imdb.com/name/nm0348791/" target="_blank">Jorge Gurvich</a>
</span>
<span class="miembro-rol">Director (AR)</span>
<p class="miembro-bio">Con más de 30 títulos como director ("Back to Maracanã"), productor ("Mrs. Moskowitz and the Cats") y director de fotografía ("The Shower"), Jorge tiene una larga experiencia y un sólido conocimiento de las condiciones de rodaje en América Latina.</p>
</div>
<div class="miembro animate-miembro">
<span class="miembro-nombre">
<a href="https://www.imdb.com/name/nm1041140/" target="_blank">Angel E. Pariente</a>
</span>
<span class="miembro-rol">Guionista (ES)</span>
<p class="miembro-bio">Premio Goya con una larga trayectoria profesional en cine y televisión que incluye grandes producciones como "El Cid" de Amazon Prime.</p>
</div>
</div>
</div>
<!-- ==================== SLIDE 4: COMPARABLES ==================== -->
<div class="slide" style="background-image: url('imagenes/slide4.png');">
<div class="overlay-slide4 animate-overlay"></div>
<div class="content-slide4">
<h2 class="titulo-slide4 animate-title-slide">Comparables de mercado</h2>
<p class="subtitulo-slide4 animate-title-slide" style="animation-delay: 1.8s;">Por temática y presupuesto</p>
<div class="highlight-row animate-highlight">
<div class="highlight-box">
<span class="highlight-number">2.60x</span>
<span class="highlight-text">ROI MEDIANO SEGMENTO</span>
</div>
<div class="sources-box">
Fuentes: Stephen Follows, Box Office Mojo, IMDb, The Numbers, Variety, The Hollywood Reporter, PwC y Deloitte.
</div>
</div>
<div class="table-container animate-table">
<div class="table-row">
<div><div class="col-movie-header"><strong>"La isla mínima"</strong> <span class="year">(2014).</span> <span class="country">ES</span></div><span class="col-movie-desc">Aborda la corrupción y la violencia en un contexto de crimen organizado.</span></div>
<div class="col-budget">$3,5 M</div><div class="col-roi roi-ok">8,5x</div>
</div>
<div class="table-row">
<div><div class="col-movie-header"><strong>"Relatos salvajes"</strong> <span class="year">(2014).</span> <span class="country">AR</span></div><span class="col-movie-desc">Explora la violencia y la corrupción en una sociedad en crisis.</span></div>
<div class="col-budget">$3,5 M</div><div class="col-roi roi-good">10,5x</div>
</div>
<div class="table-row">
<div><div class="col-movie-header"><strong>"El secreto de sus ojos"</strong> <span class="year">(2009).</span> <span class="country">AR</span></div><span class="col-movie-desc">Explora la corrupción y la justicia en un contexto de violencia política.</span></div>
<div class="col-budget">$2,5 M</div><div class="col-roi roi-excellent">12,5x</div>
</div>
<div class="table-row">
<div><div class="col-movie-header"><strong>"La jaula de oro"</strong> <span class="year">(2013).</span> <span class="country">MX</span></div><span class="col-movie-desc">Aborda la migración y la violencia en un contexto de crimen organizado.</span></div>
<div class="col-budget">$2,5 M</div><div class="col-roi roi-good">9,5x</div>
</div>
<div class="table-row">
<div><div class="col-movie-header"><strong>"Heli"</strong> <span class="year">(2013).</span> <span class="country">MX</span></div><span class="col-movie-desc">Explora la violencia y la corrupción en un contexto de crimen organizado.</span></div>
<div class="col-budget">$2,5 M</div><div class="col-roi roi-risk">8x</div>
</div>
<div class="table-row">
<div><div class="col-movie-header"><strong>"El pasajero"</strong> <span class="year">(2011).</span> <span class="country">AR</span></div><span class="col-movie-desc">Explora la corrupción y la violencia en un contexto de crimen organizado.</span></div>
<div class="col-budget">$2 M</div><div class="col-roi roi-risk">7x</div>
</div>
<div class="table-row">
<div><div class="col-movie-header"><strong>"La sombra del caminante"</strong> <span class="year">(2011).</span> <span class="country">CO</span></div><span class="col-movie-desc">Aborda la violencia y la corrupción en un contexto de conflicto armado.</span></div>
<div class="col-budget">$1,5 M</div><div class="col-roi roi-low">6,5x</div>
</div>
<div class="table-row">
<div><div class="col-movie-header"><strong>"La mujer sin cabeza"</strong> <span class="year">(2008).</span> <span class="country">AR</span></div><span class="col-movie-desc">Aborda la corrupción y la violencia en una sociedad en crisis.</span></div>
<div class="col-budget">$1,5 M</div><div class="col-roi roi-low">5,5x</div>
</div>
<div class="table-row">
<div><div class="col-movie-header"><strong style="color:#fff;">"Miguel"</strong> <span class="year">(2027).</span> <span class="country" style="color: #d4af37;">GT</span></div><span class="col-movie-desc">Película guatemalteca que aborda la corrupción en una trama de capturar a un asesino en serie.</span></div>
<div class="col-budget" style="color:#fff;">$990K</div><div class="col-roi roi-excellent">12.5x <small style="font-weight:400; opacity:0.7; font-size:0.75rem;">(Est.)</small></div>
</div>
</div>
</div>
</div>
<!-- ==================== SLIDE 5: ESTRUCTURA DE DISTRIBUCIÓN (WATERFALL) ==================== -->
<div class="slide" style="background-image: url('imagenes/slide5.png');">
<div class="overlay-slide5 animate-overlay"></div>
<div class="content-slide5">
<h2 class="titulo-slide5 animate-title-slide">ESTRUCTURA DE DISTRIBUCIÓN DE INGRESOS (WATERFALL)</h2>
<p class="slide5-desc animate-title-slide" style="animation-delay: 1.8s;">
Recuperación total del capital invertido + 15% de retorno preferente, con prioridad sobre cualquier participación de productores, seguida de una participación perpetua del 50% en beneficios netos.
</p>
<table class="cascada-table animate-table">
<thead>
<tr>
<th>Nivel</th>
<th>Descripción</th>
<th style="text-align: right;">Escenario A</th>
</tr>
</thead>
<tbody>
<tr>
<td class="col-etapa">Nivel 1</td>
<td class="col-concepto">Recuperación del capital invertido (100% para inversores)</td>
<td class="col-monto">$990,000</td>
</tr>
<tr>
<td class="col-etapa">Nivel 2</td>
<td class="col-concepto">Retorno preferente del 15%</td>
<td class="col-monto">$148,500</td>
</tr>
<tr class="total-row">
<td class="col-etapa">TOTAL RECUPERACIÓN</td>
<td class="col-concepto">Antes de participación en beneficios netos</td>
<td class="col-monto">$1,138,500</td>
</tr>
<tr class="fase3-row">
<td class="col-etapa">Nivel 3</td>
<td class="col-concepto">Participación en beneficios netos</td>
<td class="col-monto">50% de los beneficios netos</td>
</tr>
</tbody>
</table>
<div class="notas-tecnicas animate-notes">
<h3>Notas técnicas</h3>
<div class="nota-item">
<strong>Nivel 1 — Prioridad de pago</strong>
Los inversores ocupan la primera posición en la estructura de distribución de ingresos (después de impuestos y comisiones de agentes de ventas), recibiendo la devolución íntegra del capital invertido antes de cualquier pago diferido a productores.
</div>
<div class="nota-item">
<strong>Nivel 2 — Retorno preferente del 15%</strong>
Se abona un retorno preferente del 15% sobre el capital invertido una vez que la película genere ingresos suficientes.
</div>
<div class="nota-item">
<strong>Nivel 3 — Participación en beneficios netos</strong>
A partir de este punto, el grupo de inversores retiene, de forma perpetua, el derecho al 50% de todos los ingresos adicionales generados por la producción. Esta participación se distribuye de forma proporcional entre los inversores según su aportación al presupuesto total. El 50% restante (beneficio neto de productores) queda reservado para la productora, el talento y los participantes creativos.
</div>
</div>
</div>
</div>
<!-- ==================== SLIDE 6: CIERRE/CONTACTO ==================== -->
<div class="slide" style="background-image: url('imagenes/slide6.png');">
<div class="overlay-slide6 animate-overlay"></div>
<div class="content-slide6">
<h1 class="gracias-title animate-contact">Muchas gracias</h1>
<div class="contacto-nombre animate-contact" style="animation-delay: 1.8s;">Contacto</div>
<div class="contacto-item animate-contact-item">
<span></span>
<a href="tel:+50248332934">+502 4833 2934</a>
</div>
<div class="contacto-item animate-contact-item">
<svg class="whatsapp-icon" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z"/>
</svg>
<a href="https://wa.me/50248332934" target="_blank">WhatsApp</a>
</div>
<div class="contacto-item animate-contact-item">
<span>️</span>
<a href="mailto:info@talishte.io">info@talishte.io</a>
</div>
</div>
<div class="talishte-credit">
Este pitch deck ha sido desarrollado íntegramente por <a href="https://talishte.io" target="_blank">talishte.io</a>
</div>
</div>
<!-- BARRA INFERIOR UNIFICADA -->
<div class="bottom-controls">
<div class="slide-counter"><span id="current">1</span> / 6</div>
<button id="btn-pdf" onclick="generatePDF()">Descargar en PDF</button>
<div class="nav">
<button id="btn-prev" onclick="changeSlide(-1)">PREV</button>
<button id="btn-next" onclick="changeSlide(1)">NEXT</button>
</div>
</div>
<!-- OVERLAY DE CARGA -->
<div id="pdf-loading">
<div class="spinner"></div>
<p>Generando PDF...</p>
<div class="progress-text" id="progress-text">Preparando diapositivas</div>
</div>
<script>
let currentSlide = 1;
const totalSlides = 6;
function changeSlide(dir) {
const currentEl = document.querySelector('.slide.active');
if (currentEl) {
const animatedElements = currentEl.querySelectorAll('.animate-overlay, .animate-title, .animate-tagline, .animate-credits, .animate-genre, .animate-text, .animate-title-slide, .animate-table, .animate-notes, .animate-contact, .animate-contact-item, .animate-miembro, .animate-highlight');
animatedElements.forEach(el => {
el.style.animation = 'none';
el.offsetHeight;
el.style.animation = '';
});
}
document.querySelector('.slide.active').classList.remove('active');
currentSlide = Math.max(1, Math.min(currentSlide + dir, totalSlides));
document.querySelectorAll('.slide')[currentSlide - 1].classList.add('active');
document.getElementById('current').innerText = currentSlide;
document.getElementById('btn-prev').disabled = (currentSlide === 1);
document.getElementById('btn-next').disabled = (currentSlide === totalSlides);
}
document.addEventListener('keydown', e => {
if (e.key === 'ArrowRight') changeSlide(1);
if (e.key === 'ArrowLeft') changeSlide(-1);
});
// ===================== GENERADOR DE PDF - CON MANEJO DE SCROLL =====================
async function generatePDF() {
const loadingOverlay = document.getElementById('pdf-loading');
const progressText = document.getElementById('progress-text');
const btnPdf = document.getElementById('btn-pdf');
const slides = document.querySelectorAll('.slide');
const originalSlide = currentSlide - 1;
loadingOverlay.style.display = 'flex';
btnPdf.disabled = true;
progressText.textContent = 'Inicializando...';
slides.forEach(s => s.style.display = 'none');
await new Promise(resolve => setTimeout(resolve, 200));
try {
const { jsPDF } = window.jspdf;
const pdf = new jsPDF({ orientation: 'landscape', unit: 'px', format: [1920, 1080], compress: true });
for (let i = 0; i < slides.length; i++) {
const slide = slides[i];
progressText.textContent = `Procesando diapositiva ${i + 1} de ${slides.length}...`;
await new Promise(resolve => setTimeout(resolve, 50));
slide.classList.add('capture-mode');
slide.style.display = 'flex';
// TRUCO PARA SLIDE 5: Expandir altura para capturar todo el texto
const contentSlide5 = slide.querySelector('.content-slide5');
let originalMaxHeight = '';
let originalOverflow = '';
if (contentSlide5) {
originalMaxHeight = contentSlide5.style.maxHeight;
originalOverflow = contentSlide5.style.overflow;
// Expande el contenedor al 100% del contenido para que html2canvas lo vea todo
contentSlide5.style.maxHeight = 'none';
contentSlide5.style.overflow = 'visible';
}
// Forzar animaciones a estado final
const animatedElements = slide.querySelectorAll('[class*="animate-"]');
animatedElements.forEach(el => {
el.style.animation = 'none';
el.style.opacity = '1';
el.style.transform = 'none';
void el.offsetWidth;
});
// Recolectar links
const links = [];
slide.querySelectorAll('a[href]').forEach(link => {
const rect = link.getBoundingClientRect();
const href = link.getAttribute('href');
if (href && !href.startsWith('#')) {
links.push({ x: rect.left, y: rect.top, width: rect.width, height: rect.height, url: href });
}
});
// Esperar renderizado (un poco más para asegurar carga de fuentes expandidas)
await new Promise(resolve => setTimeout(resolve, 1500));
// Convertir bg a base64
const bgStyle = window.getComputedStyle(slide).backgroundImage;
const urlMatch = bgStyle.match(/url\(["']?(.*?)["']?\)/);
if (urlMatch && urlMatch[1]) {
try {
const res = await fetch(urlMatch[1]);
const blob = await res.blob();
const b64 = await new Promise(r => {
const rd = new FileReader();
rd.onloadend = () => r(rd.result);
rd.readAsDataURL(blob);
});
slide.style.backgroundImage = `url(${b64})`;
} catch (e) { console.warn("BG conversion failed:", e); }
}
// Capturar
const canvas = await html2canvas(slide, {
scale: 1, useCORS: false, allowTaint: false, backgroundColor: '#050505',
logging: false, width: 1920, height: 1080, windowWidth: 1920, windowHeight: 1080,
scrollX: 0, scrollY: 0, x: 0, y: 0, foreignObjectRendering: true, removeContainer: true
});
// Restaurar estilos de scroll inmediatamente después de capturar
if (contentSlide5) {
contentSlide5.style.maxHeight = originalMaxHeight;
contentSlide5.style.overflow = originalOverflow;
}
if (i > 0) pdf.addPage();
pdf.addImage(canvas.toDataURL('image/jpeg', 0.95), 'JPEG', 0, 0, 1920, 1080, undefined, 'FAST');
// Agregar links
links.forEach(link => {
pdf.link(link.x, link.y, link.width, link.height, { url: link.url });
});
slide.classList.remove('capture-mode');
slide.style.display = 'none';
}
progressText.textContent = 'Finalizando y descargando...';
await new Promise(resolve => setTimeout(resolve, 500));
pdf.save('MIGUEL_PitchDeck.pdf');
slides.forEach((s, idx) => {
s.style.display = idx === originalSlide ? 'flex' : 'none';
});
setTimeout(() => location.reload(), 1000);
} catch (err) {
console.error('Error:', err);
alert('Error al generar PDF: ' + err.message);
} finally {
loadingOverlay.style.display = 'none';
btnPdf.disabled = false;
}
}
changeSlide(0);
</script>
</body>
</html> |