/* Estilos generales */
body {
    font-family: 'Arial', sans-serif;
    background-color: #eef1f5;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Contenedor del Header */
.header-container {
    width: 100%;
    border-bottom: 2px solid #8ec321;
    padding: 10px 0;
    position: relative;
    z-index: 1000;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Franja de colores */
.color-strip {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: #eb3219; /* Color aplicado */
}
.franja {
    width: 100%;
    max-height: 20px;
}

/* Contenedor de Resultados */
.result-container {
    width: 90%;
    max-width: 1200px;
    margin-top: 20px;
    border-radius: 10px;
    padding: 15px;

}

/* Contenido del Header */
.header-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Im谩genes del Header */
.logo {
    height: 100px;
    max-width: 500px;
}

/* Estilo del T铆tulo */
.header-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    text-align: center;
    flex-grow: 1;
}

/* Contenedor principal */
.container {
    width: 90%;
    max-width: 1200px;
    height: auto;
    background: rgba(255, 255, 255, 0.8); /* 馃敼 Blanco con 80% de opacidad */
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    margin-top: 30px;
}


/* T铆tulo */
h2 {
    text-align: center;
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Chatbox */
.chat-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: white;
    border-radius: 10px;
    border: 2px solid #00a5a5;
    overflow: hidden;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.05);
}

/* 脕rea de mensajes */
.chatbox {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    max-height: 70vh;
    scroll-behavior: smooth;
    background-color: #fafafa;
}

/* Mensajes */
.mensaje {
    max-width: 100%;
    padding: 12px 16px;
    margin: 8px 0;
    border-radius: 16px;
    display: inline-block;
    font-size: 16px;
    line-height: 1.5;
    word-wrap: break-word;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease-in-out;
}

/* Animaci贸n de aparici贸n de mensajes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mensajes del usuario */
.usuario {
    background-color: #00a5a5;
    color: white;
    align-self: flex-end;
    text-align: right;
    border-top-right-radius: 4px;
}

/* Mensajes del bot */
.bot {
    background-color: #8ec321;
    color: black;
    align-self: flex-start;
    border-top-left-radius: 4px;
}

/* Contenedor del input */
.input-container {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 12px;
    border: 1px solid #00a5a5; /* Borde negro */
    border-radius: 10px;
    margin-top: 15px;
}

/* Estilo del input */
input[type="text"] {
    flex-grow: 1;
    border: none;
    background: none;
    color: black;
    padding: 10px;
    font-size: 16px;
    outline: none;
}

/* Bot贸n de env铆o */
button {
    background: #00a5a5;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: white;
    padding: 10px 14px;
    border-radius: 50%;
    margin-left: 10px;
    transition: background 0.3s ease;
}

button:hover {
    background: #eb3219;
}

/* 馃敼 Estilos para los resultados del chatbot 馃敼 */

/* Contenedor de resultados */
.mensaje-result {
    border: 2px solid #8ec321;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
    color: #333;
    font-size: 15px;
    line-height: 1.5;
}

/* L铆nea separadora entre documentos */
.mensaje-result:not(:last-child) {
    border-bottom: 3px solid #ccc;
    padding-bottom: 20px;
}

/* Bot贸n de descarga individual */
.descargar-btn {
    display: inline-block;
    background-color: #00a5a5;
    color: white;
    padding: 10px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.descargar-btn:hover {
    background-color: #0056b3;
}

/* Bot贸n de "Descargar Todos" */
.descargar-todos-btn {
    display: block; /* Hace que el bot贸n ocupe toda la l铆nea */
    background-color: #8ec321;
    color: white;
    padding: 12px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    margin: 20px auto; /* Centra el bot贸n horizontalmente */
    transition: background 0.3s ease;
    max-width: 200px; /* Limita el ancho para que no sea muy grande */
}

.descargar-todos-btn:hover {
    background-color: #eb3219;
}

/* Ajuste del Chatbot */
@media (max-width: 768px) {
    .container {
        width: 100%;
        height: auto;
        border-radius: 0;
        padding: 10px;
    }

    h2 {
        font-size: 20px;
    }

    .chat-container {
        height: auto;
    }

    .chatbox {
        max-height: 70vh;
    }

    .input-container {
        padding: 10px;
    }

    input[type="text"] {
        font-size: 14px;
    }

    button {
        font-size: 16px;
        padding: 8px 10px;
    }
}

/* Ajuste del Header en Pantallas Peque帽as */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    .logo {
        height: 40px;
        max-width: 120px;
        margin-bottom: 5px;
    }
    .header-title {
        font-size: 18px;
    }
}
.nombre-archivo {
    font-size: 19px;
    font-weight: bold;
    color: #000;
    display: block;
    margin-bottom: 10px;
    text-transform: none; /* O 'uppercase' si lo quieres todo en mayúsculas */
}




