/*
 * ESTILOS PARA EL WIDGET Y LAS TARJETAS DE WHATSAPP
 * Incluye estilos para el widget flotante y para los bloques de tarjetas personalizados
 * Los estilos están organizados y comentados para principiantes
 */

/**************************************
 * Tarjeta WhatsApp Circular
 **************************************/
.adookia-whatsapp-card-circular {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 12px #0001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 30px auto;
    padding: 20px;
    text-align: center;
    transition: box-shadow 0.2s;
}
.adookia-whatsapp-card-circular:hover {
    box-shadow: 0 4px 24px #0002;
}
.adookia-whatsapp-card-circular img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}
.adookia-whatsapp-card-circular a {
    display: inline-block;
    border-radius: 25px;
    padding: 8px 25px;
    font-weight: bold;
    text-decoration: none;
    font-size: 15px;
    margin-top: 10px;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px #43b02a33;
}
.adookia-whatsapp-card-circular a:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 16px #43b02a55;
}

/**************************************
 * Tarjeta WhatsApp Horizontal
 **************************************/
.adookia-whatsapp-card-horizontal {
    width: 100%;
    max-width: 700px;
    min-height: 90px;
    border-radius: 50px;
    background: #fff;
    box-shadow: 0 2px 12px #0001;
    display: flex;
    align-items: center;
    margin: 30px auto;
    padding: 20px;
    transition: box-shadow 0.2s;
}
.adookia-whatsapp-card-horizontal:hover {
    box-shadow: 0 4px 24px #0002;
}
.adookia-whatsapp-card-horizontal img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}
.adookia-whatsapp-card-horizontal a {
    display: inline-block;
    border-radius: 25px;
    padding: 8px 30px;
    font-weight: bold;
    text-decoration: none;
    font-size: 15px;
    margin-left: 20px;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px #43b02a33;
}
.adookia-whatsapp-card-horizontal a:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 16px #43b02a55;
}
.adookia-whatsapp-card-horizontal .adookia-whatsapp-card-content {
    flex: 1;
}

/**************************************
 * Responsive (adaptable a móvil)
 **************************************/
@media (max-width: 600px) {
    .adookia-whatsapp-card-circular {
        width: 90vw;
        height: auto;
        min-height: 200px;
        border-radius: 30px;
        padding: 15px;
    }
    .adookia-whatsapp-card-horizontal {
        max-width: 98vw;
        padding: 10px;
        border-radius: 20px;
        flex-direction: column;
        align-items: flex-start;
        min-height: unset;
    }
    .adookia-whatsapp-card-horizontal img {
        margin-right: 0;
        margin-bottom: 10px;
    }
    .adookia-whatsapp-card-horizontal a {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }
}

    .adookia-whatsapp-widget {
        position: fixed;
        z-index: 99999;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    }
    
    .adookia-whatsapp-block {
        position: relative;
        display: inline-block;
        margin: 20px 0;
    }
    
    .adookia-wa-bottom_right { bottom: 20px; right: 20px; }
    .adookia-wa-bottom_left { bottom: 20px; left: 20px; }
    .adookia-wa-top_right { top: 20px; right: 20px; }
    .adookia-wa-top_left { top: 20px; left: 20px; }
    
    /* Solo mostrar en móvil si está configurado */
    .adookia-wa-mobile-only {
        display: none;
    }
    
    @media (max-width: 768px) {
        .adookia-wa-mobile-only {
            display: block;
        }
    }
    
    .adookia-wa-button {
        width: var(--button-size);
        height: var(--button-size);
        background: var(--button-color);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
        transition: all 0.3s ease;
        color: white;
        position: relative;
        overflow: hidden;
    }
    
    .adookia-wa-button:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    }
    
    .adookia-wa-button svg {
        width: 60%;
        height: 60%;
    }
    
    .adookia-wa-text {
        position: absolute;
        right: 100%;
        top: 50%;
        transform: translateY(-50%);
        background: var(--button-color);
        padding: 8px 12px;
        border-radius: 20px;
        white-space: nowrap;
        margin-right: 10px;
        font-size: 14px;
        font-weight: 500;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .adookia-wa-button:hover .adookia-wa-text {
        opacity: 1;
    }
    
    .adookia-wa-panel {
        position: absolute;
        bottom: calc(var(--button-size) + 15px);
        right: 0;
        width: 300px;
        background: white;
        border-radius: 15px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.15);
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
    }
    
    .adookia-whatsapp-block .adookia-wa-panel {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 15px;
    }
    
    .adookia-wa-panel.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .adookia-wa-header {
        background: var(--button-color);
        color: white;
        padding: 15px 20px;
        border-radius: 15px 15px 0 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .adookia-wa-header h4 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
    }
    
    .adookia-wa-close {
        background: none;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
        padding: 0;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .adookia-wa-contacts {
        padding: 20px;
    }
    
    .adookia-wa-contact {
        display: flex;
        align-items: center;
        padding: 12px;
        border-radius: 10px;
        text-decoration: none;
        color: #333;
        transition: background 0.2s ease;
        margin-bottom: 10px;
    }
    
    .adookia-wa-contact:hover {
        background: #f0f0f0;
    }
    
    .adookia-wa-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #25D366;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 12px;
        flex-shrink: 0;
    }
    
    .adookia-wa-avatar svg {
        width: 24px;
        height: 24px;
    }
    
    .adookia-wa-info {
        flex: 1;
    }
    
    .adookia-wa-name {
        display: block;
        font-weight: 600;
        font-size: 14px;
        color: #333;
    }
    
    .adookia-wa-status {
        display: block;
        font-size: 12px;
        color: #25D366;
    }
    
    @media (max-width: 768px) {
        .adookia-wa-panel {
            width: 280px;
        }
        
        .adookia-wa-text {
            display: none;
        }
    }
    