/*
Theme Name: Smart Mag Child Theme
Description: This is a custom child theme for Smart Mag
Theme URI:   https://themeforest.net/item/smartmag-responsive-retina-wordpress-magazine/6652608
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themesphere
Template: smart-mag
Version: 1.0
*/


.asoc-content {padding: 5em;width: 1300px;max-width: 100%;margin: 0 auto;}
.asoc-content .main-content{width: 100%!important;max-width: 100%;}
.block-publicaciones {grid-template-columns: 1fr 2fr 1fr; grid-gap: 1em; padding: .6em 0; display: grid!important; border-bottom: 1px solid #eee; margin: .4em auto;}
.heading-fecha strong { display: inline-block; color:#fff; background-color:var(--c-main); padding: .05em .75em;}
.heading-link  { text-align: right;}
.heading-link i { color:#03C998; margin-left: .4em;}
.wp-pagenavi {padding: 1em; margin: 1em 0; background: #f9f9f9; text-align: center;}
.wp-pagenavi a, .wp-pagenavi span {text-decoration: none; border: 0;padding: .2em .5em;margin: 0;}
.wp-pagenavi .pages { display: none;}
.wp-pagenavi .current {  color:#03C998;}
.asocfichas { width: 100%; float: left;}
.frmasocmenu {border-bottom: 1px solid var(--c-main);  margin-bottom: 3.5em;float: left; width: 100%;}
.frmasocmenu ul {float: left; width: 100%;}
.frmasocmenu li {float: left; display: inline-block;padding:0; }
.frmasocmenu li a { display: block;padding: .3em 1em; }
.frmasocmenu li.asoc_cerrar{float:right }
.frmasocmenu li a.activo{  background:var(--c-main); font-weight: bold; color:#fff}
.frmasocmenu li a.activo:hover,
.frmasocmenu li a:hover { background: #eee;color:var(--c-main)}
.desc { width: 80vw;}
footer,
.main-footer  { clear: both;}

@media only screen and (max-width:760px) {
    .asoc-content {padding:2em 1.5em;width: 100%;}
    .heading-link ,
    .heading-fecha { font-size: .8em; }
}




/*CHAT BOT*/

    #chatbot-container {
        --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        --dark-bg: #1a1a2e;
        --darker-bg: #16213e;
        --card-bg: rgba(255, 255, 255, 0.95);
        --glass-bg: rgba(255, 255, 255, 0.1);
        --text-primary: #2c3e50;
        --text-secondary: #7f8c8d;
        --text-light: #ffffff;
        --shadow-primary: 0 20px 40px rgba(0,0,0,0.1);
        --shadow-hover: 0 30px 60px rgba(0,0,0,0.2);
        --border-radius: 20px;
        --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    }

    #chatbot-container * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    /* Floating Chat Button */
    #chatbot-container #chat-bubble {
        position: fixed;
        bottom: 30px;
        right: 30px;
        width: 70px;
        height: 70px;
        cursor: pointer;
        z-index: 9998;
        transition: var(--transition);
    }

    #chatbot-container .bubble-icon {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--primary-gradient);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-light);
        font-size: 24px;
        box-shadow: var(--shadow-primary);
        transition: var(--transition);
        z-index: 2;
    }

    #chatbot-container .bubble-icon:hover {
        transform: scale(1.1);
        box-shadow: var(--shadow-hover);
    }

    #chatbot-container .pulse-ring, #chatbot-container .pulse-ring-2 {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        border: 3px solid rgba(102, 126, 234, 0.3);
        border-radius: 50%;
        animation: chatbot-pulse 2s infinite;
    }

    #chatbot-container .pulse-ring {
        width: 70px;
        height: 70px;
        animation-delay: 0s;
    }

    #chatbot-container .pulse-ring-2 {
        width: 90px;
        height: 90px;
        animation-delay: 1s;
    }

    @keyframes chatbot-pulse {
        0% {
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
        }
        100% {
            transform: translate(-50%, -50%) scale(1.5);
            opacity: 0;
        }
    }

    /* Chat Window */
    #chatbot-container #chat-window {
        position: fixed;
        bottom: 120px;
        right: 30px;
        width: 90%;
        max-width: 420px;
        height: 75vh;
        max-height: 650px;
        background: var(--card-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-primary);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        z-index: 9999;
        transition: var(--transition);
        transform-origin: bottom right;
    }

    #chatbot-container #chat-window.hidden {
        transform: scale(0.8) translateY(20px);
        opacity: 0;
        pointer-events: none;
    }

    /* Animated Background */
    #chatbot-container .chat-bg-animation {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        overflow: hidden;
        z-index: 0;
    }

    #chatbot-container .floating-shape {
        position: absolute;
        border-radius: 50%;
        opacity: 0.1;
        animation: chatbot-float 6s infinite ease-in-out;
    }

    #chatbot-container .shape-1 {
        width: 80px;
        height: 80px;
        background: var(--primary-gradient);
        top: 20%;
        left: -40px;
        animation-delay: 0s;
    }

    #chatbot-container .shape-2 {
        width: 60px;
        height: 60px;
        background: var(--secondary-gradient);
        top: 60%;
        right: -30px;
        animation-delay: 2s;
    }

    #chatbot-container .shape-3 {
        width: 100px;
        height: 100px;
        background: var(--success-gradient);
        bottom: 20%;
        left: 50%;
        animation-delay: 4s;
    }

    @keyframes chatbot-float {
        0%, 100% {
            transform: translateY(0px) rotate(0deg);
        }
        50% {
            transform: translateY(-20px) rotate(180deg);
        }
    }

    /* Chat Header */
    #chatbot-container .chat-header {
        background: var(--primary-gradient);
        color: var(--text-light);
        padding: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        position: relative;
        z-index: 1;
    }

    #chatbot-container .header-content {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    #chatbot-container .bot-avatar {
        position: relative;
        width: 50px;
        height: 50px;
    }

    #chatbot-container .avatar-inner {
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    #chatbot-container .status-indicator {
        position: absolute;
        bottom: 2px;
        right: 2px;
        width: 12px;
        height: 12px;
        background: #00ff88;
        border: 2px solid white;
        border-radius: 50%;
        animation: chatbot-blink 2s infinite;
    }

    @keyframes chatbot-blink {
        0%, 50% { opacity: 1; }
        51%, 100% { opacity: 0.3; }
    }

    #chatbot-container .header-text h3 {
        margin: 0;
        font-size: 1.2em;
        font-weight: 600;
    }

    #chatbot-container .status-text {
        font-size: 0.9em;
        opacity: 0.8;
    }

    #chatbot-container #close-btn {
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: var(--text-light);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    #chatbot-container #close-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.1);
    }

    /* Messages Area */
    #chatbot-container #chat-messages {
        flex-grow: 1;
        padding: 25px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 20px;
        scrollbar-width: thin;
        scrollbar-color: rgba(102, 126, 234, 0.3) transparent;
        position: relative;
        z-index: 1;
    }

    #chatbot-container #chat-messages::-webkit-scrollbar {
        width: 6px;
    }

    #chatbot-container #chat-messages::-webkit-scrollbar-track {
        background: transparent;
    }

    #chatbot-container #chat-messages::-webkit-scrollbar-thumb {
        background: rgba(102, 126, 234, 0.3);
        border-radius: 10px;
    }

    /* Message Bubbles */
    #chatbot-container .message {
        display: flex;
        max-width: 85%;
        animation: chatbot-messageSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes chatbot-messageSlideIn {
        from {
            opacity: 0;
            transform: translateY(20px) scale(0.8);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    #chatbot-container .bot-message {
        align-self: flex-start;
    }

    #chatbot-container .user-message {
        align-self: flex-end;
    }

    #chatbot-container .message .text {
        padding: 15px 20px;
        border-radius: var(--border-radius);
        line-height: 1.6;
        font-size: 0.95em;
        position: relative;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    #chatbot-container .bot-message .text {
        background: var(--glass-bg);
        color: var(--text-primary);
        border-bottom-left-radius: 5px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    }

    #chatbot-container .bot-message .text::before {
        content: '';
        position: absolute;
        bottom: -1px;
        left: -8px;
        width: 0;
        height: 0;
        border: 8px solid transparent;
        border-right-color: rgba(255, 255, 255, 0.1);
        border-bottom: 0;
    }

    #chatbot-container .user-message .text {
        background: var(--primary-gradient);
        color: var(--text-light);
        border-bottom-right-radius: 5px;
        box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    }

    #chatbot-container .user-message .text::before {
        content: '';
        position: absolute;
        bottom: -1px;
        right: -8px;
        width: 0;
        height: 0;
        border: 8px solid transparent;
        border-left-color: #667eea;
        border-bottom: 0;
    }

    /* Typing Indicator */
    #chatbot-container #typing-indicator {
        padding: 15px 25px;
        display: flex;
        align-items: center;
        gap: 15px;
        position: relative;
        z-index: 1;
    }

    #chatbot-container #typing-indicator.hidden {
        display: none;
    }

    #chatbot-container .typing-avatar {
        width: 35px;
        height: 35px;
        background: var(--glass-bg);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-primary);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    #chatbot-container .typing-text {
        background: var(--glass-bg);
        padding: 10px 15px;
        border-radius: 15px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        display: flex;
        align-items: center;
        gap: 10px;
    }

    #chatbot-container .typing-dots {
        display: flex;
        gap: 4px;
    }

    #chatbot-container .typing-dots span {
        width: 6px;
        height: 6px;
        background: var(--text-secondary);
        border-radius: 50%;
        animation: chatbot-typingBounce 1.4s infinite ease-in-out both;
    }

    #chatbot-container .typing-dots span:nth-child(1) { animation-delay: -0.32s; }
    #chatbot-container .typing-dots span:nth-child(2) { animation-delay: -0.16s; }
    #chatbot-container .typing-dots span:nth-child(3) { animation-delay: 0s; }

    @keyframes chatbot-typingBounce {
        0%, 80%, 100% {
            transform: scale(0);
            opacity: 0.5;
        }
        40% {
            transform: scale(1);
            opacity: 1;
        }
    }

    #chatbot-container .typing-label {
        font-size: 0.85em;
        color: var(--text-secondary);
        font-style: italic;
    }

    /* Input Form */
    #chatbot-container #chat-form {
        padding: 20px;
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        position: relative;
        z-index: 1;
    }

    #chatbot-container .input-container {
        display: flex;
        gap: 15px;
        align-items: center;
        background: white;
        border-radius: 25px;
        padding: 5px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    #chatbot-container #chat-input {
        flex-grow: 1;
        border: none;
        background: transparent;
        padding: 15px 20px;
        font-size: 1em;
        color: var(--text-primary);
        border-radius: 20px;
        transition: var(--transition);
    }

    #chatbot-container #chat-input:focus {
        outline: none;
    }

    #chatbot-container #chat-input::placeholder {
        color: var(--text-secondary);
        opacity: 0.7;
    }

    #chatbot-container .send-btn {
        background: var(--primary-gradient);
        border: none;
        color: var(--text-light);
        width: 50px;
        height: 50px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    }

    #chatbot-container .send-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
    }

    #chatbot-container .send-btn:active {
        transform: scale(0.95);
    }

    /* Responsive Design */
    @media (max-width: 480px) {
        #chatbot-container #chat-window {
            width: 95%;
            right: 2.5%;
            height: 80vh;
        }

        #chatbot-container #chat-bubble {
            right: 20px;
            bottom: 20px;
        }

        #chatbot-container .header-content {
            gap: 10px;
        }

        #chatbot-container .bot-avatar {
            width: 40px;
            height: 40px;
        }

        #chatbot-container .header-text h3 {
            font-size: 1.1em;
        }

        #chatbot-container #chat-messages {
            padding: 20px 15px;
        }

        #chatbot-container .message .text {
            padding: 12px 16px;
            font-size: 0.9em;
        }
    }