*{ list-style: none; fill: black; }
/* HEADER */

    header{
        display: flex;
        justify-content: space-around;
        align-items: center;
        width: 100%;
        padding: 0.8rem;
        border-bottom: 1px solid;

        .logo{ width: clamp(11rem, 2vw + 1rem, 12rem); }

        .articulos{
            position: relative;
            display: flex;
            text-align: center;
            gap: 1rem;
            
            p{ font-size: 0.7rem; padding: 0.6rem; position: relative; }
            .categoria::after, .categoria:hover::after{
                content: "";
                position: absolute;
                border: solid 0px;
                width: 0;
                bottom: 0;
                left: 50%;
                transform: translate(-50%, -50%);
                transition: all 0.25s linear;
            }
            .fa-bars{ font-size: 1.3rem; }
            /* .obras_nav{
                width: 100px;
                position: relative;
            }
            .obras{
                width: 200%;
                position: absolute;
                display: flex;
                flex-direction: column;
                top: 50%; left: 50%;
                transform: translate(-50%, 10%);
                border-radius: 8px;
                border: solid 1px;
                text-align: center;
                background-color: white;
                z-index: 999;
                padding: 0.1rem;

                p{ 
                    display: flex;
                    justify-content: left;
                    align-items: left;
                    text-align: left;
                    font-size: 0.6rem;
                    padding: 0.5rem;
                    cursor: pointer;

                    svg{ fill: black; width: 0.8rem; height: 0.8rem; }
                }
                p:hover{
                    background-color: rgb(240, 240, 240);
                } 
            } */
        }
        .sidebar{
            position: fixed;
            top: 0;
            right: 0;
            height: 100vh;
            width: 180px;
            z-index: 999;
            background-color: rgba(255, 255, 255, 0.5);
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
            box-shadow: -10px 0 10px rgba(0, 0, 0, 0.2);
            display: none !important;
            flex-direction: column;
            align-items: flex-start;
            justify-content: flex-start;

            p{ width: 100%; }
            a{ width: 100%; }
        }
    }

    /* FOOTER */
    footer{ 
        width: 100%;
        background-image: linear-gradient(to right, lightblue, lightgreen);
        /* background: linear-gradient(to right, #4a9ebb, #6fb36f); */

        .div-info-footer{
            padding: 2rem;
            display: flex;
            justify-content: space-around;
            align-items: center;

            .footer-info{
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                gap: 0.5rem;

                .logo-nombre{
                    display: flex;
                    align-items: center;
                    margin-bottom: 0.2rem;

                    p{ font-size: 1.1rem; }
                    img{
                        width: 2rem;
                        height: 2rem;
                    }
                }
                .footer-contacto{
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;

                    p, a{
                        text-decoration: none;
                        text-align: center;
                        font-size: 0.7rem;
                        margin: 0.2rem 0;
                    }
                    a{ color: blue; }
                    a:hover{ text-decoration: underline; }
                }
            }

            .redes-sociales{
                display: flex;
                flex-direction: column;
                width: 30%;
                gap: 1rem;

                p{ font-size: 1rem; text-align: center; }

                .redes-sociales-links{
                    display: flex;
                    justify-content: space-between;
                    align-items: center;

                    a{ display: flex; align-items: center; }
                    .red{
                        width: 1.3rem;
                        object-fit: contain;
                        cursor: pointer;
                        filter: grayscale(100%);
                        transition: all 0.3s linear;
                    }
                    .red:hover{ filter: grayscale(0%); scale: 1.1; }
                }
            }
        }
        .mensaje{
            text-align: center;
            a{ font-size: 0.7rem; }
            a:hover{ text-decoration: underline; }
        }
        hr{
            margin-top: 2rem;
            border-color: black;
            opacity: 0.5;
        }
        .footer-derechos{

            .derechos{
                display: flex;
                flex-direction: column;
                align-items: center;
                padding: 0.2rem;

                .logo-nombre{
                    display: flex;
                    align-items: center;
                    justify-content: center;

                    img{
                        width: 1rem;
                        height: 1rem;
                    }
                    p{ font-size: 0.8rem; }
                }
                .copy{
                    text-align: center;
                    p{ font-size: 15px; }
                }
            }
        }
    }


