* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #0ea5e9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 16px;
    color: #1f2937;
}

.chat-container {
    width: 100%;
    max-width: 500px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 85vh;
    overflow: hidden;
}

.header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.header h1 {
    color: #1e40af;
    font-size: 24px;
    margin-bottom: 8px;
}

.header p {
color: #6b7280;
font-size: 16px;
}

.chat-box {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 8px;
}

/* Estilos de la barra de desplazamiento */
.chat-box::-webkit-scrollbar {
    width: 6px;
}

.chat-box::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.chat-box::-webkit-scrollbar-thumb {
    background: #a5b4fc;
    border-radius: 10px;
}

.chat-box::-webkit-scrollbar-thumb:hover {
    background: #818cf8;
}

.message {
    margin-bottom: 16px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot-message {
    text-align: left;
}

.message-content {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 100%;
    line-height: 1.5;
}

.bot-message .message-content {
    background-color: #f3f4f6;
    border-top-left-radius: 4px;
}

.categories {
    display: block;
    margin: 16px 0;
}

.category-btn {
    display: block;  
    width: 100%;  
    margin: 16px auto;
    padding: 14px;
    background: linear-gradient(135deg, #1848e7 0%, #1188ff 100%);
    color: white;
    border: none;
    border-radius: 4px 12px 12px 12px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.2);
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(99, 102, 241, 0.3);
}

.back-btn {
    padding: 10px 16px;
    background-color: #ff9900;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.back-btn:hover {
    background-color: #d1d5db;
}

.faq-section {
    margin-top: 16px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.faq-item {
    margin-bottom: 12px;
    border-radius: 4px 12px 12px 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s, border-radius .8s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 16px;
    background: linear-gradient(135deg, #1848e7 0%, #1188ff 100%);
    color: #fff;
    cursor: pointer;
    position: relative;
    font-weight: 500;
    display: flex;
    align-items: center;
    border-radius: 4px 12px 12px 12px;
     transition: border-radius .8s ease;
    justify-content: space-between;
}

.faq-question::after {
    content: '+';
    font-size: 20px;
    font-weight: bold;
    border-radius: 4px 12px 0 0;
    transition: transform 0.3s ease;
    color: #fff;
}

.faq-item.active .faq-question::after {
    content: '+';
    transform: rotate(225deg);
    font-weight: bold;
}

.faq-item.active .faq-question {
    border-radius: 4px 12px 0 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 1.2s ease, border-radius .8s ease;
    padding: 0 16px;
    background-color: white;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 1600px; 
    padding: 12px 16px;
}
  
.footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 14px;
}

a:visited,a:link,a:active{
    text-decoration: none;
}