/* Variables globales */
:root {
    --primary-color: #1a365d;
    --secondary-color: #2b6cb0;
    --accent-color: #4299e1;
    --text-color: #2d3748;
    --text-light: #718096;
    --background-light: #f7fafc;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --gray: #f5f6fa;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--primary-color);
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: var(--transition);
}

.logo:hover {
    color: var(--accent-color);
    transform: scale(1.05);
}

.logo i {
    font-size: 2rem;
    color: var(--accent-color);
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-full {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.tagline {
    text-align: center;
    font-style: italic;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1639322537228-f710d846310a?q=80&w=2072&auto=format&fit=crop') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 4rem;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(26, 54, 93, 0.92), 
        rgba(43, 108, 176, 0.85)
    );
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 120%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.05) 40%,
        transparent 60%
    );
    transform: rotate(-15deg);
    animation: lightMove 20s infinite alternate;
    z-index: 2;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 100%;
    height: 160%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.08) 30%,
        transparent 70%
    );
    transform: rotate(15deg);
    animation: lightPulse 15s infinite alternate;
    z-index: 2;
    pointer-events: none;
}

@keyframes lightMove {
    0% {
        transform: rotate(-15deg) translateY(0);
    }
    100% {
        transform: rotate(-15deg) translateY(-10%);
    }
}

