/* 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;
}



input[type="text"].form-control {
    border: 2px solid #00a5a5;
    background-color: white;
    color: black;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    outline: none;
    box-shadow: none;
}


/* Estilo personalizado del botón Buscar */
.btn-buscar {
    background-color: #00a5a5;     /* Verde azulado */
    border: none;
    color: white;
    font-weight: bold;
    width: 100%;                   /* O ajusta a medida si deseas un tamaño específico */
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.btn-buscar:hover {
    background-color: #008989;     /* Tonalidad más oscura al pasar el mouse */
    cursor: pointer;
}


/* 🔹 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: 20px;
    }

    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;
    }
}



