/**
 * MAXICAL C.A. — MODAL WHATSAPP PREMIUM
 * Diseño profesional con logos de empresas y estilo corporativo
 */

.whatsapp-popup-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.8em;
    padding: 1.2em 2.5em;
    background: #25d366;
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.2em;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 15px rgba(37,211,102,0.3);
}
.whatsapp-popup-trigger:hover {
    background: #1da851;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(37,211,102,0.5);
}
.whatsapp-popup-trigger i { font-size: 1.5em; }

/* ── Fondo del modal ── */
.whatsapp-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: wm-fadeIn 0.3s ease;
}
.whatsapp-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}
@keyframes wm-fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Contenedor del modal ── */
.whatsapp-modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafb 100%);
    border-radius: 24px;
    padding: 0;
    max-width: 480px;
    width: 92%;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.25),
        0 0 0 1px rgba(255,255,255,0.1);
    animation: wm-slideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}
@keyframes wm-slideUp {
    from { transform: translateY(40px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0) scale(1);       opacity: 1; }
}

/* ── Cabecera con gradiente verde WhatsApp ── */
.whatsapp-modal-header {
    text-align: center;
    padding: 2.5em 2em 2em;
    background: linear-gradient(135deg, #25d366 0%, #128C7E 100%);
    position: relative;
}
.whatsapp-modal-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0; right: 0;
    height: 40px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafb 100%);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.whatsapp-modal-header i {
    font-size: 2.8em;
    color: #fff;
    margin-bottom: 0.2em;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}
.whatsapp-modal-header h3 {
    margin: 0.3em 0 0.2em !important;
    color: #ffffff !important;
    font-size: 1.5em !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.whatsapp-modal-header p {
    margin: 0;
    color: rgba(255,255,255,0.85);
    font-size: 0.9em;
    font-weight: 500;
}

/* ── Opciones ── */
.whatsapp-options {
    display: flex;
    flex-direction: column;
    gap: 0.9em;
    padding: 1.8em 2em 2em;
}

.whatsapp-option {
    display: flex;
    align-items: center;
    gap: 1.2em;
    padding: 1.2em 1.4em;
    background: #ffffff;
    border: 1.5px solid #e8ecf1;
    border-radius: 16px;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
}
.whatsapp-option:hover {
    background: #f0faf4;
    border-color: #25d366;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37,211,102,0.18);
}

.whatsapp-option-icon {
    flex-shrink: 0;
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 1.3em;
    transition: transform 0.3s ease;
}
.whatsapp-option:hover .whatsapp-option-icon {
    transform: scale(1.08);
}

.whatsapp-option-content { flex: 1; }
.whatsapp-option-title {
    font-weight: 700 !important;
    color: #111827 !important;
    font-size: 1.1em !important;
    margin-bottom: 0.25em;
    line-height: 1.3;
}
.whatsapp-option-number {
    color: #374151 !important;
    font-size: 0.9em !important;
    display: flex;
    align-items: center;
    gap: 0.4em;
    font-weight: 500;
}
.whatsapp-option-number i {
    font-size: 0.85em;
    color: #25d366;
}

.whatsapp-option-arrow {
    flex-shrink: 0;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #f0f4f8;
    display: flex; align-items: center; justify-content: center;
    color: #9ca3af;
    font-size: 0.85em;
    transition: all 0.3s ease;
}
.whatsapp-option:hover .whatsapp-option-arrow {
    background: #25d366;
    color: #fff;
    transform: translateX(3px);
}

/* ── Botón cerrar ── */
.modal-close {
    position: absolute;
    top: 1em; right: 1em;
    background: rgba(255,255,255,0.2);
    border: none;
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s ease;
    color: #fff;
    font-size: 1.1em;
    z-index: 2;
    backdrop-filter: blur(4px);
}
.modal-close:hover {
    background: rgba(255,255,255,0.35);
    transform: rotate(90deg);
}

/* ── Responsive ── */
@media screen and (max-width: 768px) {
    .whatsapp-modal-content {
        width: 95%;
        max-width: none;
    }
    .whatsapp-modal-header {
        padding: 2em 1.5em 1.5em;
    }
    .whatsapp-options {
        padding: 1.5em 1.2em 1.5em;
    }
    .whatsapp-option {
        padding: 1em;
    }
    .whatsapp-option-icon {
        width: 44px; height: 44px;
        font-size: 1.1em;
    }
}
