.box-cli {
    padding: 1rem 0;
    background-size: cover;
}

.color-icon {
    color: #2998ff;
    font-size: 2.5rem;
}

.color-icon-regresa {
    color: #2998ff;
    font-size: 1.5rem;
}

.feacture-box {
    background-color: white;
    font-size: 1.5rem;
    padding: 2.4rem;
    text-align: center;
    border-radius: 3px;
    box-shadow: 0 1.5rem 4rem #2998ff;
    transition: transform .3s;
}

.feacture-box:hover {
    transform: translateY(-1.5rem) scale(1.03);
}

/*buscador estilo*/
.list_item_busq {
    position: absolute;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    border-radius: 0;
}

.list_item_busq_Expe {
    position: absolute;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    border-radius: 0;
    z-index: 9999;
}

.complet_item_busq {
    position: relative;
    width: 100%;
}

.list_group_seleccion:hover {
    background-color: #F0F3F4;
}

.icon_busqueda {
    background-image: url("../img/icon/search.png");
    background-repeat: no-repeat;
    background-position: right calc(0.2em + 0.1rem) center;
    background-size: 35px;
}

main {
    width: 90%;
    margin: auto;
}

.dropzone {
    margin-left: auto;
    margin-right: auto;
    border: thin dotted #000;
    width: 90%;
    height: 40vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.dropzone p {
    padding: 10px;
    font-size: 25px;
    text-align: center;
}

.dropzone label {
    border-bottom: 1px solid blue;
    color: blue;
    cursor: pointer;
}

.dropzone input {
    display: none;
}

progress {
    margin-top: 1rem;
}

.dropzone.is-active {
    border: thick dashed #000;
    background-color: rgba(0, 128, 0, .5);
    animation: pulse 1.5s infinite;
    animation-timing-function: linear;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}
/* Quitar el subrayado azul por defecto de los enlaces */
.upload-card-link {
    text-decoration: none;
    display: block;
}

/* Estilos principales de la tarjeta (Animada) */
.upload-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Sombra inicial suave */
    transition: all 0.4s ease; /* Transición suave para todos los elementos */
    border: 1px solid #f0f4f8;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative; /* Para el patrón de fondo */
    overflow: hidden; /* Mantiene el patrón dentro de los bordes */
}

/* Patrón de fondo sutil (Pseudo-elemento) */
.upload-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Reemplaza con la ruta a tu patrón de Imagen 3 */
    background-image: url('ruta/a/patron-file-icon.svg'); 
    background-size: cover;
    background-position: center;
    opacity: 0.03; /* Muy tenue inicialmente */
    transition: opacity 0.4s ease;
    z-index: 0; /* Detrás del contenido */
}

/* Efecto al pasar el ratón por encima (Hover) de la tarjeta entera */
.upload-card:hover {
    transform: translateY(-10px); /* Se eleva más notablemente */
    box-shadow: 0 15px 30px rgba(33, 136, 255, 0.2); /* Sombra más fuerte y azulada */
    border-color: #d1e3ff;
}

/* El patrón de fondo se vuelve más visible al hover */
.upload-card:hover::before {
    opacity: 0.1;
}

