﻿body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Botón flotante */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 28px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

    .whatsapp-button.visible {
        opacity: 1;
        pointer-events: auto;
    }

/* Menú */
.whatsapp-menu {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 1001;
    width: 450px;
    max-width: 90%;
}

/* Cabecera del menú */
.whatsapp-menu-header {
    display: flex;
    align-items: center;
    background-color: #25D366;
    color: white;
    border-bottom: 1px solid #ddd;
    position: relative;
    padding: 10px 0 10px 0; /* quitamos el padding global */
}

/* Contenedor del ícono + textos */
.whatsapp-menu-header-left {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px; /* lo aplicamos aquí */
    flex: 1;
}

    /* Ícono en cabecera */
    .whatsapp-menu-header-left .icon {
        margin-top: 2px;
    }

/* Textos de cabecera */
.whatsapp-menu-header-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    padding: 0;
}

.whatsapp-menu-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.whatsapp-menu-subtitle {
    font-size: 13px;
    color: #eaeaea;
    line-height: 1.3;
    margin: 0;
}

/* Botón de cierre */
.whatsapp-menu-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* Íconos */
.icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.icon-header {
    fill: #fff;
}

.icon-item {
    fill: #25D366;
}

/* Opciones del menú */
.whatsapp-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin: 10px;
    background: #f3f4f6;
    text-decoration: none;
    color: #00485F;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color 0.3s ease;
    white-space: normal; /* Permite salto de línea */
    word-break: break-word; /* Corta palabras si son muy largas */
    line-height: 1.3; /* Espaciado agradable entre líneas */
}

    .whatsapp-menu-item:hover {
        background-color: #f5f5f5;
    }

.whatsapp-menu-body-content {
    padding: 5px 10px 5px 10px
}

.whatsapp-menu-item svg {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes zoomOut {
    from {
        transform: scale(1);
        opacity: 1;
    }

    to {
        transform: scale(0.8);
        opacity: 0;
    }
}

.whatsapp-menu.show {
    display: flex;
    animation: zoomIn 0.25s ease-out forwards;
}

.whatsapp-menu.hide {
    animation: zoomOut 0.25s ease-in forwards;
}
