﻿#webchat .webchat__bubble__content p,
#webchat .webchat__bubble__content span,
#webchat .ac-textBlock,
#webchat .ac-container.ac-selectable {
    font-weight: bold !important;
}

/* Tarjeta más ancha */
#webchat .webchat__bubble--from-bot {
    max-width: 98% !important;
    width: 98% !important;
}

    #webchat .webchat__bubble--from-bot .webchat__bubble__content {
        padding: 0 !important;
    }

#webchat .ac-adaptiveCard {
    width: 100% !important;
    min-width: unset !important;
}

/* Botones Adaptive Card - son DIV no button */
#webchat .ac-container.ac-selectable {
    background-color: #202F50 !important;
    color: #FFFFFF !important;
    border-radius: 10px !important;
    padding: 10px 16px !important;
    margin-top: 6px !important;
    cursor: pointer !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: background-color 0.2s !important;
    border: none !important;
}

    #webchat .ac-container.ac-selectable:hover {
        background-color: #0078D4 !important;
    }

    /* Texto dentro de los botones */
    #webchat .ac-container.ac-selectable .ac-textBlock,
    #webchat .ac-container.ac-selectable p {
        color: #FFFFFF !important;
        margin: 0 !important;
    }

:root {
    --primary-color: #202F50;
    --header-textColor: #FFFFFF;
    --chat-width: 550px; /* ← subí de 450px a 550px */
    --chat-height: 580px; /* ← un poco más de alto también */
    --header-height: 56px;
    --border-radius: 16px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Calibri, 'Helvetica Neue', Arial, sans-serif;
}

body {
    min-height: 100vh;
    background-color: #f3f4f6;
}

#chatbot-popup {
    display: none;
    position: fixed;
    bottom: 132px;
    right: 32px;
    width: var(--chat-width);
    height: var(--chat-height);
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 18px 40px -5px rgba(0,0,0,0.2), 0 15px 20px -5px rgba(0,0,0,0.1);
    overflow: hidden;
    opacity: 0;
    transform-origin: bottom right;
    transform: scale(0.95);
    transition: all var(--transition-speed) ease-in-out;
    z-index: 999;
}

    #chatbot-popup.visible {
        display: block;
        opacity: 1;
        transform: scale(1);
    }

#chatbot-header {
    background: var(--primary-color);
    padding: 16px 20px;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--header-textColor);
}

.header-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
}

    .header-title img {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: white;
        padding: 2px;
        object-fit: contain;
    }

.header-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.icon-button {
    background: none;
    border: none;
    color: var(--header-textColor);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .icon-button:hover {
        background: rgba(255,255,255,0.15);
    }

    .icon-button:focus {
        outline: 2px solid rgba(255,255,255,0.5);
        outline-offset: 2px;
    }

#webchat {
    height: calc(100% - var(--header-height));
    background-color: #ffffff;
    position: relative;
}

.webchat-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.85);
    pointer-events: none;
    z-index: 1;
}

#webchat > div {
    position: relative;
    z-index: 2;
}

#webchat .webchat__bubble__content {
    padding: 8px 12px !important;
}

#webchat .webchat__bubble {
    max-width: 85% !important;
    margin: 8px !important;
}

#webchat .webchat__bubble__content ul,
#webchat .webchat__bubble__content ol {
    padding-left: 24px !important;
    margin: 8px 0 !important;
    list-style-position: outside !important;
}

#webchat .webchat__bubble__content li {
    margin: 4px 0 !important;
    padding-left: 4px !important;
}

#open-chat {
    position: fixed;
    bottom: 132px;
    right: 32px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(32,47,80,0.4);
    transition: all var(--transition-speed) ease-in-out;
    z-index: 998;
}

    #open-chat.hidden {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
        pointer-events: none;
    }

    #open-chat:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 20px rgba(32,47,80,0.5);
    }

    #open-chat svg {
        width: 28px;
        height: 28px;
        color: white;
    }

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px;
}

    .main-content h1 {
        font-size: 36px;
        color: #111827;
        text-align: center;
    }

    .main-content > p {
        font-size: 18px;
        color: #4b5563;
        line-height: 1.6;
        margin-bottom: 48px;
        text-align: center;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.content-box {
    background: linear-gradient(135deg, #e6e6e6, #c4c4c4, #9f9f9f);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .content-box.featured {
        grid-column: span 2;
        min-height: 350px;
        color: #000;
    }

    .content-box h2 {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .content-box p {
        font-size: 16px;
        color: #6b7280;
        margin-bottom: 0;
    }

    .content-box.featured p {
        color: #000;
    }

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .content-box.featured {
        grid-column: span 1;
    }

    .main-content {
        padding: 24px 16px;
    }

        .main-content h1 {
            font-size: 28px;
        }



    #chatbot-popup {
        width: 100%;
        height: 92%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
}