/* Contenedor del icono (Relativo para las capas de iconos) */
.upload-card .icon-wrapper {
    margin-bottom: 20px;
    position: relative;
    width: 120px; /* Tamaño que cubra el diagrama complejo */
    height: 120px;
    z-index: 1; /* Sobre el patrón de fondo */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Estilos para el icono de la pluma limpia (Capa 1) */
.upload-card .clean-pen-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: 60%; /* Proporción a la pluma limpia */
    opacity: 1; /* Visible inicialmente */
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Estilos para el diagrama de subida complejo (Capa 2, Imagen 3) */
.upload-card .upload-diagram-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Se posiciona ligeramente más abajo para la animación de subida */
    transform: translate(-50%, calc(-50% + 15px)); 
    width: auto;
    height: 100%; /* Llenar el contenedor */
    opacity: 0; /* Oculto inicialmente */
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* --- Animación de los iconos al hacer hover sobre la tarjeta --- */

/* La pluma limpia se desvanece */
.upload-card:hover .clean-pen-icon {
    opacity: 0.1; /* No desaparece del todo, queda como "trazo" */
    transform: translate(-50%, -50%) scale(0.9);
}

/* El diagrama de subida complejo se revela y se eleva */
.upload-card:hover .upload-diagram-icon {
    opacity: 1; /* Se vuelve totalmente visible */
    transform: translate(-50%, -50%); /* Sube a su posición central */
}

/* Estilos del texto (Se mantienen constantes o se aclaran un poco) */
.upload-card .upload-title {
    color: #4d7bbb; /* Un azul un poco más oscuro */
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    transition: color 0.4s ease;
    z-index: 1;
}

/* Opcional: El texto se aclara un poco al hover */
.upload-card:hover .upload-title {
    color: #179ed8;
}

/* Variables de color institucionales */
:root {
    --primary-blue: #179ed8;
    --accent-yellow: #d8d933;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --bg-light: #f4f7f6;
    --border-color: #dce4ec;
}

/* Contenedor principal para centrar la tarjeta */
.upload-main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 15px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Estilos de la tarjeta blanca */
.upload-panel {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 750px;
    padding: 40px;
    border-top: 6px solid var(--primary-blue); /* Detalle de color en la parte superior */
}

/* Cabecera y Títulos */
.upload-header {
    text-align: center;
    margin-bottom: 35px;
}

.main-title {
    color: var(--primary-blue);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 15px;
}

/* Etiquetas (Badges) para los tipos de carga */
.document-types {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.badge {
    background-color: rgba(23, 158, 216, 0.08);
    color: var(--primary-blue);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(23, 158, 216, 0.2);
}

/* Diseño del Área Dropzone */
.dropzonee {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-light);
    padding: 50px 20px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Efecto Hover sobre el Dropzone */
.dropzonee:hover {
    border-color: var(--primary-blue);
    background-color: rgba(23, 158, 216, 0.03);
}

.dropzonee-icon {
    font-size: 4.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    opacity: 0.8;
}

.dropzonee-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* Botón estilizado con el color secundario */
.btn-upload {
    background-color: var(--accent-yellow);
    color: #2b2b2b; /* Texto oscuro para mejor contraste sobre el amarillo */
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 28px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(216, 217, 51, 0.3);
    display: inline-block;
}

.btn-upload:hover {
    background-color: #c4c52d; /* Un tono ligeramente más oscuro al pasar el mouse */
    transform: translateY(-2px);
}

/* Ocultar el input <input type="file"> real */
.hidden-input {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.color_salud_ia {
    color : #179ed8;
}

.upload-item {
    background: #f8f9fa;
    border-left: 4px solid #f39c12;
    padding: 12px 16px;
    margin-top: 15px; /* Añadimos espacio arriba */
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    font-family: sans-serif;
    transition: all 0.3s ease;
}

.upload-item.success {
    border-left-color: #2ecc71; /* Verde para éxito */
    background: #eafaf1;
}

.upload-item.error {
    border-left-color: #e74c3c; /* Rojo para error */
    background: #fdedec;
}

.upload-filename {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
    font-size: 14px;
}

.upload-status {
    font-size: 13px;
    color: #555;
}

/* Animación del relojito/spinner */
.spinner {
    display: inline-block;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Asumiendo que tu tabla tiene la clase .TableIdDiagnostico */
.TableIdDiagnostico {
    table-layout: fixed;
    width: 100%;
}

.TableIdDiagnostico td, 
.TableIdDiagnostico th {
    word-wrap: break-word; /* Permite que las palabras largas se rompan si es necesario */
    white-space: normal;   /* Fuerza al texto a saltar de línea */
    overflow-wrap: break-word;
}