/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Main Container */
.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Minimal Header */
.minimal-header {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    border-bottom: 1px solid #4a5568;
    padding: 2.5rem 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.name {
    font-family: 'Crimson Text', serif;
    font-size: 2.8rem;
    font-weight: 600;
    color: #f7fafc;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.title {
    font-size: 1.2rem;
    color: #a0aec0;
    font-weight: 400;
    letter-spacing: 0.02em;
    font-style: italic;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    padding: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(246, 173, 85, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(49, 130, 206, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-container {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #f6ad55;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.photo-container:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-text {
    color: #f7fafc;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Crimson Text', serif;
    background: linear-gradient(135deg, #f7fafc 0%, #f6ad55 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #a0aec0;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 2rem;
}

.hero-description strong {
    color: #f6ad55;
    font-weight: 600;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(74, 85, 104, 0.3) 0%, rgba(45, 55, 72, 0.3) 100%);
    border-radius: 12px;
    border: 1px solid rgba(74, 85, 104, 0.5);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: linear-gradient(135deg, rgba(74, 85, 104, 0.5) 0%, rgba(45, 55, 72, 0.5) 100%);
    transform: translateX(8px);
    border-color: #f6ad55;
}

.feature-item i {
    font-size: 1.5rem;
    color: #f6ad55;
    width: 30px;
    text-align: center;
}

.feature-item span {
    font-size: 1.1rem;
    color: #e2e8f0;
    font-weight: 500;
}

.hero-cta {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 8px 25px rgba(246, 173, 85, 0.4);
    font-family: inherit;
}

.hero-cta:hover {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(246, 173, 85, 0.5);
}

.hero-cta i {
    font-size: 1.1rem;
}

.hero-about-btn {
    background: transparent;
    color: #a0aec0;
    border: 2px solid #4a5568;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-family: inherit;
}

.hero-about-btn:hover {
    background: linear-gradient(135deg, rgba(74, 85, 104, 0.2) 0%, rgba(45, 55, 72, 0.2) 100%);
    border-color: #f6ad55;
    color: #f6ad55;
    transform: translateY(-2px);
}

.hero-about-btn i {
    font-size: 1rem;
}

/* Chat Main Section */
.chat-main {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.chat-container {
    width: 100%;
    height: 100vh;
    max-width: 900px;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    border-radius: 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    border: none;
    display: flex;
    flex-direction: column;
}

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    padding: 2.5rem;
    text-align: center;
    border-bottom: 1px solid #4a5568;
}

.chat-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 1.6rem;
    font-weight: 600;
    color: #f7fafc;
    font-family: 'Crimson Text', serif;
}

.chat-title i {
    color: #a0aec0;
    font-size: 1.3rem;
}

.chat-subtitle {
    color: #a0aec0;
    font-size: 1.1rem;
    font-weight: 400;
    font-style: italic;
}

/* Example Questions Section */
.example-questions-section {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    border-bottom: 1px solid #4a5568;
    flex-shrink: 0;
}

.example-questions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.example-questions-header:hover {
    background: linear-gradient(135deg, rgba(74, 85, 104, 0.3) 0%, rgba(45, 55, 72, 0.3) 100%);
}

.example-questions-title {
    font-size: 1.1rem;
    color: #f7fafc;
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Crimson Text', serif;
}

.example-questions-title i {
    color: #f6ad55;
    font-size: 1rem;
}

.toggle-questions-btn {
    background: none;
    border: none;
    color: #a0aec0;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-questions-btn:hover {
    background: rgba(160, 174, 192, 0.1);
    color: #f6ad55;
}

.toggle-questions-btn i {
    transition: transform 0.3s ease;
}

.toggle-questions-btn.collapsed i {
    transform: rotate(-90deg);
}

.example-questions-content {
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.example-questions-content.collapsed {
    max-height: 0;
    padding: 0 1.5rem;
}

.example-questions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.example-category {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid #4a5568;
    transition: all 0.3s ease;
}

.example-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.example-category h4 {
    font-size: 1.1rem;
    color: #f7fafc;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Crimson Text', serif;
}

.example-category h4 i {
    color: #a0aec0;
    font-size: 1rem;
}

.example-questions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.example-question-btn {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: #e2e8f0;
    border: 1px solid #4a5568;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-family: inherit;
    line-height: 1.4;
}

.example-question-btn:hover {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    border-color: #718096;
    color: #f7fafc;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    min-height: 0;
}

.message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.3s ease;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    color: #f7fafc;
    border: 2px solid #fbb6ce;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    color: #f7fafc;
    border: 2px solid #90cdf4;
}

.message-content {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    padding: 1rem 1.25rem;
    border-radius: 18px;
    max-width: 80%;
    border: 1px solid #4a5568;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: #e2e8f0;
}

.user-message .message-content {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    border-color: #fbb6ce;
    color: #f7fafc;
    margin-left: auto;
}

.message-content p {
    margin: 0;
    line-height: 1.5;
}

/* Estilos para elementos de markdown en mensajes */
.message-content h1,
.message-content h2,
.message-content h3,
.message-content h4,
.message-content h5,
.message-content h6 {
    margin: 0.5rem 0;
    font-weight: 600;
    color: inherit;
}

.message-content h1 { font-size: 1.2rem; }
.message-content h2 { font-size: 1.1rem; }
.message-content h3 { font-size: 1rem; }
.message-content h4 { font-size: 0.95rem; }
.message-content h5 { font-size: 0.9rem; }
.message-content h6 { font-size: 0.85rem; }

.message-content code {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85em;
}

.message-content pre {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.8rem;
    border-radius: 8px;
    margin: 0.5rem 0;
    overflow-x: auto;
    border-left: 3px solid #3498db;
}

.message-content pre code {
    background: none;
    padding: 0;
    font-size: 0.9em;
}

.message-content ul,
.message-content ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.message-content li {
    margin: 0.2rem 0;
}

.message-content blockquote {
    border-left: 3px solid #bdc3c7;
    padding-left: 1rem;
    margin: 0.5rem 0;
    font-style: italic;
    color: #7f8c8d;
}

/* Estilos para negrita en mensajes del bot (fondo oscuro) - texto blanco para resaltar */
.bot-message .message-content strong,
.bot-message .message-content .markdown-content strong,
.message.bot-message .message-content strong,
.message.bot-message .message-content .markdown-content strong,
.message.bot-message .message-content span.markdown-content strong {
    font-weight: 600 !important;
    color: #ffffff !important;
}

/* Estilos para títulos (h1-h6) en mensajes del bot (fondo oscuro) - texto blanco para resaltar */
.bot-message .message-content h1,
.bot-message .message-content h2,
.bot-message .message-content h3,
.bot-message .message-content h4,
.bot-message .message-content h5,
.bot-message .message-content h6,
.bot-message .message-content .markdown-content h1,
.bot-message .message-content .markdown-content h2,
.bot-message .message-content .markdown-content h3,
.bot-message .message-content .markdown-content h4,
.bot-message .message-content .markdown-content h5,
.bot-message .message-content .markdown-content h6,
.message.bot-message .message-content h1,
.message.bot-message .message-content h2,
.message.bot-message .message-content h3,
.message.bot-message .message-content h4,
.message.bot-message .message-content h5,
.message.bot-message .message-content h6,
.message.bot-message .message-content .markdown-content h1,
.message.bot-message .message-content .markdown-content h2,
.message.bot-message .message-content .markdown-content h3,
.message.bot-message .message-content .markdown-content h4,
.message.bot-message .message-content .markdown-content h5,
.message.bot-message .message-content .markdown-content h6,
.message.bot-message .message-content span.markdown-content h1,
.message.bot-message .message-content span.markdown-content h2,
.message.bot-message .message-content span.markdown-content h3,
.message.bot-message .message-content span.markdown-content h4,
.message.bot-message .message-content span.markdown-content h5,
.message.bot-message .message-content span.markdown-content h6 {
    color: #ffffff !important;
}

/* Asegurar que la negrita sea visible en mensajes del usuario (fondo naranja) */
.user-message .message-content strong,
.user-message .message-content .markdown-content strong {
    color: #ffffff !important;
}

.message-content em {
    font-style: italic;
}

/* Avatar inside message content */
.message-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.message-content .message-avatar {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin: 0;
}

.message-content .message-avatar i {
    font-size: 12px;
}

/* Adjust markdown content when avatar is inside */
.message-content .markdown-content {
    flex: 1;
    margin: 0;
    line-height: 1.4;
}

/* Chat Input */
.chat-input-container {
    padding: 1.5rem;
    border-top: 1px solid #4a5568;
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    flex-shrink: 0;
}

.chat-input-wrapper {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

#chat-input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 2px solid #4a5568;
    border-radius: 25px;
    font-size: 1rem;
    font-family: inherit;
    background: #2d3748;
    transition: all 0.3s ease;
    color: #e2e8f0;
}

#chat-input:focus {
    outline: none;
    border-color: #fbb6ce;
    box-shadow: 0 0 0 3px rgba(251, 182, 206, 0.2);
}

#chat-input:disabled {
    background: #4a5568;
    color: #a0aec0;
    cursor: not-allowed;
}

#chat-input::placeholder {
    color: #a0aec0;
}

