Spaces:
Running
Running
Update proa/proa.html
Browse files- proa/proa.html +71 -15
proa/proa.html
CHANGED
|
@@ -3,26 +3,82 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title>PROA - Asistente Médico
|
| 7 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
<style>
|
| 10 |
body { background-color: #f8fafc; font-family: 'Montserrat', sans-serif; }
|
| 11 |
-
/* Estilos para
|
| 12 |
-
.
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
</style>
|
| 22 |
</head>
|
| 23 |
<body class="bg-gray-100 min-h-screen">
|
| 24 |
|
| 25 |
-
<div class="container mx-auto px-4 py-
|
|
|
|
|
|
|
| 26 |
<div class="flex items-center gap-3">
|
| 27 |
<i class="fas fa-book-medical text-3xl text-teal-600"></i>
|
| 28 |
<div>
|
|
@@ -41,11 +97,11 @@
|
|
| 41 |
<div class="mb-4 pb-4 border-b">
|
| 42 |
<label class="flex items-center cursor-pointer">
|
| 43 |
<input type="checkbox" id="togglePediatric" class="form-checkbox h-5 w-5 text-pink-600 rounded focus:ring-pink-500 border-gray-300 mr-2">
|
| 44 |
-
<span class="text-sm font-medium text-gray-700">
|
| 45 |
-
|
| 46 |
</div>
|
| 47 |
|
| 48 |
-
<h3 class="text-
|
| 49 |
<div id="guide-index-container">
|
| 50 |
<p class="text-gray-500 text-sm">Cargando guías...</p>
|
| 51 |
</div>
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Guías PROA - Asistente Médico</title>
|
| 7 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
<style>
|
| 10 |
body { background-color: #f8fafc; font-family: 'Montserrat', sans-serif; }
|
| 11 |
+
/* Estilos para botones/tarjetas de guía */
|
| 12 |
+
.guide-item-button {
|
| 13 |
+
display: flex;
|
| 14 |
+
align-items: center;
|
| 15 |
+
width: 100%;
|
| 16 |
+
text-align: left;
|
| 17 |
+
padding: 0.6rem 0.8rem; /* Más compacto */
|
| 18 |
+
margin-bottom: 0.35rem;
|
| 19 |
+
border-radius: 0.375rem; /* rounded-md */
|
| 20 |
+
background-color: white;
|
| 21 |
+
border: 1px solid #e5e7eb; /* slate-200 */
|
| 22 |
+
color: #334155; /* slate-700 */
|
| 23 |
+
font-weight: 500;
|
| 24 |
+
transition: all 0.2s ease-in-out;
|
| 25 |
+
cursor: pointer;
|
| 26 |
+
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
| 27 |
+
}
|
| 28 |
+
.guide-item-button:hover {
|
| 29 |
+
background-color: #f0f9ff; /* sky-50 */
|
| 30 |
+
border-color: #bae6fd; /* sky-200 */
|
| 31 |
+
transform: translateY(-1px);
|
| 32 |
+
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.07);
|
| 33 |
+
}
|
| 34 |
+
.guide-item-button.active {
|
| 35 |
+
background-color: #0ea5e9; /* sky-500 */
|
| 36 |
+
color: white;
|
| 37 |
+
border-color: #0284c7; /* sky-600 */
|
| 38 |
+
font-weight: 600;
|
| 39 |
+
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
|
| 40 |
+
}
|
| 41 |
+
.guide-item-button.active .guide-icon { color: white; } /* Icono blanco si activo */
|
| 42 |
+
.guide-icon {
|
| 43 |
+
margin-right: 0.6rem;
|
| 44 |
+
font-size: 1rem; /* Tamaño icono */
|
| 45 |
+
width: 20px; /* Ancho fijo */
|
| 46 |
+
text-align: center;
|
| 47 |
+
color: #0ea5e9; /* sky-500 */
|
| 48 |
+
transition: color 0.2s;
|
| 49 |
+
}
|
| 50 |
+
/* Etiqueta Pediátrica (si se muestra junto al nombre) */
|
| 51 |
+
.pediatric-tag-inline { font-size: 0.7rem; font-weight: 600; color: #db2777; background-color: #fce7f3; padding: 0.1rem 0.4rem; border-radius: 9999px; margin-left: 0.4rem; display: inline-block; vertical-align: middle; border: 1px solid #f9a8d4; }
|
| 52 |
+
/* Cabecera de Categoría (visual) */
|
| 53 |
+
.category-header {
|
| 54 |
+
font-size: 0.8rem;
|
| 55 |
+
font-weight: 700;
|
| 56 |
+
color: #475569; /* slate-600 */
|
| 57 |
+
text-transform: uppercase;
|
| 58 |
+
padding: 0.75rem 0 0.25rem 0;
|
| 59 |
+
margin-top: 0.75rem;
|
| 60 |
+
border-bottom: 1px solid #e2e8f0; /* slate-200 */
|
| 61 |
+
position: sticky; /* Para que se quede fija al hacer scroll */
|
| 62 |
+
top: 0;
|
| 63 |
+
background-color: #f8fafc; /* Mismo fondo que el body */
|
| 64 |
+
z-index: 10;
|
| 65 |
+
}
|
| 66 |
+
.category-header:first-child { margin-top: 0; } /* Sin margen superior para la primera */
|
| 67 |
+
/* Área de contenido */
|
| 68 |
+
#guide-content-display { background-color: white; border: 1px solid #e5e7eb; border-radius: 0.5rem; padding: 1.5rem; margin-top: 1rem; min-height: 400px; max-height: 75vh; /* Altura máxima con scroll */ box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); overflow-y: auto; }
|
| 69 |
+
#guide-content-display .treatment-card { margin-bottom: 1.5rem; }
|
| 70 |
+
#guide-content-display h2 { margin-bottom: 1rem; font-size: 1.5rem; border-bottom: 1px solid #eee; padding-bottom: 0.5rem;}
|
| 71 |
+
#guide-content-display h3 { font-size: 1.1rem; margin-top: 1.25rem; margin-bottom: 0.75rem; }
|
| 72 |
+
.hidden { display: none; }
|
| 73 |
+
/* Contenedor de la lista con scroll */
|
| 74 |
+
#guide-index-container { max-height: 70vh; overflow-y: auto; padding-right: 0.5rem; /* Espacio para scrollbar */ }
|
| 75 |
</style>
|
| 76 |
</head>
|
| 77 |
<body class="bg-gray-100 min-h-screen">
|
| 78 |
|
| 79 |
+
<div class="container mx-auto px-4 py-6 max-w-6xl">
|
| 80 |
+
|
| 81 |
+
<div class="flex justify-between items-center mb-5 border-b pb-3">
|
| 82 |
<div class="flex items-center gap-3">
|
| 83 |
<i class="fas fa-book-medical text-3xl text-teal-600"></i>
|
| 84 |
<div>
|
|
|
|
| 97 |
<div class="mb-4 pb-4 border-b">
|
| 98 |
<label class="flex items-center cursor-pointer">
|
| 99 |
<input type="checkbox" id="togglePediatric" class="form-checkbox h-5 w-5 text-pink-600 rounded focus:ring-pink-500 border-gray-300 mr-2">
|
| 100 |
+
<span class="text-sm font-medium text-gray-700">Mostrar Solo Pediátricas</span>
|
| 101 |
+
</label>
|
| 102 |
</div>
|
| 103 |
|
| 104 |
+
<h3 class="text-base font-semibold text-gray-700 mb-2">Guías Disponibles:</h3>
|
| 105 |
<div id="guide-index-container">
|
| 106 |
<p class="text-gray-500 text-sm">Cargando guías...</p>
|
| 107 |
</div>
|