/* CONTENEDOR PRINCIPAL */
.div-info-footer{
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

/* INFO */
.footer-info{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-nombre{
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.logo-nombre img{
    width: 32px;
    height: 32px;
}

.logo-nombre p{
    font-size: 1rem;
}

/* CONTACTO */
.footer-contacto p,
.footer-contacto a{
    font-size: 0.65rem;
    margin: 0.2rem 0;
    text-align: center;
}

.footer-contacto a{
    color: blue;
}

/* REDES */
.redes-sociales{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

.titulo-redes-sociales{
    width: 100%;
    text-align: center;
}

.titulo-redes-sociales p{
    width: 100%;
    padding: 0.8rem 0;
    font-size: 2rem;
}

.redes-sociales-links{
    display: flex;
    gap: 1rem;
}

.redes-sociales-links img{
    width: 25px;
    filter: grayscale(100%);
    transition: 0.3s;
}

.redes-sociales-links img:hover{
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* MENSAJE */
.mensaje{
    text-align: center;
    margin-top: 1rem;
}

.mensaje a{
    font-size: 0.7rem;
}

/* DERECHOS */
.footer-derechos{
    text-align: center;
    padding: 1.2rem 0;
}

.footer-derechos p{
    font-size: 0.65rem;
}

/* RESPONSIVE */
@media (max-width: 650px){
    .div-info-footer{
        flex-direction: column;
        gap: 2rem;
    }
    .redes-sociales{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }
    .titulo-redes-sociales{
        width: 200px;
    }
    .titulo-redes-sociales p{
        width: 100%;
        font-size: 2rem;
    }
    .redes-sociales-links{
        gap: 1rem;
    }
}


        .chat-bubble {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, lightblue, lightgreen);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            z-index: 1000;
            border: 3px solid rgba(255, 255, 255, 0.3);

            /* display: none; */
        }

        .chat-bubble:hover {
            transform: scale(1.1);
            box-shadow: 0 0 10px 3px rgba(255, 255, 255, 1);
        }

        .chat-bubble.active {
            transform: scale(0.9);
        }

        .chat-bubble svg {
            width: 28px;
            height: 28px;
            fill: white;
            transition: all 0.3s ease;
        }

        .chat-bubble.active svg.icon-chat {
            opacity: 0;
            transform: rotate(90deg) scale(0);
        }

        .chat-bubble.active svg.icon-close {
            opacity: 1;
            transform: rotate(0) scale(1);
        }

        .icon-close {
            position: absolute;
            opacity: 0;
            transform: rotate(-90deg) scale(0);
        }

        /* Indicador de notificación */
        .notification-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            width: 22px;
            height: 22px;
            background: #ff4757;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 11px;
            font-weight: 700;
            border: 2px solid white;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }

        .chat-window {
            position: fixed;
            bottom: 110px;
            right: 30px;
            width: 450px;
            height: 600px;
            background: white;
            border-radius: 20px;
            box-shadow: 0 0 10px lightgray;
            display: none;
            flex-direction: column;
            overflow: hidden;
            z-index: 999;
            animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .chat-window.active{ display: flex; }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px) scale(0.95);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        /* Header del chat */
        .chat-header {
            background: linear-gradient(135deg, lightblue, lightgreen);
            padding: 20px;
            color: white;
            display: flex;
            align-items: center;
            gap: 15px;
            border-radius: 20px 20px 0 0;
            margin-bottom: 0.2rem;
        }

        .bot-avatar {
            width: 50px;
            height: 50px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            border: 2px solid rgba(255, 255, 255, 0.3);
        }

        .bot-info { flex: 1; }

        .bot-name {
            font-weight: 700;
            font-size: 16px;
            margin-bottom: 3px;
        }

        .bot-status {
            font-size: 12px;
            opacity: 0.9;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .status-dot {
            width: 8px;
            height: 8px;
            background: #10b981;
            border-radius: 50%;
            animation: blink 2s infinite;
        }

        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        /* Área de mensajes */
        .chat-messages {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
            background: var(--bg-light);
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .chat-messages::-webkit-scrollbar{ width: 6px; }

        .chat-messages::-webkit-scrollbar-track{ background: transparent; }

        .chat-messages::-webkit-scrollbar-thumb {
            background: var(--border);
            border-radius: 10px;
        }

        .chat-messages::-webkit-scrollbar-thumb:hover{ background: #cbd5e0; }

        /* Mensaje individual */
        .message {
            display: flex;
            gap: 10px;
            animation: messageSlide 0.3s ease-out;
        }

        @keyframes messageSlide {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .message.user {
            flex-direction: row-reverse;
        }

        .message-avatar {
            width: 35px;
            height: 35px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            flex-shrink: 0;
        }

        .message.bot .message-avatar {
            background: linear-gradient(135deg, lightblue, lightgreen);
            color: white;
        }

        .message.user .message-avatar {
            background: #e2e8f0;
        }

        .message-content {
            max-width: 90%;
            padding: 12px 16px;
            border-radius: 16px;
            border: 1px solid #B8E5C1;
            font-size: 14px;
            line-height: 1.5;
            word-wrap: break-word;
            white-space: pre-wrap;
        }

        .message.bot .message-content {
            background: white;
            color: var(--text-dark);
            border-bottom-left-radius: 4px;
            box-shadow: var(--shadow-sm);
        }

        .message.user .message-content {
            background: linear-gradient(135deg, lightblue, lightgreen);
            color: white;
            border-bottom-right-radius: 4px;
        }

        .message-time {
            font-size: 11px;
            color: var(--text-light);
            margin-top: 4px;
            padding: 0 16px;
        }

        .message.user .message-time {
            text-align: right;
        }

        /* Indicador de escritura */
        .typing-indicator {
            display: none;
            padding: 12px 16px;
            background: white;
            border-radius: 16px;
            border-bottom-left-radius: 4px;
            width: fit-content;
            box-shadow: var(--shadow-sm);
        }

        .typing-indicator.active{ display: block; }

        .typing-dots{ display: flex; gap: 4px; }

        .typing-dots span {
            width: 8px;
            height: 8px;
            background: var(--text-light);
            border-radius: 50%;
            animation: typing 1.4s infinite;
        }

        .typing-dots span:nth-child(2){ animation-delay: 0.2s; }

        .typing-dots span:nth-child(3){ animation-delay: 0.4s; }

        @keyframes typing {
            0%, 60%, 100% {
                transform: translateY(0);
                opacity: 0.7;
            }
            30% {
                transform: translateY(-10px);
                opacity: 1;
            }
        }

        /* Sugerencias rápidas */
        .quick-suggestions {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            padding: 0 20px 10px;
            background: var(--bg-light);
        }

        .suggestion-chip {
            padding: 8px 14px;
            background: white;
            border: 2px solid #B8E5C1;
            border-radius: 20px;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
        }

        .suggestion-chip:hover {
            background: linear-gradient(to right, lightblue, lightgreen);
            color: white;
            border: none;
        }

        /* Input del chat */
        .chat-input {
            padding: 20px;
            background: white;
            border-top: 2px solid #B8E5C1;
            display: flex;
            gap: 2rem;
            align-items: center;
        }

        .input-wrapper{ flex: 1; position: relative; }

        .chat-input input {
            width: 100%;
            padding: 12px 16px;
            border: 2px solid lightgray;
            border-radius: 25px;
            font-family: 'DM Sans', sans-serif;
            font-size: 14px;
            outline: none;
            transition: all 0.2s ease;
        }

        .chat-input input:focus {
            position: relative;
            border-color: #B8E5C1;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .send-button {
            width: 45px;
            height: 45px;
            background: linear-gradient(135deg, lightblue, lightgreen);
            border: none;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            flex-shrink: 0;
            z-index: 2;
        }

        .send-button:hover:not(:disabled) {
            transform: scale(1.1);
            box-shadow: var(--shadow-md);
        }

        .send-button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .send-button svg {
            width: 20px;
            height: 20px;
            fill: white;
        }

        /* Mensaje de bienvenida */
        .welcome-message {
            text-align: center;
            padding: 40px 20px;
            color: var(--text-light);
        }

        .welcome-message h3 {
            color: var(--text-dark);
            margin-bottom: 10px;
            font-size: 18px;
        }

        .welcome-message p, strong {
            font-size: 14px;
            line-height: 1.6;
        }

        /* Responsive */
        @media (max-width: 480px) {
            .chat-window {
                right: 10px;
                left: 10px;
                bottom: 100px;
                width: auto;
                height: 550px;
            }

            .chat-bubble {
                right: 20px;
                bottom: 20px;
            }
        }

        /* Demo controls */
        .demo-info {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: white;
            padding: 15px 25px;
            border-radius: 15px;
            box-shadow: var(--shadow-md);
            text-align: center;
            max-width: 500px;
        }

        .demo-info h2 {
            color: var(--text-dark);
            font-size: 18px;
            margin-bottom: 5px;
        }

        .demo-info p {
            color: var(--text-light);
            font-size: 14px;
        }