.send-btn {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(246, 173, 85, 0.4);
    flex-shrink: 0;
}

.send-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(246, 173, 85, 0.5);
}

.send-btn:disabled {
    background: #718096;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.voice-btn {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.4);
    flex-shrink: 0;
}

.voice-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2c5282 0%, #2a4365 100%);
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(49, 130, 206, 0.5);
}

.voice-btn:disabled {
    background: #718096;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.voice-btn.recording {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    animation: pulse 1s infinite;
    box-shadow: 0 4px 12px rgba(246, 173, 85, 0.5);
}

.voice-btn.recording:hover {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Voice message styles */
.message.voice-message .message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 18px;
    position: relative;
}

.message.voice-message .message-content::before {
    content: "🎤";
    margin-right: 8px;
    font-size: 0.9em;
}

.message.voice-message.user-message .message-content {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.message.voice-message.bot-message .message-content {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.message.voice-message .message-content::after {
    content: " 🔊";
    margin-left: 8px;
    font-size: 0.9em;
}

/* Chat Suggestions */
.chat-suggestions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.suggestion-btn {
    padding: 0.5rem 1rem;
    background: #ffffff;
    color: #6c757d;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.suggestion-btn:hover {
    background: #f8f9fa;
    border-color: #3498db;
    color: #3498db;
    transform: translateY(-1px);
}

/* Minimal Footer */
.minimal-footer {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    border-top: 1px solid #4a5568;
    padding: 1.5rem;
    text-align: center;
    color: #a0aec0;
    font-size: 0.875rem;
}

.minimal-footer a {
    color: #fbb6ce;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.minimal-footer a:hover {
    color: #f6ad55;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(246, 173, 85, 0.4);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(246, 173, 85, 0.5);
}

.btn-primary:disabled {
    background: #718096;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #2d3748;
    color: #e2e8f0;
    border: 1px solid #4a5568;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: #4a5568;
    border-color: #718096;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typing Indicator */
.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3498db;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Privacy Notice */
.privacy-notice .message-content {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.privacy-notice .message-avatar {
    background: #ffc107;
    color: white;
}

/* Markdown Content Styles */
.markdown-content {
    line-height: 1.6;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    margin: 1rem 0 0.5rem 0;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

.markdown-content h1 {
    font-size: 1.5rem;
    border-bottom: 2px solid #e8e8e8;
    padding-bottom: 0.5rem;
}

.markdown-content h2 {
    font-size: 1.3rem;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 0.3rem;
}

.markdown-content h3 {
    font-size: 1.1rem;
}

.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    font-size: 1rem;
}

.markdown-content p {
    margin: 0.75rem 0;
    line-height: 1.6;
}

.markdown-content ul,
.markdown-content ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.markdown-content li {
    margin: 0.25rem 0;
    line-height: 1.5;
}

.markdown-content ul li {
    list-style-type: disc;
}

.markdown-content ol li {
    list-style-type: decimal;
}

.markdown-content blockquote {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    border-radius: 0 4px 4px 0;
    font-style: italic;
    color: #5a6c7d;
}

.markdown-content code {
    background: #f1f3f4;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    color: #e74c3c;
}

.markdown-content pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1rem 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    line-height: 1.4;
}

.markdown-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9em;
}

.markdown-content th,
.markdown-content td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid #e8e8e8;
}

.markdown-content th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.markdown-content tr:hover {
    background: #f8f9fa;
}

.markdown-content a {
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.markdown-content a:hover {
    border-bottom-color: #3498db;
}

/* Este estilo se aplica específicamente a los mensajes del bot - máxima especificidad */
.message.bot-message .message-content .markdown-content strong,
.message.bot-message .message-content span.markdown-content strong,
.bot-message .message-content .markdown-content strong {
    font-weight: 600 !important;
    color: #ffffff !important;
}

/* Títulos en mensajes del bot - máxima especificidad */
.message.bot-message .message-content .markdown-content h1,
.message.bot-message .message-content .markdown-content h2,
.message.bot-message .message-content .markdown-content h3,
.message.bot-message .message-content .markdown-content h4,
.message.bot-message .message-content .markdown-content h5,
.message.bot-message .message-content .markdown-content h6,
.message.bot-message .message-content span.markdown-content h1,
.message.bot-message .message-content span.markdown-content h2,
.message.bot-message .message-content span.markdown-content h3,
.message.bot-message .message-content span.markdown-content h4,
.message.bot-message .message-content span.markdown-content h5,
.message.bot-message .message-content span.markdown-content h6 {
    color: #ffffff !important;
}

.markdown-content em {
    font-style: italic;
    color: #5a6c7d;
}

.markdown-content hr {
    border: none;
    height: 1px;
    background: #e8e8e8;
    margin: 1.5rem 0;
}

/* Responsive adjustments for markdown content */
@media (max-width: 768px) {
    .markdown-content h1 {
        font-size: 1.3rem;
    }
    
    .markdown-content h2 {
        font-size: 1.2rem;
    }
    
    .markdown-content h3 {
        font-size: 1.1rem;
    }
    
    .markdown-content pre {
        font-size: 0.8em;
        padding: 0.75rem;
    }
    
    .markdown-content table {
        font-size: 0.8em;
    }
    
    .markdown-content th,
    .markdown-content td {
        padding: 0.4rem;
    }
}

/* Responsive adjustments for example questions */
@media (max-width: 768px) {
    .example-questions-section {
        display: none;
    }
    
    .example-questions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .example-questions-section {
        padding: 1.5rem;
    }
    
    .example-questions-title {
        font-size: 1.2rem;
    }
    
    .example-category {
        padding: 1rem;
    }
    
    .example-question-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Responsive adjustments for hero section */
@media (max-width: 768px) {
    .hero-section {
        height: 100vh;
        padding: 0;
    }
    
    .hero-container {
        padding: 0 1rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .photo-container {
        width: 200px;
        height: 200px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        display: none;
    }
    
    .hero-features {
        display: none;
    }
    
    .feature-item {
        padding: 0.75rem;
    }
    
    .feature-item span {
        font-size: 1rem;
    }
    
    .hero-cta {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .hero-about-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .photo-container {
        width: 150px;
        height: 150px;
    }
    
    .hero-cta {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-about-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .chat-main {
        height: 100vh;
        padding: 0;
    }
    
    .chat-container {
        height: 100vh;
        max-width: 100%;
        border-radius: 0;
    }
    
    .chat-header {
        padding: 1.5rem;
    }
    
    .chat-messages {
        padding: 1rem;
    }
    
    .message-content {
        max-width: 90%;
        gap: 0;
    }
    
    /* Hide avatars in small screens */
    .message-content .message-avatar {
        display: none;
    }
    
    .chat-input-container {
        padding: 1rem;
    }
    
    .chat-input-wrapper {
        gap: 0.5rem;
    }
    
    #chat-input {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    #chat-input::placeholder {
        font-size: 0.85rem;
    }
    
    .send-btn,
    .voice-btn {
        width: 45px;
        height: 45px;
        min-width: 45px;
        min-height: 45px;
    }
    
    .suggestion-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 1rem;
    }
    
    .chat-main {
        padding: 0;
    }
    
    .chat-container {
        margin: 0;
    }
    
    .chat-title {
        font-size: 1.25rem;
    }
    
    .chat-subtitle {
        font-size: 0.9rem;
    }
}

/* Project Info Section */
.project-info-btn {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(246, 173, 85, 0.4);
    font-family: inherit;
}

.project-info-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(246, 173, 85, 0.5);
}

.project-info-section {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    padding: 3rem 0;
    transition: all 0.3s ease;
}

.project-info-section.hidden {
    display: none;
}

.project-info-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.project-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.project-info-header h2 {
    font-size: 2rem;
    color: #f7fafc;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Crimson Text', serif;
}

.close-btn {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(246, 173, 85, 0.4);
}

.close-btn:hover {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(246, 173, 85, 0.5);
}

.project-info-content {
    display: grid;
    gap: 2rem;
}

.info-card {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid #4a5568;
    cursor: default;
    -webkit-tap-highlight-color: transparent;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #4a5568;
}

.card-header i {
    font-size: 1.5rem;
    color: #48bb78;
}

.card-header h3 {
    font-size: 1.4rem;
    color: #f7fafc;
    font-weight: 600;
    font-family: 'Crimson Text', serif;
}

.card-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #e2e8f0;
}

/* Capabilities Grid */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.capability {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: default;
    -webkit-tap-highlight-color: transparent;
}

.capability i {
    font-size: 2rem;
    color: #48bb78;
    margin-bottom: 1rem;
}

.capability h4 {
    font-size: 1.1rem;
    color: #f7fafc;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: 'Crimson Text', serif;
}

.capability p {
    font-size: 0.95rem;
    color: #e2e8f0;
    line-height: 1.5;
}

/* Examples Section */
.examples-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #4a5568;
}

.examples-section h4 {
    font-size: 1.3rem;
    color: #f7fafc;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
    font-family: 'Crimson Text', serif;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.example-category {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #48bb78;
    cursor: default;
    -webkit-tap-highlight-color: transparent;
}

.example-category h5 {
    font-size: 1.1rem;
    color: #f7fafc;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Crimson Text', serif;
}

.example-category h5 i {
    color: #48bb78;
    font-size: 1.2rem;
}

.example-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.example-category li {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    border: 1px solid #4a5568;
    font-size: 0.9rem;
    color: #e2e8f0;
    line-height: 1.4;
    cursor: default;
    -webkit-tap-highlight-color: transparent;
}

.example-category li:last-child {
    margin-bottom: 0;
}

/* Architecture Flow */
.architecture-flow {
    margin-bottom: 2rem;
}

.architecture-flow h4 {
    font-size: 1.4rem;
    color: #f7fafc;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
    font-family: 'Crimson Text', serif;
}

.architecture-flow p {
    font-size: 1rem;
    color: #e2e8f0;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.flow-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    border-radius: 16px;
    border: 2px solid #4a5568;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 300px;
    border: 2px solid transparent;
    cursor: default;
    -webkit-tap-highlight-color: transparent;
}

.flow-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.flow-icon i {
    font-size: 1.3rem;
    color: white;
}

.flow-content h5 {
    font-size: 1rem;
    color: #f7fafc;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: 'Crimson Text', serif;
}

.flow-content p {
    font-size: 0.85rem;
    color: #e2e8f0;
    line-height: 1.4;
    margin: 0;
}

.flow-arrow {
    font-size: 1.5rem;
    color: #48bb78;
    font-weight: bold;
    margin: 0.5rem 0;
    cursor: default;
    -webkit-tap-highlight-color: transparent;
}

/* Architecture Components */
.architecture-components {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #4a5568;
}

.architecture-components h4 {
    font-size: 1.3rem;
    color: #f7fafc;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
    font-family: 'Crimson Text', serif;
}

/* Architecture Grid */
.architecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.arch-component {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    border-radius: 12px;
    cursor: default;
    -webkit-tap-highlight-color: transparent;
}

.arch-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.arch-icon i {
    font-size: 1.5rem;
    color: white;
}

.arch-info h4 {
    font-size: 1.1rem;
    color: #f7fafc;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: 'Crimson Text', serif;
}

.arch-info p {
    font-size: 0.95rem;
    color: #e2e8f0;
    line-height: 1.4;
}

/* Features List */
.features-list {
    display: grid;
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    border-radius: 8px;
    cursor: default;
    -webkit-tap-highlight-color: transparent;
}

.feature i {
    color: #48bb78;
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.feature span {
    font-size: 1rem;
    color: #e2e8f0;
    line-height: 1.5;
}

/* Tech Stack */
.tech-stack {
    display: grid;
    gap: 2rem;
}

.tech-category h4 {
    font-size: 1.2rem;
    color: #f7fafc;
    margin-bottom: 1rem;
    font-weight: 600;
    font-family: 'Crimson Text', serif;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-tag {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: default;
    -webkit-tap-highlight-color: transparent;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tool-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    border-radius: 12px;
    border-left: 4px solid #48bb78;
    cursor: default;
    -webkit-tap-highlight-color: transparent;
}

.tool-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-icon i {
    font-size: 1.3rem;
    color: white;
}

.tool-info h4 {
    font-size: 1.1rem;
    color: #f7fafc;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-family: 'Crimson Text', serif;
}

.tool-info p {
    font-size: 0.9rem;
    color: #e2e8f0;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.tool-info p:last-child {
    margin-bottom: 0;
}

/* Agent Workflow */
.agent-workflow {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #4a5568;
}

.agent-workflow h4 {
    font-size: 1.3rem;
    color: #f7fafc;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
    font-family: 'Crimson Text', serif;
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.workflow-step {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    border-radius: 12px;
    position: relative;
    cursor: default;
    -webkit-tap-highlight-color: transparent;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0 auto 1rem auto;
}

.step-content h5 {
    font-size: 1rem;
    color: #f7fafc;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: 'Crimson Text', serif;
}

.step-content p {
    font-size: 0.9rem;
    color: #e2e8f0;
    line-height: 1.4;
}

/* Responsive adjustments for tools and workflow */
@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-item {
        flex-direction: column;
        text-align: center;
    }
    
    .workflow-steps {
        grid-template-columns: 1fr;
    }
    
    .workflow-step {
        padding: 1rem;
    }
    
    /* Responsive adjustments for new sections */
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .flow-diagram {
        padding: 1rem;
    }
    
    .flow-step {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .tool-item {
        padding: 1rem;
    }
    
    .tool-icon {
        width: 40px;
        height: 40px;
    }
    
    .tool-icon i {
        font-size: 1.1rem;
    }
    
    .workflow-step {
        padding: 0.75rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .project-info-section {
        padding: 2rem 0;
    }
    
    .project-info-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .info-card {
        padding: 1rem;
    }
    
    .card-header h3 {
        font-size: 1.2rem;
    }
    
    .capability {
        padding: 1rem;
    }
    
    .arch-component {
        padding: 1rem;
    }
    
    /* Additional mobile adjustments for new sections */
    .example-category {
        padding: 1rem;
    }
    
    .example-category li {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .flow-step {
        padding: 1rem;
        max-width: 200px;
    }
    
    .flow-icon {
        width: 40px;
        height: 40px;
    }
    
    .flow-icon i {
        font-size: 1.1rem;
    }
    
    .flow-content h5 {
        font-size: 0.9rem;
    }
    
    .flow-content p {
        font-size: 0.8rem;
    }
    
    .architecture-flow h4 {
        font-size: 1.2rem;
    }
    
    .examples-section h4 {
        font-size: 1.1rem;
    }
}