File size: 67,684 Bytes
2548232 01f0308 2548232 01f0308 2548232 01f0308 2548232 01f0308 2548232 01f0308 2548232 01f0308 2548232 01f0308 d652d62 01f0308 896b6f5 d652d62 896b6f5 01f0308 896b6f5 d652d62 896b6f5 01f0308 896b6f5 d652d62 896b6f5 d652d62 896b6f5 d652d62 896b6f5 d652d62 896b6f5 01f0308 2548232 896b6f5 2548232 896b6f5 2548232 d652d62 2548232 d652d62 2548232 d652d62 2548232 d652d62 2548232 d652d62 2548232 d652d62 2548232 d652d62 2548232 d652d62 2548232 d652d62 2548232 d652d62 2548232 d652d62 2548232 d652d62 2548232 d652d62 2548232 d652d62 2548232 d652d62 2548232 d652d62 2548232 d652d62 2548232 d652d62 2548232 d652d62 2548232 01f0308 2548232 01f0308 2548232 01f0308 2548232 01f0308 2548232 | 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 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 | <!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Turismo El Salvador</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.sidebar {
transition: all 0.3s;
min-width: 64px;
}
.sidebar.collapsed {
width: 70px;
}
.sidebar.collapsed .nav-text {
display: none;
}
.sidebar.collapsed .logo-text {
display: none;
}
.sidebar.collapsed .fa-chevron-down {
display: none;
}
.content {
transition: all 0.3s;
margin-left: 256px;
}
.sidebar.collapsed + .content {
margin-left: 70px;
}
.group:hover .hidden {
display: block;
}
.chart-container {
height: 300px;
}
</style>
</head>
<body class="bg-gray-50">
<div class="flex h-screen overflow-hidden">
<!-- Vertical Sidebar -->
<div class="sidebar bg-blue-800 text-white w-64 flex flex-col transition-all duration-300 ease-in-out">
<div class="p-4 flex items-center justify-between border-b border-blue-700">
<div class="flex items-center space-x-2">
<i class="fas fa-umbrella-beach text-2xl"></i>
<span class="logo-text font-bold text-xl">Turismo SV</span>
</div>
<button id="toggleSidebar" class="text-white focus:outline-none">
<i class="fas fa-bars"></i>
</button>
</div>
<div class="flex-1 overflow-y-auto">
<div class="p-4 border-b border-blue-700">
<div class="flex items-center space-x-3">
<div class="w-8 h-8 rounded-full bg-blue-600 flex items-center justify-center">
<i class="fas fa-user"></i>
</div>
<span class="nav-text">Usuario</span>
</div>
</div>
<nav class="p-2">
<a href="#" class="flex items-center space-x-3 p-2 rounded hover:bg-blue-700 transition duration-300" data-section="dashboard">
<i class="fas fa-chart-line w-6 text-center"></i>
<span class="nav-text">Estad铆sticas</span>
</a>
<a href="#" class="flex items-center space-x-3 p-2 rounded hover:bg-blue-700 transition duration-300" data-section="viajes">
<i class="fas fa-route w-6 text-center"></i>
<span class="nav-text">Paquetes Tur铆sticos</span>
</a>
<a href="#" class="flex items-center space-x-3 p-2 rounded hover:bg-blue-700 transition duration-300" data-section="clientes">
<i class="fas fa-user-tie w-6 text-center"></i>
<span class="nav-text">Clientes</span>
</a>
<a href="#" class="flex items-center space-x-3 p-2 rounded hover:bg-blue-700 transition duration-300" data-section="empleados">
<i class="fas fa-user-cog w-6 text-center"></i>
<span class="nav-text">Personal</span>
</a>
<a href="#" class="flex items-center space-x-3 p-2 rounded hover:bg-blue-700 transition duration-300" data-section="destinos">
<i class="fas fa-mountain w-6 text-center"></i>
<span class="nav-text">Atractivos</span>
</a>
<a href="#" class="flex items-center space-x-3 p-2 rounded hover:bg-blue-700 transition duration-300" data-section="facturacion">
<i class="fas fa-cash-register w-6 text-center"></i>
<span class="nav-text">Facturaci贸n</span>
</a>
<a href="#" class="flex items-center space-x-3 p-2 rounded hover:bg-blue-700 transition duration-300" data-section="reservaciones">
<i class="fas fa-clipboard-list w-6 text-center"></i>
<span class="nav-text">Reservas</span>
</a>
<a href="#" class="flex items-center space-x-3 p-2 rounded hover:bg-blue-700 transition duration-300" data-section="servicios">
<i class="fas fa-umbrella-beach w-6 text-center"></i>
<span class="nav-text">Servicios Incluidos</span>
</a>
<a href="#" class="flex items-center space-x-3 p-2 rounded hover:bg-blue-700 transition duration-300" data-section="transporte">
<i class="fas fa-bus-alt w-6 text-center"></i>
<span class="nav-text">Transporte</span>
</a>
<a href="#" class="flex items-center space-x-3 p-2 rounded hover:bg-blue-700 transition duration-300" data-section="reportes">
<i class="fas fa-chart-pie w-6 text-center"></i>
<span class="nav-text">Reportes</span>
</a>
</nav>
</div>
<div class="p-4 border-t border-blue-700">
<button id="loginBtn" class="w-full flex items-center space-x-3 p-2 rounded hover:bg-blue-700 transition duration-300">
<i class="fas fa-sign-in-alt w-6 text-center"></i>
<span class="nav-text">Iniciar Sesi贸n</span>
</button>
</div>
</div>
<!-- Main Content -->
<div class="content flex-1 overflow-auto">
<!-- Dashboard Content -->
<main class="p-6">
<div class="section-content" id="dashboard-section">
<!-- Stats Cards -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-blue-100 text-blue-600 mr-4">
<i class="fas fa-suitcase-rolling text-xl"></i>
</div>
<div>
<p class="text-gray-500">Viajes activos</p>
<h3 class="text-2xl font-bold">24 <span class="text-sm font-normal text-green-600">(+12% vs mes pasado)</span></h3>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-green-100 text-green-600 mr-4">
<i class="fas fa-dollar-sign text-xl"></i>
</div>
<div>
<p class="text-gray-500">Ingresos mensuales</p>
<h3 class="text-2xl font-bold">$12,450 <span class="text-sm font-normal text-red-600">(-5% vs mes pasado)</span></h3>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-purple-100 text-purple-600 mr-4">
<i class="fas fa-users text-xl"></i>
</div>
<div>
<p class="text-gray-500">Clientes nuevos</p>
<h3 class="text-2xl font-bold">18 <span class="text-sm font-normal text-green-600">(+20% vs mes pasado)</span></h3>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-yellow-100 text-yellow-600 mr-4">
<i class="fas fa-calendar-check text-xl"></i>
</div>
<div>
<p class="text-gray-500">Reservaciones</p>
<h3 class="text-2xl font-bold">32 <span class="text-sm font-normal text-green-600">(+8% vs mes pasado)</span></h3>
</div>
</div>
</div>
</div>
<!-- Charts -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8">
<div class="bg-white rounded-lg shadow p-6">
<h3 class="text-lg font-semibold mb-4">Viajes por destino</h3>
<div class="chart-container">
<canvas id="destinationsChart"></canvas>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<h3 class="text-lg font-semibold mb-4">Ingresos mensuales</h3>
<div class="chart-container">
<canvas id="revenueChart"></canvas>
</div>
</div>
</div>
<!-- Destinos destacados -->
<div class="bg-white rounded-lg shadow p-6 mb-8">
<h3 class="text-lg font-semibold mb-4">Destinos Tur铆sticos de El Salvador</h3>
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
<div class="border rounded-lg p-4">
<h4 class="font-medium text-blue-600 mb-2">Ruta de las Flores</h4>
<p class="text-gray-600 text-sm mb-2"><i class="fas fa-map-marker-alt mr-2"></i>Departamento: Sonsonate</p>
<p class="text-gray-600 text-sm mb-2"><i class="fas fa-info-circle mr-2"></i>Pueblos coloniales: Juay煤a, Apaneca, Ataco</p>
<p class="text-gray-600 text-sm mb-2"><i class="fas fa-star mr-2"></i>Atractivos: Cafetales, gastronom铆a, festivales</p>
<p class="text-gray-600 text-sm">Es un recorrido pintoresco por pueblos coloniales famosos por sus cafetales y festivales gastron贸micos los fines de semana. La ruta ofrece paisajes monta帽osos, clima fresco y artesan铆as locales.</p>
</div>
<div class="border rounded-lg p-4">
<h4 class="font-medium text-blue-600 mb-2">Playa El Tunco</h4>
<p class="text-gray-600 text-sm">La playa m谩s famosa para surfistas, con ambiente bohemio, hoteles boutique, restaurantes y espectaculares atardeceres sobre el Oc茅ano Pac铆fico.</p>
</div>
<div class="border rounded-lg p-4">
<h4 class="font-medium text-blue-600 mb-2">Lago de Coatepeque</h4>
<p class="text-gray-600 text-sm">Hermoso lago de origen volc谩nico con aguas cristalinas que cambian de color, ideal para deportes acu谩ticos, paseos en bote y relajarse en sus hoteles con vista al lago.</p>
</div>
</div>
</div>
<!-- M谩s informaci贸n -->
<div class="bg-white rounded-lg shadow p-6">
<h3 class="text-lg font-semibold mb-4">驴Por qu茅 visitar El Salvador?</h3>
<div class="space-y-4">
<p class="text-gray-600">El Salvador, conocido como "El Pulgarcito de Am茅rica", ofrece una gran diversidad en un territorio peque帽o: playas paradis铆acas, volcanes imponentes, pueblos coloniales y una rica cultura.</p>
<p class="text-gray-600">Nuestros tours incluyen:</p>
<ul class="list-disc list-inside text-gray-600 space-y-2">
<li>Gu铆as tur铆sticos certificados</li>
<li>Transporte seguro y c贸modo</li>
<li>Alimentaci贸n t铆pica incluida</li>
<li>Seguro m茅dico b谩sico</li>
<li>Acceso a los mejores miradores y atracciones</li>
</ul>
</div>
</div>
</div>
<!-- Viajes Section -->
<div class="section-content hidden" id="viajes-section">
<div class="bg-white rounded-lg shadow overflow-hidden">
<div class="p-6 border-b border-gray-200">
<h2 class="text-xl font-semibold text-gray-800">Viajes Tur铆sticos</h2>
</div>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">C贸digo</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Nombre</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Destino</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Fecha</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Precio</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Estado</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Acciones</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap"><input type="text" class="w-full px-2 py-1 border rounded" value="VT001"></td>
<td class="px-6 py-4 whitespace-nowrap"><input type="text" class="w-full px-2 py-1 border rounded" value="Tour Ruta de las Flores"></td>
<td class="px-6 py-4 whitespace-nowrap"><input type="text" class="w-full px-2 py-1 border rounded" value="Apaneca"></td>
<td class="px-6 py-4 whitespace-nowrap"><input type="date" class="w-full px-2 py-1 border rounded" value="2023-07-15"></td>
<td class="px-6 py-4 whitespace-nowrap"><input type="number" class="w-full px-2 py-1 border rounded" value="75.00" step="0.01"></td>
<td class="px-6 py-4 whitespace-nowrap">
<select class="w-full px-2 py-1 border rounded">
<option value="active" selected>Activo</option>
<option value="inactive">Inactivo</option>
<option value="pending">Pendiente</option>
</select>
</td>
<td class="px-6 py-4 whitespace-nowrap flex space-x-2">
<button class="text-green-600 hover:text-green-800">
<i class="fas fa-save"></i>
</button>
<button class="text-red-600 hover:text-red-800">
<i class="fas fa-trash"></i>
</button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">VT002</td>
<td class="px-6 py-4 whitespace-nowrap">Playa El Tunco</td>
<td class="px-6 py-4 whitespace-nowrap">La Libertad</td>
<td class="px-6 py-4 whitespace-nowrap">22/07/2023</td>
<td class="px-6 py-4 whitespace-nowrap">$60.00</td>
<td class="px-6 py-4 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Activo</span></td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">VT003</td>
<td class="px-6 py-4 whitespace-nowrap">Lago de Coatepeque</td>
<td class="px-6 py-4 whitespace-nowrap">Santa Ana</td>
<td class="px-6 py-4 whitespace-nowrap">29/07/2023</td>
<td class="px-6 py-4 whitespace-nowrap">$85.00</td>
<td class="px-6 py-4 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800">Pr贸ximo</span></td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">VT004</td>
<td class="px-6 py-4 whitespace-nowrap">Volc谩n Ilamatepec</td>
<td class="px-6 py-4 whitespace-nowrap">Santa Ana</td>
<td class="px-6 py-4 whitespace-nowrap">05/08/2023</td>
<td class="px-6 py-4 whitespace-nowrap">$90.00</td>
<td class="px-6 py-4 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800">Pr贸ximo</span></td>
</tr>
</tbody>
</table>
</div>
<div class="p-4 border-t border-gray-200 flex justify-end">
<button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-md flex items-center">
<i class="fas fa-plus mr-2"></i> Nuevo Viaje
</button>
</div>
</div>
</div>
<!-- Empleados Section -->
<div class="section-content hidden" id="empleados-section">
<div class="bg-white rounded-lg shadow overflow-hidden">
<div class="p-6 border-b border-gray-200">
<h2 class="text-xl font-semibold text-gray-800">Empleados</h2>
</div>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">ID</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Nombre</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Puesto</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Tel茅fono</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Email</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Estado</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap">EMP001</td>
<td class="px-6 py-4 whitespace-nowrap">Carlos Mart铆nez</td>
<td class="px-6 py-4 whitespace-nowrap">Gu铆a tur铆stico</td>
<td class="px-6 py-4 whitespace-nowrap">7123-4567</td>
<td class="px-6 py-4 whitespace-nowrap">carlos@tursv.com</td>
<td class="px-6 py-4 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Activo</span></td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">EMP002</td>
<td class="px-6 py-4 whitespace-nowrap">Ana Rodr铆guez</td>
<td class="px-6 py-4 whitespace-nowrap">Coordinadora</td>
<td class="px-6 py-4 whitespace-nowrap">7890-1234</td>
<td class="px-6 py-4 whitespace-nowrap">ana@tursv.com</td>
<td class="px-6 py-4 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Activo</span></td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">EMP003</td>
<td class="px-6 py-4 whitespace-nowrap">Luis Hern谩ndez</td>
<td class="px-6 py-4 whitespace-nowrap">Conductor</td>
<td class="px-6 py-4 whitespace-nowrap">7654-3210</td>
<td class="px-6 py-4 whitespace-nowrap">luis@tursv.com</td>
<td class="px-6 py-4 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Activo</span></td>
</tr>
</tbody>
</table>
</div>
<div class="p-4 border-t border-gray-200 flex justify-end">
<button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-md flex items-center">
<i class="fas fa-plus mr-2"></i> Nuevo Empleado
</button>
</div>
</div>
</div>
<!-- Destinos Section -->
<div class="section-content hidden" id="destinos-section">
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<!-- Destination Card 1 -->
<div class="bg-white rounded-lg shadow overflow-hidden">
<img src="https://elsalvador.travel/wp-content/uploads/2020/12/playa-el-tunco-1.jpg" alt="El Tunco" class="w-full h-48 object-cover">
<div class="p-4">
<h3 class="text-lg font-semibold mb-2">Playa El Tunco</h3>
<p class="text-gray-600 mb-4">Famosa playa para surfear con ambiente bohemio y hermosos atardeceres.</p>
<div class="flex justify-between items-center">
<span class="text-blue-600 font-medium">$60.00</span>
<button class="text-blue-600 hover:text-blue-800">Ver detalles</button>
</div>
</div>
</div>
<!-- Destination Card 2 -->
<div class="bg-white rounded-lg shadow overflow-hidden">
<img src="https://elsalvador.travel/wp-content/uploads/2020/12/ruta-de-las-flores-1.jpg" alt="Ruta de las Flores" class="w-full h-48 object-cover">
<div class="p-4">
<h3 class="text-lg font-semibold mb-2">Ruta de las Flores</h3>
<p class="text-gray-600 mb-4">Pintoresca ruta con pueblos coloridos, cafetales y artesan铆as.</p>
<div class="flex justify-between items-center">
<span class="text-blue-600 font-medium">$75.00</span>
<button class="text-blue-600 hover:text-blue-800">Ver detalles</button>
</div>
</div>
</div>
<!-- Destination Card 3 -->
<div class="bg-white rounded-lg shadow overflow-hidden">
<img src="https://elsalvador.travel/wp-content/uploads/2020/12/lago-de-coatepeque-1.jpg" alt="Lago de Coatepeque" class="w-full h-48 object-cover">
<div class="p-4">
<h3 class="text-lg font-semibold mb-2">Lago de Coatepeque</h3>
<p class="text-gray-600 mb-4">Hermoso lago de origen volc谩nico con aguas cristalinas.</p>
<div class="flex justify-between items-center">
<span class="text-blue-600 font-medium">$85.00</span>
<button class="text-blue-600 hover:text-blue-800">Ver detalles</button>
</div>
</div>
</div>
</div>
<div class="mt-6 flex justify-end">
<button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-md flex items-center">
<i class="fas fa-plus mr-2"></i> Agregar Destino
</button>
</div>
</div>
<!-- Facturas Section -->
<div class="section-content hidden" id="facturas-section">
<div class="bg-white rounded-lg shadow overflow-hidden">
<div class="p-6 border-b border-gray-200">
<h2 class="text-xl font-semibold text-gray-800">Facturas</h2>
</div>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">N掳 Factura</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Cliente</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Fecha</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Monto</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Estado</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Acciones</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap">FAC-2023-001</td>
<td class="px-6 py-4 whitespace-nowrap">Mar铆a Gonz谩lez</td>
<td class="px-6 py-4 whitespace-nowrap">10/07/2023</td>
<td class="px-6 py-4 whitespace-nowrap">$150.00</td>
<td class="px-6 py-4 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Pagada</span></td>
<td class="px-6 py-4 whitespace-nowrap">
<button class="text-blue-600 hover:text-blue-800 mr-2"><i class="fas fa-eye"></i></button>
<button class="text-green-600 hover:text-green-800"><i class="fas fa-download"></i></button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">FAC-2023-002</td>
<td class="px-6 py-4 whitespace-nowrap">Juan P茅rez</td>
<td class="px-6 py-4 whitespace-nowrap">12/07/2023</td>
<td class="px-6 py-4 whitespace-nowrap">$225.00</td>
<td class="px-6 py-4 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Pagada</span></td>
<td class="px-6 py-4 whitespace-nowrap">
<button class="text-blue-600 hover:text-blue-800 mr-2"><i class="fas fa-eye"></i></button>
<button class="text-green-600 hover:text-green-800"><i class="fas fa-download"></i></button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">FAC-2023-003</td>
<td class="px-6 py-4 whitespace-nowrap">Roberto S谩nchez</td>
<td class="px-6 py-4 whitespace-nowrap">15/07/2023</td>
<td class="px-6 py-4 whitespace-nowrap">$180.00</td>
<td class="px-6 py-4 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800">Pendiente</span></td>
<td class="px-6 py-4 whitespace-nowrap">
<button class="text-blue-600 hover:text-blue-800 mr-2"><i class="fas fa-eye"></i></button>
<button class="text-green-600 hover:text-green-800"><i class="fas fa-download"></i></button>
</td>
</tr>
</tbody>
</table>
</div>
<div class="p-4 border-t border-gray-200 flex justify-end">
<button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-md flex items-center">
<i class="fas fa-plus mr-2"></i> Nueva Factura
</button>
</div>
</div>
</div>
<!-- Pagos Section -->
<div class="section-content hidden" id="pagos-section">
<div class="bg-white rounded-lg shadow overflow-hidden">
<div class="p-6 border-b border-gray-200">
<h2 class="text-xl font-semibold text-gray-800">Pagos</h2>
</div>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">ID Pago</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Factura</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Cliente</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Fecha</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Monto</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">M茅todo</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap">PAG-001</td>
<td class="px-6 py-4 whitespace-nowrap">FAC-2023-001</td>
<td class="px-6 py-4 whitespace-nowrap">Mar铆a Gonz谩lez</td>
<td class="px-6 py-4 whitespace-nowrap">10/07/2023</td>
<td class="px-6 py-4 whitespace-nowrap">$150.00</td>
<td class="px-6 py-4 whitespace-nowrap">Tarjeta</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">PAG-002</td>
<td class="px-6 py-4 whitespace-nowrap">FAC-2023-002</td>
<td class="px-6 py-4 whitespace-nowrap">Juan P茅rez</td>
<td class="px-6 py-4 whitespace-nowrap">12/07/2023</td>
<td class="px-6 py-4 whitespace-nowrap">$225.00</td>
<td class="px-6 py-4 whitespace-nowrap">Efectivo</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">PAG-003</td>
<td class="px-6 py-4 whitespace-nowrap">FAC-2023-004</td>
<td class="px-6 py-4 whitespace-nowrap">Laura Ram铆rez</td>
<td class="px-6 py-4 whitespace-nowrap">14/07/2023</td>
<td class="px-6 py-4 whitespace-nowrap">$120.00</td>
<td class="px-6 py-4 whitespace-nowrap">Transferencia</td>
</tr>
</tbody>
</table>
</div>
<div class="p-4 border-t border-gray-200 flex justify-end">
<button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-md flex items-center">
<i class="fas fa-plus mr-2"></i> Registrar Pago
</button>
</div>
</div>
</div>
<!-- Reservaciones Section -->
<div class="section-content hidden" id="reservaciones-section">
<div class="bg-white rounded-lg shadow overflow-hidden">
<div class="p-6 border-b border-gray-200">
<h2 class="text-xl font-semibold text-gray-800">Reservaciones</h2>
</div>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">C贸digo</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Cliente</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Viaje</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Fecha</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Personas</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Estado</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap">RES-001</td>
<td class="px-6 py-4 whitespace-nowrap">Mar铆a Gonz谩lez</td>
<td class="px-6 py-4 whitespace-nowrap">Tour Ruta de las Flores</td>
<td class="px-6 py-4 whitespace-nowrap">15/07/2023</td>
<td class="px-6 py-4 whitespace-nowrap">2</td>
<td class="px-6 py-4 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Confirmada</span></td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">RES-002</td>
<td class="px-6 py-4 whitespace-nowrap">Juan P茅rez</td>
<td class="px-6 py-4 whitespace-nowrap">Playa El Tunco</td>
<td class="px-6 py-4 whitespace-nowrap">22/07/2023</td>
<td class="px-6 py-4 whitespace-nowrap">4</td>
<td class="px-6 py-4 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Confirmada</span></td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">RES-003</td>
<td class="px-6 py-4 whitespace-nowrap">Roberto S谩nchez</td>
<td class="px-6 py-4 whitespace-nowrap">Lago de Coatepeque</td>
<td class="px-6 py-4 whitespace-nowrap">29/07/2023</td>
<td class="px-6 py-4 whitespace-nowrap">3</td>
<td class="px-6 py-4 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800">Pendiente</span></td>
</tr>
</tbody>
</table>
</div>
<div class="p-4 border-t border-gray-200 flex justify-end">
<button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-md flex items-center">
<i class="fas fa-plus mr-2"></i> Nueva Reservaci贸n
</button>
</div>
</div>
</div>
<!-- Servicios Section -->
<div class="section-content hidden" id="servicios-section">
<div class="bg-white rounded-lg shadow p-6 mb-6">
<h2 class="text-xl font-semibold mb-4">Servicios Incluidos en Paquetes</h2>
<div class="mb-6">
<div class="flex justify-between items-center mb-4">
<h3 class="text-lg font-medium">Agregar Nuevo Servicio</h3>
<button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-md flex items-center">
<i class="fas fa-plus mr-2"></i> Nuevo Servicio
</button>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4">
<div>
<label class="block text-gray-700 mb-2">Nombre del Servicio</label>
<input type="text" class="w-full px-3 py-2 border rounded-md">
</div>
<div>
<label class="block text-gray-700 mb-2">Tipo de Servicio</label>
<select class="w-full px-3 py-2 border rounded-md">
<option>Alimentaci贸n</option>
<option>Hospedaje</option>
<option>Gu铆a Tur铆stico</option>
<option>Transporte</option>
<option>Actividad</option>
</select>
</div>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-4">
<div>
<label class="block text-gray-700 mb-2">Costo Adicional</label>
<input type="number" class="w-full px-3 py-2 border rounded-md" placeholder="$0.00">
</div>
<div>
<label class="block text-gray-700 mb-2">Duraci贸n</label>
<input type="text" class="w-full px-3 py-2 border rounded-md" placeholder="Ej: 2 horas">
</div>
<div>
<label class="block text-gray-700 mb-2">Disponibilidad</label>
<select class="w-full px-3 py-2 border rounded-md">
<option>Disponible</option>
<option>Limitado</option>
<option>No disponible</option>
</select>
</div>
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2">Descripci贸n</label>
<textarea class="w-full px-3 py-2 border rounded-md" rows="3"></textarea>
</div>
<button class="bg-green-600 hover:bg-green-700 text-white px-4 py-2 rounded-md">
Guardar Servicio
</button>
</div>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<!-- Servicio Card 1 -->
<div class="bg-white rounded-lg shadow overflow-hidden border-l-4 border-blue-500">
<div class="p-4">
<div class="flex justify-between items-start mb-2">
<h3 class="text-lg font-semibold">Gu铆a Tur铆stico Biling眉e</h3>
<span class="px-2 py-1 text-xs rounded-full bg-blue-100 text-blue-800">Incluido</span>
</div>
<p class="text-gray-600 mb-3">Gu铆a profesional certificado en ingl茅s y espa帽ol para todo el recorrido.</p>
<div class="flex items-center text-sm text-gray-500 mb-2">
<i class="fas fa-clock mr-2"></i>
<span>8 horas de servicio</span>
</div>
<div class="flex items-center text-sm text-gray-500 mb-3">
<i class="fas fa-tag mr-2"></i>
<span>Gu铆a Tur铆stico</span>
</div>
<div class="flex justify-between items-center">
<span class="text-green-600 font-medium">Disponible</span>
<div class="flex space-x-2">
<button class="text-blue-600 hover:text-blue-800"><i class="fas fa-edit"></i></button>
<button class="text-red-600 hover:text-red-800"><i class="fas fa-trash"></i></button>
</div>
</div>
</div>
</div>
<!-- Servicio Card 2 -->
<div class="bg-white rounded-lg shadow overflow-hidden border-l-4 border-green-500">
<div class="p-4">
<div class="flex justify-between items-start mb-2">
<h3 class="text-lg font-semibold">Almuerzo T铆pico</h3>
<span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Opcional (+$15)</span>
</div>
<p class="text-gray-600 mb-3">Comida tradicional salvadore帽a en restaurante local con vista panor谩mica.</p>
<div class="flex items-center text-sm text-gray-500 mb-2">
<i class="fas fa-clock mr-2"></i>
<span>1 hora</span>
</div>
<div class="flex items-center text-sm text-gray-500 mb-3">
<i class="fas fa-tag mr-2"></i>
<span>Alimentaci贸n</span>
</div>
<div class="flex justify-between items-center">
<span class="text-green-600 font-medium">Disponible</span>
<div class="flex space-x-2">
<button class="text-blue-600 hover:text-blue-800"><i class="fas fa-edit"></i></button>
<button class="text-red-600 hover:text-red-800"><i class="fas fa-trash"></i></button>
</div>
</div>
</div>
</div>
<!-- Servicio Card 3 -->
<div class="bg-white rounded-lg shadow overflow-hidden border-l-4 border-purple-500">
<div class="p-4">
<div class="flex justify-between items-start mb-2">
<h3 class="text-lg font-semibold">Tour de Caf茅</h3>
<span class="px-2 py-1 text-xs rounded-full bg-purple-100 text-purple-800">Premium (+$25)</span>
</div>
<p class="text-gray-600 mb-3">Recorrido por plantaci贸n de caf茅 con degustaci贸n de variedades premium.</p>
<div class="flex items-center text-sm text-gray-500 mb-2">
<i class="fas fa-clock mr-2"></i>
<span>2 horas</span>
</div>
<div class="flex items-center text-sm text-gray-500 mb-3">
<i class="fas fa-tag mr-2"></i>
<span>Actividad</span>
</div>
<div class="flex justify-between items-center">
<span class="text-yellow-600 font-medium">Limitado</span>
<div class="flex space-x-2">
<button class="text-blue-600 hover:text-blue-800"><i class="fas fa-edit"></i></button>
<button class="text-red-600 hover:text-red-800"><i class="fas fa-trash"></i></button>
</div>
</div>
</div>
</div>
<!-- Servicio Card 4 -->
<div class="bg-white rounded-lg shadow overflow-hidden border-l-4 border-yellow-500">
<div class="p-4">
<div class="flex justify-between items-start mb-2">
<h3 class="text-lg font-semibold">Hospedaje Boutique</h3>
<span class="px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800">Opcional (+$80)</span>
</div>
<p class="text-gray-600 mb-3">Noche en hotel boutique con desayuno incluido y vista al volc谩n.</p>
<div class="flex items-center text-sm text-gray-500 mb-2">
<i class="fas fa-clock mr-2"></i>
<span>1 noche</span>
</div>
<div class="flex items-center text-sm text-gray-500 mb-3">
<i class="fas fa-tag mr-2"></i>
<span>Hospedaje</span>
</div>
<div class="flex justify-between items-center">
<span class="text-green-600 font-medium">Disponible</span>
<div class="flex space-x-2">
<button class="text-blue-600 hover:text-blue-800"><i class="fas fa-edit"></i></button>
<button class="text-red-600 hover:text-red-800"><i class="fas fa-trash"></i></button>
</div>
</div>
</div>
</div>
<!-- Servicio Card 5 -->
<div class="bg-white rounded-lg shadow overflow-hidden border-l-4 border-red-500">
<div class="p-4">
<div class="flex justify-between items-start mb-2">
<h3 class="text-lg font-semibold">Transporte Privado</h3>
<span class="px-2 py-1 text-xs rounded-full bg-red-100 text-red-800">Opcional (+$50)</span>
</div>
<p class="text-gray-600 mb-3">Vehiculo privado con chofer para grupos peque帽os (hasta 4 personas).</p>
<div class="flex items-center text-sm text-gray-500 mb-2">
<i class="fas fa-clock mr-2"></i>
<span>Todo el d铆a</span>
</div>
<div class="flex items-center text-sm text-gray-500 mb-3">
<i class="fas fa-tag mr-2"></i>
<span>Transporte</span>
</div>
<div class="flex justify-between items-center">
<span class="text-green-600 font-medium">Disponible</span>
<div class="flex space-x-2">
<button class="text-blue-600 hover:text-blue-800"><i class="fas fa-edit"></i></button>
<button class="text-red-600 hover:text-red-800"><i class="fas fa-trash"></i></button>
</div>
</div>
</div>
</div>
<!-- Servicio Card 6 -->
<div class="bg-white rounded-lg shadow overflow-hidden border-l-4 border-indigo-500">
<div class="p-4">
<div class="flex justify-between items-start mb-2">
<h3 class="text-lg font-semibold">Clase de Surf</h3>
<span class="px-2 py-1 text-xs rounded-full bg-indigo-100 text-indigo-800">Opcional (+$35)</span>
</div>
<p class="text-gray-600 mb-3">Clase de 2 horas con instructor certificado y equipo incluido.</p>
<div class="flex items-center text-sm text-gray-500 mb-2">
<i class="fas fa-clock mr-2"></i>
<span>2 horas</span>
</div>
<div class="flex items-center text-sm text-gray-500 mb-3">
<i class="fas fa-tag mr-2"></i>
<span>Actividad</span>
</div>
<div class="flex justify-between items-center">
<span class="text-green-600 font-medium">Disponible</span>
<div class="flex space-x-2">
<button class="text-blue-600 hover:text-blue-800"><i class="fas fa-edit"></i></button>
<button class="text-red-600 hover:text-red-800"><i class="fas fa-trash"></i></button>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
</div>
</div>
<!-- Login/Register Modal -->
<div id="authModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden transition-opacity duration-300">
<div class="bg-white rounded-lg shadow-xl overflow-hidden transform transition-all duration-300 max-w-md w-full">
<!-- Tabs -->
<div class="flex border-b">
<button id="loginTab" class="flex-1 py-4 px-6 text-center font-medium text-blue-600 border-b-2 border-blue-600">Iniciar Sesi贸n</button>
<button id="registerTab" class="flex-1 py-4 px-6 text-center font-medium text-gray-500">Registrarse</button>
</div>
<!-- Login Form -->
<div id="loginForm" class="p-6">
<div class="flex justify-center mb-6">
<div class="flex items-center">
<i class="fas fa-umbrella-beach text-4xl text-blue-600 mr-3"></i>
<span class="text-2xl font-bold text-blue-800">Turismo SV</span>
</div>
</div>
<form>
<div class="mb-4">
<label class="block text-gray-700 mb-2" for="login-email">Correo Electr贸nico</label>
<input type="email" id="login-email" class="w-full px-3 py-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-blue-600">
</div>
<div class="mb-6">
<label class="block text-gray-700 mb-2" for="login-password">Contrase帽a</label>
<input type="password" id="login-password" class="w-full px-3 py-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-blue-600">
</div>
<button type="submit" class="w-full bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded-md transition duration-300 transform hover:scale-105">
Iniciar Sesi贸n
</button>
</form>
</div>
<!-- Register Form -->
<div id="registerForm" class="p-6 hidden">
<div class="flex justify-center mb-6">
<div class="flex items-center">
<span class="text-2xl font-bold text-blue-800 mr-3">Turismo SV</span>
<i class="fas fa-umbrella-beach text-4xl text-blue-600"></i>
</div>
</div>
<form>
<div class="mb-4">
<label class="block text-gray-700 mb-2" for="register-name">Nombre Completo</label>
<input type="text" id="register-name" class="w-full px-3 py-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-blue-600">
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2" for="register-email">Correo Electr贸nico</label>
<input type="email" id="register-email" class="w-full px-3 py-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-blue-600">
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2" for="register-password">Contrase帽a</label>
<input type="password" id="register-password" class="w-full px-3 py-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-blue-600">
</div>
<div class="mb-6">
<label class="block text-gray-700 mb-2" for="register-confirm">Confirmar Contrase帽a</label>
<input type="password" id="register-confirm" class="w-full px-3 py-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-blue-600">
</div>
<button type="submit" class="w-full bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded-md transition duration-300 transform hover:scale-105">
Registrarse
</button>
</form>
</div>
</div>
</div>
<script>
// Toggle Sidebar
const toggleSidebar = document.getElementById('toggleSidebar');
const sidebar = document.querySelector('.sidebar');
toggleSidebar.addEventListener('click', () => {
sidebar.classList.toggle('collapsed');
});
// Auth Modal Logic
const authModal = document.getElementById('authModal');
const loginBtn = document.getElementById('loginBtn');
const loginTab = document.getElementById('loginTab');
const registerTab = document.getElementById('registerTab');
const loginForm = document.getElementById('loginForm');
const registerForm = document.getElementById('registerForm');
loginBtn.addEventListener('click', () => {
authModal.classList.remove('hidden');
setTimeout(() => authModal.classList.add('opacity-100'), 10);
});
loginTab.addEventListener('click', () => {
loginTab.classList.add('text-blue-600', 'border-blue-600');
loginTab.classList.remove('text-gray-500');
registerTab.classList.add('text-gray-500');
registerTab.classList.remove('text-blue-600', 'border-blue-600');
loginForm.classList.remove('hidden');
registerForm.classList.add('hidden');
});
registerTab.addEventListener('click', () => {
registerTab.classList.add('text-blue-600', 'border-blue-600');
registerTab.classList.remove('text-gray-500');
loginTab.classList.add('text-gray-500');
loginTab.classList.remove('text-blue-600', 'border-blue-600');
registerForm.classList.remove('hidden');
loginForm.classList.add('hidden');
});
// Close modal when clicking outside
authModal.addEventListener('click', (e) => {
if (e.target === authModal) {
authModal.classList.remove('opacity-100');
setTimeout(() => authModal.classList.add('hidden'), 300);
}
});
// Navigation between sections
document.querySelectorAll('nav a[data-section]').forEach(item => {
item.addEventListener('click', function() {
const section = this.getAttribute('data-section');
// Update active nav item
document.querySelectorAll('nav div').forEach(navItem => {
navItem.classList.remove('bg-blue-700', 'active-nav');
});
this.classList.add('bg-blue-700', 'active-nav');
// Update header title
const headerTitle = document.querySelector('header h1');
headerTitle.textContent = this.querySelector('.nav-text').textContent;
// Hide all sections
document.querySelectorAll('.section-content').forEach(section => {
section.classList.add('hidden');
});
// Show selected section
document.getElementById(`${section}-section`).classList.remove('hidden');
});
});
// Charts
document.addEventListener('DOMContentLoaded', function() {
// Destinations Chart
const destinationsCtx = document.getElementById('destinationsChart').getContext('2d');
const destinationsChart = new Chart(destinationsCtx, {
type: 'doughnut',
data: {
labels: ['Ruta de las Flores', 'El Tunco', 'Coatepeque', 'Volc谩n Ilamatepec', 'Suchitoto'],
datasets: [{
data: [15, 12, 8, 5, 7],
backgroundColor: [
'#3B82F6',
'#10B981',
'#F59E0B',
'#6366F1',
'#EC4899'
],
borderWidth: 0
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
position: 'right'
}
}
}
});
// Revenue Chart
const revenueCtx = document.getElementById('revenueChart').getContext('2d');
const revenueChart = new Chart(revenueCtx, {
type: 'line',
data: {
labels: ['Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul'],
datasets: [{
label: 'Ingresos ($)',
data: [8500, 9200, 10500, 11200, 9800, 12450, 11800],
backgroundColor: 'rgba(59, 130, 246, 0.1)',
borderColor: '#3B82F6',
borderWidth: 2,
tension: 0.3,
fill: true
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
scales: {
y: {
beginAtZero: true
}
}
}
});
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://deepsite.hf.co/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://deepsite.hf.co" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 馃К <a href="https://deepsite.hf.co?remix=PTRNL/ptc" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p><p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 馃К <a href="https://enzostvs-deepsite.hf.space?remix=PTRNL/ptc" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |