/* =========================================
   ESTILOS DEL CHATBOT MODULAR
   ========================================= */
.wa-wrapper { 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    z-index: 3000; 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
    cursor: pointer; 
}

.wa-btn { 
    width: 75px; 
    height: 75px; 
    background-color: var(--brand-purple, #6C2AA6); 
    color: white; 
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    box-shadow: 0 4px 20px rgba(108, 42, 166, 0.4); 
    animation: pulse-wa 2s infinite; 
    transition: transform 0.3s; 
    overflow: hidden; 
    border: 2px solid white; 
}

.wa-btn img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    image-rendering: -webkit-optimize-contrast; 
}

.wa-text { 
    background: white; 
    color: #075e54; 
    padding: 8px 16px; 
    border-radius: 20px; 
    font-weight: bold; 
    font-size: 0.9rem; 
    margin-right: 15px; 
    transition: 0.3s; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); 
    display: none; 
}

.wa-wrapper:hover .wa-btn { 
    transform: scale(1.1); 
}

@keyframes pulse-wa { 
    0% { box-shadow: 0 0 0 0 rgba(108, 42, 166, 0.7); } 
    70% { box-shadow: 0 0 0 15px transparent; } 
    100% { box-shadow: 0 0 0 0 transparent; } 
}

/* Estilos para el contenedor del iFrame para dejar el HTML más limpio */
.educhat-iframe-container {
    display: none; 
    position: fixed; 
    bottom: 90px; 
    right: 20px; 
    width: 350px; 
    height: 500px; 
    background: white; 
    border-radius: 10px; 
    box-shadow: 0 5px 25px rgba(0,0,0,0.3); 
    z-index: 10000; 
    overflow: hidden; 
    border: 1px solid #ddd;
}

.educhat-header {
    background: var(--brand-purple, #6C2AA6); 
    color: white; 
    padding: 10px 15px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.educhat-header span {
    font-weight: bold; 
    font-family: sans-serif;
}

.educhat-header button {
    background: none; 
    border: none; 
    color: white; 
    font-size: 20px; 
    cursor: pointer;
}

.educhat-iframe-container iframe {
    width: 100%; 
    height: calc(100% - 46px); 
    border: none;
}