@keyframes lightPulse {
    0% {
        opacity: 0.5;
        transform: rotate(15deg) scale(1);
    }
    100% {
        opacity: 1;
        transform: rotate(15deg) scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--white);
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-slogan {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Servicios */
.services {
    padding: 6rem 0;
    background: var(--background-light);
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

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

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Sobre Nosotros */
.about {
    padding: 6rem 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

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

.value-item {
    text-align: center;
    padding: 2rem;
}

.value-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.value-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Contacto */
.contact {
    padding: 6rem 0;
    background: var(--background-light);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.btn-submit {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Mensaje de confirmación del formulario */
.contact-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-message.show {
    display: block !important;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Estilos específicos para Telegram */
.social-links a[aria-label="Telegram"]:hover {
    color: #0088cc; /* Color oficial de Telegram */
}

.social-links a[aria-label="LinkedIn"]:hover {
    color: #0077b5; /* Color oficial de LinkedIn */
}

.social-links a[aria-label="Twitter"]:hover {
    color: #1da1f2; /* Color oficial de Twitter */
}

.social-links a[aria-label="Email"]:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    /* Header y Navegación */
    .header {
        padding: 0.5rem 0;
        position: fixed;
        width: 100%;
        background: var(--white);
    }

    .nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        transition: all 0.3s ease;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links li:nth-child(4) { transition-delay: 0.4s; }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 1rem 0;
        font-size: 1.1rem;
        color: var(--primary-color);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .nav-links a:hover {
        color: var(--accent-color);
    }

    /* Animación del botón hamburguesa */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Overlay cuando el menú está abierto */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-overlay.active {
        display: block;
        opacity: 1;
    }

    /* Hero Section */
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 6rem 0 3rem;
        margin-top: 0;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-slogan {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* Servicios */
    .services {
        padding: 3rem 0;
    }

    .services h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    /* Sobre Nosotros */
    .about {
        padding: 3rem 0;
    }

    .about h2 {
        font-size: 2rem;
    }

    .about-description {
        font-size: 1rem;
    }

    .values {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .value-item {
        padding: 1.5rem;
    }

    /* Contacto */
    .contact {
        padding: 3rem 0;
    }

    .contact h2 {
        font-size: 2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.7rem;
    }

    /* Footer */
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Ajustes adicionales para pantallas muy pequeñas */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-slogan {
        font-size: 1.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .service-icon {
        width: 50px;
        height: 50px;
    }

    .service-icon i {
        font-size: 1.2rem;
    }

    .btn-submit {
        padding: 0.8rem 1.5rem;
    }
}

/* Sección de Impacto IA */
.impact-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.impact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.1;
}

.impact-content {
    position: relative;
    z-index: 1;
}

.impact-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #fff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.impact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-10px);
}

.impact-card i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.impact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.impact-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.impact-cta {
    text-align: center;
    margin-top: 4rem;
}

.impact-quote {
    font-size: 1.8rem;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.4;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive para la sección de impacto */
@media (max-width: 768px) {
    .impact-section {
        padding: 4rem 0;
    }

    .impact-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

    .impact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .impact-card {
        padding: 1.5rem;
    }

    .impact-quote {
        font-size: 1.5rem;
        padding: 0 1rem;
    }

    .btn-primary {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

/* Responsive para servicios */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
} 

/* Chat Flotante */
.chat-float-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.chat-float-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.chat-float-button i {
    font-size: 1.5rem;
    color: var(--white);
}

.chat-tooltip {
    position: absolute;
    right: 70px;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.chat-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 5px solid var(--primary-color);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.chat-float-button:hover .chat-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Modal del Chat */
.chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chat-modal.active {
    display: flex;
    opacity: 1;
}

.chat-modal-content {
    background: var(--white);
    border-radius: 1rem;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.chat-modal.active .chat-modal-content {
    transform: scale(1);
}

.chat-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 1rem 1rem 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-close-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.chat-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
    height: 300px;
    padding: 1.5rem;
    overflow-y: auto;
    background: #f8f9fa;
}

.message {
    margin-bottom: 1rem;
    padding: 0.8rem;
    border-radius: 1rem;
    max-width: 80%;
    font-size: 0.9rem;
}

.bot-message {
    background: var(--primary-color);
    color: var(--white);
    margin-right: auto;
}

.user-message {
    background: var(--accent-color);
    color: var(--white);
    margin-left: auto;
}

.chat-input-container {
    display: flex;
    padding: 1rem;
    background: var(--white);
    border-top: 1px solid #e9ecef;
}

.chat-input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #e9ecef;
    border-radius: 2rem;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-input:focus {
    border-color: var(--accent-color);
}

.chat-send-btn {
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-send-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.chat-send-btn i {
    font-size: 1rem;
}

/* Responsive para el chat flotante */
@media (max-width: 768px) {
    .chat-float-button {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
    }
    
    .chat-float-button i {
        font-size: 1.2rem;
    }
    
    .chat-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .chat-messages {
        height: 250px;
    }
    
    .chat-tooltip {
        display: none;
    }
} 

/* Estilos para Markdown en el chat */
.message p {
    margin: 0;
    line-height: 1.4;
}

.message .markdown-content {
    line-height: 1.5;
}

.message .markdown-content h1,
.message .markdown-content h2,
.message .markdown-content h3,
.message .markdown-content h4,
.message .markdown-content h5,
.message .markdown-content h6 {
    margin: 0.5rem 0;
    font-weight: 600;
    color: inherit;
}

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

.message .markdown-content p {
    margin: 0.3rem 0;
}

.message .markdown-content ul,
.message .markdown-content ol {
    margin: 0.3rem 0;
    padding-left: 1.2rem;
}

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

.message .markdown-content code {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 0.3rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.message .markdown-content pre {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.8rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 0.5rem 0;
}

.message .markdown-content pre code {
    background: none;
    padding: 0;
}

.message .markdown-content blockquote {
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    margin: 0.5rem 0;
    padding-left: 0.8rem;
    font-style: italic;
    opacity: 0.9;
}

.message .markdown-content a {
    color: inherit;
    text-decoration: underline;
    opacity: 0.9;
}

.message .markdown-content a:hover {
    opacity: 1;
}

.message .markdown-content strong {
    font-weight: 600;
}

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

.message .markdown-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 0.5rem 0;
    font-size: 0.85rem;
}

.message .markdown-content th,
.message .markdown-content td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.5rem;
    text-align: left;
}

.message .markdown-content th {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

/* Estilos específicos para mensajes del bot con Markdown */
.bot-message .markdown-content {
    color: var(--white);
}

.bot-message .markdown-content code {
    background: rgba(255, 255, 255, 0.2);
}

.bot-message .markdown-content pre {
    background: rgba(255, 255, 255, 0.2);
}

.bot-message .markdown-content blockquote {
    border-left-color: rgba(255, 255, 255, 0.4);
}

/* Estilos específicos para mensajes del usuario con Markdown */
.user-message .markdown-content {
    color: var(--white);
}

.user-message .markdown-content code {
    background: rgba(255, 255, 255, 0.2);
}

.user-message .markdown-content pre {
    background: rgba(255, 255, 255, 0.2);
}

.user-message .markdown-content blockquote {
    border-left-color: rgba(255, 255, 255, 0.4);
} 